TRLO II flexible FPGA trigger control

Similar documents
TRLO II with TRIMI friendly FPGA trigger control

GSI MBS Multi Branch System

NEMbox / NIMbox Programmable NIM Module

Using the FADC250 Module (V1C - 5/5/14)

CLAS12 DAQ & Trigger Status and Timeline. Sergey Boyarinov Oct 3, 2017

CLAS12 DAQ, Trigger and Online Computing Requirements. Sergey Boyarinov Sep 25, 2017

DAQ-in-a-box. δράση. [transliterated drasi: 'action'] Håkan Johansson, Chalmers, Göteborg

Velo readout board RB3. Common L1 board (ROB)

TOF Electronics. J. Schambach University of Texas Review, BNL, 2 Aug 2007

LUPO TimeStamp Module (Ver. 1.2) Hidetada Baba

Data Acquisition in Particle Physics Experiments. Ing. Giuseppe De Robertis INFN Sez. Di Bari

Development of high-resolution TDC based on FPGA.

30/05/96 V465 User's Manual CHIMERA VERSION TABLE OF CONTENTS

LUPO IO & Scaler Firmware Rev Oct. 11

Nuclear Physics Division Data Acquisition Group

Technical Information Manual

Technical Information Manual

FT Cal and FT Hodo DAQ and Trigger

Readout Systems. Liquid Argon TPC Analog multiplexed ASICs SiPM arrays. CAEN 2016 / 2017 Product Catalog

Electronics on the detector Mechanical constraints: Fixing the module on the PM base.

Prototyping NGC. First Light. PICNIC Array Image of ESO Messenger Front Page

Digital Detector Emulator. This is the only synthesizer of random. Your Powerful User-friendly Solution for the Emulation of Any Detection Setup

Update on PRad GEMs, Readout Electronics & DAQ

Description of the JRA1 Trigger Logic Unit (TLU), v0.2c

Vertex Detector Electronics: ODE to ECS Interface

User's Manual. PXI Power Distribution Module

FADC250 User s Manual

ADC ACQUISITION MODE...

Module Performance Report. ATLAS Calorimeter Level-1 Trigger- Common Merger Module. Version February-2005

Chap. 18b Data acquisition

Micro-Research Finland Oy Välitalontie 83 C, FI Helsinki, Finland. Event Receiver (PMC-EVR) Technical Reference Contents

Preparation for the test-beam and status of the ToF detector construction

Interface DAC to a PC. Control Word of MC1480 DAC (or DAC 808) 8255 Design Example. Engineering 4862 Microprocessors

The WaveDAQ system: Picosecond measurements with channels

PC-CARD-DAS16/12 Specifications

PC-CARD-DAS16/16 Specifications

VMMR-8/16 (V00.03) Hardware features: 16 bus data collector. VMMR, the VME-receiver module

128 CH TDC-SCALER For 10x10 GEM

MSU/NSCL May CoBo Module. Specifications Version 1.0. Nathan USHER

SIS3500. VME Discriminator. User Manual

DESIGN OF THE DATA ACQUISITION SYSTEM FOR THE NUCLEAR PHYSICS EXPERIMENTS AT VECC

MODEL VTR10012 EIGHT CHANNEL, 100 MHZ, 12 BIT VME ANALOG DIGITIZER WITH OSCILLOSCOPE CHARACTERISTICS FEATURES:

FPGA for Complex System Implementation. National Chiao Tung University Chun-Jen Tsai 04/14/2011

CC-USB User Manual WIENER, Plein & Baus GmbH Revision 6.00, June 9, 2012

A Low-Power Wave Union TDC Implemented in FPGA

UCESB unpack & check every single bit

Trigger/DAQ design: from test beam to medium size experiments

Application Note. Introduction AN2471/D 3/2003. PC Master Software Communication Protocol Specification

A full digital approach in Physics Applications

ACTL-TIME: Report on recent activities. Arnim Balzer for the ACTL-TIME sub-work package ACTL-TIME Camera Call, SeeVogh July 1, 2016

