8
Paolo Ciambrone INFN- LNF ODE ECS ODE ECS ODE ECS Off Detector Electronics for the muon system Off Detector Electronics for the muon system INFN - LNF INFN - LNF Servizio Elettronica Laboratori Frascati Servizio Elettronica Laboratori Frascati A. Balla, M. Carletti, P. Ciambrone, G. A. Balla, M. Carletti, P. Ciambrone, G. Felic Felic i, M. Gatta i, M. Gatta

Paolo Ciambrone INFN- LNF ODE ECS ODE ECS Off Detector Electronics for the muon system INFN - LNF Servizio…

Embed Size (px)

DESCRIPTION

Paolo Ciambrone INFN- LNF ODE ECS 6 Apr ODE chips and registers 24 SYNC chips24 SYNC chips –24 registers each (17 configuration, 7 monitor) 13 GOL chips13 GOL chips –6 registers each (4 configuration, 2 monitor) 1 TTCrx chips1 TTCrx chips –20 registers (11 configuration, 9 monitor) L0 controllerL0 controller –16 registers (12 configuration, 4 monitor) 690 registers of 8 bits690 registers of 8 bits –Single bit access needed –~ 430 objects in the CAN dictionary –Board configuration required several (many) registers accesses

Citation preview

Page 1: Paolo Ciambrone INFN- LNF ODE ECS ODE ECS Off Detector Electronics for the muon system INFN - LNF Servizio…

Pao

lo C

iam

bron

e I

NFN-

LNF

ODE

ECS

ODE ECSODE ECSOff Detector Electronics for the muon systemOff Detector Electronics for the muon system

INFN - LNFINFN - LNFServizio Elettronica Laboratori FrascatiServizio Elettronica Laboratori Frascati

A. Balla, M. Carletti, P. Ciambrone, G. FelicA. Balla, M. Carletti, P. Ciambrone, G. Felici, M. Gattai, M. Gatta

Page 2: Paolo Ciambrone INFN- LNF ODE ECS ODE ECS Off Detector Electronics for the muon system INFN - LNF Servizio…

Pao

lo C

iam

bron

e I

NFN-

LNF

ODE

ECS

6 Apr. 20066 Apr. 2006 2

ECS interfaceECS interface• ECS interface via ELMB cardECS interface via ELMB card

– ATmega128 ATmega128 μμprocessor with CAN controller processor with CAN controller – CANbus lines on the backplaneCANbus lines on the backplane

• 1 branch with up to 16 ODE1 branch with up to 16 ODE– RS232 serial interface for local accessRS232 serial interface for local access

• ELMB on-board connectionELMB on-board connection– Global resetGlobal reset

• Startup (programmable)Startup (programmable)• ECS ( only way to reset TTCrx and GOL after ECS ( only way to reset TTCrx and GOL after

startup)startup)– 2 I2 I22C busC bus

• 24 SYNC24 SYNC• 13 GOL, TTCrx, L0 controller13 GOL, TTCrx, L0 controller• Configuration, monitor, SYNC histogram read-outConfiguration, monitor, SYNC histogram read-out

– 1 bus JTAG1 bus JTAG• Boundary scanBoundary scan

• CAN transceiver powered by ODE power supplyCAN transceiver powered by ODE power supply– Optocoupler must be foresee on PC- CAN Optocoupler must be foresee on PC- CAN

interface for galvanic isolationinterface for galvanic isolation24 SYNC 13 GOL

TTCrx

Board Controller

JTAG Controlle

r

JTAG BUS

ELMB

CAN TRANSCEIVER

I2C EMULATIO

NJTAG TEST FACILITIES

CAN

BUS

RS232

Page 3: Paolo Ciambrone INFN- LNF ODE ECS ODE ECS Off Detector Electronics for the muon system INFN - LNF Servizio…

Pao

lo C

iam

bron

e I

NFN-

LNF

ODE

ECS

6 Apr. 20066 Apr. 2006 3

ODE chips and ODE chips and registersregisters• 24 SYNC chips24 SYNC chips

– 24 registers each (17 configuration, 24 registers each (17 configuration, 7 monitor)7 monitor)

