Federico Alessio, CERN Richard Jacobsson, CERN A new Readout Control System for the LHCb Upgrade at CERN 18th IEEE-NPSS Real Time Conference, 11-15 June.

Slides:



Advertisements
Similar presentations
LHCb Upgrade Overview ALICE, ATLAS, CMS & LHCb joint workshop on DAQ Château de Bossey 13 March 2013 Beat Jost / Cern.
Advertisements

28 August 2002Paul Dauncey1 Readout electronics for the CALICE ECAL and tile HCAL Paul Dauncey Imperial College, University of London, UK For the CALICE-UK.
The LHCb Online System Design, Implementation, Performance, Plans Presentation at the 2 nd TIPP Conference Chicago, 9 June 2011 Beat Jost Cern.
Study on buffer usage and data packing at the FE Federico Alessio, with inputs from Richard, Ken, Guillaume LHCb Electronics Upgrade Meeting 11 April 2013.
LHCb DAQ Review, September LHCb Timing and Fast Control System TFC Team: Arek Chlopik, Warsaw Zbigniew Guzik, Warsaw Richard Jacobsson, CERN Beat.
Calorimeter upgrade meeting - Wednesday, 11 December 2013 LHCb Calorimeter Upgrade : CROC board architecture overview ECAL-HCAL font-end crate  Short.
SODA: Synchronization Of Data Acquisition I.Konorov  Requirements  Architecture  System components  Performance  Conclusions and outlook PANDA FE-DAQ.
Start-up & synchronization sequence for Front-End LHCb Electronics Upgrade Meeting 13 February 2014 F. Alessio, CERN.
GBT Interface Card for a Linux Computer Carson Teale 1.
U N C L A S S I F I E D FVTX Detector Readout Concept S. Butsyk For LANL P-25 group.
PicoTDC Features of the picoTDC (operating at 1280 MHz with 64 delay cells) Focus of the unit on very small time bins, 12ps basic, 3ps interpolation Interpolation.
CERN R. Jacobsson CERN 16 th IEEE NPSS Real Time Conference, Beijing, China, May 10–15, LHCb Readout System and Real-Time Event Management - Emphasis.
Status of the Beam Phase and Intensity Monitor for LHCb Richard Jacobsson Zbigniew Guzik Federico Alessio TFC Team: Motivation Aims Overview of the board.
CERN Real Time conference, Montreal May 18 – 23, 2003 Richard Jacobsson 1 Driving the LHCb Front-End Readout TFC Team: Arek Chlopik, IPJ, Poland Zbigniew.
TELL1 The DAQ interface board for LHCb experiment Gong guanghua, Gong hui, Hou lei DEP, Tsinghua Univ. Guido Haefeli EPFL, Lausanne Real Time ,
Readout Control specifications for FE and BE in the upgraded LHCb readout system Federico Alessio Richard Jacobsson LHCb Electronics Upgrade Meeting 26.
Network Architecture for the LHCb DAQ Upgrade Guoming Liu CERN, Switzerland Upgrade DAQ Miniworkshop May 27, 2013.
Muon Electronics Upgrade Present architecture Remarks Present scenario Alternative scenario 1 The Muon Group.
Management of the LHCb DAQ Network Guoming Liu * †, Niko Neufeld * * CERN, Switzerland † University of Ferrara, Italy.
Features of the new Alibava firmware: 1. Universal for laboratory use (readout of stand-alone detector via USB interface) and for the telescope readout.
Federico Alessio Zbigniew Guzik Richard Jacobsson TFC Team: A Super-TFC for a Super-LHCb - Top-down approach -
Latest ideas in DAQ development for LHC B. Gorini - CERN 1.
FPGA firmware of DC5 FEE. Outline List of issue Data loss issue Command error issue (DCM to FEM) Command lost issue (PC with USB connection to GANDALF)
Federico Alessio, CERN Zbigniew Guzik, IPJ, Swierk, Poland Richard Jacobsson, CERN A 40 MHz Trigger-free Readout Architecture for the LHCb experiment 16th.
LHCb front-end electronics and its interface to the DAQ.
LHCb DAQ system LHCb SFC review Nov. 26 th 2004 Niko Neufeld, CERN.
01/04/09A. Salamon – TDAQ WG - CERN1 LKr calorimeter L0 trigger V. Bonaiuto, L. Cesaroni, A. Fucci, A. Salamon, G. Salina, F. Sargeni.
Management of the LHCb Online Network Based on SCADA System Guoming Liu * †, Niko Neufeld † * University of Ferrara, Italy † CERN, Geneva, Switzerland.
NSYNC and Data Format S. Cadeddu – INFN Cagliari P. Ciambrone – INFN LNF.
Links from experiments to DAQ systems Jorgen Christiansen PH-ESE 1.
A Super-TFC for a Super-LHCb (II) 1. S-TFC on xTCA – Mapping TFC on Marseille hardware 2. ECS+TFC relay in FE Interface 3. Protocol and commands for FE/BE.
Timing and Readout Control of the Upgraded LHCb Readout System Updated system-level specifications Federico Alessio Richard Jacobsson LHCb Electronics.
TFC update and TFC simulation testbench Federico Alessio Richard Jacobsson LHCb Electronics Upgrade Meeting 14 February 2012.
PhD Student, Federico Alessio Directeur de thèse, Renaud Le Gac Superviseur de thèse, Richard Jacobsson, CERN Beam and Background Monitoring and the Upgrade.
DAQ interface + implications for the electronics Niko Neufeld LHCb Electronics Upgrade June 10 th, 2010.
Management of the LHCb DAQ Network Guoming Liu *†, Niko Neufeld * * CERN, Switzerland † University of Ferrara, Italy.
CERN Richard Jacobsson, CERN LEADE meeting, March 29, Physics trigger RS TFC SwitchThrottle OR/Switch VELO FEST FEOT FE Clock Orbit Clock Orbit.
Readout Control specifications for FE and BE in the upgraded LHCb readout system Federico Alessio Richard Jacobsson LHCb FE specificiations Upgrade Meeting.
CERN F. Alessio & R. Jacobsson CERN LHCb Electronics Upgrade Meeting, April 15, LHCb Upgrade Front End  Back End Readout Architecture Proposal.
18/05/2000Richard Jacobsson1 - Readout Supervisor - Outline Readout Supervisor role and design philosophy Trigger distribution Throttling and buffer control.
Ken Wyllie, CERN Tracker ASIC, 5th July Overview of LHCb Upgrade Electronics Thanks for the invitation to Krakow!
AMC40 firmware Data format discussions 17/10/2013Guillaume Vouters1.
Introduction to DAQ Architecture Niko Neufeld CERN / IPHE Lausanne.
1 Timing of the calorimeter monitoring signals 1.Introduction 2.LED trigger signal timing * propagation delay of the broadcast calibration command * calibration.
August 24, 2011IDAP Kick-off meeting - TileCal ATLAS TileCal Upgrade LHC and ATLAS current status LHC designed for cm -2 s 7+7 TeV Limited to.
The Evaluation Tool for the LHCb Event Builder Network Upgrade Guoming Liu, Niko Neufeld CERN, Switzerland 18 th Real-Time Conference June 13, 2012.
29/05/09A. Salamon – TDAQ WG - CERN1 LKr calorimeter L0 trigger V. Bonaiuto, L. Cesaroni, A. Fucci, A. Salamon, G. Salina, F. Sargeni.
The LHCb Calorimeter Triggers LAL Orsay and INFN Bologna.
Grzegorz Kasprowicz1 Level 1 trigger sorter implemented in hardware.
Timing and Fast Control of the Upgraded LHCb Readout System Federico Alessio Richard Jacobsson LHCb Upgrade Electronics Review 5 December 2012.
(Fast) flow control to the FE LHCb Electronics Upgrade Meeting 13 June 2013 F. Alessio, K. Wyllie and conversations with many of you.
Giovanna Lehmann Miotto CERN EP/DT-DI On behalf of the DAQ team
of the Upgraded LHCb Readout System
Use of FPGA for dataflow Filippo Costa ALICE O2 CERN
Electronics Trigger and DAQ CERN meeting summary.
TELL1 A common data acquisition board for LHCb
Electronics, Trigger and DAQ for SuperB
Controlling a large CPU farm using industrial tools
RT2003, Montreal Niko Neufeld, CERN-EP & Univ. de Lausanne
Towards the final TFC architecture
The LHCb Event Building Strategy
VELO readout On detector electronics Off detector electronics to DAQ
LHCb Trigger, Online and related Electronics
Throttling: Infrastructure, Dead Time, Monitoring
New DCM, FEMDCM DCM jobs DCM upgrade path
PID meeting Mechanical implementation Electronics architecture
SVT detector electronics
The LHCb Front-end Electronics System Status and Future Development
TELL1 A common data acquisition board for LHCb
Fixed Latency Serial Links with FPGA-embedded SerDes for SuperB
Presentation transcript:

Federico Alessio, CERN Richard Jacobsson, CERN A new Readout Control System for the LHCb Upgrade at CERN 18th IEEE-NPSS Real Time Conference, June 2012, Berkeley, USA

18th IEEE NPSS Real Time Conference, June 2012, Berkeley, USA LHCb in 2012 Instantaneous luminosity in IP of 4x10 32 cm -2 s -1 (factor 50 less than nominal LHC lumi) Expected ∫ L =5-10 fb -1 collected after 5 years of operations  Probe/measure NewPhysics at 10% level of sensitivity  Measurements limited by statistics and detector itself  World best measurements in flavor physics and rare decays already performed in The upgrade of the LHCb experiment Federico Alessio2 S-LHCb in Collect ∫ L = 50 fb -1  a factor 10 increase in data sample and in reasonable time  probe NewPhysics down to a percent level Increase luminosity by a factor LHCb, up to 2x10 33 cm -2 s -1  28 MHz S-LHCb effective collisions rate vs. 1 MHz LHCb  1 MHz bb-pair S-LHCb vs. 100 LHCb Upgrade! (During LHC Long Shutdown 1 in 2018)  Excellent vertexing resolution  Excellent mass resolution  Excellent particle identification  Efficient trigger  Low background More than:

18th IEEE NPSS Real Time Conference, June 2012, Berkeley, USA The challenges of the LHCb upgrade New technologies for sub-detectors to be replaced  More radiation hard, Reduced spill-over, Improved granularity Continuous 40 MHz Trigger-free Readout Architecture  all detector data passed through the readout network  fully software trigger analyzing events at 40 MHz Federico Alessio3 Pile-up (N): number of interactions per LHC bunch-bunch crossing  LHCb designed for = 1  = 2x10 32 cm -2 s -1 / = 20x10 32 cm -2 s -1 Higher radiation damages over time Spill-over not minimized Current first-level trigger limited for hadronic modes at >2x10 32 cm -2 s -1  25% efficiency vs. 75% for muonic modes Full readout of 28 MHz of bunch-bunch crossing  current first level trigger selects only 1 MHz of events Upgrade!