An FPGA Based General Purpose DAQ Module for the KLOE-2 Experiment

Introduction to TDC-II and Address Map

INDEX. Digitizer Software. CAENComm library CAENDigitizer library CAENDPP library WaveDump. CAEN VME Demos WaveCatcher

The Intelligent FPGA Data Acquisition

A Fast VME Data Acquisition System for Spill Analysis and Beam Loss Measurement

UCESB unpack & check every single bit. Håkan T. Johansson, Chalmers, Göteborg

Technical Information Manual

FEC. Front End Control unit for Embedded Slow Control D R A F T. C. Ljuslin C. Paillard

User's Manual. Digital Gamma Finder (DGF) PIXIE-16. Version 1.40, October 2009 XIA LLC Genstar Rd. Hayward, CA USA

PROGRESS ON ADF BOARD DESIGN

Digital Signal Processing for Analog Input

Token Bit Manager for the CMS Pixel Readout

MDI-2 (Data sheet V2.5_01) FW 02.02

EIGHT CHANNEL, 100 MHZ, 14 BIT VME ANALOG DIGITIZER WITH OSCILLOSCOPE CHARACTERISTICS

Stimuli Generator User s Guide

Technical Information Manual

FIRMWARE for ADC FPGA for Moller DAQ

Interfacing mesytec VME modules (Application note 001.3)

Digital Acquisition Instruments for Neutron Identification

USB 1608G Series USB Multifunction Devices

Using NSCLDAQ with a CAEN V785 Peak-Sensing ADC and CAEN V262 IO Register. Jeromy Tompkins Tim Hoagland Ron Fox

GPS time synchronization system for T2K

NET. A Hardware/Software Co-Design Approach for Ethernet Controllers to Support Time-triggered Trac in the Upcoming IEEE TSN Standards

Tektronix DPO Demo 1 Board Instruction Manual

Digital Gamma Finder (DGF) PIXIE-4 Manuals

VTR2535T-128K and VTR2535T-512K OCTAL 12bit 10MHZ TRANSIENT RECORDER

Digital Gamma Finder (DGF) PIXIE-4 Manuals. Version 1.22, December X-Ray Instrumentation Associates Central Ave Newark, CA USA

A NEW TIMING CALIBRATION METHOD FOR SWITCHED CAPACITOR ARRAY CHIPS TO ACHIEVE SUB-PICOSECOND RESOLUTIONS

Memory. Memory Technologies

OPERATOR'S MANUAL MODEL 1110 VME ADC/TDC TESTER

INFN Padova INFN & University Milano

Using NCSL DAQ Software to Readout a LeCroy 4300B. Timothy Hoagland

THE ALFA TRIGGER SIMULATOR

Description of the JRA1 Trigger Logic Unit (TLU)

Scintillator-strip Plane Electronics

OPERATOR'S MANUAL PCOS 4 SYSTEM MANUAL PRELIMINARY

USB 1608G Series USB Multifunction Devices

Electronics, Trigger and Data Acquisition part 3

User's Manual Digital Gamma Finder (DGF)

FPGA for Software Engineers

PSEC-4: Review of Architecture, etc. Eric Oberla 27-oct-2012

Track-Finder Test Results and VME Backplane R&D. D.Acosta University of Florida

Using NCSL DAQ Software to Readout a CAEN V775 TDC. Timothy Hoagland

2. List the five interrupt pins available in INTR, TRAP, RST 7.5, RST 6.5, RST 5.5.

Readings: Storage unit. Can hold an n-bit value Composed of a group of n flip-flops. Each flip-flop stores 1 bit of information.

User s Manual. EIB 741 EIB 742 External Interface Box for Connecting HEIDENHAIN Encoders

Istituto Nazionale di Fisica Nucleare A FADC based DAQ system for Double Beta Decay Experiments

Outline. EECS150 - Digital Design Lecture 6 - Field Programmable Gate Arrays (FPGAs) FPGA Overview. Why FPGAs?

Using NCSL DAQ Software to Readout a CAEN V792 QDC. Timothy Hoagland

