[Paper Review] Versatile firmware for the Common Readout Unit (CRU) of the ALICE experiment at the LHC
This paper presents a versatile, reusable firmware framework for the Common Readout Unit (CRU) in the ALICE experiment at CERN’s LHC, enabling high-throughput data acquisition across 10 upgraded detectors. The firmware supports continuous and triggered readout modes, integrates clock, trigger, and slow control signals via GBT and PON protocols, and reduces data throughput from 3.5 TB/s to 635 GB/s using a PCIe Gen3-based FPGA design with dynamic resource allocation and configurable data paths.
As from the run 3 of CERN LHC scheduled in 2022, the upgraded ALICE experiment will use a Common Readout Unit (CRU) at the heart of the data acquisition system. The CRU, based on the PCIe40 hardware designed for LHCb, is a common interface between 3 main sub-systems: the front-end, the computing system, and the trigger and timing system. The 475 CRUs will interface 10 different sub-detectors and reduce the total data throughput from 3.5 TB/s to 635 GB/s. The ALICE common firmware framework supports data taking in continuous and triggered mode and forwards clock, trigger and slow control to the front-end electronics. In this paper, the architecture and the data-flow performance are presented.
Motivation & Objective
- Address the challenge of managing 3.5 TB/s data throughput from 10,000 readout links in ALICE’s upgraded detector systems during LHC Run 3.
- Develop a unified firmware framework to support diverse detector requirements across 10 upgraded sub-detectors using a common hardware platform.
- Enable both continuous (trigger-less) and triggered data acquisition modes to accommodate varying physics objectives and detector configurations.
- Integrate clock, trigger, and slow control signals efficiently across front-end electronics, computing systems, and the trigger and timing system.
- Ensure firmware maintainability and reproducibility through version control, automated tagging, and modular design with user-logic extensibility.
Proposed method
- Employ a PCIe Gen3 x8 FPGA-based CRU hardware platform (derived from LHCb’s PCIe40 design) to interface 24 GBT optical links and one TTS PON link.
- Implement a modular firmware stack using a Board Support Package (BSP), GBT wrapper, TTS interface, and configurable datapath wrapper for flexible data routing.
- Use a Detector Data Generator (DDG) and pattern player to simulate real detector data for firmware validation and readout software testing.
- Integrate PCIe DMA for high-bandwidth data transfer to the O2 computing farm, with control messages handled via BAR interface.
- Utilize I2C-based configuration and monitoring for clocks, temperature, power, and LEDs, with a custom VHDL address table for simulation and debugging.
- Apply Git-based version control with automated firmware tagging (including git hash and compilation date) to ensure traceability and reproducibility.
Experimental results
Research questions
- RQ1How can a single firmware framework efficiently support diverse data acquisition requirements across 10 different ALICE sub-detectors with varying bandwidth and timing needs?
- RQ2What architectural and configurability features are required to enable both continuous and triggered readout modes within a unified firmware design?
- RQ3How can firmware resource usage be minimized while maintaining adaptability and supporting embedded test features for complex detector systems?
- RQ4What mechanisms ensure reliable configuration, validation, and deployment of detector-specific user logic within a shared firmware repository?
- RQ5How can firmware simulation and integration be streamlined to reduce development time and accelerate error resolution in large-scale detector systems?
Key findings
- The common firmware framework successfully reduced the total data throughput from 3.5 TB/s to 635 GB/s by aggregating 475 CRUs across 10 upgraded detectors.
- The firmware uses 123k Adaptive Logic Modules (29% of FPGA) and 1,084 RAM blocks (40% of total), with the GBT wrapper being the largest component at 44% of total ALM usage.
- Dynamic switching between GBT and wide-mode operation allows up to 30k ALM savings for high-resource detectors like TPC, enabling efficient resource allocation.
- The use of a simulation-ready configuration model with a VHDL-based address table enabled accurate reproduction of real-world configuration sequences and rare error cases.
- Firmware deployment is fully version-controlled with automated tagging, embedding git hash and compilation date into status registers for full reproducibility.
- 565 CRUs have been manufactured, installed, and are undergoing validation, with full commissioning expected by end of 2021.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.