CMS Conference Report

Similar documents
Description of the Synchronization and Link Board

GREAT 32 channel peak sensing ADC module: User Manual

BABAR IFR TDC Board (ITB): requirements and system description

CMS Tracker Synchronization

BABAR IFR TDC Board (ITB): system design

Optical Link Evaluation Board for the CSC Muon Trigger at CMS

Local Trigger Electronics for the CMS Drift Tubes Muon Detector

TTC Interface Module for ATLAS Read-Out Electronics: Final production version based on Xilinx FPGA devices

Global Trigger Trigger meeting 27.Sept 00 A.Taurok

A FOUR GAIN READOUT INTEGRATED CIRCUIT : FRIC 96_1

The Read-Out system of the ALICE pixel detector

BER MEASUREMENT IN THE NOISY CHANNEL

Development of beam-collision feedback systems for future lepton colliders. John Adams Institute for Accelerator Science, Oxford University

The TRIGGER/CLOCK/SYNC Distribution for TJNAF 12 GeV Upgrade Experiments

Figure 1 shows a simple implementation of a clock switch, using an AND-OR type multiplexer logic.

The LHCb Timing and Fast Control system

Asynchronous (Ripple) Counters

Test Beam Wrap-Up. Darin Acosta

Design, Realization and Test of a DAQ chain for ALICE ITS Experiment. S. Antinori, D. Falchieri, A. Gabrielli, E. Gandolfi

RF2TTC and QPLL behavior during interruption or switch of the RF-BC source

University of Oxford Department of Physics. Interim Report

Diamond detectors in the CMS BCM1F

Memory Interfaces Data Capture Using Direct Clocking Technique Author: Maria George

arxiv: v1 [physics.ins-det] 1 Nov 2015

12 Cathode Strip Chamber Track-Finder

WBS Trigger. Wesley Smith, U. Wisconsin CMS Trigger Project Manager. DOE/NSF Review April 11, 2000

Update on DAQ for 12 GeV Hall C

CSC Data Rates, Formats and Calibration Methods

Counter dan Register

R3B Si TRACKER CABLE TEST REPORT

Experiment 7: Bit Error Rate (BER) Measurement in the Noisy Channel

LHCb and its electronics.

Synchronization of the CMS Cathode Strip Chambers

Design of the Level-1 Global Calorimeter Trigger

Figure 30.1a Timing diagram of the divide by 60 minutes/seconds counter

Objectives. Combinational logics Sequential logics Finite state machine Arithmetic circuits Datapath

SuperB- DCH. Servizio Ele<ronico Laboratori FrascaA

NH 67, Karur Trichy Highways, Puliyur C.F, Karur District UNIT-III SEQUENTIAL CIRCUITS

Tests of the boards generating the CMS ECAL Trigger Primitives: from the On-Detector electronics to the Off-Detector electronics system

US CMS Endcap Muon. Regional CSC Trigger System WBS 3.1.1

Short summary of ATLAS Japan Group for LHC/ATLAS upgrade review Liquid Argon Calorimeter

Chapter 6. Flip-Flops and Simple Flip-Flop Applications

Paul Rubinov Fermilab Front End Electronics. May 2006 Perugia, Italy

Introduction. NAND Gate Latch. Digital Logic Design 1 FLIP-FLOP. Digital Logic Design 1

Commissioning and Initial Performance of the Belle II itop PID Subdetector

PROCESSOR BASED TIMING SIGNAL GENERATOR FOR RADAR AND SENSOR APPLICATIONS

TABLE 3. MIB COUNTER INPUT Register (Write Only) TABLE 4. MIB STATUS Register (Read Only)

Trigger Cost & Schedule

Installation of a DAQ System in Hall C

Dual Link DVI Receiver Implementation

Laboratory 4. Figure 1: Serdes Transceiver

The ATLAS Tile Calorimeter, its performance with pp collisions and its upgrades for high luminosity LHC

FPGA Development for Radar, Radio-Astronomy and Communications

A MISSILE INSTRUMENTATION ENCODER

1 Digital BPM Systems for Hadron Accelerators

VITERBI DECODER FOR NASA S SPACE SHUTTLE S TELEMETRY DATA

Memory Interfaces Data Capture Using Direct Clocking Technique Author: Maria George

BEMC electronics operation

Logic Design. Flip Flops, Registers and Counters

DXP-xMAP General List-Mode Specification

Update on DAQ for 12 GeV Hall C. Brad Sawatzky

WBS Calorimeter Trigger. Wesley Smith, U. Wisconsin CMS Trigger Project Manager. DOE/NSF Review April 12, 2000