The ASDEX Upgrade UTDC and DIO cards - A family of PCI/cPCI devices for Real-Time DAQ under Solaris

Transcription:

TRLO II flexible FPGA trigger control Timing relative to * 1 * 2 9A 193/ 5 3 _554._ 41/10 4.43._ 7/ 8 5 _A9_ 16/ 5 6 8A 2/ 4 7 43._ 7/ 8 8 43._ 8/ 8 9.... 7886._. 104/11 10......57886. 112/11 11 34543. 35555555555555444433. 51/40 12 _34543.345555555555555 98/18 13 _.3995 55/ 5 14 1200/nan 15 697._ 9/ 6 16.34443 _.. 333333 3 5/19 17 18 19 20 21 22 220/ 0 23 A8 180/nan 24 Håkan T. Johansson, Chalmers, Göteborg With Ana Henriques, Lisbon GSI, February 2011

3 ALADiN-LAND setup R B 8 ak t ta s g in inc 0! 9 9 1 e uo Co n nti us s... e rad g up He + n+ n Da 10 He 11 Li From S245 (@ Cave B) Three-body correlations in the decay of 10He and 13Li H.T. Johansson, Yu. Aksyutina, et. al. Nuclear Physics A, Vol 847 (2010) pp. 66-88

Master start in 45 ns tt Sc ern al u P r e r ni t io rit y en co de r Pa et ec to Lo r s gi ig c o c m na S c i n a ls a l c i d tr er e ix nc Tr es ig ge de r b ad ox tim es do e w n s ve c a to le D The trigger has to be fast......

Cave C trigger (2004-) (Analog to LAND@ Cave B -2004) S2, S8 LAND ALADiN om FRS Beam fr Detector signals Split, QDC, TDC, CFD Delays (500 ns) Detector triggers (<100 ns) ys h P t s i ic tra il Access required Trigger decision (~50 ns) - Measure/adjust trigger alignment Master start (<100 ns) Trigger bus Messhütte - Downscale & trigger on/off

?! VULOM (VME universal logic module) by J. Hoffmann, GSI Original TRLO firmware by J. Frühauf, GSI

Inputs VME FPGA Outputs

Original TRLO schematic (J. Frühauf)

Fast-path detector signals master start Timing-critical trigger decision All logics 100 MHz (10 ns) Decision in 2 clock cycles 18 5 20 10 ns ns ns ns module in + out anti-metastable decision clock jitter 45-55 ns in master start

Trigger state machine

Cave C trigger (2010-) ALADiN LAND S2, S8 om FRS Beam fr Detector signals Split, QDC, TDC, CFD Delays (500 ns) Detector triggers (<100 ns) Access not required trigger completely computer-controlled Trigger decision (~50 ns) Master start (<100 ns) Trigger bus Messhütte

Cave C trigger (2010-) LAND ALADiN S2, S8 DAQ operators + om FRS Beam fr? Detector signals Split, QDC, TDC, CFD Delays (500 ns) Detector triggers (<100 ns) Access not required trigger completely computer-controlled Trigger decision (~50 ns) Master start (<100 ns) Trigger bus Messhütte

General logic - Pulsers (programmable frequency). - PRNG (pseudo-random sequence). - LMU (not the same as in fast-path). - Downscale. - Delay and stretch (a.k.a. gate-and-delay). - Edge-to-gate conversion (e.g. spill mimic). - Fan-in (masked all-or). - Coincidence.

Monitoring - Scalers. Latched 32-bit with selectable input. Hybrid flip-flop / block RAM -> few resources. (25 ff/ch) - Timer latches (latch global timer on a signal edge). - Multi-entry buffer for the timer-latches. Block RAM fifo. - Self-triggering soft-scope. Block RAM circular recording. Block RAM multi-trace fifo. - Input pattern latch. - Front-panel LEDs. - Front-panel display. display

