CSC Synchronization Procedure and Plans

Slides:



Advertisements
Similar presentations
CPT Week, Nov 2003, B. Paul Padley, Rice University1 CSC Trigger Status, MPC and Sorter B. Paul Padley Rice University November 2003.
Advertisements

CHL -2 Level 1 Trigger System Fully Pipelined Custom ElectronicsDigitization Drift Chamber Pre-amp The GlueX experiment will utilize fully pipelined front.
TMB-RAT Software Update USCMS Slice Test Rice University August 16, 2004 Martin Von der Mey / Yangheng Zheng* University of California, Los.
TMB and RAT Status Report Endcap Muon OSU April 16, 2004 Yangheng Zheng University of California, Los Angeles  TMB Status  RAT Status.
CSC Muon Trigger September 16, 2003 CMS Annual Review 1 Current Status of CSC Trigger Elements – Quick Summary Jay Hauser, with many slides from Darin.
US Test Beam Results Of Front End Timing T. Ferguson, N. Terentiev* (Carnegie Mellon University) CMS EMU Meeting University of California, Davis Feb 25.
CSC Synchronization Procedure and Plans CMS Endcap Muon FNAL October 29, 2004 Jay Hauser* / Martin Von der Mey / Yangheng Zheng University of.
Endcap Muon meeting: FNAL, Oct , 2004 J. Hauser UCLA 1 TMB and RAT Status Report Jay Hauser University of California Los Angeles.
Commissioning of CSCs and Peripheral Crates Task L M. Ignatenko UCLA October
Endcap Muon meeting: CMU, Oct 19, 2003 J. Hauser UCLA 1 CSC Trigger Primitives Test Beam Studies Main Test Beam 2003 Goals: Verify the peripheral crate.
DRAFT version Oct. 15, 2004 Hauser/Mey UCLA 1 Analysis of Oct. 04 Test Beam RPC Data Jay Hauser, Martin von der Mey University of California Los Angeles.
DRAFT version Oct. 15, 2004 Hauser/Mey UCLA 1 Analysis of Oct. 04 Test Beam RPC Data Jay Hauser, Martin von der Mey University of California Los Angeles.
S. Durkin, USCMS-EMU Meeting, Oct. 21, 2005 Critical Data Errors S. Durkin The Ohio State University USCMS EMU Meeting, FNAL, Oct. 20, 2005.
An Asynchronous Level-1 Tracking Trigger for Future LHC Detector Upgrades A. Madorsky, D. Acosta University of Florida/Physics, POB , Gainesville,
September 8-14, th Workshop on Electronics for LHC1 Channel Control ASIC for the CMS Hadron Calorimeter Front End Readout Module Ray Yarema, Alan.
Status of Global Trigger Global Muon Trigger Sept 2001 Vienna CMS-group presented by A.Taurok.
Track-Finder Trigger at the Beam Test Results and Features Darin Acosta, Rick Cavanaugh, Victor Golovtsov, Lindsey Gray, Khristian Kotov, Alex Madorsky,
Test Beam Wrap-Up Darin Acosta. Darin Acosta, University of Florida 18 June 2004 USCMS Meeting 2 Agenda n Darin/UF: General recap of runs taken, tests.
1 SCA Cell Utilizing Scheme The output of each preamp-shaper channel is sampled continuously at 20 MHz and stored the SCA cells. There are 96 cells for.
Tests of the Fully Loaded CSC Track Finder Backplane M.Matveev S.-J. Lee Rice University Alex Madorsky University of Florida 2 May 2005.
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)
4 Dec 2008G. Rakness (UCLA)1 Online Software Updates and RPC data in the RAT …including Pad Bit Mapping and Efficiency… Greg Rakness University of California,
Digital CFEB (an Update) B. Bylsma, EMU at CMS Week, March 16, Ben Bylsma The Ohio State University.
CMS Latency Review, 13th March 2007CSC Trigger 1 Latency and Synchronization update.
CERN, 18 december 2003Coincidence Matrix ASIC PRR Coincidence ASIC modifications E.Petrolo, R.Vari, S.Veneziano INFN-Rome.
US CMS DOE/NSF Review: June 2002, B.Paul Padley, Rice University1 CSC Muon Trigger On Detector Components B. Paul Padley Rice University June, 2002.
Track-Finder Test Beam Results Darin Acosta. Darin Acosta, University of Florida 30 July 2004 Trigger Meeting CSC Beam Test (Muon Slice Test) ME.
13 March 2007G. Rakness (UCLA) 1 RPC efficiency in RAT Greg Rakness University of California, Los Angeles UCLA phone meeting 13 March 2007.
22 Sept A slight reformulation of (ALCT) muonic timing… In terms of brass tacks.
PNPI / University of Florida Checking PC Timing Lev Uvarov CSC Time Synchronization Meeting May 12, 2009.
M.Matveev Rice University March 20, 2002 EMU Muon Port Card Project.
3 Nov 2009G. Rakness (UCLA)1 Weekend of 24 – 25 October Loaded all TMB firmware –Version 15 Oct 2009 XML file created using Jay’s muonic timing constants.
CSC Ops/DPG meeting, 05-Oct-2011 Hauser1 ALCT boards for ME4/2 etc.
10/20/09 UCLA Meeting Hauser 1/9 Various updates Update on LHC/CMS schedule: First shots into collimator: Nov. 7 and 8! Circulating beam ~Nov. 18, less.
1 Timing of the calorimeter monitoring signals 1.Introduction 2.LED trigger signal timing * propagation delay of the broadcast calibration command * calibration.
CMS Week, 3-7 November CSC Trigger Test Beam Report Cast of many.
6 April 2007G. Rakness (UCLA) 1 CSC runs at minus side slice test 27 Mar – 5 Apr Color scheme: Successes Problems/questions Greg Rakness University.
Update on “Muonic Timing” of CSC Electronics
904 Status Recall last Group Meeting…
Timing/Synchronization Status
CSC EMU Muon Port Card (MPC)
University of California Los Angeles
University of California Los Angeles
“Golden” Local Run: Trigger rate = 28Hz
L0 processor for NA62 Marian Krivda 1) , Cristina Lazzeroni 1) , Roman Lietava 1)2) 1) University of Birmingham, UK 2) Comenius University, Bratislava,
EMU Slice Test Run Plan a working document.
CMS EMU TRIGGER ELECTRONICS
University of California Los Angeles
University of California Los Angeles
ALCT Production, Cable Tests, and TMB Status
University of California Los Angeles
University of California Los Angeles
Current Status of CSC Trigger Elements – Quick Summary
CSC Trigger Update Specific issues:
Darin Acosta University of Florida
September CSC Beam Test Report
8-layer PC Board, 2 Ball-Grid Array FPGA’s, 718 Components/Board
ALCT, TMB Status, Peripheral Crate Layout, CSC Event Display
CSC Trigger Primitives Test Beam Studies
Analysis of Oct. 04 Test Beam RPC Data
University of California Los Angeles
Changes in Level 1 CSC Trigger in ORCA by Jason Mumford and Slava Valuev University of California Los Angeles June 11,
TMB and RAT Status Report
Effect of an ALCT SEU Much-overlooked good stuff
University of California Los Angeles
The CMS Tracking Readout and Front End Driver Testing
Sector Processor Status Report
Global Trigger Finds Correct BX
FED Design and EMU-to-DAQ Test
Plans for the 2004 CSC Beam Test
Presentation transcript:

