The CERN LHC central timing A vertical slice Pablo Alvarez Jean-Claude Bau Stephane Deghaye Ioan Kozsar Julian Lewis Javier Serrano.

Slides:



Advertisements
Similar presentations
Network II.5 simulator ..
Advertisements

XFEL 2D Pixel Clock and Control System Train Builder Meeting, DESY 22 October 2009 Martin Postranecky, Matt Warren, Matthew Wing.
Computer Architecture
01/11/2002SNS Software Final Design Review1 V123S Event Link Encoder, Transmission System and PLL Receiver Thomas M. Kerner (BNL) SNS Global Controls.
Programmable Interval Timer
Chapter 10 Input/Output Organization. Connections between a CPU and an I/O device Types of bus (Figure 10.1) –Address bus –Data bus –Control bus.
Numerology (P. Baudrenghien) For each ring: Convention 1: The 400 MHz RF defines buckets, spaced by one RF period, and numbered from 1 to Convention.
FIU Chapter 7: Input/Output Jerome Crooks Panyawat Chiamprasert
Dirk Zimoch, EPICS Collaboration Meeting, Vancouver 2009 Real-Time Data Transfer using the Timing System (Original slides and driver code by Babak Kalantari)
Safe Machine Parameters General Machine Timing Cross-Check Safe Machine Parameters General Machine Timing Cross-Check 9 th May v3.
CHAPTER 4 COMPUTER SYSTEM – Von Neumann Model
OS Fall ’ 02 Introduction Operating Systems Fall 2002.
DSP online algorithms for the ATLAS TileCal Read Out Drivers Cristobal Cuenca Almenar IFIC (University of Valencia-CSIC)
OS Spring’03 Introduction Operating Systems Spring 2003.
Chapter 4 Processor Technology and Architecture. Chapter goals Describe CPU instruction and execution cycles Explain how primitive CPU instructions are.
Computer Organization and Assembly language
Chapter 17 Microprocessor Fundamentals William Kleitz Digital Electronics with VHDL, Quartus® II Version Copyright ©2006 by Pearson Education, Inc. Upper.
Group 5 Alain J. Percial Paula A. Ortiz Francis X. Ruiz.
The TIMING System … …as used in the PS accelerators.
Updates on RF synchronization and fast trigger distribution A. Butterworth, H. Damerau, W. Hofle Acknowledgements: T. Bohl, S. Doebert, I. Kozsar, J. Molendijk,
INPUT/OUTPUT ARCHITECTURE By Truc Truong. Input Devices Keyboard Keyboard Mouse Mouse Scanner Scanner CD-Rom CD-Rom Game Controller Game Controller.
Micro-operations Are the functional, or atomic, operations of a processor. A single micro-operation generally involves a transfer between registers, transfer.
SNS Integrated Control System EPICS Collaboration Meeting SNS Machine Protection System SNS Timing System Coles Sibley xxxx/vlb.
INTRODUCE OF SINAP TIMING SYSTEM
MICROPROCESSOR INPUT/OUTPUT
© Janice Regan, CMPT 300, May CMPT 300 Introduction to Operating Systems Principles of I/0 hardware.
CHAPTER 3 TOP LEVEL VIEW OF COMPUTER FUNCTION AND INTERCONNECTION
SNS Integrated Control System SNS Timing Master LA-UR Eric Bjorklund.
Distribution of machine parameters over GMT in the PS, SPS and future machines J. Serrano, AB-CO-HT TC 6 December 2006.
Computer Architecture Lecture10: Input/output devices Piotr Bilski.
Timing upgrades after LS1 Jean-Claude BAU BE-CO-HT1.
Fall 2012 Chapter 2: x86 Processor Architecture. Irvine, Kip R. Assembly Language for x86 Processors 6/e, Chapter Overview General Concepts IA-32.
The CERN LHC central timing A vertical slice
SNS Integrated Control System Timing Clients at SNS DH Thompson Epics Spring 2003.
Timing Requirements for Spallation Neutron Sources Timing system clock synchronized to the storage ring’s revolution frequency. –LANSCE: MHz.
FGC Upgrades in the SPS V. Kain, S. Cettour Cave, S. Page, J.C. Bau, OP/SPS April
1 LTC Timing AB/CO/HT Central timing hardware layout Telegrams and events Postmortem, XPOC LHC Central Timing API Fill the LHC Use Case Julian Lewis.
The CERN LHC central timing A vertical slice Pablo Alvarez Jean-Claude Bau Stephane Deghaye Ioan Kozsar Julian Lewis Javier Serrano.
L/O/G/O Input Output Chapter 4 CS.216 Computer Architecture and Organization.
BP & RS: BIS & SLP for AB/CO Review, 23 h Sept Realisation of the interlocking between SPS, LHC and CNGS and open issues Beam Interlock Systems.
Timing for AP: introduction Javier Serrano AB-CO-HT 15 September 2006.
Processor Structure and Function Chapter8:. CPU Structure  CPU must:  Fetch instructions –Read instruction from memory  Interpret instructions –Instruction.
1 LHC Timing Requirements and implementation J.Lewis for AB/CO/HT 21 st /Sep/06 TC presentation.
Question What technology differentiates the different stages a computer had gone through from generation 1 to present?
GROUP 2 CHAPTER 16 CONTROL UNIT Group Members ๏ Evelio L. Hernandez ๏ Ashwin Soerdien ๏ Andrew Keiper ๏ Hermes Andino.
ESS Timing System Prototype 2012 Miha Reščič, ICS
PART 4: (1/2) Central Processing Unit (CPU) Basics CHAPTER 12: P ROCESSOR S TRUCTURE AND F UNCTION.
CERN Timing Overview CERN timing overview and our future plans with White Rabbit Jean-Claude BAU – CERN – 22 March
بسم الله الرحمن الرحيم MEMORY AND I/O.
Introduction Contain two or more CPU share common memory and peripherals. Provide greater system throughput. Multiple processor executing simultaneous.
1 Events for the SPS Legacy & Common Implications.
PSB ring inhibit in the Linac 4 era A. Blas PSB LIU meeting 07/03/ Summary of discussions involving (mainly): Jose-Luis Sanchez Alvarez Philippe.
TE/TM 30 th March - 0v1 CERN MPP SMP 3v0 - Introduction 3 *fast *safe *reliable *available generates flags & values.
PC Current Interlocking for the SPS Fast Extractions. 1 J. Wenninger July 2009.
LonWorks Introduction Hwayoung Chae.
BIS main electronic modules - Oriented Linac4 - Stéphane Gabourin TE/MPE-EP Workshop on Beam Interlock Systems Jan 2015.
Proposals 4 parts Virtual Accelerator Open CBCM Data Base Cycle Server Quick Fix.
Timing Review Evolution of the central and distributed timing How we got where we are and why What are its strengths and weaknesses.
RF acceleration and transverse damper systems
LHC General Machine Timing (GMT)
SLS Timing Master Timo Korhonen, PSI.
Javier Serrano CERN AB-CO-HT 29 February 2008
Not a BIS expert, not even working on BIS but I’m going to try to present it as completely as possible.
Safe mode transmission
CS 286 Computer Organization and Architecture
Timing System GSI R. Bär / U. Krause 15. Feb. 2008
Control Unit Introduction Types Comparison Control Memory
LHC injection timing simulation
Beam Interlocks for Detectors and Movable Devices
Presentation transcript:

The CERN LHC central timing A vertical slice Pablo Alvarez Jean-Claude Bau Stephane Deghaye Ioan Kozsar Julian Lewis Javier Serrano

Talk layout LHC Injector Chain Timing Timing Distribution Overview Central Timing Overview Reflective Memory UTC Time and GPS The Multitask Timing Generator The Controls Timing Receiver Module Safe Machine Parameters Hardware Checking LHC Software Architecture and Event Tables

R1 LHC CNGS Linac PSB CPS SPS D3 Dump TI8 Dump TI2 Dump SPS Dump R2 LHC TCLP The LHC Proton Injector Chain Strongly time coupled

CERN accelerator network sequenced by central timing generator ….…. PSB CPS SPS LHC Experimental area Experimental area Experimental Area

CBCM Sequence Manager

PSB1 PSB2 PSB3 PSB4 CPS Batch 1CPS Batch 2CPS Batch 3CPS Batch 4 SPS Cycle for the LHC SPS injection plateaux The LHC Beam LSA Beam request: RF bucket Ring CPS batches Extraction Forewarning LHC Injection plateaux Injection Extraction The LHC timing is only coupled by extraction start-ramp event Extraction Forewarning

Talk layout LHC Injector Chain Timing Timing Distribution Overview Central Timing Overview Reflective Memory UTC Time and GPS The Multitask Timing Generator The Controls Timing Receiver Module Safe Machine Parameters Hardware Checking LHC Software Architecture and Event Tables

