SSD electronics review M. LeVine BNL M.J. LeVine SSD electronics - - PowerPoint PPT Presentation

ssd electronics review
SMART_READER_LITE
LIVE PREVIEW

SSD electronics review M. LeVine BNL M.J. LeVine SSD electronics - - PowerPoint PPT Presentation

ST STAR AR SSD electronics review M. LeVine BNL M.J. LeVine SSD electronics review, June 20, 2012 1 ST STAR AR Quick overview of upgrade M.J. LeVine SSD electronics review, June 20, 2012 2 SSD ladder ST STAR AR 16 M.J.


slide-1
SLIDE 1

M.J. LeVine 1 SSD electronics review, June 20, 2012

ST STAR AR

SSD electronics review

  • M. LeVine BNL
slide-2
SLIDE 2

M.J. LeVine 2 SSD electronics review, June 20, 2012

ST STAR AR

Quick overview of upgrade

slide-3
SLIDE 3

M.J. LeVine 3 SSD electronics review, June 20, 2012

ST STAR AR

SSD ladder

16

slide-4
SLIDE 4

M.J. LeVine 4 SSD electronics review, June 20, 2012

ST STAR AR

Previous readout configuration

slide-5
SLIDE 5

M.J. LeVine 5 SSD electronics review, June 20, 2012

ST STAR AR

Readout upgrade concept

  • Reading out front end:

– Replace single ADC with 16 ADCs

  • digitize 16 modules in parallel

– Increase sampling rate to 5.00 MHz – All ladders processed concurrently

  • Transferring data to PC

– Increase link throughput to DAQ PC to 120 Mbyte/s per 5 ladders

  • 1850 µs -> 450 µs

– Multiple (derandomizing) buffers effectively hides this time

  • Dead time: 10%@750Hz, <2%@100Hz
  • [cf. existing: >80%@750Hz,30% @ 100Hz]

2.5 ms -> 163 µs

slide-6
SLIDE 6

M.J. LeVine 6 SSD electronics review, June 20, 2012

ST STAR AR DAQ PC

DDL DAQ room Outer support cone South platform VME crate

RDO (1 of 8)

Slave FPGA Slave FPGA Slave FPGA Slave FPGA Slave FPGA

Master FPGA

DAQ interface TRG interface VME FPGA Fiber links

Ladder cards

VME interface

Readout components

slide-7
SLIDE 7

M.J. LeVine 7 SSD electronics review, June 20, 2012

ST STAR AR

Data formats

non zero-suppressed

– 3 10-bit ADC values to a 32-bit word – Fixed order: position in buffer/word -> geographical position

  • f strip

zero suppressed

– Only strips with ADC value above threshold are present – ADC value (10 bits) + strip location (14 bits) – One strip per 32-bit word – Alleviates large memory access burden on DAQ PC – Doing this in real time in FPGA is simple

slide-8
SLIDE 8

M.J. LeVine 8 SSD electronics review, June 20, 2012

ST STAR AR Dead time calculation - no zero suppression

slide-9
SLIDE 9

M.J. LeVine 9 SSD electronics review, June 20, 2012

ST STAR AR

Dead time calculations – zero suppression

3 % occupancy

slide-10
SLIDE 10

M.J. LeVine 10 SSD electronics review, June 20, 2012

ST STAR AR

Ladder data path

module module

X16

5 MHz 5 MHz

adc 12bit 16 bit serial output adc 12bit 16 bit serial output

80 MHz 80 MHz

FIFO

16 50 MHz

packer

2 JTAG TDOs 20 40 MHz

serializer

to fiber 16 bit width 32 words deep Write enable: true on 10 clocks only

1 set of adc samples: 10 X 16 bits => repacked into: 2 X 4 X 20 bits

slide-11
SLIDE 11

M.J. LeVine 11 SSD electronics review, June 20, 2012

ST STAR AR

deserialize

demux FIFO1 FIFO2 FIFO3 FIFO4

mux

FIFO

1:10 deserialize JTAG TDOs 2 20

first wd

40 MHz

50 MHz

word 1 word 2 word 3 word 4

20 bit 16 bit 50 MHz

10 10