Product Update. JTAG Issues and the Use of RT54SX Devices

ECE 5765 Modern Communication Fall 2005, UMD Experiment 10: PRBS Messages, Eye Patterns & Noise Simulation using PRBS

READOUT ELECTRONICS FOR TPC DETECTOR IN THE MPD/NICA PROJECT

Status of the CSC Track-Finder

Trigger Report. Wesley H. Smith CMS Trigger Project Manager Report to Steering Committee February 23, 2004

Beam test of the QMB6 calibration board and HBU0 prototype

Chapter 12. Synchronous Circuits. Contents

LHCb and its electronics. J. Christiansen On behalf of the LHCb collaboration

TIME RESOLVED XAS DATA COLLECTION WITH AN XIA DXP-4T SPECTROMETER

Counters

DEDICATED TO EMBEDDED SOLUTIONS

The ATLAS Level-1 Central Trigger

IT T35 Digital system desigm y - ii /s - iii

SignalTap Plus System Analyzer

AN-822 APPLICATION NOTE

Chapter 5 Flip-Flops and Related Devices

CONVOLUTIONAL CODING

S6B CH SEGMENT DRIVER FOR DOT MATRIX LCD

EE178 Spring 2018 Lecture Module 5. Eric Crabill

BUSES IN COMPUTER ARCHITECTURE

T1 Deframer. LogiCORE Facts. Features. Applications. General Description. Core Specifics

The ALICE on-detector pixel PILOT system - OPS

EECS150 - Digital Design Lecture 3 Synchronous Digital Systems Review. Announcements

About... D 3 Technology TM.

A Reconfigurable, Radiation Tolerant Flexible Communication Platform (FCP) S-Band Radio for Variable Orbit Space Use

C8000. switch over & ducking

Massachusetts Institute of Technology Department of Electrical Engineering and Computer Science Introductory Digital Systems Laboratory

FPGA IMPLEMENTATION AN ALGORITHM TO ESTIMATE THE PROXIMITY OF A MOVING TARGET

Experiment 13 Sampling and reconstruction

Introduction to Sequential Circuits

The Pixel Trigger System for the ALICE experiment

The Readout Architecture of the ATLAS Pixel System

Proposed STAR Time of Flight Readout Electronics and DAQ

Advanced Devices. Registers Counters Multiplexers Decoders Adders. CSC258 Lecture Slides Steve Engels, 2006 Slide 1 of 20

THE LXI IVI PROGRAMMING MODEL FOR SYNCHRONIZATION AND TRIGGERING

Generation and Measurement of Burst Digital Audio Signals with Audio Analyzer UPD

CONTROL OF THE LOW LEVEL RF SYSTEM OF THE LARGE HADRON COLLIDER

An FPGA Based Implementation for Real- Time Processing of the LHC Beam Loss Monitoring System s Data

Transcription:

Available on CMS information server CMS CR 1997/017 CMS Conference Report 22 October 1997 Updated in 30 March 1998 Trigger synchronisation circuits in CMS J. Varela * 1, L. Berger 2, R. Nóbrega 3, A. Pierce 2, J.C. da Silva 3 1 CERN, Geneva, Switzerland 2 TECMIC, Lisbon, Portugal 3 LIP, Lisbon, Portugal Abstract We present the principles of the CMS method for synchronizing the trigger data at LHC. The method makes use of the LHC bunch gap and allows for a re-synchronisation of the data every LHC orbit (88 ms). It relies on the distribution by the TTC system of a signal synchronous with the first bunch in the orbit, and is implemented by dedicated synchronisation circuits in each trigger link. We report on the test of a prototype FPGA implementation. Presented at 3rd Workshop on Electronics for LHC Experiments, London, September 1997 * email: joao.varela@cern.ch