• 13 GOL chips13 GOL chips– 6 registers each (4 configuration, 2 6 registers each (4 configuration, 2

monitor)monitor)

• 1 TTCrx chips1 TTCrx chips– 20 registers (11 configuration, 9 20 registers (11 configuration, 9

monitor)monitor)

• L0 controllerL0 controller– 16 registers (12 configuration, 4 16 registers (12 configuration, 4

monitor)monitor)

• 690 registers of 8 bits690 registers of 8 bits– Single bit access neededSingle bit access needed– ~ 430 objects in the CAN dictionary~ 430 objects in the CAN dictionary– Board configuration required several Board configuration required several

(many) registers accesses(many) registers accesses

Page 4: Paolo Ciambrone INFN- LNF ODE ECS ODE ECS Off Detector Electronics for the muon system INFN - LNF Servizio…

Pao

lo C

iam

bron

e I

NFN-

LNF

ODE

ECS

6 Apr. 20066 Apr. 2006 4

Board configurationsBoard configurations• DAQ mode DAQ mode

– SYNCs, GOLs, TTCrx, L0 controller configuration registers loaded via ECSSYNCs, GOLs, TTCrx, L0 controller configuration registers loaded via ECS– Standard acquisition modeStandard acquisition mode

• DAQ-SYNC Test ModeDAQ-SYNC Test Mode– SYNCs, GOLs, TTCrx, L0 controller configuration registers loaded via ECS SYNCs, GOLs, TTCrx, L0 controller configuration registers loaded via ECS – Test DAQ data path Test DAQ data path

• Known patterns loaded in SYNC L0 derandomizer via ECS Known patterns loaded in SYNC L0 derandomizer via ECS • ““Normal” data readout by board controllerNormal” data readout by board controller

• DAQ-Internal Test ModeDAQ-Internal Test Mode– GOLs, TTCrx, L0 controller configuration registers loaded via ECSGOLs, TTCrx, L0 controller configuration registers loaded via ECS– Test data link integrity and performancesTest data link integrity and performances

• Known patterns loaded in L0 board controller via ECSKnown patterns loaded in L0 board controller via ECS• 8 bits Pseudo-random sequence8 bits Pseudo-random sequence

• Trigger test modeTrigger test mode– SYNCs, GOLs, TTCrx configuration registers loaded via ECSSYNCs, GOLs, TTCrx configuration registers loaded via ECS– Test trigger link integrity and performancesTest trigger link integrity and performances

• Fixed pattern defined via ECSFixed pattern defined via ECS• 8 bits Pseudo-random sequence8 bits Pseudo-random sequence

• Histogram modeHistogram mode– SYNCs configuration registers loaded via ECSSYNCs configuration registers loaded via ECS– Histogram readable via ECSHistogram readable via ECS

• DAQ data dumpDAQ data dump– DAQ GOL frame dumped in a internal FIFODAQ GOL frame dumped in a internal FIFO– DUMP mode programmable and readable via ECSDUMP mode programmable and readable via ECS

• All TTCrx signals emulated via ECS (L0_YES, BC_res, EV_res, L0_res)All TTCrx signals emulated via ECS (L0_YES, BC_res, EV_res, L0_res)– NO L0_YES needed in test modeNO L0_YES needed in test mode

Page 5: Paolo Ciambrone INFN- LNF ODE ECS ODE ECS Off Detector Electronics for the muon system INFN - LNF Servizio…

Pao

lo C

iam

bron

e I

NFN-

LNF

ODE

ECS

6 Apr. 20066 Apr. 2006 5

ELMB firmwareELMB firmware• Final ELMB firmware releasedFinal ELMB firmware released

– Bridge between CAN (RS232) interface and internal bus (IBridge between CAN (RS232) interface and internal bus (I22C, JTag)C, JTag)– CANopenCANopen CiA DS-301 standard, limited to the so called Predefinited- CiA DS-301 standard, limited to the so called Predefinited-

Connection-Set but including the SDO Block Download/Upload protocols, Connection-Set but including the SDO Block Download/Upload protocols, and a semi-standard mechanism for Multiple PDO transmission protocoland a semi-standard mechanism for Multiple PDO transmission protocol

– implementation of an Object-Dictionary with more than 430 objects fully implementation of an Object-Dictionary with more than 430 objects fully accessibleaccessible

