Front-end Electronics and Data Acquisition in Particle Physics Igor - - PowerPoint PPT Presentation

front end electronics and data acquisition in
SMART_READER_LITE
LIVE PREVIEW

Front-end Electronics and Data Acquisition in Particle Physics Igor - - PowerPoint PPT Presentation

Front-end Electronics and Data Acquisition in Particle Physics Igor Konorov Institute for Hadronic Structure and Fundamental Symmetries (E18) Technical University of Munich Department of Physics Advanced Workshop on Modern FPGA-Based


slide-1
SLIDE 1

Igor Konorov Institute for Hadronic Structure and Fundamental Symmetries (E18) Technical University of Munich Department of Physics Advanced Workshop on Modern FPGA-Based Technology for Scientific Computing ICTP Trieste

Front-end Electronics and Data Acquisition in Particle Physics

slide-2
SLIDE 2

Motivation DAQ and Frond-end electronics Data Processing in FPGA Continuous DAQ Intelligent FPGA-based Data Acquisition System

Plan

slide-3
SLIDE 3

CERN Accelerator and Experiments

slide-4
SLIDE 4

CERN Accelerators

LHC Experiments

  • CMS
  • ATLAS
  • LHCb
  • ALICE
  • TOTEM, LHCf, MeEDAL

Fixed Target Experiments

  • COMPASS
  • NA61/SHINE
  • NA62
  • DIRAC
  • LOUD
slide-5
SLIDE 5

LHC CMS Experiment

slide-6
SLIDE 6

CERN Accelerators

slide-7
SLIDE 7

LHC CMS Experiment

slide-8
SLIDE 8

CMS Experiment

3 other LHC experiments

  • ATLAS
  • LHCb
  • ALICE
slide-9
SLIDE 9

COMPASS Experiment

slide-10
SLIDE 10

1. Detector Front-End Electronics (FEE) 2. Data Acquisition and (Sub-)Event Building

  • 3. Trigger Logic

FPGAs in High-Energy Physics

TDC ADC

Data Reduction Steps

  • Zero Suppression
  • Pedestal Calculation
  • Time stamp assignment
  • Signal detection
  • Feature Extraction
  • Signal Amplitude
  • Signal Time
slide-11
SLIDE 11

 The process of sampling detector signals  Conversion to digital form  Data processing  Transmission to PC for further processing, visualization, and storage FPGA tasks

  • Glue logic
  • Control and synchronization
  • Data processing
  • Computer interface

Data Acquisition System

Transducer

Volta ltage Curr rrent

Digitizer

Digital Logic

Amplifier Front-End Electronics DAQ

slide-12
SLIDE 12

Experiment : Electron Energy Measurement

Curr rrent

Digitizer FPGA Scintillation Counter 1

e‾

Scintillation Counter 2 Electromagnetic Calorimeter TRIGGER

TRIGGER – define time when detector signal to be measured Why read only when trigger and not continuously ?

  • Not feasible to measure continuous data flow
  • Not feasible to transmit such amount of data
  • Not feasible to sore such amount of data
slide-13
SLIDE 13

DAQ Architecture in Particle Physics

Thr

Delay ay cable bles

Trigger igger Logic gic

PCIe Ie Etherne rnet

Inhibit

ADC ADC ADC

Trigger Readout

Front-End Acquisition Slow Control

Twait

Tdead = Tread Twait + Tread

Tread

slide-14
SLIDE 14

DAQ Architecture in Particle Physics

Thr

Delay ay cable bles

Trigger igger Logic gic

PCIe Ie Etherne rnet

Inhibit

ADC ADC ADC

Trigger Readout

Front-End Acquisition Slow Control

Twait

Tdead = Tread Twait + Tread

Tread

slide-15
SLIDE 15

Efficiency of data taking

RO Sequence : Trigger –> Busy – Read Out -> Release Busy (Ready for next event) = T busy Probability of events described by Poisson distribution J – number of triggers and r – trigger rate A rule of thumb:

Dead Time =

𝑈𝑐𝑣𝑡𝑧 λ

Tbusy – DAQ busy time λ – average time between triggers Tav >> Tbusy

Example: 1kHz => λ = 1ms Tbusy = 50 useconds DeadTime = 0.05/1 = 0.05 or 5% Tbusy 𝑟𝑘 𝑢 = 𝑠(𝑠𝑢)𝑘−1𝑓−𝑠𝑢

𝑘−1 !

, if j = 1 𝑟1 𝑢 = 𝑠𝑓−𝑠𝑢

slide-16
SLIDE 16

Pipe Line Front Ends

FIFO

FIFO for N events

FIFO

ADC

100MHz CLK CLK

FIFO Logic

Trigger

FIFO

FIFO for N events

FIFO

