The LHCb Timing and Fast Control system

Similar documents
CMS Conference Report

LHCb and its electronics.

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

CMS Tracker Synchronization

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

BABAR IFR TDC Board (ITB): system design

Name Of The Experiment: Sequential circuit design Latch, Flip-flop and Registers

Logic Design ( Part 3) Sequential Logic- Finite State Machines (Chapter 3)

Description of the Synchronization and Link Board

Laboratory 4. Figure 1: Serdes Transceiver

The ATLAS Level-1 Central Trigger

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

Digital Audio Broadcast Store and Forward System Technical Description

MODULE 3. Combinational & Sequential logic

CPS311 Lecture: Sequential Circuits

BER MEASUREMENT IN THE NOISY CHANNEL

Counters

LHCb TFC Installation

UNIT IV. Sequential circuit

(Refer Slide Time: 2:00)

Netzer AqBiSS Electric Encoders

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

PICOSECOND TIMING USING FAST ANALOG SAMPLING

Beam Phase and Intensity Monitor for LHCb

Logic Design ( Part 3) Sequential Logic (Chapter 3)

Operating Manual Ver.1.1

SPATIAL LIGHT MODULATORS

CONVOLUTIONAL CODING

THE USE OF forward error correction (FEC) in optical networks

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

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

Part 4: Introduction to Sequential Logic. Basic Sequential structure. Positive-edge-triggered D flip-flop. Flip-flops classified by inputs

Asynchronous (Ripple) Counters

Counter dan Register

CHAPTER 6 DESIGN OF HIGH SPEED COUNTER USING PIPELINING

application software

Low Power VLSI Circuits and Systems Prof. Ajit Pal Department of Computer Science and Engineering Indian Institute of Technology, Kharagpur

PEP-II longitudinal feedback and the low groupdelay. Dmitry Teytelman

ELMB Full Branch Test

application software

More Digital Circuits

Digital Circuits 4: Sequential Circuits

Sector Processor to Detector Dependent Unit Interface

CHAPTER 6 ASYNCHRONOUS QUASI DELAY INSENSITIVE TEMPLATES (QDI) BASED VITERBI DECODER

Front End Electronics

Major Differences Between the DT9847 Series Modules

BUSES IN COMPUTER ARCHITECTURE

TTC laser transmitter (TTCex, TTCtx, TTCmx) User Manual

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

READOUT ELECTRONICS FOR TPC DETECTOR IN THE MPD/NICA PROJECT

Chapter 4. Logic Design

MTL Software. Overview

Advanced Training Course on FPGA Design and VHDL for Hardware Simulation and Synthesis. 26 October - 20 November, 2009

Solutions to Embedded System Design Challenges Part II

DSA-1. The Prism Sound DSA-1 is a hand-held AES/EBU Signal Analyzer and Generator.

Spatial Light Modulators XY Series

Digital Audio Design Validation and Debugging Using PGY-I2C

FPGA Development for Radar, Radio-Astronomy and Communications

Front End Electronics

VARIABLE FREQUENCY CLOCKING HARDWARE

CS 110 Computer Architecture. Finite State Machines, Functional Units. Instructor: Sören Schwertfeger.

Notes on Digital Circuits

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

Digital Transmission System Signaling Protocol EVLA Memorandum No. 33 Version 3

TSIU03, SYSTEM DESIGN. How to Describe a HW Circuit

ASYNCHRONOUS COUNTER CIRCUITS

Tebis application software

Zebra2 (PandA) Functionality and Development. Isa Uzun and Tom Cobb

Using the MAX3656 Laser Driver to Transmit Serial Digital Video with Pathological Patterns

VNP 100 application note: At home Production Workflow, REMI

Introduction. Serial In - Serial Out Shift Registers (SISO)

CS3350B Computer Architecture Winter 2015

DIGITAL COMMUNICATION

B. The specified product shall be manufactured by a firm whose quality system is in compliance with the I.S./ISO 9001/EN 29001, QUALITY SYSTEM.