1 Introduction The CMS L1 trigger system can be viewed as a massive parallel processor that computes local trigger objects, followed by a tree like structure that selects the highest rank objects in the detector or performs global energy sums. The entire system works in synchronous pipelined mode, processing events at the 40 MHz LHC rate. The system is based on the assumption that, at every processing stage, the data are synchronized and belong to the same bunch crossing. This goal has to be achieved without making use of bunch crossing identifiers attached to the data, which would imply a non acceptable complication of the trigger system design. Due to different flight paths to different regions of the detector, the various front-ends are not necessarily synchronized with each other. In addition, the length of the links from the detector to the trigger processors can be different. Changes in length due to mechanical stretching during installation or replacement of optical fibers can occur. Temperature variations are also expected to induce variations in the signals timing. As a consequence, data corresponding to the same crossing have an unpredictable phase at the trigger inputs. The use of test pulses to derive the delays needed in the trigger inputs to achieve synchronisation is subject to uncertainties in the timing of the distributed signals, specially when optical fibers are used to distribute the test signals. In reference [1] we have proposed a new method for the synchronisation of the trigger data which takes profit of the gaps in the LHC bunch structure. In this paper, after a summary of the method, we describe the main characteristics of the synchronisation circuits Tx/Rx and we present preliminary results of the test of a prototype FPGA implementation. 2 hronisation method The LHC bunch structure has 3564 periods of the 40.08 MHz clock in one orbit. The structure has several gaps, that is sequences of missing bunches, of predefined length and location. We will concentrate in the LHC extraction gap (127 missing bunches), that for simplicity we will call the gap. By definition, the first bunch after the gap is called the 'bunch zero'. In addition to the 40 MHz clock, the LHC machine can provide a 'bunch 0 clock' at a frequency of 11.25 khz, the frequency of the LHC orbits. The TTC system [2] distributes to the front-end, trigger and readout electronics, through optical fibers, the timing and trigger control signals. In order to be able to perform the synchronisation operations, the TTC system is programmed to distribute to all trigger synchronisation circuits the Bunch Crossing 0 (BC0) signal 1. The BC0 timing is adjusted to match the arrival of the bunch zero data at the trigger synchronisation circuits. LHC Orbit t=0 (collision) CLK 1 ADC 5 channels strip 5 ADC LUT LUT Common Test Signal Sum Filter BC0 ADC PIPELINE ADC PIPELINE Link transmitter Link receiver LUT Look up Table CLK Clock SYNC hronization circuit TTC Timing and Trigger Control De randomizer TPG Trigger Primitive Generator BCR Bunch Counter Reset BC0 Bunch Crossing 0 The synchronisation circuits placed at the input of the trigger processors make use of s to achieve synchronisation. The key points in the s operation are the following: i) after a clear executed during the gap, the first data entering every must correspond to the bunch zero crossing ; ii) the readout enable of the s is controlled by a common signal arriving simultaneously to every circuit. These resynchronisation operations are performed at every LHC orbit. Phase adjustments between the TTC command BC0 and the trigger data are computed based on statistical data accumulated in the synchronisation circuits. A few minutes of running is in general enough to determine all time settings needed for a synchronous operation of the trigger. During normal running this information is used to monitor the synchronisation stability. The circuits have monitoring mechanisms which allow to identify any loss of synchronisation in an orbit by orbit basis. When such error occurs, the events collected in the anomalous orbit are flagged by the readout system. As an application example, we show in figure 1 a timing diagram of the CMS calorimeter trigger [3]. We assume that, at the output of the linearisers, the data corresponding to the 5 crystals of one strip [4] are synchronous since these data are transmitted through the same fiber ribbon. With this assumption there is no need for a synchronisation step before the first summation. 1 The BC0 signal and the Bunch Counter Reset (BCR) signal defined in the TTC documentation [2] have the same frequency but their phase differs by an amount of the order of the trigger latency. TPG Common Test Signal Regional L1A + Global Trigger TRIGGER PRIMITIVES PIPELINE STRIP ENERGY PIPELINE Figure 1 - Timing diagram of the calorimeter trigger L1A BCR TIME

