EMCal project TRU (Trigger Region Unit) status Sept ‘08

25
EMCal project TRU (Trigger Region Unit) status Sept ‘08 1 Norbert Novitzky 06/14/22

description

EMCal project TRU (Trigger Region Unit) status Sept ‘08. Norbert Novitzky. Outline. EmCal General overview Trigger Requirements ( design goals, key parameters ): Schematics ( tower to CTP ) Trigger mapping TRU board Trigger in TRU L0 latency STU board Hierarchical trigger fro EMCal - PowerPoint PPT Presentation

Transcript of EMCal project TRU (Trigger Region Unit) status Sept ‘08

Page 1: EMCal project TRU (Trigger Region Unit) status Sept ‘08

EMCal project

TRU (Trigger Region Unit)status Sept ‘08

1

Norbert Novitzky

04/20/23

Page 2: EMCal project TRU (Trigger Region Unit) status Sept ‘08

Outline• EmCal

– General overview• Trigger

– Requirements ( design goals, key parameters ): – Schematics ( tower to CTP )

• Trigger mapping• TRU board• Trigger in TRU• L0 latency• STU board• Hierarchical trigger fro EMCal • Our participation

• Status– Tests, what are done– Remaining tasks– Time schedule

• Future activities

204/20/23

Page 3: EMCal project TRU (Trigger Region Unit) status Sept ‘08

3

Acceptance EMCal PHOS

110° 100°

1.4 0.24

Rinteraction 4.3m 4.6m

1/3 super module: 48x8 (384) towers.Characteristic Value

Moliere radius 3.2cm

# Towers 12672

Ambient temperature 18°

Light yield (APD) 3.3e/MeV

Preamplifiers 1V/pC, 15ns

Shaper 200ns, G-2

Dynamic lin. Range 14 bit

Led-scintillator

Back plate

Opt. fibers

EMCal in ALICE

1 (super) module EMCal PHOS

Modules 10 5

Towers 1152 3584

FEE 36 112

TRU 3 8

STU/TOR (for all modules)

1 1

Tables are showing general information about the EMCal detector in ALICE. Because of the similarities with PHOS detector, some information are compared with the PHOS detector.

04/20/23

Page 4: EMCal project TRU (Trigger Region Unit) status Sept ‘08

04/20/23 4

12xFEE12xFEE TRUTRU

12xFEE12xFEE TRUTRU

12xFEE12xFEE TRUTRU

STUSTU

CTP(central trigger

processor)

CTP(central trigger

processor)

RCURCURCURCU

t=0[collision]

2x2 data 135ns

L0 signal 600ns L0 800ns

L0 from CTP 1200ns

L0 from CTP 1200ns

Start of data 1400ns

DataEnd of data 1915ns

L1 6200ns

Other L0 detectorsOther L0 detectors

L1 calculation

The EMCAL will provide L0 and L1 trigger signals.The L0 must be provided within 800ns to CTP, where it is decided with other detectors. The main calculation for L0 is don in TRU level.The L1 is decided in STU. It is more complicated calculation, but first it is needed to transfer the data from TRUs. This procedure start only when the systemreceive the L0 from CTP (via RCU boards).

29xTRU29xTRU

Page 5: EMCal project TRU (Trigger Region Unit) status Sept ‘08

STU

Max 12 m

CTP Vomultiplicity

LTUTTC

High-speed linkEthernet cable

Max 12 m

1 Super moduleTRU

TRUTRU

TRUTRU

TRU

TRUTRU

TRUTRU

TRUTRU

TRUTRU

TRUTRU

Level-0Level-1-LLevel-1-MLevel-1-HJET

5Level-1 global decisions in STU f(nxn)

RCU DAQ

HLT

Level-0 local-decisions in TRU (4x4)>x

16 x TRU16 x TRU

192 x FEE 192 x FEE

TRUTRU

TRU

TRUTRU

TRU

TRUTRU

TRUTRU

TRUTRU

TRUTRU

TRUTRU

Fake Altro trigger data

High-speed linkEthernet cable

This figure shows the path for L0 and L1 trigger signals from super modules to the CTP (central trigger processor)

•The L0 is generated in TRU (Trigger Region Unit)•The L1 is generated in STU(Summary Trigger Unit)

