Binary neural networks provide a promising solution for low-power, high-speed inference by replacing expensive floating-point operations with bitwise logic. This makes them well-suited for deployment on resource-constrained platforms such as FPGAs. In this study, we present a fully custom BNN inference accelerator for handwritten digit recognition, implemented entirely in Verilog without the use of high-level synthesis tools. The design targets the Xilinx Artix-7 FPGA and achieves real-time classification at 80\,MHz with low power consumption and predictable timing. Simulation results demonstrate 84\% accuracy on the MNIST test set and highlight the advantages of manual HDL design for transparent, efficient, and flexible BNN deployment in embedded systems. The complete project including training scripts and Verilog source code are available at GitHub repo for reproducibility and future development.
翻译:二进制神经网络通过用位逻辑运算替代昂贵的浮点运算,为低功耗、高速推理提供了一种有前景的解决方案。这使得它们非常适合在FPGA等资源受限平台上部署。在本研究中,我们提出了一种完全定制的手写数字识别BNN推理加速器,完全使用Verilog实现,未借助高级综合工具。该设计以Xilinx Artix-7 FPGA为目标平台,在80MHz时钟频率下实现实时分类,具有低功耗和可预测的时序特性。仿真结果表明,在MNIST测试集上达到了84%的准确率,并凸显了手动HDL设计在嵌入式系统中实现透明、高效且灵活的BNN部署的优势。包含训练脚本和Verilog源代码的完整项目已在GitHub仓库开源,以确保可复现性并促进后续研究。