Parameterizable Design on Convolutional Neural Networks Using Chisel Hardware Construction Language

Micromachines (Basel). 2023 Feb 24;14(3):531. doi: 10.3390/mi14030531.

Abstract

This paper presents a parameterizable design generator on convolutional neural networks (CNNs) using the Chisel hardware construction language (HCL). By parameterizing structural designs such as the streaming width, pooling layer type, and floating point precision, multiple register-transfer level (RTL) implementations can be created to meet various accuracy and hardware cost requirements. The evaluation is based on generated RTL designs including 16-bit, 32-bit, 64-bit, and 128-bit implementations on field-programmable gate arrays (FPGAs). The experimental results show that the 32-bit design achieves optimal hardware performance when setting the same weights for estimating the quality of the results, FPGA slice count, and power dissipation. Although the focus is on CNNs, the approach can be extended to other neural network models for efficient RTL design.

Keywords: Chisel HCL; FPGA; Verilog HDL; convolutional neural network (CNN); register–transfer level.

Grants and funding

This research received no external funding.