The synchronisation circuits are placed after the L1 filter which extracts the energy and timing information out of the pulse samples. In this way data presents a sharp transition at the gap boundary that allows a clear identification of the bunch 0. The TTC network distributes the BC0 command to all synchronisation circuits in the calorimeter trigger. Global adjustments of the BC0 phase are made at the top of the calorimeter s TTC sub-network ( module [5]). Individual adjustments are made in the TTC receivers ( [6]) associated to each synchronisation circuit. An independent fan-out network distributes a common BC0 signal and a common clock to synchronise the s readout. The same network is used to distribute test signals synchronously to all trigger inputs. These test signals are used to measure in situ the trigger latency which is needed to adjust the readout pipelines length. Tx Clk Ctrl lines Tx EDC Generator JTAG Control data generator Mux TTC Cmd decod TTC Cmd ACCU Threshold data/sync Tx Clk Rx Disable input Enable input cmd decoder Clear Enable output RxClk Error counter EDC Decod data/sync R/W Counters Error flag Error counter Figure 2 - Block diagram of the hronization Circuit. 3 Trigger synchronisation circuits In each trigger data link, the synchronisation actions are performed by the circuit Tx/Rx (Figure 2). The circuit is divided in two main blocks. The Tx block is responsible for flagging the bunch zero data and for the accumulation of the bunch profile histogram. The Rx block contains the synchronisation and monitors the synchronisation errors. EDC generation and decoding functions are also provided. The Tx/Rx circuit can be used in the two configurations represented in the figure 3. In the first one the functionalities of the Tx and Rx blocks are executed by two circuits located at the two ends of the trigger links and programmed in Tx and Rx modes, respectively. This configuration allows the monitoring of the trigger links: link identification and test functions available in the synchronisation circuits can be used. In the second configuration the synchronisation functions are executed by the same circuit programmed in Tx/Rx mode. 3.1 Flagging the bunch zero The Tx block receives the input data frame together with the clock, receives the TTC commands and outputs the data together with the data/sync flag. This flag is active during the gap. The main blocks of the Tx, shown in figure 2, are the following: - hronization Generator, which generates synchronisation data during the gap; - Multiplexer, which allows to switch between real data and synchronisation data; - Accumulator, which allows to build the bunch profile histogram (see 4); - TTC Command Decoder, which decodes the commands BC0, Start, Stop and Reset. The TTC command BC0, if properly adjusted in time, indicates that the data incoming in the next clock corresponds to the bunch 0. When this command is decoded, the circuit switches the Multiplexer to real data and sets the data/sync flag in data mode. After reception of the BC0 the circuit counts the appropriate number of clock periods in order to identify the start of the gap (SOG). When SOG is reached, the circuit starts the hronization Generator (a simple counter), switches the Multiplexer to synchronisation data and sets the data/sync flag in sync mode. 3.2 hronisation The Rx receives the data frame together with the data/sync flag and the clock (Tx Clk). The Rx Front End TxClk Front End Flag Bunch 0 with common output enable CLK BC0 data/ sync data/sync TxClk TxClk Flag Bunch 0 with common output enable BC0 / Trigger data/sync Processor data/ sync RxClk Trigger Processor Figure 3 - Two configurations using the Tx/Rx ci r- cuit. RxClk

receives also the and the common clock (Rx Clk). The main blocks of the Rx, shown in figure 2, are the following: - The hronization Command Decoder (SCD); - The hronization ; - The Monitor of hronisation Errors. When the data/sync flag at the input enter the sync mode the Rx disables the input: one LHC orbit is completed and in consequence the input of data in the should be inhibited. One of the synchronisation words received during the gap is recognized by the SCD as a clear command. The clear prepares the circuit to receive data from the next LHC orbit. The timing of this command shall be such that all the data from the previous orbit was already read. When the data/sync flag enters the data mode, indicating that the next LHC orbit has started, the input is again enabled. Note that this event can happen at different times in different channels. The input in the hronization is synchronous with the clock TxClk. The RxClk clock drives the readout. It is the responsibility of the fan-out network to distribute RxClk clock to all Rx circuits in the system with exactly the same phase. This guarantees that all the s in the system are read at the same moment and that the trigger data gets synchronised. The read access to the hronization is controlled by the signal. When the Common BC0 is identified, the output is enabled and the next data extracted from the corresponds to the bunch 0. The timing of the must be adjusted in such a way that all the s in the trigger system have already received data from the bunch 0. On the other hand it can not be issued much latter than the latest data to not affect significantly the trigger latency. Again, it is the responsibility of the fan-out network to distribute the command to all Rx with the same phase. In this way we guarantee that the all trigger data is synchronous and corresponds to the same bunch crossing. Similarly, when the SOG condition is reached the circuit disables the output. During the synchronisation gap the circuit outputs zeros in the data bus. The circuit counts the number of writes in and reads from the during one orbit. hronisation is lost if these two numbers are not equal to the number of periods between BC0 and SOG. 4 Timing adjustments In order to have the trigger data well synchronized, the timing of the TTC BC0 commands distributed to the Tx must be adjusted. The method used to compute these time adjustments is based on the ideas pioneered by the RD12 collaboration [2]. The distribution of events as a function of the bunch crossing number (bunch profile histogram) is compared (correlated) with the expected LHC bunch structure to extract the time adjustment. The function of the Accumulator in the synchronisation circuits is to build the bunch profile histogram in-situ. The operation of the Accumulator (ACCU) is the following: - When the command BC0 is received, the is set to zero; - At each clock cycle, the ACCU content (at the current address) is incremented if the input data is above the noise threshold (programmable), and the is incremented; - When the SOG is reached, the circuit stops updating the ACCU content. After a certain number of LHC orbits the ACCU contains the bunch profile histogram with enough statistics to be compared (in the DAQ controllers) with the expected LHC structure. In figure 4 we show typical examples of the bunch profile histograms. The first spectrum reproduces exactly the LHC bunch structure, which means that the command BC0 arrives to the Tx circuit in phase with the data that effectively is produced by the collisions occurring at bunch 0. The other two examples correspond to situations where the BC0 signal is either late or in advance relative to the data. ACCU Content TTC BC0 is on time... 0 3563 TTC BC0 is late... 0 3563 TTC BC0 is in advance... 0 3563 Figure 4 - Examples of expected bunch profile histograms.