5 MHz x16

x16

word 5

unpacking 4 20-bit words to 5 16-bit words

RDO slave - unpacker

slide-12
SLIDE 12

M.J. LeVine 12 SSD electronics review, June 20, 2012

ST STAR AR Slave FPGA – ADC processing

Pedestal write

ADC 1 ADC 16 counter 0-767 Pedestal memory Pedestal memory read address

10 Subtract/ multiplex Subtract/ multiplex 2

mode

Mode: ADC, pedestal, or difference

  • +
  • +

Readout to master FPGA Buffer 0..3 256X32 bits address 10 14

write ped address write ped data

Select: ADC, pedestal only, or max(difference,0) 10 Packing register 1 2 3 10 1 2 3

1 16

Buffer 0..3 256X32 bits

÷ 3

8 read address remainder

from unpacker

(no zero suppression)

slide-13
SLIDE 13

M.J. LeVine 13 SSD electronics review, June 20, 2012

ST STAR AR

Prototype ladder card testing

slide-14
SLIDE 14

M.J. LeVine 14 SSD electronics review, June 20, 2012

ST STAR AR

Ladder board: (inside)

Flex circuit layer Frame cut loose when board is ready for installation

slide-15
SLIDE 15

M.J. LeVine 15 SSD electronics review, June 20, 2012

ST STAR AR

Ladder board: (outside)

Edge connector for debug card

slide-16
SLIDE 16

M.J. LeVine 16 SSD electronics review, June 20, 2012

ST STAR AR

Debug card (via edge connector)

Version using FTDI naked chip Version using FTDI plugin module Provides:

  • JTAG header to configure FPGA
  • JTAG header for slow controls
  • Both will be provided via fiber
  • USB access to FPGA
slide-17
SLIDE 17

M.J. LeVine 17 SSD electronics review, June 20, 2012

ST STAR AR

USB test results

Number of devices is 2 ==== Device 0 is Subatech DbgV3n1 ====== Serial # A7U3EQBC 1) sending the following bytes 0x41 0x41 0xFF 0xFF 0x42 0x42 0x00 0x00 0x43 0x43 0xFF 0xFF 0x44 0x44 0x44 0x44 2) sending the following bytes 0x41 0x41 0xFF 0xFF 0x42 0x42 0x00 0x00 0x43 0x43 0xFF 0xFF 0x44 0x44 0x44 0x44 FT_Read = 32 pcBufRead[0] = 0x41 pcBufRead[1] = 0x41 pcBufRead[2] = 0xFF pcBufRead[3] = 0xFF pcBufRead[4] = 0x42 pcBufRead[5] = 0x42 pcBufRead[6] = 0x00 pcBufRead[7] = 0x00 pcBufRead[8] = 0x43 pcBufRead[9] = 0x43 pcBufRead[10] = 0xFF pcBufRead[11] = 0xFF pcBufRead[12] = 0x44 pcBufRead[13] = 0x44 pcBufRead[14] = 0x44 pcBufRead[15] = 0x44 pcBufRead[16] = 0x41 pcBufRead[17] = 0x41 pcBufRead[18] = 0xFF pcBufRead[19] = 0xFF pcBufRead[20] = 0x42 pcBufRead[21] = 0x42 pcBufRead[22] = 0x00 pcBufRead[23] = 0x00 pcBufRead[24] = 0x43 pcBufRead[25] = 0x43 pcBufRead[26] = 0xFF pcBufRead[27] = 0xFF pcBufRead[28] = 0x44 pcBufRead[29] = 0x44 pcBufRead[30] = 0x44 pcBufRead[31] = 0x44 Closed device A7U3EQBC

slide-18
SLIDE 18

M.J. LeVine 18 SSD electronics review, June 20, 2012

ST STAR AR

Slow controls JTAG signals

slide-19
SLIDE 19

M.J. LeVine 19 SSD electronics review, June 20, 2012

ST STAR AR

Slow controls – read registers

