WorksPhysics and Astronomy
Development of a real-time FPGA-based CNN trigger operating on full-granularity calorimeter images
Abstract
We present a real-time field-programmable gate array (FPGA) implementation of a convolutional neural network (CNN) for event classification on full calorimeter images that retain crystal-level shower information. To meet the resource and latency constraints of trigger electronics, the network parameters and hidden activations were quantized to 8 bits with quantization-aware training, and a lossless space-to-depth reorganization rearranged the input image into fewer spatial positions, reducing the estimated CNN inference latency by more than an order of magnitude. The approach was evaluated with the J-PARC KOTO detector, recorded data, and data-acquisition (DAQ) constraints as a benchmark, targeting the online separation of the rare decay from its dominant background. As a proof of principle, the firmware was implemented and validated on an AMD Versal Premium VPK120 evaluation board. On 100,000 test events, inference on the board rejected of the recorded background sample enriched in decays at a nominal efficiency of 95%, with a measured CNN inference latency of 17.9 s. Combining the measured image-assembly and CNN inference latencies with the estimated link-transfer and score-return times gives a projected end-to-end latency of 25.9 s, within the adopted 32 s DAQ latency budget. These results demonstrate the feasibility of using full-granularity calorimeter images for CNN-based event selection that achieves high background rejection while keeping the trigger latency within tens of microseconds.