CSC Synchronization Procedure and Plans CMS Endcap Muon meeting @ FNAL October 29, 2004 Jay Hauser* / Martin Von der Mey / Yangheng Zheng University of California, Los Angeles What is done now What should be done

General ~Trigger-Centric View Make sure to disable interaction between different TMB/DMB setups in one crate. Adjust L1A time on the CCB to get fixed 2.9us for CFEB-L1A-LCT. For different DMBs in the same crate use DMB registers to equalize. Adjust transmit/receive phases on the TMB for CFEBand ALCT within 25ns base period to get proper data transmission between boards. Put trigger and readout signals in the middle of numerous several-bx time coincidence windows on ALCT, TMB, DMB. Time in DMB such that TMB and ALCT signals get latched correctly inside FIFOs. Adjust ALCT fine delay timing to get events in ~1 bx at SP (for synchronous or semi-synchronous beam) Equalize time of arrival of LCT signals at SP. Use TMB delays. Equalize BX numbers for DAQ readout. Endcap Muon meeting @ FNAL 10/29/2004

Step 1: Adjusting Clock Phases TMB has several adjustments: CFEB-TMB has “receive” phase ALCT-TMB has “transmit” and “receive” phases Use CFEB pulse injection or cosmic muons. Faster with pulse injection. Use test strip pulses to pulse wires. Inject 6 layer hits. Read out TMB and compare. Endcap Muon meeting @ FNAL 10/29/2004