Multiplex everything! Any signal destination can use any source. Routing cost 2 cycles = 20 ns Module inputs ECL & LEMO Generators Exceptions for timing-critical fast-path use fixed ECL in Logic fcns outputs Trigger control outputs master-start to any output, bitmasked mux[trlo_mux_dest_xxx(j)] = TRLO_MUX_SRC_xxx(i); Module outputs ECL & LEMO Front-panel LEDs Logic fcns inputs Recording, Monitoring Fast-path & Trigger control

TRLO II @ Cave C / LAND-setup Delay + Gate Pile-up reject Delay + Gate DT Late trig cut (CB) f = 1.7 Hz f = 9.4 Hz f = 47.7 Hz AND Pending triggers Accepted trig (13) Trigger state machine Encoded trig (4) TRIVA oc k AUX Cl Softscope Prio Enc. LMU Trigger box TCAL Delay Detector triggers (16) Scalers Scalers Scalers OR AND NOT TRIVA POS (start sci) BOS Start Edge Gate EOS Stop Spill-is-on POS record Master start DT

Old trigger logic Rack 2 Rack 1 Trigger boxes Crate 1 Crate 2 Master trigger LM NIM-ECL converter From detectors Crate 3 TRIDI To electronics Slides kindly from D. Rossi

New trigger logic Rack 2 Rack 1 Crate 1 LM Crate 2 NIM-ECL converter From detectors To electronics Crate 3 TRIDI VULOM 4 Slides kindly from D. Rossi Master trigger

matr.dat matr.dat used for determination of trigger type located in active DAQ directory, e.g., /lynx.landexp/apr2010 Trigger bit Output triggers 2 Fragment(NTF) 16 spill on 15 Early pile-up 14 pix 13 CB delayed Sum 12 CB delayed OR 11 FRS S8 10 CB Sum 9 ntf cosm 8 tfw cosm 7 CB OR 6 tfw mult. 5 veto wall 4 land cosm 3 land mult 2 ntf mult 1 POS.!ROLU *0100 0000 0000 0000 *1000 0000 0000 0011 Slides kindly from D. Rossi Input NIM trigger signals NIM-ECL converter (rack 2, crate 2, slot 1) anti-coincidence coincidence

Trigger logic control No more blinking lights on trigger boxes how can I see which triggers are switched on and at which rate? Use the udp_reader ssh land@lxgs08 type udp_reader --trig Input NIM trigger signals Trigger types Clock + tcal triggers (internal triggers) Slides kindly from D. Rossi

Trigger logic control The trigger I want to use is not switched on or does not come with the correct rate! Use the trigger logic control routine ssh land@[some_machine] (the following rsh is easier if you are already land) rsh r3-15 (main DAQ processor; change if necessary) your present location /land/usr/land cd landexp/apr2010/west (apr2010 is the current DAQ; change if necessary)./trloctrl --[option] Slides kindly from D. Rossi

trloctrl --tpat-enable=a,b,c enables only specified TPATs and switches all others off in order to deactivate all triggers, use --tpat-enable= --spill-mimic=onoff --reduction=tpat=red down-scales trigger TPAT by 2RED e.g../trloctrl --reduction=10=2 down-scales the LAND cosmic trigger by a factor 4 (c.f. previous slide) tcal and clock triggers can also be reduced --tpat-enable=0xbitmask must first calculate BITMASK to be activated in order to deactivate all triggers, use --tpat-enable=0x0 Slides kindly from D. Rossi switch off spill-mimic for most calibration runs make sure it is switched on for beam!

Trigger alignment - measurement The triggers need to be aligned to make good coincidences? VME readout... Ch 22 Ch 23 End Start Ch 9 Ch 10 Ch 11 Ch 12 Ch 21 End Start Ch 9 Ch 10... FPGA self-triggered multi-event softscope 138 255e 98 110 125 142 126 143 114 131 127 144 0 255e 125 142 126 143 Analysis (histogramming) Timing relative to * 1 * 2 9A 193/ 5 3 _554._ 41/10 4.43._ 7/ 8 5 _A9_ 16/ 5 6 8A 2/ 4 7 43._ 7/ 8 8 43._ 8/ 8 9.... 7886._. 104/11 10......57886. 112/11 11 34543. 35555555555555444433. 51/40 12 _34543.345555555555555 98/18 13 _.3995 55/ 5 14 1200/nan 15 697._ 9/ 6 16.34443 _.. 333333 3 5/19 17 18 19 20 21 22 220/ 0 23 A8 180/nan 24 2-log counts/bin (_. - = 0,1,2)

