170 likes | 288 Views
The Read-Out Crate in the ATLAS DAQ/EF prototype -1. The Read-Out Crate model The Read-Out Buffer The ROBin ROB performance ROC performance I/O module configurations Conclusions. G.Ambrosini, E.Arik, H.P.Beck, S.Cetin, T.Conka, A.Fernandes, D.Francis,
E N D
The Read-Out Crate in the ATLAS DAQ/EF prototype -1 • The Read-Out Crate model • The Read-Out Buffer • The ROBin • ROB performance • ROC performance • I/O module configurations • Conclusions G.Ambrosini, E.Arik, H.P.Beck, S.Cetin, T.Conka, A.Fernandes, D.Francis, Y.Hasegawa, M.Joos, G.Lehmann, J.Lopez, A.Mailov, L.Mapelli, G.Mornacchi, Y.Nagasaka, M.Niculescu, K.Nurdan, J.Petersen, D.Prigent, J.Rochez, L.Tremblet, G.Unel, S.Veneziano, Y.Yasu
ATLAS DAQ/EF ROC
Read-Out Crate logical model • The ROC performs: • data collection from many readout links • event buffering during LVL2 latency • event fragment distribution to Event Builder and LVL2 External I/O channels Internal I/O channels External I/O channels
The I/O Module • Each I/O channel, external or internal, has an associated Task • A Task is activated on the occurence of stimuli (messages or event data) • An I/O Module (IOM) is a collection of Tasks associated to an external I/O channel. • All Tasks belonging to an IOM are scheduled within a single process and activated by polling conditions (scheduler) • Event manager API • All components within a ROC communicate via a well defined message passing protocol • the baseline implementation of the ROC crate, VMEbus based one Single Board Computer (SBC) per IOM, has evolved to a collapsed solution, where a SBC can handle many external I/O channels.
Message passing • Based on circular buffers • Supported buses: VMEbus, PVIC, PCI, CPU bus, EBIO (TCP/IP) • Duplication of R/W pointers ==> no polling on the bus • DMA and broadcast used where possible PVIC
The MFCC based ROBin Today’s ROB implementation minimizes movement of event fragments over the system bus (need to receive and buffer events of 1 kB at 100 kHz), by using an add-on PMC card (one per Read-Out Link). The CES MFCC 8441 is a commercially available intelligent PMC • I/O: via user programmable 10k50ev front-end FPGA • Same S/W environment as on SBC (LynxOS 3.0.1)
The ROBin software • No device drivers, minimal operating system calls. • Single process, scheduler, three tasks to manage one ROL, one internal I/O to ROB-host + firmware.
ROBin firmware PPC 603 ROL (S-link) sdram • Firmware on FPGA from VHDL synthesis (40/66 MHz clk): • PPC master and slave • interface to ROL protocol (S-link) • Buffer manager and DMA manager state machines • 2 kB data fragment buffering • communication to ROBin task via two FIFOs (EM pages stats)
ROBin interaction ROB-host PCI ROBin ROBin application interacts with ROB-host and event data source (FE-FPGA) • The following ROB performance results rely on test programs running on the ROB-host on: • Event Location • Event Deletion • Event Retrieval Scheduler loop
Event location • Messages over the PPC-PCI-PPC buses • No S-Link I/O • No broadcast mechanism • Best arrangement of events into memory (one event per class) RIO2 8062 MFCC 8441 PMC PPC MEM PPC MEM PCI bus
Event retrieval • Messages: single cycles • Event data transfer: DMA • Transfer bandwidth: ~50 MB/s
Event deletion • No input of new events, only messages over the system bus. • Messages sent in DMA mode • Several delete requests packed into one message • Delete requests get acknowledged
S-Link measurements • Rate dominated by event fragment input traffic • Max. input rate in best conditions = 145 MB/s (with no messages from ROB-host) (SLIDAS max bandwidth is 160 MB/s) One ROB with one ROBin
ROC measurements • No S-Link, input emulated • All ROB<->ROBin messages sent in single cycle mode • rate dominated by PCI traffic and ultimately by MFCC CPU to ~120 kHz Not used Input fragments + Messages + Event data PPC Event data Messages + Event data (Messages)
R R R ROC Event Rates T E 200 E E E 180 160 140 R R R R R R T 120 One ROB No ROBins event rate (kHz) 100 80 60 40 T T T T T 20 R R R E E E E 0 TRG/ EBIF/ROBs TRG/ EBIF + ROBs TRG + EBIF/ ROBs TRG + EBIF + ROBs I/O modules configurations TRG ROLs To further minimize data movement and message passing, more than one external input can be handled by an IOM
ROC Event Rates with ROBins 1KB event fragments Max event rate increases when data collection (ROBins to EBIF) is done on the same SBC. Expected ATLAS max ROL bandwitdh 1KBX75(100) kHz
Conclusions • A Read-Out Crate based on the DAQ/-1 design and deployed on COTS components has the functionality required by the ATLAS Trigger/DAQ community • Software layering and minimal dependence of the software packages on the operating system adds flexibility without a degradation of performance. It also facilitates porting (move to Motorola/Linux or Intel/Linux) • The requirements of many Read-Out Links per Read-Out Buffer have lead to the design of the ROBIN, capable of receiving Event data fragments at the expected Level-1 rates.