LHC LHC Pattern Generator Inputs SB System Board TPG Trigger Primitives Generator SPB Proto Board OB Optical Board SB TPG SPB OB SB TPG SPB OB FLEX 11 khz 40 MHz TTC Tx TTC TTC Brd TTC links VME Bus Fibers VME Bus Figure 5 - The test setup of the CMS calorimeter trigger primitives system TTC 5 Implementation A prototype FPGA implementation of the synchronisation circuits was developed [7]. The Tx and Rx blocks were implemented in two XILINX circuits, the XC4006-E and the XC4013-E, respectively. The implementation of the Accumulators used a set of external RAMs. The Tx and Rx circuits were mounted in a VME module, the hronisation Prototype Board (SPB), together with a circuit. The SPB was included in the CMS Calorimeter Trigger Primitives System test set-up (figure 5). The LHC Pattern Generator module generates 2x6 8 bits 40 MHz patterns which emulate the bunch structure of the LHC orbit. These patterns feed in parallel two trigger channels, composed of the Trigger Primitive Generator (TPG), the Tx, the Trigger Optical Link (1 Gbit/s) and the Rx. The TTC Board, housing a circuit, distributes the to the Rx circuits. The System Board performs control and readout functions. During the tests reported here the TTC system, not yet fully operational, was replaced by a simplified electrical version 1. The first tests of the system were very successful. The circuits performed as expected and stable operation conditions were achieved. In figure 6 we show the bunch profile histograms collected in the Accumulators for different settings of the BC0 delay, demonstrating the system ability to flag the bunch 0. At the time of writing synchronisation stability tests are going on. The time interval needed to accumulate the histograms depends on the channel occupancy and on the statistics required. For example, a precise spectrum with about 1000 events per bin for a channel with occupancy 10-4 takes about 15 mn to accumulate. The DAQ controllers can read the ACCU content without disturbing the circuits main operation. This facility allows to monitor the synchronisation during the data taking. The time adjustment of the at the Rx is less critical. It is intended to verify that the BC0 doesn't arrive too soon, before the data from bunch 0 has arrived to all s, neither too late, in which case the s would reach the full state or the clear signal would happen before the end of the complete readout. In practice, the signal is advanced up to the point where one of the s reaches the empty state. Delaying then the by one clock is enough to guarantee the operation point with the smallest latency. TTC BC0 is late TTC BC0 is on time TTC BC0 is in advance by one bx TTC BC0 is in advance 80 bx 80 bx 8bx Figure 6 - Bunch profile histograms collected in the Accumulators for different settings of the BC0 delay. 6 Conclusions We have presented the principles of the CMS scheme for synchronisation of the trigger data. The method makes use of the LHC bunch gap and allows a resynchronisation of the data every LHC orbit (88 ms). It relies on the distribution by the TTC system of a signal synchronous with the first bunch in the orbit, and is implemented by dedicated synchronisation circuits in each trigger input. Prototype circuits in a FPGA implementation were developed and integrated in the CMS Calorimeter Trigger Primitives System test set-up. The circuits performed as expected and stable operation conditions were achieved. 1 During March 1998 the hronization Test Setup was operated together with a prototype version of the TCC system, which includes one module [5] and respective software, one TTC Transmitter mini-crate and three circuits [6]. The performance of the TTC system was fully satisfactory. 38 bx

References [1] Varela, J. A method for synchronisation of the trigger data. CMS TN/96-011. [2] RD12 Status Report, CERN/LHCC 97-29 (1997) and http://www.cern.ch/ttc/intro.html [3] G. Heath, these proceedings [4] Heath, G. et al. Preliminary specifications of the baseline trigger algorithms. CMS TN/96-10. [5] TTC-VMEbus Interface (), RD12 Working Document. [6] Reference Manual, RD12 Working Document. [7] Silva, J.C. et al. Specifications of the prototype trigger hronisation Tx/Rx Circuits, CMS IN 1997/009