Digital Fundamentals

Sequential Circuit Design: Part 1

GREAT 32 channel peak sensing ADC module: User Manual

VTU NOTES QUESTION PAPERS NEWS RESULTS FORUMS Registers

Laboratory Exercise 4

DT3162. Ideal Applications Machine Vision Medical Imaging/Diagnostics Scientific Imaging

CHAPTER 4: Logic Circuits

Tebis application software

Exercise 1-2. Digital Trunk Interface EXERCISE OBJECTIVE

Scanned by CamScanner

Multiplex Serial Interfaces With HOTLink

16-Bit DSP Interpolator IC For Enhanced Feedback in Motion Control Systems

Logic Design. Flip Flops, Registers and Counters

(51) Int Cl.: H04L 1/00 ( )

A Quasi-Static Optoelectronic ATM Switch

Snapshot. Sanjay Jhaveri Mike Huhs Final Project

Notes on Digital Circuits

The Lincoln TX-2 Input-Output System*

Long and Fast Up/Down Counters Pushpinder Kaur CHOUHAN 6 th Jan, 2003

DIGITAL SYSTEM FUNDAMENTALS (ECE421) DIGITAL ELECTRONICS FUNDAMENTAL (ECE422) LATCHES and FLIP-FLOPS

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC Certified)

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

Model 4455 ASI Serial Digital Protection Switch Data Pack

THE LXI IVI PROGRAMMING MODEL FOR SYNCHRONIZATION AND TRIGGERING

Techniques for Extending Real-Time Oscilloscope Bandwidth

Topic D-type Flip-flops. Draw a timing diagram to illustrate the significance of edge

Transcription:

The LCb Timing and Fast system. Jacobsson, B. Jost CEN, 1211 Geneva 23, Switzerland ichard.jacobsson@cern.ch, Beat.Jost@cern.ch A. Chlopik, Z. Guzik Soltan Institute for Nuclear Studies, Swierk-twock, Poland arek@ipj.gov.pl, zbig@ipj.gov.pl Abstract In this paper we describe the LCb Timing and Fast (TFC) system. It is different from that of the other LC experiments in that it has to support two levels of highrate triggers. Furthermore, emphasis has been put on partitioning and on locating the TFC mastership in one type of module: the Supervisor. The Supervisor handles all timing, trigger, and control command distribution. It generates auto-triggers as well as controls the trigger rates. Partitioning is handled by a programmable patch panel/switch introduced in the TTC distribution network between a pool of Supervisors and the Front-End electronics. I. INTCTIN LCb has devised a Timing and Fast (TFC) system[1] to distribute information that must arrive synchronously at various places in the experiment. Examples of this kind of information are: LC clock Trigger decisions eset and synchronization commands Bunch crossing number and event number Although the backbone of the timing, trigger and control distribution network is based on the CEN 12 system (TTC)[2], several components are specific to the LCb experiment due to the fact that the readout system is different from that of the other experiments in several respects. Firstly, the LCb TFC system has to handle two levels of high-rate triggers: a Level 0 () trigger with an accept rate of maximum 1.1 Mz and a Level 1 () trigger with an accept rate of maximum 40-100 kz. This feature reflects itself in the architecture of the Front-End electronics, which consists of a part and a part (see Figure 1). The Front-End (FE) electronics samples the signals from the detector at a rate of 40 Mz and stores them during the duration of the trigger processing. The event data are subsequently derandomized before being handed over to the FE electronics. The FE electronics buffers the data during the trigger processing, de-randomizes the events before it zero-suppresses the data, and finally feds the data into the A system for event building. Secondly, the TFC architecture has been designed with emphasis on partitioning[3]. A partition is in LCb a generic term, defined as a configurable ensemble of parts of a subdetector, an entire sub-detector or a combination of subdetectors that can be run in parallel, independently and with a different timing, trigger and control configuration than any other partition. Furthermore, the aim has been to locate the entire TFC mastership of a partition in a single module. The trigger decision units are also considered as sub-detectors. Level 0 Trigger Level 1 Trigger 40 Mz 1 Mz Timing 40 kz Fast 1 Mz Throttle ariable latency L2 ~10 ms L3 ~200 ms Storage LC-B etector ET TACK ECAL CAL MN IC SFC Level-0 Front-End Electronics Level-1 Front-End Multiplexers (FEM) Front End Links ead-out units () ead-out Network (N) SFC Sub-Farm lers (SFC) Trigge r Level 2 3 Event Filter Figure 1: verview of the LCb readout system. II. SE F TE TTC SYSTEM LAN Monitoring ata rates 40 TB/s 1 TB/s 6-15 GB/s 6-15 GB/s 50 MB/s The TTC system has been found to suite well the LCb application. The LC clock is transmitted to all destinations using the TTC system and Channel A is used as it was intended, i.e. to transmit the LCb trigger decisions to the FE electronics in the form of a accept/reject signal at 40 Mz.