04/20/23 5

Page 6: EMCal project TRU (Trigger Region Unit) status Sept ‘08

1 FEE8 x (2x2)

100 ns

1 FEE8 x (2x2)

100 ns

1 FEE8 x (2x2)

100 ns

96 ADC12 bit @40MHz

FPGAVirtex-5

4x4 groups

1 TRU =Analogue FOR cables from 12 FEE

Level-0

RCU

TRU Trigger region 8 x 48 towers = 384 8 x 12 (2x2) = 96 signals

1 TRU =12 FEE = 1 SM in z

1 FEE card:32 APD in 8 towers8 x analogue OR 2x2

CSPnumbering

Level-1High pT

Level-1 JET

STU Summary Trigger 96 (2x2)

FPGAVirtex-5

0

15

7

24

23

168

31

z

8 x (2x2) analogue

1 RCU branch A1 RCU branch B

1 RCU partition:

48 x 8 towers

1..9 10,11,12

1x STU 32 x TRU 384 x FEE

1 FEE = 32 inputs,8 output for TRU

Towers

~5-30cm

Max ~12m

2x22x2

In this figure we can follow the signal from towers in super module, through the front-end electronics, TRU module until it reach the STU.

04/20/23 6

Page 7: EMCal project TRU (Trigger Region Unit) status Sept ‘08

7

Power regulators

Inputs from FEE – 112 channels(but only 96 will be in use)

LVDS bus

GTL bus

Prom

LVDS control

High speed link (to STU)

TRU board

10 Test pins

04/20/23

Page 8: EMCal project TRU (Trigger Region Unit) status Sept ‘08

Trigger (TRU)

8

Hierarchy of the trigger in EMCal:• The 2x2 sum of the towers from FEE->TRU (112 channels as input in one TRU)• In TRU we create an other 2x2 sum of input channels, what mean now we have 4x4 sum for towers. Then we apply a digital threshold. (69 groups)

• The data from TRUs go to STU. L0: create an OR from every TRU (quick process) L1 : more complicated, using every TRU data, but it is done in STU

2x21 Tower

2x2 = 1 TRU chan.

4x4 for trigger

L0 800 ns

L1 6.2 s

L2 88 s

Requirements

04/20/23

Page 9: EMCal project TRU (Trigger Region Unit) status Sept ‘08

Bx t=0

Convert the incoming signal

to a digital signal (12 bit)

170ns

CTP

max. 800 ns

~ 35 m = 154 nsXilinx Virtex-5

40 MHz

345 ns

40 MHz

20 MHz NRZ Trigger

TRU

135 ns580 ns

FEE

ADC

305 ns640 nsLevel-0 Algorithm

Maximum time

for calculation 235 nsSTU

600ns

~ 5 m = 22 ns69 parallel processes

Reading the data, analog sum (2x2)

De-serialize the data

Process Time

Data in FEE 135ns

ADC process 170ns

De-serialize 40ns

L0 Algorithm in TRU 235ns

STU calculation (for L0) 40ns

Cables ~178ns

• Every 4x4 calculation will run in parallel processes in the FPGA.• It creates the 4x4 group and check, if the energy reach a certain threshold or not. Every 4x4 group can have different threshold.• The limit to reach the CTP is 800ns. The table shows, how much time is needed to the sub-processes and how much time is left for the calculation

04/20/23 9

Page 10: EMCal project TRU (Trigger Region Unit) status Sept ‘08

DCS interface

TTCRq

V0 interface

DDL interface

L0 in

4 T

RU

inpu

ts

32 TRU inputs

4 T

RU

inpu

ts

Trig

ger

outp

uts

T0-B1

T2-B3

T38-B39

T36-B37

T3

4-B

35

T3

2-B

33

T3

0-B

31

T2

8-B

29

T2

6-B

27

T2

4-B

25

T2

2-B

23

T2

0-B

21

T1

8-B

19

T1

6-B

17

T1

4-B

15

T1

2-B

13

T1

0-B

11

T8

-B9

T6

-B7

T4

-B5

T0-B1 = Top is input 0, Bottom is input 1

STU (Summary Trigger Unit)

04/20/23 10

Page 11: EMCal project TRU (Trigger Region Unit) status Sept ‘08

STU