18th IEEE NPSS Real Time Conference, June 2012, Berkeley, USA SWITCH HLT farm Detector Timing & Fast Control System SWITCH READOUT NETWORK LHC clock MEP Request Event building Front-End CPUCPU CPUCPU CPUCPU CPUCPU CPUCPU CPUCPU CPUCPU CPUCPU CPUCPU CPUCPU CPUCPU CPUCPU CPUCPU CPUCPU CPUCPU CPUCPU CPUCPU CPUCPU CPUCPU CPUCPU CPUCPU CPUCPU CPUCPU CPUCPU Readout Board VELO STOT RICH ECalHCalMuon SWITCH MON farm CPUCPU CPUCPU CPUCPU CPUCPU Readout Board LL trigger Low Level Trigger Upgraded LHCb Readout System Federico Alessio4 FE Electronics Output rate of processed events 20kHz (currently is 4.5 kHz) First-level triggered events 1MHz  28 MHz (currently is 1 MHz) 25ns FE electronics >5000 CPU processing multi-core nodes O(50k cores) Use of bidirectional links to/from FE Based on CERN GigaBit Transceiver (GBT) ~ 400 Readout Boards (TELL40) multi-Terabit/s Event Building network

18th IEEE NPSS Real Time Conference, June 2012, Berkeley, USA SWITCH HLT farm Detector Timing & Fast Control System SWITCH READOUT NETWORK LHC clock MEP Request Event building Front-End CPUCPU CPUCPU CPUCPU CPUCPU CPUCPU CPUCPU CPUCPU CPUCPU CPUCPU CPUCPU CPUCPU CPUCPU CPUCPU CPUCPU CPUCPU CPUCPU CPUCPU CPUCPU CPUCPU CPUCPU CPUCPU CPUCPU CPUCPU CPUCPU Readout Board VELO STOT RICH ECalHCalMuon SWITCH MON farm CPUCPU CPUCPU CPUCPU CPUCPU Readout Board Upgraded LHCb Readout System Federico Alessio5 FE Electronics Output rate of processed events 20kHz (currently is 4.5 kHz) 25ns FE electronics >5000 CPU processing multi-core nodes O(50k cores) Use of bidirectional links to/from FE Based on CERN GigaBit Transceiver (GBT) ~ 400 Readout Boards (TELL40) multi-Terabit/s Event Building network Fully trigger-free 40 MHz readout architecture!