reading register 0x01 ROBOCLKS: 0xaa 0xaa 0xaa ✔ reading register 0x02 STATUS : 0x3e 0x60 0x3f reading register 0x03 CONFIG : 0x00 0x00 reading register 0x04 DAC VALS: 0x0a 0xa9 0x55 ✔ reading register 0x07 HYBRIDS : 0x00 0x00 reading register 0x08 LATCHUP : 0x00 reading register 0x09 RALLUMAG: 0x00 0x00 reading register 0x0b BYPASS : 0x00 0x00 reading register 0x0c VERSION : 0x26 0x01 0x20 0x11 ✔ reading register 0x0e TEMPS : 0x00 0x00 0x00 0x00 0x00 0x00 reading register 0x1b IDENTITE: 0xb7 ✔

✔ = Register with known content at startup

slide-20
SLIDE 20

M.J. LeVine 20 SSD electronics review, June 20, 2012

ST STAR AR

Ladder response vs clock frequency

4.3 MHz 5.0 MHz 6.0 MHz Horiz:100 ns/cm

slide-21
SLIDE 21

M.J. LeVine 21 SSD electronics review, June 20, 2012

ST STAR AR

Level-shifting for bias side

DOE HFT Review

slide-22
SLIDE 22

M.J. LeVine 22 SSD electronics review, June 20, 2012

ST STAR AR

Single event upsets

  • Ionizing radiation causes single bit errors in

configuration memory (internal to FPGA)

– Change FPGA behavior

  • Scale from observed error frequency in TOF

– Estimate 1 error per 10 minutes in SSD

  • Must pro-actively detect these errors by running

CRC checks while acquiring data

– Provided by Altera

  • Time to reconfigure FPGA: < 1 sec
slide-23
SLIDE 23

M.J. LeVine 23 SSD electronics review, June 20, 2012

ST STAR AR

Fake static source

slide-24
SLIDE 24

M.J. LeVine 24 SSD electronics review, June 20, 2012

ST STAR AR

Ladder card testing road map

  • Use USB to trigger ADC conversion, gather data
  • Use “static fake ladder” to provide selectable DC level at

each ladder input

  • Allows verification of basic functionality of analog section
  • Use “dynamic fake ladder” (in design) to verify ADC

timing for each ladder.

  • Use QRDO (in layout) to verify ladder card functionality

up through fiber link

DOE HFT Review

slide-25
SLIDE 25

M.J. LeVine 25 SSD electronics review, June 20, 2012

ST STAR AR

Mapping analog response

  • Software

– Python script driving – Multiple .exe (C code)

  • Time to map response for 1 ADC: 30 sec
  • Time to map all 16 ADCs: 20 minutes

– Disconnect/connect flex cable

  • Basis for future slow controls software
  • SC uses JTAG header on debug card

– Will be replaced by fiber protocol

slide-26
SLIDE 26

M.J. LeVine 26 SSD electronics review, June 20, 2012

ST STAR AR

128 256 384 512 640 768

  • 1.4
  • 1.2
  • 1
  • 0.8
  • 0.6
  • 0.4
  • 0.2

0.2 0.4 0.6 0.8 1 1.2 1.4

ADCs vs. calculated

adc0 adc1 adc2 adc3 adc4 adc5 adc6 adc7 adc8 adc9 adc10 adc11 adc12 adc13 adc14 adc15 calc

Analog response for all ADCs

slide-27
SLIDE 27

M.J. LeVine 27 SSD electronics review, June 20, 2012

ST STAR AR

Analog response

  • Non-linear behavior of N-face not yet

understood

  • Discovered we are sensitive to PS

fluctuations via DAC

– Will be separately regulated in production version (prototype in test)

slide-28
SLIDE 28

M.J. LeVine 28 SSD electronics review, June 20, 2012

ST STAR AR

Verification of packing code

  • USB output for ADC data
  • Install USB spy at output of FIFO

module module

X16

5 MHz 5 MHz

adc 12bit 16 bit serial output adc 12bit 16 bit serial output

80 MHz 80 MHz

register

16 50 MHz

FIFO

2 JTAG TDOs 20 40 MHz

serializer

to fiber 16 bit width 4 words temp Write enable: true on 10 clocks

  • nly

USB output USB output External to FPGA

slide-29
SLIDE 29

M.J. LeVine 29 SSD electronics review, June 20, 2012