Channel B supports several functions: Transmission of the Bunch Counter and the Event Counter eset (BC/EC). Transmission of the trigger decision (~1.1 Mz). Transmission of Front-End control commands, e.g. electronics resets, calibration pulse triggering etc. Table 1: Encoding of the Channel B broadcasts. stands for reserve bit. 6 5 4 3 2 1 0 Trigger 1 Trigger type EventI 0 0 eset 0 1 EvI FE FE EC Calibration 0 0 0 1 Pulse type 0 0 Command 0 0 BC The information is transmitted in the form of the short broadcast format[4], i.e. 16 bits out of which two bits are dedicated to the BC/EC and six bits are user defined. From the TTC bandwidth it follows that a maximum of ~2.5 Mz of broadcasts can be transmitted. The eight bits are encoded according to Table 1. A priority scheme determines the order in which the different broadcasts are transmitted in case they clash. III. TFC CMPNENTS SPECIFIC T LCB The TFC architecture is shown in Figure 2. It incorporates a pool of TFC masters, Supervisors[5], one of which is interfaced to the central trigger decision units and that is used for normal data taking. The other Supervisors are reserves and can be invoked for tests, calibrations and debugging. The reserve Supervisors also allow connecting local trigger units. The TFC Switch[6] distributes the TTC information to the Front-End electronics and the Throttle Switches[6] feed back hardware throttle signals from the trigger system, the de-randomizers and components in the data-driven part of the A system, to the appropriate Supervisors. The Throttle s[6] form a logical of the throttle signals from sets of Front-End electronics. A GPS system allows time-stamping the local event information sampled in the Supervisor. LC clock Clock fanout BC and BC Local trigger (optiona l) trigger 1 trigger 1 Supervisor Supervisor GPS receiver Sup er visor Throttle switch trig ger sy stem TFC switch Throttle switch S1 TTCtx S2 TTCtx Sn TTCtx TTCtx TTCtx ptical couplers ptica l co uplers ptica l coup lers ptical couplers TTC system E E FEc hip E E Contr ol E E FEc hip buffer buffer SP SP Throttle Contr ol E E buffer FEc b uffe hip r SP SP Throttle A A Figure 2: verview of the TFC architecture.

