FPGA-Based Real-Time Waveform Classification
Alperen Aksoy, Ilja Bekman, Chimezie Eguzo, Christian Grewing, Andre Zambanini
TL;DR
This work addresses real-time waveform classification for SiPM readout on FPGAs by proposing a LUT-based binary neural network with $2$-bit neurons and $2$-bit weights, implemented via a $4\times4$ CAM to avoid multipliers and achieve fast inference. The network is trained with a genetic algorithm using the DEAP framework, optimizing for accuracy while promoting sparsity, and evaluated against CNN baselines (FINN and hls4ml). While the GA-trained BNNs offer lower accuracy, they provide latency compatible with dead-time-free online processing and a compact hardware footprint, highlighting a viable path for hardware-friendly online event tagging. The work also delivers a self-contained VHDL-NN code generator and a Python package (HCL4BNN_2025) to facilitate FPGA deployments and further optimizations, with suggested future directions including segment-wise frame processing and hybrid optimization strategies.
Abstract
For self-triggered readout of SiPM sum signals, a waveform classification can aid a simple threshold trigger to reliably extract calorimetric particle hit information online at an early stage and thus reduce the volume of transmitted data. Typically, the ADC data acquisition is based on FPGAs for edge data processing. In this study, we consider look-up-table-based neural-networks and address challenges of binary multi-layer neural networks' layout, footprint, performance and training. We show that these structures can be trained using a genetic algorithm and achieve the inference latency compatible with dead-time free processing online.