TMB-CFEB Block Diagram Crate Master clock TMB TMB Master clock Latch data in CLCT section Comp. delay Data Delay Devices 2ns/bin 40 MHz clock Comparator data CFEB (1 of 5) Clock and data on same 6-15m Skewclear cable Adjust comparator clock phase to middle of ~12ns window where data is latched correctly by TMB Comparators

Active Pulsing of CFEB Front Ends Tasks using CFEB pulsing: Generate ½ -strip patterns for all layers: Buckeye ASIC - all channels have capacitors with 4 charge levels that can be preset (0,1,2,3) “left half-strip” puts strip charges at ….,0,0,2,3,1,0,0… “right half-strip” puts strip charges at …,0,0,1,3,2,0,0… Load pattern and pulse height into the ASICs. Take staggering into account. Single VME command to DMB pulses loaded channels. Loaded patterns give e.g. 6-layer CLCTs. Compare TMB readout with loaded pattern. Vary 40 MHz clock phase from TMB to comparators until patterns correctly found. Patterns can be swept across entire chamber and checked Checks all Buckeye, comparator, and CFEB-TMB Skewclear cable channels No gas, HV, etc. needed. HV should be off. Interference with cosmic muons. Endcap Muon meeting @ FNAL 10/29/2004

CFEB Clock Phase Determination Endcap Muon meeting @ FNAL 10/29/2004

CFEB Pulse Pattern Injector Endcap Muon meeting @ FNAL 10/29/2004

Active Pulsing of Test Strips (ALCT Timing) Two tasks for ALCT : How it’s done: CCB provides 500ns gate to make the ALCT test strip pulses. This pulses go through the ALCT (lemo connector) to the test strips. Capacitive coupling between test strips and anode wire groups gives pulses on leading and trailing edges of 500ns pulse All test strips fire on leading edge Hot wire mask on ALCT board  Select ALCT patterns with 6 hits (quality=3). Create 2 muons mask. Like CFEB, vary 40 MHz receive and send phases until optimum data transmission from TMB to and from ALCT Find optimum in 2D matrix of receive/send clock phases Scan patterns across chamber to find bad AFEB/ALCT channels Advantages: Set up phases of 80 MHz clock TMB to and from ALCT with high reliability without HV, gas, or cosmic ray data Check all AFEB, ALCT, and Skewclear channels through the system What previously took days now takes minutes The HV should be off. Endcap Muon meeting @ FNAL 10/29/2004

TMB-ALCT Block Diagram Crate Master clock TMB TMB Master clock ALCT section Latch input ALCT data Adjust ALCTtx for optimal latching of ALCT output data at TMB Latch output ALCT commands ALCT -RX clock 2ns/bin CCB test pulse commands Adjust ALCTrx for optimal latching TMB output data at ALCT ALCT -TX clock TMB pass- through 2ns/bin ALCT commands ALCT data ALCT ALCT Master clock ALCT Main FPGA Internal test pulse via VME command to TMB Adjust Delay ASICs for max. probability for ALCTs to come in one BX Asynch. test pulse from VME write to CCB Delay ASICs ALCT latch raw data Synch. test pulse from TTC command or VME write to CCB Main FPGA OR ~2.2ns/bin AFEB CSC Test Pulse Strips Test pulse to AFEB amplifier or test strips (select via VME write to TMB to ALCT Slow Control FPGA register) AFEB data

ALCT Clock Phases Determination Receive Phase Setting   1 2 3 4 5 6 7 8 9 10 11 12 Transmit Phase Setting 108 Good settings Endcap Muon meeting @ FNAL 10/29/2004

