1 / 20

LCLS-I/LCLS-II Timing System Low Level

LCLS-I/LCLS-II Timing System Low Level. Kukhee Kim for LCLS Timing Team ICD Software, SLAC National Accelerator Laboratory October 22, 2012. Event System is a most complicated system!. Accelerator complex for current and future (LCLS-I, LCLS-II and …). TS4, and TS1. TS6, and TS3.

slone
Télécharger la présentation

LCLS-I/LCLS-II Timing System Low Level

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. LCLS-I/LCLS-II Timing SystemLow Level Kukhee Kim for LCLS Timing TeamICD Software, SLAC National Accelerator Laboratory October 22, 2012

  2. Event System is a most complicated system!

  3. Accelerator complex for current and future(LCLS-I, LCLS-II and …) TS4, and TS1 TS6, and TS3 TS5 and TS2

  4. 360Hz – constraint: What is the timeslots? LCLS-II FACET LCLS-I LCLS-II LCLS-I FACET

  5. Legacy Timing System • SLC timing system • The Linac is a Pulsed Machine (get a packet of beam per pulse) runs at a max of 360Hz (120Hz) • Three Main Timing Signals: • Hardware • 476MHz Master Accelerator Clock (runs down 2mile Heliax Main Drive Line cable) • 360Hz Fiducial Trigger / encoded onto the 476MHz master clock • Software – MPG (Master Pattern Generator) • 128-Bit PNET (Pattern Network) Digital Broadcast (contains time slot, trigger setup, beam type & rate information, beam destination) • Provide the timing pattern 3 fiducial prior • Advantage of the Legacy system • Physicists & Operator are used to the old system • Provide event patterns 3 fiducial prior • give a time margin to slow device, or pre-trigger up to 2 fiducial ahead

  6. Old architecture for the LCLS-I Timing System Linac main drive line ~ Low Level RF FIDO PDU Raw 360 Hz LCLS Timeslot Trigger LCLS Timing System components are in RED 476 MHz LCLS Master Oscillator Sync/Div Linac Master Osc 119 MHz 360 Hz System is based around the EVent Generator and EVent Receiver SLC MPG P N E T I O C E V G F A N LCLS events SLC events fiber distribution Precision<10 ps * EPICS Network Digitizer LLRF BPMs Toroids Cameras Wire Scanner SLC klystrons I O C E V R D E V TTL * m P P N E T P D U TTL-NIM convert. SLC Trigs *MicroResearch

  7. LCLS-I Timing System • LCLS Timing System • Use MRF EVG and EVRs • Generate event code at 360 Hz based on: • PNET pattern input (beam code + 128 bits pattern that define beam path and other conditions, scheduled information) • Receive MPS*) information (real-time information), and queue it up into the pattern pipeline (pipeline bypass for quasi real-time) • Add LCLS information (MPS, BPM calibration, diagnostics and ….) • Extend the pattern to 192 bits • Hardwired BCS fault • Send out timing pattern, including EPICS timestamp with encoded pulse ID on the timing fiber • Manage user-defined Beam Synchronous Acquisition (BSA) MPS*) Please, see the talk for LCLS Machine Protection System (M. Boyes) in hardware solution session (16:30 – 16:50 Oct 22, 2012)

  8. How to work the EVG • PNET message broadcast from the old timing system (following a fiducial, 360 Hz rate) • PNET receiver in EVG IOC generates IRQ • EVG software takes the PNET data and uses it to assign the proper event codes (the PNET data pipelined 3 fiducial ahead) • Event code setup in EVG one cycle head • Next fiducial is sent: 360 Hz fiducial signal received by EVG • The EVG begins to send out the event codes in its Sequence RAM • The event codes get sent across the timing fiber links to the EVRs • Inside the EVR, its mapping RAM is set to map a specific HW trigger to an event code • when the Event Code matches the same value in the mapping RAM, a hit is generated and after a programmed delay, a HW trigger is output form the EVR to the device

  9. How to work the EVR • Set trigger delays, pulse width, and enable/disable via user requests • Set event code per trigger • Receive timing pattern ~8.3 msec (3 fiducials prior) before corresponding pulse. Provides EPICS timestamp to record processing • Perform BSA based on tags which are set by EVG in the timing pattern • Process pre-defined records when specific event codes are received

  10. Timeline for the EVR Record processing (event, interrupt) Hardware Triggers Receive pattern for 3 pulses ahead Triggering Event Codes Beam Kly Standby Event Timestamp, pattern records, and BSA ready Start End Acq Trigger Kly Accel Fiducial Event Received Fiducial Fiducial B0 F0 F1 … ~40 ~500 0 1023 2778 100 0.3 110 Time (usec)

  11. Upgrade Timing system for both LCLS-I and LCLS-II • Main Goals • Remove the dependency with the SLC timing system • Independent EVG for each beam program • LCLS-I, LCLS-II, FACET, XTA and future beam programs • Promise for independent operation • Relieves the pain from limited event number (255 limitation) • Keep compatibility with old system, keep SLAC specific features (advantage of the legacy system) • Beam code and timing pattern pipeline: • For pattern aware operation • BSA • Event Code Sequence for photon group • Covers various platforms for EVR: RTEMS, linux, and linuxRT • LCLS-I, and LCLS-II both are going to use various hardware platforms • VME, PMC, Standard PC, uTCA, and COM-X • Need to support linux/linuxRT for new hardware platform

  12. Timing System Upgrade Cont’d • Upgrade • Develop a new hardware called VMTG: VME based Master Trigger Generator which provides 360 Hz IRQ to drive EVG software instead of the PNET receiver (VMTG in EVG side) • Develop new software module PABIG: Pattern Bits Generator which mimics the PNET • Develop a new software tool to design the event/timing pattern visually: evGUI1) • Work on the EVR software to support linux/linuxRT2) for the new hardware platform: uTCA, and COM-X evGUI1) Please, see the talk for LCLS timing system for pattern design , evGUI and high level (M. Zelazny) in the timing system session (15:00 – 15:20 Oct 22, 2012) Support for linux/linuxRT2) Please, see the talk for Real-Time Performance Issues on linux/linuxRT (K. Kim) in the low level application session (14:10 – 14:30 Oct 23, 2012)

  13. New architecture for the timing system MPS Link Node MPS Network LCLS-II CD-2 DOE Review / Aug 21 - 23, 2012

  14. VMTG • Sector 0 (LI00) VMTG – Master Trigger Generator • Provides the synchronized 360Hz trigger to the fiducial generator • Input: 360Hz AC trigger train + 476 MHz MDL RF • Ouput: 360Hz synchronized trigger • Then, the fiducial generator makes synchronization with the Master Oscillator • Sector 20 (IN20) VMTG with the EVG – Master Trigger Generator • Provide 360 Hz interrupts with the Timeslot counter • Provide Timeslot Synchronization • Input: 60 Hz AC trigger (AC phase C) + Synchronized 360 Hz trigger • Output: 360 Hz interrupts + timeslot counters

  15. Disabling PNET allows VMTG control • PNET task needs to be delayed ~ 150 usec after the PNET IRQ to wait the MPS message. • PNET IRQ is using HW_TIMER to make the delay • The PNET ISR implement 150 usec delay on the HW_TIMER • The callback for the HW_TIMER releases signal to execute the PNET Task. • VMTG has configurable IRQ delay • Configure the VMTG IRQ delay as ~570 usec • The VMTG IRQ occurs 150 usec after the PNET IRQ Fiducial PNET IRQ Timer callback releases the signal to the PNET task PNET Unknown delay ISR implements the timer PNET task ~150 usec VMTG IRQ VMTG The ISR releases the signal to the PNET task ~ 570 usec MPS message arrives somewhere before the signal.

  16. Software Stacks for the new EVG application and the PABIG PNBN PVs from SoftIOC EDEF reservation for the BSA EPICSDB SNL program EVG Application HW input bits in PABIG Master Beam Control Bits 0 to 8 via CA GenVar PABIG PNET Task mpsComm Asyn module VMTG module EVG Drv/Dev udpComm VMTG 2nd NIC AcromagDIO PNET EVG MPS message (beam destination & Permit) 360Hz Trigger BCS SBI Permit BCS Beam Permit 476MHz Clock 119MHz Clock PNET broadcasting 360Hz Fiducial Trigger 360Hz Fiducial Trigger

  17. EVR Software Stacks/ Form factor & OS dependency Event Module for RTEMS/vxWorks Event Module for linux/linuxRT EVR Processing Logic EVR Processing Logic BSA BSA erRecord erRecord devErMrf devErMrf drvErMrf drvLinuxEvr mrfCommon/mrfVme64 erapi VME EVR Hardware PMC EVR Hardware PMC EVR Hardware Works with old register map Works with modular register map (new)

  18. Summary • Successfully upgraded timing system • Standalone from the SLC system • Same code base for LCLS-I, LCLS-II and future projects • Backward compatibility, keep the advantages from the legacy system • Our Team has done the following work: • Develop new VMTG hardware: John Dusatko • Develop PABIG software: Till Straumann • Develop evGUI: Mike Zelazny and ParthaNatampalli • EVG software integration,EVR software support for linux/linuxRT and real-time performance issues: Kukhee Kim, Till Straumann, Stephanie Allison

  19. Related Talks • LCLS Machine Protection System (M. Boyes) in hardware solution session (16:30 – 16:50 Oct 22, 2012) • LCLS timing system for pattern design , evGUI and high level (M. Zelazny) in the timing system session (15:00 – 15:20 Oct 22, 2012) • Real-Time Performance Issues on linux/linuxRT (K. Kim) in the low level application session (14:10 – 14:30 Oct 23, 2012)

  20. Thank You!

More Related