100 likes | 213 Views
Level 1 trigger sorter implemented in hardware. SWITCH. SWITCH. SWITCH. SORTER. SWITCH. L1 FE. SFC. SFC. L1 FE. L1 FE. L1 FE. L1 FE. L1 FE. SFC. SFC. SFC. SFC. L1 FE. L0 FE. L0 FE. ECAL. RICH. OT. ST. L0 FE. MUON. VELO. L0 FE. L0 FE. L0 FE. L0 TRIGGER. HCAL. L0 FE.
E N D
Level 1 trigger sorter implemented in hardware Grzegorz Kasprowicz
SWITCH SWITCH SWITCH SORTER SWITCH L1 FE SFC SFC L1 FE L1 FE L1 FE L1 FE L1 FE SFC SFC SFC SFC L1 FE L0 FE L0 FE ECAL RICH OT ST L0 FE MUON VELO L0 FE L0 FE L0 FE L0 TRIGGER HCAL L0 FE CPU CPU CPU CPU CPU CPU CPU CPU CPU CPU CPU CPU CPU CPU CPU CPU CPU CPU CPU CPU CPU CPU CPU CPU READOUT NETWORK SWITCH SWITCH SWITCH SWITCH SWITCH SWITCH SWITCH STORAGE LHCb readout architecture Two levels of high-rate triggers Detector 40 MHz 1 MHz TFC SYSTEM Front-End electronics LHC CLK 40KHz Event building CPU farm Grzegorz Kasprowicz
Overview of the Timing and Fast Control (TFC) architecture Grzegorz Kasprowicz
Function blocs and data flow of Readout Supervisor Q_L1 – trigger sorter block L1 DBUF - Data Buffer (SRAM) L0 ABUF - Accept Data Buffer (dual port SRAM) GbE RX – PM3386 chip based Gigabit Ethernet mezzanine board L1 LINK – TLK2501 – 1.6 GBPS transceiver Grzegorz Kasprowicz
L1 Trigger Sorter Tasks: • Generation of control signals and receiving data from Ethernet mezzanine board • Sorting triggers according to event id number • Generation of control signals and data for TLK2501 transceiver • Error detection – missing trigger, wrong event number range, timeout • Counting processed triggers • Generating long and short trigger broadcasts for Q_MP • Generating addresses and signals for Accept Trigger Buffer (L0) and L1 Data Buffer Grzegorz Kasprowicz
To Front End Board How does it work?What is FPGA? L1 Data Buffer (RAM) 1.6 GBPS transmitter (L1 Link) BCLK D A T A A D D R DATA control control RFCLK Ethernet Mezzanine Board FPGA PLL L1DBUF memory interface L1 Link interface DATA 6x32bit FIFO L1 TRG GBE From Readout Network TIMER Event number comparator control Accept TRG memory Interface DATA Accept TRG Buffer (DPRAM) To RS RX State machine Error Detection TX state machine L0 Ev Id ADDR Control interface control Grzegorz Kasprowicz LBUS
Detailed description A RX state machine reads the L1 trigger decision packets from the GbE RX via a 32-bit 80 MHz bus. The state machine drops the ten 32-bit words of IP protocol and writes via FIFO the eight 32-bit words of L1 trigger data into the L1 DBUF using the Event ID as the address. A TX state machine compares the L0 Event ID of the incoming L1 triggers with the L0 Event ID of the next trigger to broadcast stored in the L0 Accept Buffer. Upon receiving the next L1 trigger to broadcast, the state machine prepares the broadcast frame, transmits it together with a broadcast request to the TTC broadcaster in the Q_MP module. The state machine also ensures that the L1 trigger accept broadcasts are spaced by a minimum of 20 ms and that the first L1 trigger reject broadcast after a L1 accept is transmitted after 900ns and otherwise at intervals of 400 ns, that’s why it needs timer block. Grzegorz Kasprowicz
How did I do this?Sample VHDL code Grzegorz Kasprowicz
Simulations Grzegorz Kasprowicz
Summary Speed: • 4 milion events per second (much more than we need) Economy: • much cheaper • takes much less place • consumes much less power than previously implemented Network Processor based sorter. Grzegorz Kasprowicz