AFEB Pulse Pattern Injector Endcap Muon meeting @ FNAL 10/29/2004

Step 2: Adjusting L1A at CFEBs Firmware in CFEBs uses L1A to LCT delay at 2.9us So far, experts adjust DMB timing according to observations with oscilloscope at CFEB. Difficult but possible for slice tests Impossible in situ for CMS CMS plan: calculate cable lengths etc. and have firmware for all required delays Is this good enough? Endcap Muon meeting @ FNAL 10/29/2004

Step 3: Putting Signals in Windows Most important settings: CCB/TTC delay of 2.9us between L1A and LCT on CFEBs. On DMB: TMB pretrigger to L1A delay For CFEB readout. Use DMB front-panel gizmo to set. On ALCT: L1A delay Initiates rawhits readout. On CLCT: L1A delay Initiates readout. Use TMB scope. On TMB: ALCT valid pattern flag Reads out ALCT. On TMB: ALCT-CLCT coincidence delay For matched LCT to MPC. Can use TMB scope or DQM, etc. On TMB: RPC-LCT coincidence delay For matched RPC to LCT (if desired). Use TMB scope or DQM. On DMB: ALCT data-available to L1A delay For ALCT FIFO readout. Scan until ALCTs read out efficiently. On DMB: CLCT data-available to L1A delay For CLCT/TMB FIFO readout. Scan until CLCTs read out efficiently. On DMB: CFEB data-available to L1A delay Etc. etc. Endcap Muon meeting @ FNAL 10/29/2004

TMB-DMB Block Diagram TMB TTC/CCB Crate Master Clock, L1A (external L1A = LHC & Test Beam operation modes) TMB DMB TMB Master Clock, L1A DMB Master Clock, L1A CLCT DAV delay L1A*CLCT DAV Coinc. CLCT-DAV LCT-L1A Coinc. starts TMB readout CLCT Readout queue CLCT FIFO DMB-DDU readout Controller logic ALCT DAV delay L1A*ALCT DAV Coinc. ALCT-DAV LCT -read delay LCTs to MPC From ALCT readout queue ALCT FIFO CFEB DAV Coinc. CFEB Clock phase L1A delay L1A ALCT/ CLCT/ RPC Coincidence RPC delay 1 ns/bin CFEB DAV delay CFEBs “hit” Auto set Cable Equal. delay AFF (Active FEB Flags) Cable Equal. delay CFEB FIFOs (5) CFEB -DAV CLCT Final logic CFEB AFF-L1A Coinc. Starts CFEB digi. & readout RPC logic AFF delay ALCT delay Output FPGA fixed CFEB Clock SCAs, ADCs, Memories From RPC/ RAT Store SCA data command From ALCT CLCT pre-trigger logic Comparators

Step 4: Adjust ALCT Fine Timing Scan 0-25 ns delays in 2.2ns steps Try to get >99% or so of ALCTs in 1 bx Works well for synchronous beam Doesn’t work well for cosmics/asynchronous beam Big improvement to set up synchronous gating during asynchronous test beam: Sometimes delay setting moves ALCTs to a different bx window  back to previous step for iteration. N.B. In CMS will need several adjustments per chamber (TOF varies by ~6ns, also cable delays) Clock Gate Accepted Scint. Coinc. Endcap Muon meeting @ FNAL 10/29/2004

Step 5. Equalize time of arrival of LCTs at SP All chambers in crate must be equalized using delays on the TMB. (to the slowest) Then the various crates must be equalized (to the slowest!) Then need to equalize with Drift Tube LCTs For overlap-region muons (whichever is slowest!) Simple adjustment in TMB to delay signals At test beam, used long input FIFO of SP (?) Endcap Muon meeting @ FNAL 10/29/2004

Step 6. Equalize BX numbers for DAQ readout Also low-order bits go to SP Never properly worked out at test beam Different boards used different algorithms: DMB, CFEB, DDU reset on BC0 ALCT, CLCT reset on BXReset only Orbit was not reliably 924 crossings RPCs used LHC orbit (3564 or something) Endcap Muon meeting @ FNAL 10/29/2004

