FPGA Implementation and Verification of a Batch-Normalization-Folded Fixed-Point CNN
2026 Innovations in Intelligent Systems and Applications Conference (ASYU), İstanbul, Türkiye, 9 - 11 Eylül 2026, ss.1-6, (Tam Metin Bildiri)
- Yayın Türü: Bildiri / Tam Metin Bildiri
- Doi Numarası: 10.1109/asyu71790.2026.11772432
- Basıldığı Şehir: İstanbul
- Basıldığı Ülke: Türkiye
- Sayfa Sayıları: ss.1-6
- Marmara Üniversitesi Adresli: Evet
Özet
This study presents the FPGA implementation and hardware-level verification of a convolutional neural network (CNN) trained in the MATLAB environment using fixed-point arithmetic. A binary image classification problem was constructed using the airplane and ship classes selected from the CIFAR-10 dataset. The proposed CNN architecture consists of three convolutional layers, batch normalization, ReLU activation, max-pooling, and a fully connected layer. The network was trained using the Adam optimizer and achieved an accuracy of 91.85% on the test dataset in Float32 representation. After quantization to the Q8.8 fixed-point format, it achieved 91.45% accuracy, 0.9108 precision, 0.9190 recall, and an F1-score of 0.9149. During the hardware implementation stage, the network parameters were converted to the Q8.8 fixed-point format, and the batch normalization layers were folded into the convolutional weights and bias parameters, eliminating the need for a dedicated batch normalization module on the FPGA. The convolution–ReLU–pooling block and the fully connected classifier were implemented as modular Verilog designs on the FPGA. Prior to deployment, the hardware outputs were verified against a fixed-point reference model generated using the folded parameters. In addition, the effects of different fixed-point formats (Q4.12, Q6.10, and Q8.8) on classification performance were investigated, and the impact of the Q8.8 format adopted for the FPGA implementation was evaluated. Network-level resource utilization was analyzed, yielding a maximum operating frequency of 85.7 MHz and a total power consumption of 0.146 W. Compared with the synthesis of the same design without batch normalization folding, the proposed folding approach reduced LUT utilization by 67.8% and total power consumption by 43.2%. The results demonstrate that fixed-point CNN models can be implemented on FPGA platforms both efficiently and reliably, while achieving a favorable balance between classification accuracy and hardware resource utilization.