18th IEEE NPSS Real Time Conference, June 2012, Berkeley, USA SWITCH HLT farm Detector Timing & Fast Control System SWITCH READOUT NETWORK LHC clock MEP Request Event building Front-End CPUCPU CPUCPU CPUCPU CPUCPU CPUCPU CPUCPU CPUCPU CPUCPU CPUCPU CPUCPU CPUCPU CPUCPU CPUCPU CPUCPU CPUCPU CPUCPU CPUCPU CPUCPU CPUCPU CPUCPU CPUCPU CPUCPU CPUCPU CPUCPU Readout Board VELO STOT RICH ECalHCalMuon SWITCH MON farm CPUCPU CPUCPU CPUCPU CPUCPU Readout Board Upgraded LHCb Readout System Federico Alessio6 FE Electronics New Timing and Fast Readout Control System for the LHCb upgrade Fully trigger-free 40 MHz readout architecture!

18th IEEE NPSS Real Time Conference, June 2012, Berkeley, USA Federico Alessio7 1.Bidirectional communication network 2.Clock jitter, and phase and latency control At the FE, but also at the Readout Boards and between S-TFC boards 3.LHC interfaces 4.Low-Level-Trigger input 5.Events rate control 6.Destination control for the event packets 7.Event data bank Infomation about transmitted events 8.Sub-detectors calibration triggers 9.Partitioning to allow running with any ensemble and parallel partitions 10.Support for old Timing and Trigger based distribution system 11.Test-bench support + flexibility as it should be ready for testing! System and functional requirements of the new Readout Control system

18th IEEE NPSS Real Time Conference, June 2012, Berkeley, USA A new LHCb Readout Control System Federico Alessio8 DATA Fan-out timing and control information (TFC) to Readout Boards Fan-in Throttle information from Readout Boards Distributes TFC information to FE Distributes control configuration data to FE Receives control monitoring data from FE Distributes timing, trigger and synchronous commands Manages the dispatching of events to the Processing Farm Rate regulates the system taking into account back-pressure/throttle Controls the readout system Interface boards responsible for interfacing FE&Readout Boards to Readout Supervisor

18th IEEE NPSS Real Time Conference, June 2012, Berkeley, USA A new LHCb Readout Control System Federico Alessio9 Readout Supervisor (called S-ODIN) + a set of Interface boards (called TFC+ECSInterface) = S-TFC system (S - Timing and Fast Control system) for the LHCb upgraded readout architecture DATA

18th IEEE NPSS Real Time Conference, June 2012, Berkeley, USA Federico Alessio10 The physical S-TFC system RS  common AMC card LLT  common AMC card Readout board  common AMC card LHC Interfaces  common AMC card with special mezzanine Entire architecture based on ATCA technologies and common electronics (developed at CPPM, Marseille)

18th IEEE NPSS Real Time Conference, June 2012, Berkeley, USA Federico Alessio11 S-TFC system concept Readout Supervisor multi-master in one single FPGA (multi-cores)  1 core master for main readout  others for local tests Switching fabric inside FPGA Use of bidirectional links  ALTERA GX transceivers TFC+ECSInterface contains fan-in/fan- out timing and trigger logic to FE and Readout Boards  Optionally can act on as master for local tests Manages ECS configuration and monitoring of FE Uses backplane to connect to Readout Boards