Eventual LHC Operation Many synchronizations are done easily with real LHC beams Synchronous beam Rate is high Cabling is “permanent” There are easy-to-find gaps in the orbit structure Can turn on with one bunch per orbit, for example (Wesley) Endcap Muon meeting @ FNAL 10/29/2004

Eventual LHC Operation However: We will want to exercise a working system long before LHC turn-on There are 486 chambers to time in The trigger has to be timed to the very slowest chamber (longest TOF+cable runs, etc.) Chambers and even peripheral crates are inaccessible There could be long-term shifts in timing – constant automated monitoring is advisable How to do large-scale slice test at SX5? How to do anything after disks lowered but still <<LHC?? Endcap Muon meeting @ FNAL 10/29/2004

Endcap Muon meeting @ FNAL Summary Synchronization is pretty hard I’ve certainly overlooked a lot of steps Any improvements in synchronization “technology” will pay off big-time (Lev’s BC0 handling for trigger path?) It would be nice to automate more of the currently manual procedures Timing diagrams updated at http://www.physics.ucla.edu/~hauser/CSC_peripheral_timing.ppt Endcap Muon meeting @ FNAL 10/29/2004

Additional Slides Follow Endcap Muon meeting @ FNAL 10/29/2004

CSC Peripheral Crate Timing 04-Mar-2004 This note at http://www.physics.ucla.edu/~hauser/CSC_peripheral_timing.ppt TTC distribution to peripheral crate cards TMB-CFEB diagram TMB-ALCT diagram Details of L1A-LCT coincidences in TMB & DMB TMB clocking to MPC (CCB-TTC clocking details)

Master Clock Distribution in CSC Peripheral Crates CCB TTC TTCrx Phase adjustment 0.1 ns/bin (unused so far) Crate Master clock: Isochronous backplane distribution … TMB 1 DMB 1 TMB 9 DMB 9 MPC TTC command and data strobes are delayed along with the phase adjustment so as to remain within 25ns latch window

TMB-CFEB Block Diagram Crate Master clock TMB TMB Master clock Latch data in CLCT section Comp. delay Data Delay Devices 2ns/bin 40 MHz clock Comparator data CFEB (1 of 5) Clock and data on same 6-15m Skewclear cable Adjust comparator clock phase to middle of ~12ns window where data is latched correctly by TMB Comparators

TMB-ALCT Block Diagram Crate Master clock TMB TMB Master clock ALCT section Latch input ALCT data Adjust ALCTtx for optimal latching of ALCT output data at TMB Latch output ALCT commands ALCT -RX clock 2ns/bin CCB test pulse commands Adjust ALCTrx for optimal latching TMB output data at ALCT ALCT -TX clock TMB pass- through 2ns/bin ALCT commands ALCT data ALCT ALCT Master clock ALCT Main FPGA Internal test pulse via VME command to TMB Adjust Delay ASICs for max. probability for ALCTs to come in one BX Asynch. test pulse from VME write to CCB Delay ASICs ALCT latch raw data Synch. test pulse from TTC command or VME write to CCB Main FPGA OR ~2.2ns/bin AFEB CSC Test Pulse Strips Test pulse to AFEB amplifier or test strips (select via VME write to TMB to ALCT Slow Control FPGA register) AFEB data

TMB-ALCT Timing Discussion I Definitions: T=Skewclear cable and buffer delay (~30-75ns) dtRX=adjustable delay time for ALCTrx dtTX=adjustable delay time for ALCTtx Let phase of TMB master clock be defined as =0 Then Step 1 of timing-in optimizes data transfer from ALCT to TMB: ALCT data to TMB is received (latched) in the TMB at phase=0. ALCT data to TMB is sent (latched) at the ALCT at phase=mod[T+ dtTX, 25ns]. Step 2 of the timing-in procedure optimizes commands from TMB to ALCT: TMB commands to ALCT are sent (latched) in the TMB at phase= mod[dtRX, 25ns]. TMB commands to ALCT are received (latched) at the ALCT at phase=mod[T+ dtTX, 25ns]. Since the latter depends on dtTX, this procedure must be done after Step 1.