Pile-up measurements Record inter-arrival times of signals Every ion entering the cave off-line pile-up rejection Hits 1482288 Example almost perfectly random detector trigger signal (cosmics+noise) Lost 1 Cut 70 = 1.000 s Total_t 525.246 s Rate 2822.1 Hz. ^ ^..^. ^ _ ^._... ^^... 1us 1ms 1s (divide by Poisson distrib.) X _ X _X X.. _..._..... ^_ X X X 1us 1ms 1s

In operation S393 S306b S389 (Aug - Oct 2010) Preceded by intense code inspection (~300 kb) 0 critical bugs found 2 minor bugs found in the wild

Plain 32-bit scaler read addr input 32-bit add 4 32 input mux latch 32-bit add 32 32 64 flip-flops / channel 32 multiplexer chains latch 4*16 = 64 trigger scalers + 8 general + 112, for each mux'ed signal (DAQ debug) data VME * > 50 % of VULOM4 FPGA resources

Hybrid flip-flop / block RAM scaler 4 ofl reset input 4-bit add mux ofl 4 28-bit add 28 add latch mux data B 4 data VME 32 4 reset Advantages Fewer resources (LUTs and FFs) Reduced (removed) read-out multiplexer read addr 28-bit add 28 add addr B mux latch Current RAM (16x28) data B reset data A 4 addr A 4-bit add Latched RAM (16x32) mux input data A reset addr B 4-bit count addr A Continuously circulating 28

Stable VME interface definition #define TRLO_MD5SUM_STAMP VME registers as C structure, with named entries, generated by compilation Version number is MD5 of full VHDL code Named constants Setup registers in block RAM for readback. 0xccb60dee // Constants for 'direct_mode' #define TRLO_DIRECT_MODE_LOGIC #define TRLO_DIRECT_MODE_DIRECT #define TRLO_DIRECT_MODE_LOGIC_OR_DIRECT typedef { /* /* /* /* 0x0 0x1 0x2 struct trlo_output_map_t 0 1 2 3 0x0000 0x0004 0x0008 0x000c */ */ */ */ uint32_t uint32_t uint32_t uint32_t version_md5sum; compile_time; timing_tick; deadtime_tick; typedef struct trlo_setup_map_t { /* 0 0x2000 */ uint32_t mux[122]; /* 122 0x21e8 */ uint32_t direct_mux[26]; /* 148 0x2250 */ uint32_t direct_mode[26]; /* 174 0x22b8 */ uint32_t direct_or[3]; /* 177 0x22c4 */ uint32_t scaler_mode[8]; // MUX src indices Aggressive checksumming of output data. #define #define #define #define TRLO_MUX_SRC_ECL_IN(i) TRLO_MUX_SRC_ECL_IO_IN(i) TRLO_MUX_SRC_LEMO_IN(i) TRLO_MUX_SRC_WIRED_ZERO ( 0+(i)) (16+(i)) (24+(i)) (32)

Work-in-progress - Random TCAL (generate and measure semi-random pulses). - 64-bit timestamps (10 ns resolution, 32 bits wrap after 42.9 s). - Serial timestamps send + receive (for event synchronisation between systems over one signal line, 'survive' disconnections). 320 ns / 32 cycles 1 message cycle 82 µs

Reminder Cave C trigger (2010-) ALADiN LAND S2, S8 om FRS r f m a e B Detector signals Split, QDC, TDC, CFD Delays (500 ns) Detector triggers (<100 ns) Access not required trigger completely computer-controlled Trigger decision (~50 ns) Master start (<100 ns) Trigger bus Messhütte