18th IEEE NPSS Real Time Conference, June 2012, Berkeley, USA Federico Alessio12 Clock distribution and phase/latency control LATENCY Alignment with LHC bunch crossing identifier (BXID) FINE PHASE Alignment with best sampling point types of links to be studied

18th IEEE NPSS Real Time Conference, June 2012, Berkeley, USA Federico Alessio13 Clock distribution and phase/latency control 1. at the FE: CERN GBT  Does the job for us  control of fine phase + latency at the FE + minimize jitter  No problem in ECS monitoring Simply decoding GBT protocol in TFC+ECSInterface FPGA  No need of fine phase or latency control for ECS.

18th IEEE NPSS Real Time Conference, June 2012, Berkeley, USA Federico Alessio14 Clock distribution and phase/latency control 2. ATCA backplane  Does the job for us  control of latency  jitter and fine phase less of an issue  Effectively is an FPGA-to-FPGA link on backplane dedicated lines  To be tested: jitter on backplane!

18th IEEE NPSS Real Time Conference, June 2012, Berkeley, USA Federico Alessio15 Clock distribution and phase/latency control 3. FPGA to FPGA transceivers  Special studies on latency and phase alignment  (see later for preliminary tests)  control of fine phase and latency  minimize jitter

18th IEEE NPSS Real Time Conference, June 2012, Berkeley, USA Federico Alessio16 Validation tests First preliminary tests on phase/latency control using: 1.First AMC prototype with ALTERA Stratix IV 2.First Stratix IV low level interfaces  Nios + board resources interfaces 8b/10b protocol: no problem  Using «word alignment» from Altera GX buffer + «deterministic latency»  Simply add Ctrl word for the 8b/10b encoder: 2bits more  Full reproducibility upon power-up and resets and reconfiguration FPGA-to-FPGA GBT protocol: ok, but needs special frame alignment  No deterministic latency if no special words are sent!  Needs a special word (10 bits minimum) at power-up/after reset/after reconfiguration for the GX buffer to realign to the beginning of the frame + «deterministic latency» First preliminary tests were ok, but needs more validation

18th IEEE NPSS Real Time Conference, June 2012, Berkeley, USA Federico Alessio17 TFC and ECS over the same link Relay/merge block logic: ECS on “best effort” Generic approach:  control FE from the uplink  addressing map and GBT-busses protocol drivers No need of special protocol, simply address the right chip with the right bus using the CERN GBT generic protocol Same for every sub-detector  needs simply configuration

18th IEEE NPSS Real Time Conference, June 2012, Berkeley, USA Federico Alessio18 Running a «hybrid» system Suggested the idea of an hybrid system: reminder: some first-level trigger electronics relying on TTC protocol  part of the system runs with old Timing and Trigger system  part of the system runs with the new architecture How? 1.Need bidirectional connection between new Readout Supervisor (S-ODIN) and old Readout Supervisor (ODIN)  use dedicated PICMG 3.8 compatible RTM board 2.In an early commissioning phase ODIN is the master, S-ODIN is the slave  S-ODIN task would be to distribute new commands to new FE, to new TELL40s, and run processes in parallel  ODIN tasks are the ones today + S-ODIN controls the upgraded part In this configuration, upgraded slice will run at 40 MHz, but positive triggers will come only at maximum 1.1MHz… Great testbench for development + tests 3. In the final system, S-ODIN is the master, ODIN is the slave  ODIN task is only to interface the L0 electronics path to S-ODIN and to provide clock resets on old Timing and Trigger protocol

18th IEEE NPSS Real Time Conference, June 2012, Berkeley, USA Federico Alessio19 Conclusions Outlined new Timing, Trigger and Readout Control system for the LHCb upgraded readout electronics: Based on FPGAs and bidirectional optical links Based on ATCA technologies and common readout electronics To control the readout by transmitting: Synchronous commands Timing and clock with a controlled phase and fixed latency Trigger decisions Trigger throttle in case of back-pressure or readout load Events destination To configure and monitor the FE electronics over the same link By using the CERN GBT protocol By having an addressing scheme and bus driving protocol directly into FPGAs To allow running a hybrid system Old and new together! Complete simulation and verification testbench under development First version of the system to be ready by end of 2012 and first readout slice to be tested in 2013