TMB-ALCT Timing Discussion II Note bene: there are certain values of dtRX that can cause meta-stable TMB output latching (those that are close to 25ns boundary between TMB internal clock cycles). Therefore, it may be necessary to iterate Steps 1 and 2 to find the widest time windows for simultaneous data transfer in both directions. Note that DDD (new) and PHOS4 (old) delay chips both have t0’s that vary chip-to-chip, so the phase of the hole varies between TMBs. Once this is set, it is then necessary to adjust integer-BX delays and timing windows on ALCT, TMB, and DMB for L1A coincidence to ensure efficient triggering and readout. Nominal window Possible hole dtRX e

TMB-ALCT Timing Discussion III Final step of phase adjustment procedure after TMB-ALCT communication is optimized: Adjust ALCT Delay ASICs to get the maximum probability for ALCTs to come in one BX. In case of LHC or structured beam, this is easy based on data analysis. In case of asynchronous cosmic rays or test beam: This is meaningless except for trying to get good relative timing between multiple chambers. One can use scintillators and a coincidence with a short pulse (few ns) synchronized with the peripheral crate clock to get semi-synchronous external cosmic ray trigger.

TMB-DMB Block Diagram TMB TTC/CCB Crate Master Clock, L1A (external L1A = LHC & Test Beam operation modes) TMB DMB TMB Master Clock, L1A DMB Master Clock, L1A CLCT DAV delay L1A*CLCT DAV Coinc. CLCT-DAV LCT-L1A Coinc. starts TMB readout CLCT Readout queue CLCT FIFO DMB-DDU readout Controller logic ALCT DAV delay L1A*ALCT DAV Coinc. ALCT-DAV LCT -read delay LCTs to MPC From ALCT readout queue ALCT FIFO CFEB DAV Coinc. CFEB Clock phase L1A delay L1A ALCT/ CLCT/ RPC Coincidence RPC delay 1 ns/bin CFEB DAV delay CFEBs “hit” Auto set Cable Equal. delay AFF (Active FEB Flags) Cable Equal. delay CFEB FIFOs (5) CFEB -DAV CLCT Final logic CFEB AFF-L1A Coinc. Starts CFEB digi. & readout RPC logic AFF delay ALCT delay Output FPGA fixed CFEB Clock SCAs, ADCs, Memories From RPC/ RAT Store SCA data command From ALCT CLCT pre-trigger logic Comparators

TMB-DMB Timing Discussion I 2.9 us for AFF to L1A now set manually by looking on oscilloscope at CFEB to adjust the L1A timing. At LHC L1A timing will be a fixed constant determined by the global CMS trigger. The firmware on the CFEB contains a fixed pipeline (not adjustable). TMB knobs (default settings): ALCT-CLCT coincidence delay for ALCT (8 bx), width (3 bx) RPC-CLCT coincidence delay for RPC (20 bx?), width (1 bx?) – to be determined. L1A coincidence delay (128=0x80 bx), width (3 bx) DMB knobs (default settings): AFF-to-L1A delay (116 bx), coincidence width (3 bx) L1A to CFEB-DAV (Data Available) delay (0x18 bx), coincidence width (2 bx) L1A to ALCT-DAV (Data Available) delay (4 bx), coincidence width (2 bx) L1A to CLCT-DAV (Data Available) delay (0x15 bx), coincidence width (2 bx) CFEB Cable Equalization delay (0 bx) – to be added

Crate Master 40 & 80 MHz clocks TMB-MPC Block Diagram Crate Master 40 & 80 MHz clocks TMB MPC TMB Master clock MPC Master 40 &80 MHz clocks DLL makes 80 MHz, phase=0 80 MHz VCX0 … Winner Bits Optical to Track Finder at 80 MHz 40 MHz Select Winner bits pointer MPC Master phase ALCT-CLCT-RPC coincidence logic LCT Readout Controller Sort best 3/18 logic 0.25 ns/bin LCTs at 80 MHz on backplane 40-to-80 MHz MUX Clk. Mult. to 80 MHz Latch and de-mux TMB LCT data MPC Latch Delay is adjusted to middle of latch window for data from all 9 TMBs. Winner bits come back to TMB about 8 clock cycles after LCTs sent to MPC (Pointer to data in pipeline should be fixed for all time) Phase of Winner bits to TMB may need adjustment on TMB end.