ADC

100MHz CLK CLK

FIFO Logic

Trigger

Multi Event buffer: de-randomization buffer Input : Poisson distribution Output : more like a Gaussian centered around average value

slide-17
SLIDE 17

DAQ efficiency vs FIFO Depth

DAQ Efficiency Trigger rate/DAQ rate capability

slide-18
SLIDE 18

Multi Channel Data Flow

Front-End

Trigger Logic

Event Builder PC Data Concentrator PC

slide-19
SLIDE 19

Time Reference

Classical method:

– TRIGGER is a reference – SIGNAL time is measured respectively to TRIGGER

Alternative method for big experiments:

– Distribute CLOCK , why clock?

  • Easier to distribute with very low jitter

– Measure absolute time respectively to CLOCK phase

Tsig = Ns Tclk+ tsig Ttrg = Nt Tclk+ ttrg Clock and Data are encoded and transmitted from single source to multiple destinations

Detector Signals Trigger Signal

∆T ∆T

Trigger Signal

Common CLOCK

tsig tsig ttrg

Detector Signals

Encoding Data

Ns T0

slide-20
SLIDE 20

Multiple Trigger Levels

Front-End

Trigger Logic

Event Builder

PC

Data Concentrator

PC

Front-End

Trigger Logic

Event Builder

PC

Data Concentrator

PC

Trigger Logic

Front-End

Trigger Logic

Event Builder

PC

Data Concentrator

PC

Trigger Logic Trigger Logic Storage/CDR Storage/CDR Storage/CDR

slide-21
SLIDE 21

 Front-end electronics, detector specific

  • Conversion of detector analog signal to digital form
  • Derandomization
  • Data processing: signal detection, extraction of signals’ parameters Time and/or Amp…

 Trigger Logic

  • reduce amount of stored data
  • define time when of interesting event

 Trigger Distribution system => Time Distribution System  Slow Control System

  • Control and monitoring of PS, Gas system, Temperature, Humidity,…
  • Programming of Front-ends

 Acquisition System => Event builder

  • Data acquisition – moving data from FE to PCs
  • Data flow control
  • Real time Software
  • Run control

DAQ Elements

FPGA

slide-22
SLIDE 22

FRONT-END ELETRONICS DATA PROCESSING

slide-23
SLIDE 23

1. Detector Front-End Electronics (FEE) 2. Data Acquisition and (Sub-)Event Building  Pipeline Architecture  Reliability

  • 3. Trigger Logic

 High-speed  Advanced event identification abilities

 Doublet/triplet finder  Track fitter

FPGAs in High-Energy Physics

TDC ADC

Data Reduction Steps

  • Zero Suppression
  • Pedestal Calculation
  • Time stamp assignment
  • Signal detection
  • Feature Extraction
  • Signal Amplitude
  • Signal Time
slide-24
SLIDE 24

ADC readout – Avalanche Photodiodes (APDs)

  • Semiconductor detector: Reverse-

biased p-n-junction

  • Primary photoelectrons accelerated in

electric field → avalanche

  • Created charge proportional to

deposited energy

  • suitable for detection of every ionizing

radiation

slide-25
SLIDE 25

ADC readout – Preamplifier and Shaper

  • Charge-sensitive (CS)

preamplifier

  • Shaping: CR differentiator

and RC integrator

30 keV proton 20 keV proton Created charge proportional to energy deposit  Amplitude measurement  Signal Time defines EVENT TIME

Sampling ADC FPGA CLK

> 10 MHz 12-16 bit

slide-26
SLIDE 26

Noise on Signals

Data reduction steps

Challenges in presence of noise

  • Pedestal Calculation
  • Averaging over large number of samples
  • Signal detection
  • Discrimination between signals and noise

(signal-to-noise ratio)

  • Feature Extraction
  • Precise determination of amplitude or signal

shape

Important quantity: 𝑡/𝑜 = 𝜈 𝜏noise 𝜈 𝜏

slide-27
SLIDE 27
  • Implementing a low pass filter means averaging over number of samples N:

ҧ 𝑡 =

σ𝑗=0

𝑂−1 𝑡𝑗

𝑂

It is convenient to choose 𝑂 = 2𝑛 so that division can be implemented as a bit shift. (e.g. a/8 = a >> 3)

  • Measurement of pedestal when there is no signal
  • Very precise method
  • Allows to determine noise distribution (RMS): 𝜏2 = 𝑦2 − ҧ

𝑦2 =

σ𝑗=0

𝑂−1 𝑡𝑗 2

𝑂

σ𝑗=0

𝑂−1 𝑡𝑗

𝑂 2

  • Measurement in the presence of signals: accuracy of measured value depends on

signal rate

Pedestal Calculation – Low Pass Filter