ST STAR AR

Ladder packer verification

  • Following 4 slides are identical except for

notation showing which bits are to be extracted for each word sent to the FIFO

  • Lines FIFO[0]…FIFO[7] show the 21-bit

word exiting the FIFO

  • Comparison shows that the packer is

functioning correctly

slide-30
SLIDE 30

M.J. LeVine 30 SSD electronics review, June 20, 2012

ST STAR AR

DAC A = 300, DAC B = 500 bit bit 9 ===================== ADC[15]: 529 0x211 1 0 0 0 0 1 0 0 0 1 ADC[14]: 885 0x375 1 1 0 1 1 1 0 1 0 1 ADC[13]: 889 0x379 1 1 0 1 1 1 1 0 0 1 ADC[12]: 891 0x37B 1 1 0 1 1 1 1 0 1 1 ADC[11]: 901 0x385 1 1 1 0 0 0 0 1 0 1 ADC[10]: 893 0x37D 1 1 0 1 1 1 1 1 0 1 ADC[9]: 888 0x378 1 1 0 1 1 1 1 0 0 0 ADC[8]: 136 0x088 0 0 1 0 0 0 1 0 0 0 ADC[7]: 887 0x377 1 1 0 1 1 1 0 1 1 1 ADC[6]: 890 0x37A 1 1 0 1 1 1 1 0 1 0 ADC[5]: 886 0x376 1 1 0 1 1 1 0 1 1 0 ADC[4]: 901 0x385 1 1 1 0 0 0 0 1 0 1 ADC[3]: 888 0x378 1 1 0 1 1 1 1 0 0 0 ADC[2]: 888 0x378 1 1 0 1 1 1 1 0 0 0 ADC[1]: 891 0x37B 1 1 0 1 1 1 1 0 1 1 ADC[0]: 892 0x37C 1 1 0 1 1 1 1 1 0 0 FIFO[0] 0x1FFEFF FIFO[1] 0x0107EF FIFO[2] 0x06EF09 FIFO[3] 0x076EF7 FIFO[4] 0x1FF6EF FIFO[5] 0x0B1374 FIFO[6] 0x00E24C FIFO[7] 0x0FC921

Fifo 0 (15..0) Fifo 0 (19..16) Bit 20 (“first word”)

FIFO21 word 0

slide-31
SLIDE 31

M.J. LeVine 31 SSD electronics review, June 20, 2012

ST STAR AR

DAC A = 300, DAC B = 500 bit bit 9 ===================== ADC[15]: 529 0x211 1 0 0 0 0 1 0 0 0 1 ADC[14]: 885 0x375 1 1 0 1 1 1 0 1 0 1 ADC[13]: 889 0x379 1 1 0 1 1 1 1 0 0 1 ADC[12]: 891 0x37B 1 1 0 1 1 1 1 0 1 1 ADC[11]: 901 0x385 1 1 1 0 0 0 0 1 0 1 ADC[10]: 893 0x37D 1 1 0 1 1 1 1 1 0 1 ADC[9]: 888 0x378 1 1 0 1 1 1 1 0 0 0 ADC[8]: 136 0x088 0 0 1 0 0 0 1 0 0 0 ADC[7]: 887 0x377 1 1 0 1 1 1 0 1 1 1 ADC[6]: 890 0x37A 1 1 0 1 1 1 1 0 1 0 ADC[5]: 886 0x376 1 1 0 1 1 1 0 1 1 0 ADC[4]: 901 0x385 1 1 1 0 0 0 0 1 0 1 ADC[3]: 888 0x378 1 1 0 1 1 1 1 0 0 0 ADC[2]: 888 0x378 1 1 0 1 1 1 1 0 0 0 ADC[1]: 891 0x37B 1 1 0 1 1 1 1 0 1 1 ADC[0]: 892 0x37C 1 1 0 1 1 1 1 1 0 0 FIFO[0] 0x1FFEFF FIFO[1] 0x0107EF FIFO[2] 0x06EF09 FIFO[3] 0x076EF7 FIFO[4] 0x1FF6EF FIFO[5] 0x0B1374 FIFO[6] 0x00E24C FIFO[7] 0x0FC921