• ““Standard” ELMB Firmware partially re-written (SEU compliance) forStandard” ELMB Firmware partially re-written (SEU compliance) for– Optimization of data transfer speedOptimization of data transfer speed

• Multiple PDO implemented (data transfer without protocol overhead)Multiple PDO implemented (data transfer without protocol overhead)

– Local configuration proceduresLocal configuration procedures• Single CAN command for board configurationSingle CAN command for board configuration• Default settingDefault setting• Histogram and dump FIFO downloadHistogram and dump FIFO download

– Parallel internal access to minimize dead timeParallel internal access to minimize dead time

– Use of internal EEPROM for data storage; Use of internal EEPROM for data storage;

– Implementation of the In-System-Programming, via Bootloader firmware, Implementation of the In-System-Programming, via Bootloader firmware, for the program-code renewing of the ELMB processorfor the program-code renewing of the ELMB processor

Page 6: Paolo Ciambrone INFN- LNF ODE ECS ODE ECS Off Detector Electronics for the muon system INFN - LNF Servizio…

Pao

lo C

iam

bron

e I

NFN-

LNF

ODE

ECS

6 Apr. 20066 Apr. 2006 6

Test program Test program • Serial interface for local accessSerial interface for local access

– RS232RS232– Program on ELMB flash ramProgram on ELMB flash ram

• Shell for command decodingShell for command decoding

Page 7: Paolo Ciambrone INFN- LNF ODE ECS ODE ECS Off Detector Electronics for the muon system INFN - LNF Servizio…

Pao

lo C

iam

bron

e I

NFN-

LNF

ODE

ECS

6 Apr. 20066 Apr. 2006 7

Test program Test program • ODE tester programODE tester program

– Win32 application (visual basic + DLL in C language) Win32 application (visual basic + DLL in C language) – Management and work-benching of a ODE crate via CAN busManagement and work-benching of a ODE crate via CAN bus

• Bus traffic monitor (Bus traffic monitor (detailed information for each intercepted message)detailed information for each intercepted message)• Node status monitor and control viaNode status monitor and control via Network-Management (NMT) facility Network-Management (NMT) facility • Scripting language console for high level commandScripting language console for high level command• CAN-JTag command translator (to be implemented)CAN-JTag command translator (to be implemented)• Tool panels forTool panels for

– Object-Dictionary access in reading and writing;Object-Dictionary access in reading and writing;– CANopen Error-Control-Protocols management: Node-guarding/Heartbeat, Life-CANopen Error-Control-Protocols management: Node-guarding/Heartbeat, Life-

guarding;guarding;– In-System-Programming;In-System-Programming;– SYNC chips histogram downloading and graphing;SYNC chips histogram downloading and graphing;– ODE test procedures;ODE test procedures;– configuration and default parameters storing/retrieving;configuration and default parameters storing/retrieving;– etc... (?)etc... (?)

Page 8: Paolo Ciambrone INFN- LNF ODE ECS ODE ECS Off Detector Electronics for the muon system INFN - LNF Servizio…

Pao

lo C

iam

bron

e I

NFN-

LNF

ODE

ECS

6 Apr. 20066 Apr. 2006 8

ODE frameworkODE framework• Working in progress …Working in progress …

– Translate some ODE tester functionalities in PVSS script but:Translate some ODE tester functionalities in PVSS script but:• ODE is an “optical” board, therefore its output required an “optical” ODE is an “optical” board, therefore its output required an “optical”

receiver (TELL1 and Trigger board) to be controlled at he same timereceiver (TELL1 and Trigger board) to be controlled at he same time

– Some procedures (alignment, pulsing, …) required a Some procedures (alignment, pulsing, …) required a contemporary control of other boards (Service Board, Dialog, …)contemporary control of other boards (Service Board, Dialog, …)

– What the global experiment ECS want from us …What the global experiment ECS want from us …

– What can be useful for the Muon detector for monitoring and What can be useful for the Muon detector for monitoring and debug …debug …

– Manpower required and time schedule …Manpower required and time schedule …• Only 1 person involved in LNF (perhaps not enough)Only 1 person involved in LNF (perhaps not enough)