slide-28
SLIDE 28
  • Continuous calculation of pedestal during data taking with signals and exclude signal

samples for calculation: Σped = Σped + 𝑡𝑗 − ҧ 𝑡 ҧ 𝑡 = Τ Σped 𝑂

  • Allows for continuous calculation of RMS of noise:

Σdiff = Σdiff + 𝑡𝑗 − ҧ 𝑡 2 − 𝜏2 𝜏2 = Τ Σdiff 𝑂

Pedestal Calculation – Baseline Follower

Evolution of pedestal and noise RMS at the startup

slide-29
SLIDE 29

Conditions 1. Amplitude over threshold: 𝑡𝑗 > thr 2. Window over threshold: σ 𝑡𝑗

𝑂 > thr

3. Difference between consecutive samples over threshold: σ 𝑡𝑗 − 𝑡𝑗−1 > thr 4. Window over baseline: 5. For baseline follower and continuous RMS calculation: 𝑡𝑗 − ҧ 𝑡 > 𝑦 ∙ 𝜏 ∧ 𝑡𝑗+1 − ҧ 𝑡 > 𝑦 ∙ 𝜏 ∧ 𝑡𝑗+2 − ҧ 𝑡 > 𝑦 ∙ 𝜏 ∧ ⋯ ∧ 𝑡𝑗+𝑜 − ҧ 𝑡 > 𝑦 ∙ 𝜏

Signal Detection

slide-30
SLIDE 30

Comparison Between Algorithms

Algorithm 3 Algorithm 4

Areas where trigger condition is fulfilled are highlighted. S/N = 6 Parameter for algorithm 3: N = 15 Parameter for algorithm 4: length of averaging wiondows = 16, distance = 30

slide-31
SLIDE 31
  • Time reference – sampling clock
  • Signal time = coarse time & fine time
  • Coarse time - sample number
  • Fine time
  • fraction of clock period
  • Algorithms:
  • Leading edge discriminator = time of the first sample above threshold
  • Constant fraction discriminator = time of 1st sample above fraction of max amplitude

Feature Extraction – Signal Time Extraction

Leading edge algorithm introducing walk Constant fraction algorithm

slide-32
SLIDE 32
  • Difference of two signals 𝐶𝑗
  • Scaled samples 𝑔 ∙ 𝑡𝑗
  • Delayed samples 𝑡𝑗−𝑢
  • Zero crossing defines signal time
  • Coarse time = i if Bi < 0 and Bi+1 > 0
  • Fine time 𝑒𝑢 =

𝐶𝑗 𝐶𝑗−𝐶𝑗+1 ∙ 𝑢𝑑𝑚𝑙

Signal Time Extraction – Constant Fraction Discriminator

slide-33
SLIDE 33

Digital Constant Fraction Discriminator

Additional signal compared to original:

  • Delay of 2 samples
  • scaled

Time measurement:

  • Subtraction of delayed signal from original
  • Interpolation of zero crossing
slide-34
SLIDE 34

Signal Time Extraction – Center of Gravity Method

Simulated pulse with noise

Center of Gravity Definition: Results in fine time of 1/4 to 1/8: Implementation:

slide-35
SLIDE 35
  • Goal: Reduce effect of noise ∝ 𝑂−2
  • Trade-off between precise determination and resource utilization
  • Different algorithms:
  • Sample with maximum amplitude
  • Integral over N samples
  • Finite Impulse Response filters
  • FFT for noise reduction and increase of S/N

Feature Extraction – Amplitude Determination

slide-36
SLIDE 36

CONTINUOUS DAQ

slide-37
SLIDE 37

Triggered DAQ

Curr rrent

Digitizer FPGA Scintillation Counter 1

e‾

Scintillation Counter 2 Electromagnetic Calorimeter TRIGGER

TRIGGER – define time when detector signal to be measured Why read only when triggered data and not continuously ?

  • Not feasible to measure continuous data flow
  • Not feasible to transmit such amount of data
  • Not feasible to store such amount of data
slide-38
SLIDE 38

FPGA technology : 45 nm => 28 nm => 20 nm => 16 nm

  • Higher density => more complex circuits
  • Lower operational voltages and faster
  • Lower power consumption

ASIC – being developed by Particle Physics Research Labs

Low power fast Sampling ADC Digitization and first data processing implemented in ASICs High speed serial interfaces integrated in ASICs Trigger less architecture

Technology give possibility to process detector information without external triggers => Trigger less DAQ

Technology Progress

slide-39
SLIDE 39

Trigger-less DAQ

Take everything A time when something interesting happen is not easy to define Taking video => allows to achieve higher precision measurement Why to read triggered data :

  • Not feasible to digitize continuously
  • Not feasible to transmit such amount of data
  • Not feasible to store such amount of data