Fifo 1 (11..0) Fifo 1 (19..12)

FIFO21 word 1

Bit 20 (“first word”)

slide-32
SLIDE 32

M.J. LeVine 32 SSD electronics review, June 20, 2012

ST STAR AR

DAC A = 300, DAC B = 500 bit bit 9 ===================== ADC[15]: 529 0x211 1 0 0 0 0 1 0 0 0 1 ADC[14]: 885 0x375 1 1 0 1 1 1 0 1 0 1 ADC[13]: 889 0x379 1 1 0 1 1 1 1 0 0 1 ADC[12]: 891 0x37B 1 1 0 1 1 1 1 0 1 1 ADC[11]: 901 0x385 1 1 1 0 0 0 0 1 0 1 ADC[10]: 893 0x37D 1 1 0 1 1 1 1 1 0 1 ADC[9]: 888 0x378 1 1 0 1 1 1 1 0 0 0 ADC[8]: 136 0x088 0 0 1 0 0 0 1 0 0 0 ADC[7]: 887 0x377 1 1 0 1 1 1 0 1 1 1 ADC[6]: 890 0x37A 1 1 0 1 1 1 1 0 1 0 ADC[5]: 886 0x376 1 1 0 1 1 1 0 1 1 0 ADC[4]: 901 0x385 1 1 1 0 0 0 0 1 0 1 ADC[3]: 888 0x378 1 1 0 1 1 1 1 0 0 0 ADC[2]: 888 0x378 1 1 0 1 1 1 1 0 0 0 ADC[1]: 891 0x37B 1 1 0 1 1 1 1 0 1 1 ADC[0]: 892 0x37C 1 1 0 1 1 1 1 1 0 0 FIFO[0] 0x1FFEFF FIFO[1] 0x0107EF FIFO[2] 0x06EF09 FIFO[3] 0x076EF7 FIFO[4] 0x1FF6EF FIFO[5] 0x0B1374 FIFO[6] 0x00E24C FIFO[7] 0x0FC921

Fifo 2 (7..0) Fifo 2 (19..8)

FIFO21 word 2

Bit 20 (“first word”)

slide-33
SLIDE 33

M.J. LeVine 33 SSD electronics review, June 20, 2012

ST STAR AR

DAC A = 300, DAC B = 500 bit bit 9 ===================== ADC[15]: 529 0x211 1 0 0 0 0 1 0 0 0 1 ADC[14]: 885 0x375 1 1 0 1 1 1 0 1 0 1 ADC[13]: 889 0x379 1 1 0 1 1 1 1 0 0 1 ADC[12]: 891 0x37B 1 1 0 1 1 1 1 0 1 1 ADC[11]: 901 0x385 1 1 1 0 0 0 0 1 0 1 ADC[10]: 893 0x37D 1 1 0 1 1 1 1 1 0 1 ADC[9]: 888 0x378 1 1 0 1 1 1 1 0 0 0 ADC[8]: 136 0x088 0 0 1 0 0 0 1 0 0 0 ADC[7]: 887 0x377 1 1 0 1 1 1 0 1 1 1 ADC[6]: 890 0x37A 1 1 0 1 1 1 1 0 1 0 ADC[5]: 886 0x376 1 1 0 1 1 1 0 1 1 0 ADC[4]: 901 0x385 1 1 1 0 0 0 0 1 0 1 ADC[3]: 888 0x378 1 1 0 1 1 1 1 0 0 0 ADC[2]: 888 0x378 1 1 0 1 1 1 1 0 0 0 ADC[1]: 891 0x37B 1 1 0 1 1 1 1 0 1 1 ADC[0]: 892 0x37C 1 1 0 1 1 1 1 1 0 0 FIFO[0] 0x1FFEFF FIFO[1] 0x0107EF FIFO[2] 0x06EF09 FIFO[3] 0x076EF7 FIFO[4] 0x1FF6EF FIFO[5] 0x0B1374 FIFO[6] 0x00E24C FIFO[7] 0x0FC921

Fifo 3 (3..0) Fifo 3 (19..4)

FIFO21 word 3

Bit 20 (“first word”)