18th IEEE NPSS Real Time Conference, June 2012, Berkeley, USA Backup Federico Alessio20

18th IEEE NPSS Real Time Conference, June 2012, Berkeley, USA Board with one big central FPGA (Altera Stratix IV GX or alt. Stratix II GX for R&D)  Instantiate a set of TFC Master cores to guarantee partitioning control for sub- detectors  TFC switches is a programmable patch fabric: a layer in FPGA  no need of complex routing, no need of “discrete” electronics  Shared functionalities between instantiations (less logical elements)  More I/O interfaces based on bidirectional transceivers  depend on #S-ROBs crates  No direct links to FE  Common server that talks directly to each instantiation:  TCP/IP server in NIOS II  Flexibility to implement (and modify any protocol)  GX transceiver as IP cores from Altera  Bunch structure (predicted/measured) rate control  State machines for sequencing resets and calibrations  Information exchange interface with LHC Federico Alessio21 Readout Supervisor, specs

18th IEEE NPSS Real Time Conference, June 2012, Berkeley, USA Board with FPGA entirely devoted to fan-out TFC information/fan-in throttle info  Controlled clock recovery  Shared network for Throttling (Intelligent) & TFC distribution  All links bidirectional  1 link to S-TFC Master, Gb/s, optical  1 link per S-ROB, 20 max per board (full crate)  Technology for S-ROBs links could be backplane (ex. xTCA) or copper HI-CAT  Protocol flexible: compatibility with flexibility of S-TFC Master  We will provide the TFC transceiver block for S-ROBs’ FPGA to bridge data to FE through readout link S-FE  S-ROB  For stand-alone test benches, the Super-TFC Interface would do the work of a single TFC Master instantiation Federico Alessio22 TFC+ECSInterface, specs

18th IEEE NPSS Real Time Conference, June 2012, Berkeley, USA Federico Alessio23 First Readout Supervisor HW implementation

18th IEEE NPSS Real Time Conference, June 2012, Berkeley, USA Federico Alessio24 First TFC+ECSInterface HW implementation

18th IEEE NPSS Real Time Conference, June 2012, Berkeley, USA Federico Alessio25 Reaching the requirements: phase control Use of commercial electronics:  Clock fully recovered from data transmission (lock-to-data mode)  Phase adjusted via register on PLL  Jitter mostly due to transmission over fibres, could be minimized at sending side 1. Use commercial or custom-made Word-Aligner output2. Scan the phase of clock within “eye diagram” Still investigating feasibility and fine precision

18th IEEE NPSS Real Time Conference, June 2012, Berkeley, USA Federico Alessio26 Simulation  Full simulation framework to study buffer occupancies, memories sizes, latency, configuration and logical blocks

18th IEEE NPSS Real Time Conference, June 2012, Berkeley, USA Federico Alessio27 The current system operates in a powerful mixture of push and pull protocol controlled by ODIN : Asynchronous pull mechanism “Push” driven by trigger type and destination command  4 years faultless operation Similar proposal for upgrade Event Destination and Farm Load Control

18th IEEE NPSS Real Time Conference, June 2012, Berkeley, USA Event Destination and Farm Load Control 28 Central FPGA based implementation Extreme reliability, flexibility, speed, controllable latencies  Central event packing control Different trigger types and destination types Variable MEP packing factor  Dynamic rate regulation as function of farm rate capacity Accounts for statistical variations in processing time  Dynamic handling of farm nodes in-flight Processing blockages, failures, interventions All impacts on rate capacity handled automatically As soon as nodes are recovered, included automatically in-flight by event request mechanism  Minimal event loss and accurate dead-time counting Contrary to conventional pull scheme, this is robust against event request packet losses

