TTC system and test synchronization J. Varela Trigger Technical Coordinator ECAL Off-Detector Electronics Workshop, 7-8 April 2005, Lisbon
Outline Reminder of TTC System ECAL specific issues Test system at Bldg 904
Trigger Fast Control Global Trigger Central Control L1A Control TTCmi DAQ Event Managers Global Trigger LHC-BST GPS aTTS Central Control Partition Control Partition Control Partition Control L1A Control Front-end Emulators, Trigger Rules Trigger Throttling System (sTTS and aTTS) Calibration and Test Triggers Dedicated runs, Special triggers during runs Synchronization Control Timing signals, Resync procedures Partitioning 8 independent partition groups, 8 independent triggers Local Triggers Local Control Local Control Local Control TTC sTTS TTC sTTS TTC sTTS FrontEnd FrontEnd FrontEnd TTCrx TTCrx TTCrx
Multi-Level Trigger Control Allows flexibility in commissioning/ debugging DAQ Event Manager TTCmi Global Trigger Control LHC-BST GPS aTTS TCS: CMS Control SubDetector Control LTC: SubDetector Control TTC TTS TTC TTS e.g. Magnet Test TTCci: Partition Control FrontEnd FrontEnd TTCrx TTCrx e.g. 904
Configurable Partitions Allows flexibility in commissioning/ debugging Trigger partitions match DAQ partitions
TTC System TTCcf – clock fanout CTC - central trigger control TIM - timing module BST - beam synchronous timing LTC - local trigger controller TTCci - CMS interface TTCex - encoder and transmitter TTCrx - receiver
Trigger Control Components GPS link To EVM GLOBAL TRIGGER CRATE TTCmi To/from aTTS Central Trigger Control Clock Orbit TTC (x 32) (x 32) TTS Fast Merging Module Local Triggers CPU int F M LTC TTCci TTCex F M TTS ... ... FMM TTC SYNC TTS TTS Link Subdetector Master TTC Crate TTC Link Local Trigger Controller From/To SUBDETECTOR CRATES
ECAL TTC Partitions TTCci TTCci TTCci TTCci LTC VME 6U FMM Partition 1 -PCI TTCci TTCci TTCci TTCci LTC VME 6U FMM Partition 1 1 fiber Partition 2 1 fiber Partition 3 1 fiber Partition 4 1 fiber Optical coupler Optical coupler Optical coupler Optical coupler 9+1 fibers 18+1 fibers 18+1 fibers 9+1 fibers
EB EE(EE+) 8/17 0/9 Crate A1 Crate A Crate A2 7/16 1/10 Crate C2 6/15 far Crate A near far near EB EE(EE+) Crate A2 SM1 SM18 7/16 S1 S9 1/10 SM2 SM17 87.7 (85.3) 85.7 (83.3) SM3 SM16 Crate C2 S2 S8 87.7 (85.3)) 83.7 (81.3) SM4 SM15 Max. 61.4 Max. length of fibers up to 1. rack edge row left bottom corner SM5 SM14 S3 85.2 (82.8) 81.7 (79.3) S7 6/15 2/11 SM6 SM13 Crate C 82.2 (79.8) Crate B1 80.2 (77.8)) SM12 80.2 (77.8) SM7 S4 S6 SM8 SM11 S5 SM9 SM10 Crate C1 Crate B 5/14 3/12 4/13 Crate B2 Max.total length of fibers 85.3+4.0=89.3 87.7+4.6=92.3 83.7+5.2=88.9 81.3+6.4=87.7 82.8+7.0=89.8 85.2+7.6=92.8 wall to UX EE+ A 9-16-17 EE- A 0-7-8 EE- C 1-2-3 SRP EE+ C 10-11-12 EE+ B 13-14-15 EE- B 4-5-6 EB+ A1 9-17 EB+ A2 16-17 EB+ C2 10-11 TTCoc EB+ C1 11-12 EB+ B1 14-15 EB+ B2 13-14 Raw D EB- A1 0-8 EB- A2 7-8 EB- C2 1-2 EB- C1 2-3 EB- B1 5-6 EB- B2 4-5 9 1 10 2 11 3 12 4 E 17 8 16 7 15 6 14 5 13 1 2 3 4 5 6 7 8 9
LTC Local control of sub-detectors: LTC - Up to 6 partitions - Input for 6 local triggers - Interface to 6 TTCci - Interface to one TTCvi (backward compatibility) - Interface to sTTS (6 channels) - Interface to aTTS (1 channel) - Interface to 4 Emulators - Interface to DAQ EVM (S-Link) - Interface to BST 2 prototypes exist Production of further 12 boards launched Software HAL-based device driver being written XDAQ overlay will also be implemented
TTCci ... TTCci 1 prototype exists L1A from CTC TTCci MUX L1A L1A from LTC To TTCex Channel-A Aux triggers B-Go from CTC Ch 1 Command code FIFO 5 ... MUX B-Go Decode B-Ch B-Go from LTC 5 Ch 16 Command code FIFO Clock, Orbit To TTCex Channel-B B-data Programmable 1 prototype exists Production of further 15 boards launched
B-Go Channels Fast commands from CTC/LTC: Channel 4-bit code Command 1 0001 BC0 2 0010 Test Enable 3 0011 Private Gap 4 0100 Private Orbit 5 0101 ReSync 6 0110 HardReset 7 0111 Reset Event Counter 8 1000 Reset Orbit Counter 9 1001 Start 10 1010 Stop
TTC Broadcast Commands 1 2 3 4 5 6 7 TTC 8-bit command code: BCR Coarse delay 2 ECR Coarse delay 1 CMS Rules: Assignment of B-channels (1 to 16) to CMS-wide Fast Controls is predefined Actual TTC broadcast command codes are stored in TTCci B-channels FIFOs Definition of these codes is done by the sub-detectors
ECAL TTC Broadcast Codes Definition of ECAL TTC broadcast codes is now required. Definition of codes for test triggers (laser, pedestal): DCC readout may be a function of the trigger type (e.g. LaserSM7a implies that only DCC of SM7/a is readout) Other options are: zero suppression(?), SR flags (?) to select laser data
ECAL response to Resync To be cross-checked: DCC: - clear FIFOs and reset event counter SLB - toggle data/idle/data in the next GAP – resync trigger links to RCT TCC - clear FIFOs and reset event counter ? FE - clear FIFOs and reset event counter ? What is the response to HardReset? Clear FIFOs, reset EC, reset state machines (keep configuration registers)
Resync of Frontend Links Links to DCC: Between events, the links transmit Sync Patterns that are used to resynchronize the links Links to TCC: Are always transmitting data, no automatic resync possible Local procedure controlled by software : TCC identifies link out-of-sync and requests Sync Patterns to Supervisor Supervisor requests Sync Patterns to FE (via CCS) TCC identifies link in-sync and requests Data TCC updates Condition DB
ECAL response to Calib Trigger Calib Trigger = B-Go 2 (Test Enable) followed by L1A (fixed latency) Send to whole CMS at a given frequency, during the Gaps Central data acquisition, dedicated data stream in Filter Farm, available to Monitoring Farm Usage in ECAL: Laser triggers Test Enable fires the Laser Does the Laser control has a TTCrx as required? Test sequence can be programmed in TTCci FIFO (SM sequence) What is the latency between Test Enable and L1A required by ECAL?
ECAL private events How to read laser events (in the LHC gap) into Local DAQ? Use Private Gap (or Private Orbit) fast commands Program TTCci to issue double TTC broadcasts: TestEnable (to fire the laser) LocalTrigger (B-command recognized by CCS-DCC-TCC as a trigger) CCS sends L1A to FE DCC and TTC handles local event (evt number, data to VME, block S-link) Synchronization of EvNumber between FE and OD is a problem Possible solution DCC handles three event numbers: CMS event number Calib event number FE event number Is there any advantage of using Local DAQ for laser events during running?
Test System @ Blg. 904 TTC Crate ECAL OD Crate Tester Crate CAEN TTCvi ECAL OD Crate Tester Crate Trigger primitives CAEN STC TCC - T DCC-T CAEN TCC CCS D C TTC signals, clock SR Flags FE Data Vitesse electrical links (SLB-STC) (from Nuno’s talk)
DCC Tester Board DCC-T is the source of Clock and TTC commands In present implementation there is no Slave Mode
Full Synchronized Test Trigger Patterns loaded in TCC-T memories; Event Data loaded in DCC-T memories TCC-T in Slave Mode: Clock and Start (w/ adjust. delay) from DCC-T TCC-T cycles on Trigger Pattern memories Frequency of periodic trigger is adjusted to capture always the same trigger data. DCC-T provides Clock, BC0 and L1A to TTCci TCC sends Primitives and SR flags to DCC at each L1A Requires new version of Tester Cards