11

The STU has 40 input (for EMCal we will use 32) of high-speed link.

The board also contain an FPGA (Virtex-5, same what we have on TRU)

For generating the L0 signal it will create an OR from every TRU. If one has an L0 signal, then it will send it to CTP.

After that it will create also a L1 trigger signal :• L1 Gamma (is the same procedure, like in TRU 4x4 regions) • Low pT jets• Medium pT jets• High pT jets

Row/ col

0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23

0 0 4 8 12 16 20 24 28 32 36 40 44 48 52 56 60 64 68 72 76 80 84 88 92

1 1 5 9 13 17 21 25 29 33 37 41 45 49 53 57 61 65 69 73 77 81 85 89 93

2 2 6 10 14 18 22 26 30 34 38 42 46 50 54 58 62 66 70 74 78 82 86 90 94

3 3 7 11 15 19 23 27 31 35 39 43 47 51 55 59 63 67 71 75 79 83 87 91 95

Numbers are the readout order and not the ADC channel number

Total: 204 subregions

Below subregion delimitation, 4x4 fast OR 8x8=64 towers

04/20/23

Page 12: EMCal project TRU (Trigger Region Unit) status Sept ‘08

FPGA program (basic)

12

There are two main languages in use: VHDL and Verilog

The basic component of the program is the CLOCK. Every calculation, every signal is based on this clock. (in TRU it is a 40MHz clock, or we will use the LHC clock ~40.08 MHz)

The next is to match the pinout map with the correct chip pins. Every FPGA has different pinout map (we are using Xilinx Virtex-5 LX110 BGA1153).After that the compilation can find the correct way. If you miss the pin, you will not get anything.

The pinouts for our FPGA (what is in use)

04/20/23

Page 13: EMCal project TRU (Trigger Region Unit) status Sept ‘08

FPGA program (basic)

13

The start of the program is definition of the ports.We need to define the signal, what we will use:

• IN or OUT signal• The signal is std_logic (standard logic). We can also define it as a vector

State mashine

A very useful tool in hardware language. Here as a very simple example is a street-light.

04/20/23

Page 14: EMCal project TRU (Trigger Region Unit) status Sept ‘08

Our participation in TRU

14

1. The production of 38 TRU boards. (including 2 prototypes)

1. First test of the TRU prototypes before the full production. (Dong, Jo, Hans, Norbert)a) First power upb) Start to program the FPGA (also Prom)c) Test pattern for ADCsd) Test of High speed link and LVDS control (with Olivier)e) 2 remaining problem before full production:

I. GTL bus communicationII. Actel refreshing (not necessary)

04/20/23

Page 15: EMCal project TRU (Trigger Region Unit) status Sept ‘08

Test, what we had done

15

• First power up of the board (Problem 1) All of the starting problems was solved

• The power regulators gave the right values (Problem 2) Some small changes must be made

• Programming the FPGA via Xilinx cable: (Problem 3) Directly – tested From the flash (prom):

1. Serial programming (~15 seconds)2. Parallel programming (~2-3 seconds)

• The test pins are working fine, the LEDs are also ok.• Fake Altro test

The readout of the trigger data with the GTL bus

Conclusion

The design of the TRU board is good, there is no need to change it. Ready for full production.

04/20/23

Page 16: EMCal project TRU (Trigger Region Unit) status Sept ‘08

Test of ADCs

16

The ADCs do the conversion from analog signal to digital (12 bit) signal. After that the FPGA can handle the data.The ADC is working with 40MHz, it can sample the incoming data every 25ns.After that it provides 12 bit digital signal from data.

Sampling points (every 25ns)

40MHz – frame clockIt’s the start and end of the data.

240 MHz clock – data clockIn every rising and falling edge is one bit04/20/23

Page 17: EMCal project TRU (Trigger Region Unit) status Sept ‘08

17

40MHz clock – frame clock240MHz clock – data clock

ADCs 8 channels = 1 chipDeskew test pattern data

First thing to do: test the ADCs(12 bits in 8 channels)The part of the program initializes all the ADCs. You need to write to register few data to initialize the completely.After that we setup the test patterns:

• Sync: 101010101010 (~240MHz clock)• Deskew: 111111000000 (~40MHz clock)