slide-34
SLIDE 34

M.J. LeVine 34 SSD electronics review, June 20, 2012

ST STAR AR

Ladder card testing status

  • Routing error on FPGA discovered
  • Temporary fix using interposer
  • Continue testing using original PCB w/

interposer

  • Configure FPGA via debug card JTAG

header

  • Communication with FPGA via USB

verified

  • Slow controls functionality (JTAG) verified
slide-35
SLIDE 35

M.J. LeVine 35 SSD electronics review, June 20, 2012

ST STAR AR

Ladder card hardware

  • Testing of ladder card has exposed only 2

problems

– FPGA orientation

  • Corrected on pre-production version

– Susceptibility of analog section to PS variation

  • Can degrade ability to interpolate centroid
  • A

lternate DAC design being tested

– To be done

  • Verify interaction with ladder modules

– Token passing – JTAG

slide-36
SLIDE 36

M.J. LeVine 36 SSD electronics review, June 20, 2012

ST STAR AR

Ladder card firmware

  • All functions that have been tested are

working correctly

  • Remaining to verify –

– JTAG to ladder components

slide-37
SLIDE 37

M.J. LeVine 37 SSD electronics review, June 20, 2012

ST STAR AR

Rad hardness of optical xcvr

  • Tests of Avago xcvr show that it dies

around 100 kRad (Co60 source)

  • A rad hard version has been developed for

LHC

– Working prototypes now available

  • Almost plug compatible with Avago

– Requires 2.5V instead of 3.3V – Jumper provided on ladder board to select 2.5V supply

slide-38
SLIDE 38

M.J. LeVine 38 SSD electronics review, June 20, 2012

ST STAR AR

QRDO -

  • prototype RDO slave
  • ladder card test stand
slide-39
SLIDE 39

M.J. LeVine 39 SSD electronics review, June 20, 2012

ST STAR AR

QRDO (Fast-track version of RDO)

  • Interfaces to one ladder board
  • Implements one slave FPGA
  • Only features required for

testing ladder board

  • No TRG, DAQ
  • All input/output via USB
  • Can acquire up to 4 events at

full speed USB Fiber pair to ladder

slide-40
SLIDE 40

M.J. LeVine 40 SSD electronics review, June 20, 2012

ST STAR AR

QRDO assembled

slide-41
SLIDE 41

M.J. LeVine 41 SSD electronics review, June 20, 2012

ST STAR AR

QRDO commissioning

  • Orsay USB protocol implemented

– Message layer on top of byte pipe – Goal: replace VME (4-byte messages)

  • Problems –

– Bad synthesis by Synopsys tool !! – Now resolved

  • Message protocol working
slide-42
SLIDE 42

M.J. LeVine 42 SSD electronics review, June 20, 2012

ST STAR AR

USB message protocol

4-byte write 4-byte read

6-bit subaddress used for register addressing

slide-43
SLIDE 43

M.J. LeVine 43 SSD electronics review, June 20, 2012

ST STAR AR

Testing ladder card with QRDO

slide-44
SLIDE 44

M.J. LeVine 44 SSD electronics review, June 20, 2012

ST STAR AR

Integration of ladder card/QRDO

  • Generate test patterns on ladder card
  • Spy at QRDO on incoming data via fiber

with logic analyzer

slide-45
SLIDE 45

M.J. LeVine 45 SSD electronics review, June 20, 2012

ST STAR AR

Data sequence received in QRDO

DREADY=‘1’ signifies data phase Data shown here are artificial for diagnostics

slide-46
SLIDE 46

M.J. LeVine 46 SSD electronics review, June 20, 2012

ST STAR AR Status words received in QRDO

Word Value Comment (from Table 52, master document) 07000 configured, OK, serdes clock used 1 04000 deserializer lock OK 2 00000 (no optical transceiver problems) 3 05000 usb present, debug present 4 00000 5 00000 6 01000 7 00000 ladder 0 (not yet assigned by QRDO) serial #1 (agrees with hardware assignment on board)

slide-47
SLIDE 47

M.J. LeVine 47 SSD electronics review, June 20, 2012

ST STAR AR

2 1 0 2 3 0 9 0

