How sfu-hiaccel/syncnn works
SyncNN is an SNN image-classification framework for Xilinx ARM-FPGA SoCs, with LeNet, NiN, and VGG-13 implementations. Its documented workflow trains CNNs, converts and quantizes weights, configures a network and dataset, then runs classification in software or on FPGA. The graph preserves the three model variants and preparation stages. Runtime call relationships are shown where the sampled testbench invokes the network; other workflow links follow README instructions, since notebook and most implementation bodies were not sampled.
Main entry points: quantize Quantize weights · convert_h Convert weights · mnist_lenet.ipynb Train LeNet · cifar10_nin.ipynb Train NiN
Components 17
Model preparation
- Train LeNet
train/mnist_lenet.ipynb - Train NiN
train/cifar10_nin.ipynb - Train VGG
train/cifar10_vgg.ipynb - Convert weights
convert_h - Quantize weights
quantize
Design configuration
- LeNet configuration
design/LeNet/includes/mnist_2.h - NiN configuration
design/NiN/includes/cifar10_1.h - VGG configuration
design/VGG13/includes/cifar10_2.h - Image and label data
Inference runtime
- LeNet testbench
design/LeNet/tb.cpp - NiN testbench
design/NiN/tb.cpp - VGG testbench
design/VGG13/tb.cpp - LeNet SNN
design/LeNet/src.cpp - NiN SNN
design/NiN/src.cpp - VGG SNN
design/VGG13/src.cpp
Execution platform
- Xilinx SoC FPGA
Other components
- Researcher
Connections 20
- Researcher → Train LeNet: trains
README.md - Researcher → Train NiN: trains
README.md - Researcher → Train VGG: trains
README.md - Train LeNet → Convert weights: provides model
README.md - Train NiN → Convert weights: provides model
README.md - Train VGG → Convert weights: provides model
README.md - Convert weights → Quantize weights: exports weights
README.md - Quantize weights → LeNet configuration: informs scaling
README.md - Quantize weights → NiN configuration: informs scaling
README.md - Quantize weights → VGG configuration: informs scaling
README.md - Researcher → Image and label data: chooses data
README.md - Image and label data → LeNet testbench: loads samples
README.md - Image and label data → NiN testbench: loads samples
README.md - Image and label data → VGG testbench: loads samples
README.md - LeNet testbench → LeNet SNN: calls network
design/LeNet/tb.cpp - NiN testbench → NiN SNN: calls network
design/NiN/tb.cpp - VGG testbench → VGG SNN: calls network
design/VGG13/tb.cpp - LeNet SNN → Xilinx SoC FPGA: runs on
README.md - NiN SNN → Xilinx SoC FPGA: runs on
README.md - VGG SNN → Xilinx SoC FPGA: runs on
README.md