The CERN LHC central timing A vertical slice

Slides:



Advertisements
Similar presentations
Network II.5 simulator ..
Advertisements

CPU Structure and Function
Computer Architecture
I/O Organization popo.
01/11/2002SNS Software Final Design Review1 V123S Event Link Encoder, Transmission System and PLL Receiver Thomas M. Kerner (BNL) SNS Global Controls.
Dr. Rabie A. Ramadan Al-Azhar University Lecture 3
MICROPROCESSORS TWO TYPES OF MODELS ARE USED :  PROGRAMMER’S MODEL :- THIS MODEL SHOWS FEATURES, SUCH AS INTERNAL REGISTERS, ADDRESS,DATA & CONTROL BUSES.
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.
Microprocessor and Microcontroller
Processor System Architecture
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.
Computer System Overview
FIU Chapter 7: Input/Output Jerome Crooks Panyawat Chiamprasert
1 Hardware and Software Architecture Chapter 2 n The Intel Processor Architecture n History of PC Memory Usage (Real Mode)
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
The TIMING System … …as used in the PS accelerators.
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.
8253 TIMER. Engr 4862 Microprocessors 8253 / 8254 Timer A.k.a. PIT (programmable Interval Timer), used to bring down the frequency to the desired level.
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 CPU Central Processing Unit. 2 Reminder - how it fits together processor (CPU) memory I/O devices bus.
The CERN LHC central timing A vertical slice Pablo Alvarez Jean-Claude Bau Stephane Deghaye Ioan Kozsar Julian Lewis Javier Serrano.
© 2004, D. J. Foreman 1 Computer Organization. © 2004, D. J. Foreman 2 Basic Architecture Review  Von Neumann ■ Distinct single-ALU & single-Control.
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
Sept-2003Jean-Claude BAU1 SEQUENCING AT THE PS Let’s take a quick tour.
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.
EFLAG Register of The The only new flag bit is the AC alignment check, used to indicate that the microprocessor has accessed a word at an odd.
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?
PART 4: (1/2) Central Processing Unit (CPU) Basics CHAPTER 12: P ROCESSOR S TRUCTURE AND F UNCTION.
GMT Config. for the experiments: Summary of received requests / LEADE Meeting 4 th Feb.08 / B.P. 1 Summary of received requests for Safe Machine Parameters.
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.
1 Basic Processor Architecture. 2 Building Blocks of Processor Systems CPU.
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.
1 Synchronization and Sequencing for high level applications Julian Lewis AB/CO/HT.
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)
Interrupts and signals
Timer and Interrupts.
Javier Serrano CERN AB-CO-HT 29 February 2008
Programmable Interval Timer
Safe mode transmission
An Introduction to Microprocessor Architecture using intel 8085 as a classic processor
Programmable Interval timer 8253 / 8254
Programmable Interval timer 8253 / 8254
LHC injection timing simulation
Chapter 13: I/O Systems.
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 The CERN central timing overview Hardware Software Accelerator complex, LHC injector chain Cycles and Super-cycles The LHC beam, UTC machine, Synchronization Hardware Central timing layout Reflective memory Event frames and their distribution Clocks and calibration The Controls Timing Receiver module CTR The Multitasking Timing generator module MTT Safe Parameters Verification The CTR hardware support for safety critical situations Postmortem behavior Software LSA and FESA requirements Telegrams and events MTT tasks and event tables The table compiler, assembler and task loader

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

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

Beam Coordination Diagram BCD editor

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

RF Synchronization

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

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

Reflective Memory XMEM Daemon DMA manager Topology management Memory initialization Configuration data XMEM segment Driver Library Synchronization Library calls Client RT task Shared memory segment Token Ring DMA

Event frames Timing frames are encoded at 500KBit/S using a 1MHz clock. Each frame carries 32 data bits. One frame transmitted each 128us, 8 per millisecond. Frames are broken into bit fields 4 Bits Accelerator [A] 4 Bits frame Type [T] 8 Bits Code [CODE] 16 Bits Payload [PAYLOAD] Some frame 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 A T CODE PAYLOAD Millisecond Millisecond

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

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