(ls bit first)

Read version date register (contents = 0x09032012)

JTAG testing via fiber

TCK TMS TDO

slide-48
SLIDE 48

M.J. LeVine 48 SSD electronics review, June 20, 2012

ST STAR AR

Returning TDO is shifted on falling edge of TCK. è There is still a safety margin of 480ns with 31m fiber cable. Note Δ=780ns with 3m cable, 600ns with 15.5m cable, 480ns with 31m cable.

(scope probes were not properly grounded, thus shifting baselines)

Test JTAG with full fiber length

ç 1m ç 15.5m ç 31m

slide-49
SLIDE 49

M.J. LeVine 49 SSD electronics review, June 20, 2012

ST STAR AR

QRDO status

  • Hardware working as expected

– PCB layout by Phil Kuczewski

  • Firmware status:

– JTAG to ladder via fiber

  • working

– Configure ladder FPGA over fiber

  • working
slide-50
SLIDE 50

M.J. LeVine 50 SSD electronics review, June 20, 2012

ST STAR AR

QRDO (RDO prototype)

  • Status

– Have been working with assembled QRDO since Summer 2011 – Uses USB as control port

  • Not without problems!

– Allowed verification of data arriving via fiber – Allowed JTAG to be debugged and verified – Allowed configuration of ladder FPGA to be debugged and verified

  • Download FPGA code via fiber in 0.5s
slide-51
SLIDE 51

M.J. LeVine 51 SSD electronics review, June 20, 2012

ST STAR AR

RDO

slide-52
SLIDE 52

M.J. LeVine 52 SSD electronics review, June 20, 2012

ST STAR AR

RDO status

  • Schematic complete
  • PCB layout finished June 13, 2012
  • Assembled prototypes expected mid July,

2012

  • need VME master to test complete

functionality

– Use USB-VME bridge (Wiener)

slide-53
SLIDE 53

M.J. LeVine 53 SSD electronics review, June 20, 2012

ST STAR AR

RDO slave <-> master

  • Design uses lvds serial lanes
  • 4 slave -> master (event data)
  • 2 master -> slave (commands)
  • 5 slaves -> master required 5 PLLs in

master

  • Only 4 PLLs available in this chip family
slide-54
SLIDE 54

M.J. LeVine 54 SSD electronics review, June 20, 2012

ST STAR AR

Alternate designs considered

  • Parallel bus

– High freq clock to have required data xfer rate

  • Daisy chained highway

– Too many pins required on slaves

  • Large enough FPGA to implement 5

slaves + master

– Not an option until one month ago

slide-55
SLIDE 55

M.J. LeVine 55 SSD electronics review, June 20, 2012

ST STAR AR

RDO workaround

  • Workaround chosen:

– Source synchronous using clock distributed by master – Clock captured by slave PLLs and used to transmit to master – Requires equal round-trip path lengths – LVDS 454 MHz (2.2ns) – Path lengths matched to 2.5mm (17 ps) for all 5 slaves

slide-56
SLIDE 56

M.J. LeVine 56 SSD electronics review, June 20, 2012

ST STAR AR

RDO conceptual layout

slide-57
SLIDE 57

M.J. LeVine 57 SSD electronics review, June 20, 2012

ST STAR AR

RDO top layer

VME FPGA Master FPGA SIU

LVDS Slave->Master

slide-58
SLIDE 58

M.J. LeVine 58 SSD electronics review, June 20, 2012

ST STAR AR

LVDS Master->Slave

RDO bottom layer

Test headers

slide-59
SLIDE 59

M.J. LeVine 59 SSD electronics review, June 20, 2012

ST STAR AR

RDO internal layers

slide-60
SLIDE 60

M.J. LeVine 60 SSD electronics review, June 20, 2012

ST STAR AR

DAQ PC status

  • 2 DAQ PCs delivered
  • 2 D-RORCs installed

– 1 PC only

  • Scientific Linux 5.x installed (64 bit)
  • DAQ software installed (Tonko) – 1 PC
  • Currently using as a test bed for USB

software

– prototype slow controls platform (temporary)

slide-61
SLIDE 61