18th IEEE NPSS Real Time Conference, June 2012, Berkeley, USA Event Destination and Farm Load Control Buffer requirement trivia Readout boards: ~1.5 MEPs per link Network: Some naïve assumptions – Rate: 30 MHz – MEP packing factor 10  3 MHz MEPs and 3 MHz MEP Requests  Current ODIN can handle 1.8 MHz of MEP Requests (ODIN FARM is 1 GbE…) – Event size 100 kB  1 MB / MEP – Farm nodes 5000  600 MEPs/node/s  1.7ms / MEP – Switch subunit sharing resources: 50 links / subunit  100 subunit  30 kHz of MEPs per switch subunit  Every 1.7ms, 50 MEPs to juggle with  = O(“50 MB”)  True need of memory depends on statistical variation of HLT processing time and “local farm derandomizer” Farm nodes: few MEPs in local derandomizing buffer In our view, this looks like a straight-forward implementation…

18th IEEE NPSS Real Time Conference, June 2012, Berkeley, USA Federico Alessio30 S-TFC Protocols  TFC control fully synchronous  2.4 Gb/s (max MHz  3.0 Gb/s) Reed Solomon-encoding used on TFC links for maximum reliability  based on CERN-GBT Asynchronous data  TFC info carry Event ID 24 bits of TFC information relayed to FE electronics (see later) by TFC+ECSInterface  Throttle protocol: each bit in Throttle is flagged by a Readout Board Must be synchronous (currently asynchronous)  Protocol will require alignment between various input from Readout Boards  Done in TFC+ECSInterface for each readout cluster

18th IEEE NPSS Real Time Conference, June 2012, Berkeley, USA S-TFC protocol 31 TFC Word to BE via TFC+ECSInterface:  44 bits (60 with Reed-Solomon 40 MHz = 1.76 (2.4) Gb/s THROTTLE Information from BE: 1 bit per board connected to TFC+ECSInterface. Full set of bits sent to S-ODIN by TFC+ECSInterface. Constant latency after S-ODIN Encoding TFC Info BID(11..0) MEP Dest(15..0) Trigger Type(3..0) Calib Type(3..0) Trigger BX Veto NZS Header Only BE reset FE reset EID reset BID reset

18th IEEE NPSS Real Time Conference, June 2012, Berkeley, USA S-TFC protocol to FE! 32 TFC Word to FE via TFC+ECSInterface:  24 bits in GBT 40 MHz 56bits leftover in GBT frame are dedicated to ECS configuration uplink of GBT is dedicated to ECS monitoring of FE Header Only

18th IEEE NPSS Real Time Conference, June 2012, Berkeley, USA S-TFC FE commands 33 “BX VETO”  Based on filling scheme, processing of that particular event is rejected Only header or basic bits sent from FE to TELL40s for that BXID Allows “recuperating” clock cycles for processing “real” events “CALIBRATION PULSES”  Used to take data with special pulses (periodic, calibration) Associated commands at fixed latency to FE S-ODIN overrides LLT decision “NZS MODE”  Allows to read out all channels in FE (or all channels connected to a GBT) Subsequent BXIDs are vetoed to allow packing of data into GBT frames Only header or basic bits sent: use “Header Only” function “FE RESETS”  Reset of Bunch Counter and Event Counter “BXID” (+BXID Reset)  Every TFC word carries a BXID for synchronicity of the system “HEADER ONLY”  Idling the system: only header if this bit is set  Multiple purposes (Resets, NZS scheme, etc…) Crucial information: the decoding and sequencing (delays etc…) of these has to go in the FE design

18th IEEE NPSS Real Time Conference, June 2012, Berkeley, USA «BX VETO» 34 S-ODIN vetoes the readout of an event Based on filling scheme  Used to control the rate of readout while < 30MHz  INDEPENDENT FROM LLT DECISION! FE can use this info to recuperate time for processing events  Only header for vetoed events  Flexible packing of data into GBT 40 MHz

18th IEEE NPSS Real Time Conference, June 2012, Berkeley, USA S-ODIN receives decisions from LLT Special triggers S-ODIN aligns and applies priority scheme on trigger types S-ODIN sends out a “LLTyes” to TELL40 at a fixed latency wrt BXID! Rate regulation (next slide) Sending a «LLTyes» 40 MHz

18th IEEE NPSS Real Time Conference, June 2012, Berkeley, USA Rate regulation 36 TELL40 raises the throttle bit TFC Interfaces compiles a throttle word with BXID and sends it to S-ODIN S-ODIN rejects event(s) until throttle is released  In practice: the subsequent “LLTyes”(s) become 40 MHz MEP request scheme (next slide)