Timing receiver function Counting Sequence C0 C1200 Loading Event Telegram Counter Load Delay Cycle A Clock Cycle A Enable Cycle A Cycle A Counter Start Counter Output Counting Acquisition Performed by RT task Telegram Ready

Multitask Timing Generator MTT Implements general purpose CPU with memory mapped IO registers Event Out register VME P2 In register Free running millisecond register Op-codes are triadic: AND REG,REG,REG – AND 0x7,VMEP2,TMP Arithmetic and logical Move indexed, literal, register Wait value, relative Conditional branch Interrupt host Hardware multitasking for 16 tasks based on work space pointer, all available to host 32 local registers per task 218 Global registers 6 Memory mapped IO registers Host processor access to all registers 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

Simplified Layout of the Safe Machine Parameters Distribution If length > 5m SMP @ 10Hz 16Bit 1010 (Flags, E & Int.) Events, UTC, & Telegrams (including SMP) Flags TTL Hw Output Energy A EXP Line driver BEM @1kHz-24Bit 108 CTRx CTRx CTRx CTRx BEM Safe Machine Parameters Controller for LHC LHC Timing Generator EXP Energy B BLM CTRV BCT “A” CTRV BLM CTRV BLM I_beam1 & 2 (CTRV) Timing Network BCT “B” BIS Kickers CTRV CTRV Kickers Reads thresholds Reads status LHC Beam Sequencer Management Critical Settings BIS CTRV CTRV BIS CTRV BIS main Safe Machine Parameters for LHC: Energy Safe Beam Flags Movable Devices Allowed Flag Safe Injection Flags (new) B.P. 23rd Aug.07

CTRV Timing receivers Safe Parameters HX.SBF1 & Safe Load Out Beam Energy is available directly on P2 serially encoded Delay=1 ms Start Clock Safe Beam Flag (Level) GMT 1MHz Divide Pulse Stretcher Out Delay=40 Safe Start Clock Stop 40MHZ Dangerous HX.SBF1 & Safe Load Out Delay=10^6 ms Start SBF1/2 sent at 10 Hz Clock

Postmortem Event suppression Two counters are used in the CTR, one per Beam-Permit-Flag (BPF) Each counter clock is connected to one of the BPF flags The "Disable Post-Mortem Ring 1" event disables the counter connected to BPF-1 The "Enable Post-Mortem 1" event enables the counter connected to BPF-1 When the counter is disabled and the BPF goes down nothing happens When its enabled the counter makes an output triggering the PM event It will be sent twice if both counters are enabled and both rings are dumped CTR CTG-MTT BPF1 CLK Delay=1 Disabled Disabled Warn-Inject Loads LSA VME/P2 PM-1 Suppress Table BPF2 CLK Delay=1 Enabled Enabled LHC GMT Dump-1 PM Disable-1, Enable-1

MTT External Events Task

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

Telegrams and events The telegram is a set of parameters that describes the machine state Telegrams are distributed each second Each telegram parameter is shadowed by an event Real time tasks subscribe to events and read the telegram to know the current machine state

MTT Telegram Task

Event tables Event tables are ASCII strings sent from LSA to the LHC timing gateway Each entry in the table contains The name of the event to send “HX.START-RAMP” The relative time to wait in seconds before sending the event “1.01” The payload the event will carry “0x0005” A carriage-return <CRTN> terminates the entry The table run count and synchronization event will be filled in later when the table is to be executed

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

Event Table processing The table-compiler output assembler code containing wait and send operations corresponding to the table entries WAITR MSFR 1001 MOVE 0x14020005 EVOUT The table-compile then builds a task by including the above output into an event table task template The assembler takes the above code and assembles it into position independent object code The table loader locates free program memory (it may need to do garbage collection) and loads the object into it. It then initializes a TCB and starts the task running. The task runs and sets its status to “Waiting-run-parameters” and waits for LSA to set them Positive Run-Count (Or run forever) Synchronization event (Or ignore)

MTT Event Table Template