slide-40
SLIDE 40

Evolution of DAQ Architecture

Front-End Storage/CDR

PC

Event Builder

PC

HLT Storage Trigger Logic Continuous Front-End HLT HLT

PC

HLT

slide-41
SLIDE 41

intelligent FPGA-based DAQ

Novel iFDAQ Architecture

slide-42
SLIDE 42

Challenges of Event Building

slide-43
SLIDE 43

Event Building Challenges I

slide-44
SLIDE 44

Event Building Challenges II

slide-45
SLIDE 45

Traffic Pattern Causes Congestion Problem

slide-46
SLIDE 46

Progress of FPGA technology

 High bandwidth of serial links: 3000 Gbps per single FPGA  High bandwidth of external memory interfaces 10 GB/s per single FPGA

Motivation for iFDAQ

Chip Manufacturer Technology Transistor count

Duo-core + GPU Iris Core i7 Broadwell-U Intel 14 nm 1 900 000 000 22-core Xeon Broadwell-E5 Intel 14 nm 7 200 000 000 Virtex 7 Xilinx 28 nm 6 800 000 000 Virtex Ultra Scale Xilinx 20 nm 20 000 000 000

slide-47
SLIDE 47
slide-48
SLIDE 48

FPGA technology advantages

Emerging technology, rapidly extends application fields Highly parallel architecture Enormous IO bandwidth Low cost Long development time => Software tools for a moment behind complexity of HW technology

FPGA is ideal technology for development reliable, high performant, low cost DAQ system

iFDAQ (intelligent FPGA DAQ) Reliability achieved by smart recovery algorithms included in FPGA

slide-49
SLIDE 49

DAQ Architectures

Continuous Front-End

Trigger Logic Storage

Event Builder

FPGA WORLD PC WORLD LHC IFDAQ Future LHC PC

Concept of iFDAQ

  • Minimize amount of real-time software

processes and implement Event Builder in FPGA Advantages

  • Increased compactness
  • Increased reliability
  • Reduced cost

iFDAQ Frame work

  • Implementing congestion free Event

Builder in FPGA

  • Intelligent data handling
  • Unified Interfaces
  • Unified IP Cores
  • Integrated Digital Trigger (to be impl.)

Data Concentrators

slide-50
SLIDE 50

Event Building CPU vs FPGA

CPU FPGA

Advantages:

  • Uses mass-produced

components

  • Easy integration of

redundancy elements

  • Availability of libraries and

templates

Disadvantages:

  • Throughput limited by EB

network

  • Performance of sequential

execution strongly depends on algorithm complexity

  • Recovery of crashed

processes takes significant time

Advantages:

  • Only FPGA allows to build

real real-time system

  • High scalability
  • High reliability
  • Low cost

Disadvantages:

  • Long firmware development

progress: high level simulation tools like System Verilog and OSVVM

 Motivation

  • Minimize real time SW

processes

  • Development of highly

autamotized and reliable DAQ

slide-51
SLIDE 51

iFDAQ Architecture

slide-52
SLIDE 52

iFDAQ Architecture

slide-53
SLIDE 53

Data Concentrator

slide-54
SLIDE 54

Event builder in FPGA

  • Events are processed simultaneously and buffered in DDR, no congestion
  • Events distributed between outgoing links in round robin manner
  • 2.5 GB/s throughput => 10 GB/s

TCS TCS

slide-55
SLIDE 55

Compact : Before : 30 online PCs Now : one VME 6U crate + 1 rack (8 computers)

iFDAQ

slide-56
SLIDE 56

Performance : Up Time in 2017

slide-57
SLIDE 57

BACKUP SLIDES

slide-58
SLIDE 58

Multiplexer

UCF

UCF UCF

slide-59
SLIDE 59

Triggered DAQ

At certain time

– when something interesting happened

Take time measurement=> TRIGGERED DAQ Photo shooting => TRIGGERED DAQ

slide-60
SLIDE 60

Electron Energy Measurement

Curr rrent

Digitizer FPGA Scintillation Counter 1

e‾

Scintillation Counter 2 Electromagnetic Calorimeter TRIGGER

How much data the system should handle ? Poisson distribution , probability mass function :

𝜇 – average number of events k - number of events occur f(x) =

𝜇𝑙𝑓−𝜇 𝑙!

slide-61
SLIDE 61

Electron Energy Measurement

Curr rrent

Digitizer FPGA Scintillation Counter 1

e‾

Scintillation Counter 2 Electromagnetic Calorimeter TRIGGER

TRIGGER – defines time to store SIGNAL VALUE Data path delay should be equal to trigger delay with correction for time of flight ! Why Triggered and not continuous ?

  • Feasibility to handle continuous stream
  • No need to collect all data