M.J. LeVine 61 SSD electronics review, June 20, 2012

ST STAR AR

RDO

  • Status

– 6U VME board – very tight – Components in house – Schematic finished – Board layout finished – Schedule

  • Board ready for fabrication
  • Assembled by mid-July
  • Testing in July-August
slide-62
SLIDE 62

M.J. LeVine 62 SSD electronics review, June 20, 2012

ST STAR AR

SSD slow controls roadmap

slide-63
SLIDE 63

M.J. LeVine 63 SSD electronics review, June 20, 2012

ST STAR AR

SSD ladder

16

slide-64
SLIDE 64

M.J. LeVine 64 SSD electronics review, June 20, 2012

ST STAR AR

JTAG chain possibilities

FPGA

FPGA ALICE 0 ALICE 1 ALICE 2 ALICE 3 ALICE 4 ALICE 5 COSTAR

Module #N (0..15) FPGA only FPGA + module #N

FPGA MODULE 0 MODULE 1 …. MODULE 15

Legacy:

FPGA + 16 modules – 7 devices per module !! 103 elements in chain. Not robust!

Upgrade:

slide-65
SLIDE 65

M.J. LeVine 65 SSD electronics review, June 20, 2012

ST STAR AR

FPGA register configures chain

slide-66
SLIDE 66

M.J. LeVine 66 SSD electronics review, June 20, 2012

ST STAR AR

Slow controls - layers

  • Top level – runs on SC linux machine

– Identical to previous implementation

  • Lower level - now a hybrid

– Part on linux VME master – Part in RDO slave FPGAs

  • Interface between these defined 4/12
  • Code for lower level written

– Not yet debugged

  • Requires a ladder or one module of ladder
slide-67
SLIDE 67

M.J. LeVine 67 SSD electronics review, June 20, 2012

ST STAR AR Changes required to slow controls

  • Must reconfigure chain each time a module is included/excluded

­ Extra steps that were not part of legacy SC software

  • Legacy implementation used Corelis VME module
  • Based on TI8990 which fills role of JTAG master engine
  • Output was multiplexed to 4 Readout boards
  • Upgrade JTAG masters implemented in (40) slave FPGAs
  • Slow control software must be modified to speak directly to slave

FPGAs via VME

  • Advantage: 40 macro instructions can be executed simultaneously
slide-68
SLIDE 68

M.J. LeVine 68 SSD electronics review, June 20, 2012

ST STAR AR

Existing JTAG implementation

Used for tests --

/************************************************************************* Function: void write_register(reg_no, value) Function: unsigned int read_register(reg_no) Function: void reset_TAP() **************************************************************************/

Note – read register implemented as non-destructive (uses circulate data)

slide-69
SLIDE 69

M.J. LeVine 69 SSD electronics review, June 20, 2012

ST STAR AR

New interface defined (1)

Interface between existing slow controls software (upper level) and the implementation in the slave FPGAs has been negotiated between Weihua Yan and MJL as the following 3 functions which need to be implemented in VHDL and C++:

/************************************************************************* Function: scan_ir() Summary: Scans a bit stream into the TAP instruction register Usage: void scan_ir(output, length, input) unsigned short *output; unsigned short length; unsigned short *input;

**************************************************************************/ void scan_ir(unsigned short *output, unsigned short length, unsigned short *input) { }

slide-70
SLIDE 70

M.J. LeVine 70 SSD electronics review, June 20, 2012

ST STAR AR

New interface defined (2)

/************************************************************************* Function: scan_dr() Summary: Scans a bit stream out the TAP data path Usage: void scan_dr(output, length, input) unsigned short *output; unsigned short length; unsigned short *input; **************************************************************************/ void scan_dr(unsigned short *output, unsigned short length, unsigned short *input) { }

slide-71
SLIDE 71

M.J. LeVine 71 SSD electronics review, June 20, 2012

ST STAR AR

New interface defined (3)

/************************************************************************* Function: circulate_dr() Summary: Circulates a bit stream thru the TAP controller data path Usage: void circulate_dr(length, data) unsigned short length; unsigned short *data; **************************************************************************/ void circulate_dr(unsigned short length, unsigned short *output) { }