Timing Distribution Overview RS485 drop nets distribute timing around the CERN accelerator complex Long distance transmission over optical fibers One timing network for each accelerator Hundreds/Thousands of timing receiver modules distributed around the complex One timing generator drives one timing network

Timing Frames Timing frames are Manchester encoded at 500kbit using a 1MHz clock. Each frame carries 32 data bits, parity, start and stop bits. One frame transmitted each 125µs, 8 per millisecond. The frame data is broken into bit fields –4 Bits Accelerator [A] –4 Bits frame Type [T] –8 Bits Code[CODE] –16 Bits Payload [PAYLOAD] Some frames are recognized by the hardware and cause special treatment –Two UTC frames carry the time of day in their payload –Millisecond frames are always sent in phase with the PPS –Telegram frames are stored in double buffers –Event frames cause counters to be loaded and triggered and may produce bus interrupts Millisecond ATCODEPAYLOAD 8 frames

Talk layout LHC Injector Chain Timing Timing Distribution Overview Central Timing Overview Reflective Memory UTC Time and GPS The Multitask Timing Generator The Controls Timing Receiver Module Safe Machine Parameters Hardware Checking LHC Software Architecture and Event Tables

LHC Central Timing Generation CBCM Controlling Injector Chain Gateway FESA API LSA Timing Service SPS destination request R1,R2 CPS Batch Request 1,2,3,4 LIC Timing HIX.FW1K LHC Timing Inhibits Requests Interlocks SIS TI8/TI2 & SPS Dump Inhibits LHC Fill Requests: Bucket Ring Batches Master ON/OFF CTR LHC Fill Requests: Bucket Ring Batches Reflective Memory Link CBCM Sequence Manager LIC Sequence TI8/TI2 Dump Request TI8/TI2 Dump LHC User Request LHC User Normal Spare LSA changes Allowed LSA Master SEX.FW1K SPS.COMLN.LSA_ALW Central Timing Overview

Talk layout LHC Injector Chain Timing Timing Distribution Overview Central Timing Overview Reflective Memory UTC Time and GPS The Multitask Timing Generator The Controls Timing Receiver Module Safe Machine Parameters Hardware Checking LHC Software Architecture and Event Tables

LHC Gateway Implements FESA API 2Gbit/S Token ring VMIACC-5595 Single Mode Hub 64Mbyte VMIPMC-5565 Reflective memory LHC Timing generator A LHC Timing generator B Reflective Memory Reflective memory: A and B must always be in the same state. If no restrictions for switch over Protects token ring Identical except ID event

Talk layout LHC Injector Chain Timing Timing Distribution Overview Central Timing Overview Reflective Memory UTC Time and GPS The Multitask Timing Generator The Controls Timing Receiver Module Safe Machine Parameters Hardware Checking LHC Software Architecture and Event Tables

GPS One pulse per Second GPS Symmetricom XLI PLL One pulse per Second Phase locked 10MHz Basic Period 1200/900/600 ms Advanced (100us) One pulse per Second Synchronized 1KHz (slow timing clock) Phase locked 10MHz Phase looked 40 MHz Event encoding clock 40MHz PLL Synchronization module in each timing generator crate RS485 Timing MTT Multitask Timing Generator MTT UTC time (NTP or GPS) Event tables External events UTC Time and GPS CERN UTC Time Set once on startup & on Leap Seconds RS485 Timing CTR PPS 10 MHz 1 KHz 40MHz Delay Control System CERN UTC Time 25ns steps Timing receiver Symmetricom CS4000 portable Atomic Clock