I. TE EAT SPEIS The Supervisor has been designed with emphasis on versatility in order to support many different types of running mode, and modifiability for functions to be added and changed easily. Below is a summary of the most important functions. A complete description can be found in eference [5]. The TTC encoder circuit incorporated in each Supervisor receives directly the LC clock and the orbit signal from the TTC machine interface (TTCmi). The clock is distributed on the board in a star fashion and is transmitted to all synchronous destinations via the TTC system. The Supervisor receives the trigger decision from the central trigger ecision nit (), or from an optional local trigger unit, together with the Bunch Crossing I. In order to adjust the global latency of the entire trigger path to a total of 160 cycles, the Supervisor has a pipeline of programmable length at the input of the trigger. Provided no other changes are made to the system, the depth of the pipeline is set once and for all during the commissioning with the first timing alignment. The Bunch Crossing I received from the is compared to the expected value from an internal counter in order to verify that the is synchronized. For each trigger accept, the source of the trigger (3-bit encoded) together with a 2-bit Bunch Crossing I, a 12-bit Event I (number of triggers accepted), and a force bit is stored in a FIF. The force bit indicates that the trigger has been forced and that consequently the trigger decision should be made positive, irrespective of the decision of the central trigger ecision nit (). The information in the FIF is read out at the arrival of the corresponding trigger decisions from the. The S receives the trigger decision together with a 2- bit Bunch Crossing I and a 12-bit Event I. The two incoming Is are compared with the Is stored in the FIF in order to verify that the is synchronized. If the force bit is set the decision is converted to positive. The 3-bit trigger type and two bits of the Event I is subsequently transmitted as a short broadcast according to the format in Table 1. In order to space the trigger decision broadcasts a de-randomizer buffer has been introduced. The Supervisor controls the trigger rates according to the status of the buffers in the system in order to prevent overflows. As the distance and the high trigger rate, the de-randomizer buffer occupancy cannot be controlled in a direct way. owever, as the buffer activity is completely deterministic, the S has a finite state machine to emulate the occupancy. This is also the case for the buffer. In case an overflow is imminent the S throttles the trigger, which in reality is achieved by converting trigger accepts into rejects. The slower buffers and the event-building components feed back throttle signals via hardware to the S. ata congestion at the level of the L2/L3 farm is signalled via the Experiment System (ECS) to the onboard ECS interface, which can also throttle the triggers. Stopping data taking via the ECS is carried out in the same way. For monitoring and debugging, the S has history buffers that log all changes on the throttle lines. The S also provides several means for auto-triggering. It incorporates two independent uniform pseudo-random generators to generate and triggers according to a Poisson distribution. The S also has a unit running several finite state machines synchronized to the orbit signal for periodic triggering, periodic triggering of a given number of consecutive bunch crossings (timing alignment), triggering at a programmable time after sending a command to fire a calibration pulse, triggering at a given time on command via the ECS interface etc. The source of the trigger is encoded in the 3-bit trigger qualifier. The S also has the task of transmitting various reset commands. For this purpose the S has a unit running several finite state machine, also synchronized to the orbit signal, for transmitting Bunch Counter esets, Event Counter esets, FE electronics reset, + electronics reset, Event I resets etc. The S can be programmed to send the commands regularly or solely on command via the ECS interface. The Bunch Counter and the Event Counter eset have highest priority. Any clashing broadcast is postponed until the first broadcast is ready ( trigger broadcast) or until the next LC orbit (reset, calibration pulse, and all miscellanous commands). The S keeps a large set of counters that record its performance and the performance of the experiment (deadtime etc.). In order to get a consistent picture of the status of the system, all counters are samples simultaneously in temporary buffers waiting to be read out via the onboard ECS interface. K (6LIF LJJF 56)(G // '$4 (6 / /+FFN FG K$% / / 'GPL] LJJJ 5FPPG J Figure 3: Simplified logical diagram of the Supervisor showing the basic functions. The S also incorporates a series of buffers analogous to a normal Front-End chain to record local event information and provide the A system with the data on an event-by-event basis. The S data block contains the true bunch crossing I and the Event Number, and is merged with the other event data fragments during the event building.

The ECS interface is a Credit Card PC through which the entire S is programmed, configured, controlled, and monitored. Note that in order to change the trigger and control mode of the S for testing, calibrating and debugging it is not necessary to reprogram any of the FPGAs. All functionality is set up and activated via parameters that can be written at any time. LJJ same timing, trigger, and control information. ence the TTCtx define the partition elements. The TFC Switch has been designed as a 16x16 switch and thus allows the LCb detector to be divided into 16 partition elements. To increase the partition granularity an option exists whereby four TFC Switches are deployed in order to divide the LCb detector into 32 partitions (Figure 6). 5GX6XSYL 56 56 56 56 56 )6ZLFK )6ZLFK K256ZLFK )6ZLFK )6ZLFK )6ZLFK Figure 4: The TFC architecture simplified to show an example of partitioning. A. The TFC Switch and Partitioning A good partitioning scheme is essential in order to carry out efficient commissioning, testing, debugging, and calibrations. The LCb TFC partitioning is shown by an example in figure 4, in which the TFC architecture in Figure 2 has been simplified. The TFC Switch allows setting up a partition by associating a number of partition elements (e.g. sub-detectors) to a specific Supervisor (Figure 5). The Supervisor can then be configured to control and trigger the partition in whatever specific mode that is required. In the example in figure 4, the partition elements 2 5 are running with the central S, which is interfaced to the central triggers. Partition element 1 is simultaneously running a stand-alone run with a separate S. The three other Supervisors are idle and can be reserved at any time for other partitions. Note that the TFC Switch is located before the TTC optical transmitters (TTCtx) and that it is handling the encoded TTC signals electrically. The configuring of the TFC Switch is done via the standard LCb ECS interface incorporated onboard: the Credit Card PC. )6ZLFK 3I5GX6XSYL $,138+$11(/6 % 2838+$11(/6,IF )(GJXSGE\[2SLFFXSSLLP Figure 5: The principle of the TFC Switch. From the architecture of the system it follows that the FE electronics that is fed by the same TTCtx is receiving the L P I L LF F G G F )(G Figure 6: Four TFC Switches put together to increase the partition granularity to 32. A crucial point concerning the TFC Switch is that all internal paths from input to output must have equal propagation delays. therwise, the partition elements will suffer from timing alignment problems using different Supervisors. Measurements performed on the first prototype of the TFC Switch shows that it will be necessary to add adjustable delays at the outputs due to strongly varying propagation delays in the 16:1 multiplexers used. B. The Throttle Switches and the Throttle s The function of the Throttle Switches is to feed back the throttle information to the appropriate Supervisor, such that only the Supervisor in control of a partition is throttled by the components within that partition. Figure 4 shows an example of how they are associated. The logical operation of the Throttle Switch is to perform a logical of the inputs from the components belonging to the partition (Figure ). The system incorporates two Throttle Switches, a and a Throttle Switch. The sources of throttles are essentially the components that feed the trigger system. The sources of throttles are the de-randomizers and the event building components. K6ZLFK 3I5GX6XSYL $ 2838+$11(/6,138+$11(/6 %,IF )(GFJXSGE\K25LaK6ZLFK Figure : The principle of the Throttle Switches. For monitoring and debugging, the Throttle Switches keep a log of the history of the throttles. A transition on any of the LJ K

throttle lines trigger the state of all throttle lines together with a time-stamp to be stored in a FIF. The configuring and the monitoring of the Throttle Switches are done via the standard LCb ECS interface. The Throttle s group throttle lines belonging to the same partition elements. They are identical to the Throttle Switches in all aspects except that they all inputs and have only one output. I. CNCLSINS The LCb Timing and Fast (TFC) system and the use of the TTC system are well established. The Supervisor incorporates all mastership in a single module and it provides a lot of flexibility and versatility. Partitioning is well integrated through the TFC Switch and the Throttle Switches. The architecture and the components have been put through two reviews and the system is now in the prototyping phase.. EFEENCES [1]. Jacobsson and B. Jost, The LCb Timing and Fast system, LCb 2001-016 A. [2] -12 ocumentation on (http://www/cern.ch/ttc/intro.html) and references therein. [3] C. Gaspar,. Jacobsson, B. Jost, Partitioning in LCb, LCb 2001-116 A. [4] B. Jost, The TTC Broadcast Format (proposal), LCb 2001-01 A. [5].Jacobsson, B. Jost, Z. Guzik, Supervisor esign Specifications, LCb 2001-012 A. [6] Z. Guzik, ichard Jacobsson, and B. Jost, The TFC Switch specifications, LCb 2001-018 A.