First the testing of the FPGA features. For testing we can use:• Logic Analyzer (10 test pins = 10 channels)• ChipScope – built-in logic analyzer inside FPGA

Test of ADCs

04/20/23

Page 18: EMCal project TRU (Trigger Region Unit) status Sept ‘08

TRU-STU testFirst test with slow control:(2 inputs, 2 outputs links)We had to solve some issues with the correct pins in FPGA. We solved it. As far as I understood, it will be not used in final setup.They want to use the black-plane to operate with the board.

Second test was the high-speed link.(1 input (40MHz clock from STU, later the LHC clock), 3 output links)We were sending 450 words in packet, instead of 96. We solved also some last-minute issues with program. 4 inputs on STU were tested, worked properly. For further test more time is needed:• Test all inputs (compilation time increases)• Test with few TRU at once. (synchronization) 1804/20/23

Page 19: EMCal project TRU (Trigger Region Unit) status Sept ‘08

Short term plan• Actel refresh – it protects the FPGA from SUE (single upset events)

Dong is working on that now

This test will be good to be done, but not necessary.

Long term plan• After full test of the prototype, we need to start the full production. Ordering the missing parts, sending it to the companies.

• Further test with STU-TRU setup.

• Writing the final FPGA code for the trigger (with Jo, and maybe Dong)

1904/20/23

Page 20: EMCal project TRU (Trigger Region Unit) status Sept ‘08

Orders

20

Resistors and capacitors: ~1000 CHF

Connectors: ~1000 CHF

Chips: ~2000 CHF

ADCs:• SILICA AVNET (FR):23'964 CHF delivery: about 16/02/09• AVNET EMG (CH): 24’311 CHF delivery: about 09/02/09• DIGI-KEY (US): 33’538 CHF delivery: from stock (to be

checked before ordering)• SPOERLE (CH): 34’730 CHF delivery: within 12 weeks

(about 12/02/09)

After the components we need to order the boards (2 are already at Cern), and the mounting. This I don’t know how much will cost.

04/20/23

Page 21: EMCal project TRU (Trigger Region Unit) status Sept ‘08

Backup

2104/20/23

Page 22: EMCal project TRU (Trigger Region Unit) status Sept ‘08

First power up of board (Problem 1)The power supply values needed (INPUT values):

• 4.0V @ 3.3 A• 4.2V @ 3.5 A• 3.3V @ 3.0 A

At first power up we discovered a capacitor (C126) was mounted inversed and making to short circuit. The silk screen shows the plus sign on the wrong side. To be corrected in the mounting files.

If we are not using the backplane, to turn on the board we need to put a jumper on ST1.

2204/20/23

Page 23: EMCal project TRU (Trigger Region Unit) status Sept ‘08

Testing the volgates (Problem 2)

The Q2 must be corrected:•The TPS74410 is switched to TPS74401•The R68 and R64 must be switched•The C222 need to be changed to 100pF•The bias pin 6 should be connected to 3.3V

IC32:•Same TPS7701•R81 and R80 must be switched•The pin 6 should be connected to 3.3V•The C227 need to be changed to 100pF

On the board there are several voltage regulators:Digital Power

• Q2 – 1.0V output• Q1 – 2.5V output• IC33 – 3.3V output• Q3 – 2.5V output• Reg1 – 2.5V output

ADC powers (must be enable from FPGA):• IC31 – 3.3V output• IC32 – 1.8V output

2304/20/23

Page 24: EMCal project TRU (Trigger Region Unit) status Sept ‘08

More setup for TRUs (Problem 3)

There are several options how to use the TRU. The main switch for programming the FPGA is the SW1:

Here the R242 and R241 should be removed.This switch determine how should be the FPGA programmed (Prom – parallel or serial, Actel…)

The configuration on silkscreen is not correct for the parallel programming.

2404/20/23

Page 25: EMCal project TRU (Trigger Region Unit) status Sept ‘08

Programming the FPGA (Problem 3)The R124 must be removed to be able to program the FPGA from PROM or ACTEL. It is an active low signal, should be connected to the ground

The R71 must be removed for Actel programming (not yet tried)

To program the FPGA from PROM:

Remove the R22(C240 is not needed)

To disable the clock CLKOUT R18 must be removed.

2504/20/23