Talk layout LHC Injector Chain Timing Timing Distribution Overview Central Timing Overview Reflective Memory UTC Time and GPS The Multitask Timing Generator The Controls Timing Receiver Module Safe Machine Parameters Hardware Checking LHC Software Architecture and Event Tables

Multitask Timing Generator MTT Hardware multitasking for 16 tasks –32 local registers per task –218 Global registers –6 Memory mapped IO registers Timing frame out register VME P2 in register … Host processor access to all registers Implements general purpose CPU –Op-codes are triadic: AND SrcREG,SrcREG,DstREG – AND 0x7,VMEP2,TMP Arithmetic and logical Move indexed, literal, register Wait value, relative Conditional branch Interrupt host Tasks defined from host via Task Control Block –PC –PC Offset –Processor Status Word Command and status registers allow host access to running tasks

MTT hardware module See: The LHC central timing hardware implementation P. Alvarez, J. Lewis, J. Serrano CERN, Geneva, Switzerland This conference

MTT External Events Task

Talk layout LHC Injector Chain Timing Timing Distribution Overview Central Timing Overview Reflective Memory UTC Time and GPS The Multitask Timing Generator The Controls Timing Receiver Module Safe Machine Parameters Hardware Checking LHC Software Architecture and Event Tables

Controls Timing Receiver CTR Hybrid PLL Delay Frame Decoder TGM UTC Content Addressed Memory - Triggering Counter Configurations Loader 22Bit 50MHz Counters Bus Interrupt Output Timing 40MHz Lookup Load Trigger Start Previous External Event Clock Previous 40MHz harmonic External Modes Once Multi-pulse Burst Trigger Event frame Wildcard Telegram Action Output Bus interrupt Output TTL/TTL bar Pulse width CTRV – CTRI – CTRP formats

Talk layout LHC Injector Chain Timing Timing Distribution Overview Central Timing Overview Reflective Memory UTC Time and GPS The Multitask Timing Generator The Controls Timing Receiver Module Safe Machine Parameters Hardware Checking LHC Software Architecture and Event Tables

Reads 10 8 Safe Machine Parameters Controller for LHC Energy A I_beam1 & 2 Reads status Energy B BEM BCT “A” BEM Management Critical Settings (CTRV) CTRV CTRx LSA BCT “B” EXP Line driver LHC Timing Generator 10Hz 16Bit (Flags, E & Int.) BLM CTRV BLM CTRV BIS CTRV Kickers Timing Network Events, UTC, & Telegrams (including SMP) Safe Machine Parameters Distribution BIS CTRx EXP Flags TTL Hw Output If length > 5m

Talk layout LHC Injector Chain Timing Timing Distribution Overview Central Timing Overview Reflective Memory UTC Time and GPS The Multitask Timing Generator The Controls Timing Receiver Module Safe Machine Parameters Hardware Checking LHC Software Architecture and Event Tables

LSA and FESA The FESA API is implemented on the LHC timing gateway Accesses timing generators across reflective memory Implements –Load or Unload event table –Get running tables list –Set event table run count and synchronization event –Stop or Abort event table –Set telegram parameters –Send event –Read status of tasks and MTT module

Garbage Collect Load object Initialize TCB Run task Assemble task Translate and Merge HX.Start-Ramp x5 HX.Start-Freq 0 0x05 waitr MSFR,1001 movv 0x EVOUT movv 0x EVOUT Event Table Processing FESA API LSA Event Table Table Compiler Translation Event Table template Table Task Assembler Object Code Reflective Memory Task Loader MTT Program Memory Hot Standby Data Process

Conclusion –Event tables model LHC machine processes. –Reuse of existing timing boards was facilitated by using FPGAs and writing new VHDL. –The LHC timing is monitored by hardware. –Reflective memory has increased reliability.