Cave C trigger (201x-)? T ps m a t imes LAND ALADiN S2, S8 Detector signals Split, QDC, TDC, CFD Delays (500 ns) +! Detector triggers (<100 ns) Trigger decision (~50 ns) Master start (<100 ns) Trigger bus om FRS r f m a e B Messhütte Trigger fully computer-controlled move into Cave

Serial timestamps with mux hold VME lcl clk hold VME hold lcl clk sender synchronised? time of latch time of last reception last received time current drift-correction hold stamp receiver aux sigs hold stamp receiver aux sigs lcl clk Latched stamp (3 words) VME latch t = tstamp + (tlatch treception) + tdriftcorr Difference between local and remote clock frequency.

Serial timestamp protocol Pulses short (¼) or long (¾) Each payload bit sent as two pulses, second inverted Pattern of 4 short pulses for start-synchronisation 320 ns = 32 clock cycles start (short) data 1 data 1 data 0 latch aux aux valid aux latency 15 5 µs (2x128 pulses start, 51 time bits, 7 aux bits, 8*(7+1) aux sigs, parity, end) 1 message 82 µs

Finale! Thank you! FPGAs are FUN! http//fy.chalmers.se/~f96hajo/trloii/ Live by the compiler timing messages!

Backup trigger Cave C

Now Beam detectors (Messcontainer) Ctrl QDC QDC TDC TDC ADC TRIDI Scaler VULOM CAMAC coinc FIFO NIM GG Gate delay Master start Cave messhütte T CFD TRIVA VME NIM-ECL E Split + E-delay (400 ns) T-delay (400 ns) NIM Det. trig Tim Delay (400 ns) ing T Start CFD coinc Split CPU POS, PIX, PSP, SCI (S2,S8), ZST (MWPC) Gate trigger GG E Delay (400 ns) TDC 100 ns QDC

Now/Recent CAMAC + FABU (Cave) Ctrl LAND, TFW, GFI, (XB) Split + E-delay (500 ns) T Scaler Scaler Scaler Remote operation since 1990... E GG sum TRIVA CPU QDC QDC TDC TDC CAT Ctrl MUX delay CFD (500 ns) (VME) FASTBUS CAMAC M s es NIM Master start (Messcontainer ) Det. Trig ( Messcontainer) Delay (500 ns) T Messcontainer CFD sum Split hü tt e CFD Gate NGF CFD CAMAC GG Delay (500 ns) TDC (200 ns range) Stop trigger MUX E Arm Gate QDC

(Again) Cave C trigger (201x-)? T ps m a t imes LAND ALADiN S2, S8 Detector signals Split, QDC, TDC, CFD Delays (500 ns) +! Detector triggers (<100 ns) Trigger decision (~50 ns) Master start (<100 ns) Trigger bus om FRS r f m a e B Messhütte Trigger fully computercontrolled move into Cave

Master + Beam detectors in Cave? NIM 1 local VULOM (coinc + gates) CAMAC POS, PIX, PSP Ctrl CFD Master start (due to master, many inputs) FIFO NIM-ECL 1 trigger VULOM MUX Multi-multi TDC no delay adj. Or GTBC (only slow-control) Det. trig T QDC VULOM TDC ADC TRIDI VULOM TRIVA CF810x + MUX (for multiplexing) CPU E Gates VME T E (CAEN V1290-type) or VULOM-TDC? (FPGA) Stop CFD coinc MUX Split Tim TDC 100 ns+ ing trigger Delay (400 ns) Gate GG QDC Split + E-delay (>400 ns?)

S2- & S8-elecronics @ S2 & S8? 1 local VULOM (coinc + gates) NIM SCI (S2,S8), ZST (MWPC) Ctrl CFD FIFO Reduced copy of cave beam/master Det. trig Cave MUX Cave Master start CAMAC T (local trigger-capability) (1-2 µs...) QDC VULOM TDC CPU Time-stamped (no trigger-bus) TRIVA E Split + E-delay VME T E (CAEN V1290-type) Messcontainer CFD coinc MUX Split Tim TDC 100 ns+ ing trigger Delay (1-2 µs) or VULOM-TDC? (FPGA) Stop Gate GG QDC