Top Banner
RCU Status 1.RCU hardware 2.Firmware/Software 3.Test setups HiB, UiB, UiO
19

RCU Status 1.RCU hardware 2.Firmware/Software 3.Test setups HiB, UiB, UiO.

Dec 23, 2015

Download

Documents

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: RCU Status 1.RCU hardware 2.Firmware/Software 3.Test setups HiB, UiB, UiO.

RCU Status

1. RCU hardware

2. Firmware/Software

3. Test setups

HiB, UiB, UiO

Page 2: RCU Status 1.RCU hardware 2.Firmware/Software 3.Test setups HiB, UiB, UiO.

Readout Contoller Unit

Page 3: RCU Status 1.RCU hardware 2.Firmware/Software 3.Test setups HiB, UiB, UiO.

1. RCU hardware• Prototype I

– 3 commercial PLDA PCI boards (two at CERN)– FEC test (ALTRO + FEE bus)– SIU integration– Qtr 3, 2001 – Qtr 3, 2002

• Prototype II– Custom design– All functional blocks– PCB: pre-prototype: June 2002, full prototype: September 2002– Implementation of basic functionality (FEE-board-> SIU): Qtr 4, 2002– Implementation of essential functionality: Qtr 2, 2003

• Prototype III – Minimal implementation– Form factor adapted to sector geometry – SRAM FPGA -> masked version or Antifuse FPGA (if needed)

• RCU production– Qtr 2, 2003

Page 4: RCU Status 1.RCU hardware 2.Firmware/Software 3.Test setups HiB, UiB, UiO.

RCU prototype II

• Implementation of essential functionality– Custom design

– All functional blocksPCI

core

SIU-CMCinterface

SIUPCI bus

FPGA

internalSRAM

memoryFLASH EEPROM

DCSEther-

net

TTCrx

FEE-bus

FEE-bus

DCSProfi-bus

FEE SC

Page 5: RCU Status 1.RCU hardware 2.Firmware/Software 3.Test setups HiB, UiB, UiO.

RCU prototype II

• Costs (August 2002)– dominated by FPGA + SRAM– FPGA EP20K400EFC672

• speed grade 3: 350 EUR• speed grade 1: 700 EUR

– SRAM (32bit + 64bit)• 0 + 2 MByte: 40 EUR• 8 + 4 Mbyte: 240 EUR

– all other components• approx. 200 EUR

– total component cost• fully loaded: 1140 EUR• minimal: 590 EUR

Page 6: RCU Status 1.RCU hardware 2.Firmware/Software 3.Test setups HiB, UiB, UiO.

RCU prototype II• Motherboard

– FPGA

– memory data buffer

– memory work space

– ethernet

– PCI interface

– CMC connectors

• Mezzanine card I– SIU

• Mezzanine card II– FEE bus A and B

– TTCrx

– Profibus interface

Page 7: RCU Status 1.RCU hardware 2.Firmware/Software 3.Test setups HiB, UiB, UiO.

RCU prototype II - motherboard

x 314 mm107 mm

Page 8: RCU Status 1.RCU hardware 2.Firmware/Software 3.Test setups HiB, UiB, UiO.

• Status motherboard (in collab. with HD)• 3 working prototypes

• Basic functionality

• ALTERA PCI core

• external 32 bit and 64 bit memory

• NIOS core

• Ethernet

• RCU functionality

• PLDA PCI core

• FEB / SIU programs

• 8 more prototypes in production

RCU prototype II – status (1)

Page 9: RCU Status 1.RCU hardware 2.Firmware/Software 3.Test setups HiB, UiB, UiO.

• Status RCU mezzanine board• 2 boards fully loaded

• 2 x FEC-bus

• TTCrx

• Profibus

• 6 boards with minimal configuration• FEC-bus

• Layout finished, PCB production and mounting of components at UiO (David Wormald) in September

RCU prototype II - status (2)

Page 10: RCU Status 1.RCU hardware 2.Firmware/Software 3.Test setups HiB, UiB, UiO.

2. RCU firmware design – control flow

• State machines

RCUresource

& priority manager

TTCrxFEE bus controller

SIUcontroller DDL

commanddecoder

FEESC

DCS low level

Watchdog 1:health agentDebugger

PCI core

Huffman encoder

DCS high level

Watchdog 2

Page 11: RCU Status 1.RCU hardware 2.Firmware/Software 3.Test setups HiB, UiB, UiO.

Firmware/software – status and plans

• FEC-bus controller • Jørgen Lien and ALTRO crew

• SIU controller• Jørgen and Csaba Soos

• DCS• Jon Wikne (UiO) and FH Worms

• TTCrx Interface• Sten Solli (UiO)

• SEU watchdogs• UiB

Page 12: RCU Status 1.RCU hardware 2.Firmware/Software 3.Test setups HiB, UiB, UiO.

FEC/SIU controller – current RCU setup

• Based on the PLDA commercial PCI-board • One PLDA-RCU reads out channel by

channel up to 13 FECs• Data is stored in internal memory and

transferred via PCI to the PC memory. This is done on a channel by channel basis.

• Linux application (mini-DAQ, API, device driver) merges the data from each channel into one subevent.

Page 13: RCU Status 1.RCU hardware 2.Firmware/Software 3.Test setups HiB, UiB, UiO.

Firmware status

RCU-FEE integration:• ReadOut of

ALTROs/FECs via PCI using PLDA prototype done (channel by channel)

• Configuration of ALTROs via PCI using the FE-Bus/ALTRO protocol done

RCU-DDL integration:

• Transfer of data from PLDA-RCU ext. Memory to DDL (current SIU mezzanine) done

• Writing of status reg. on PLDA-RCU from DDL(SIU mezzanine) done

• Writing blocks of data from DDL (SIU mezzanine) to PLDA-RCU memory (int. and ext.) done

Page 14: RCU Status 1.RCU hardware 2.Firmware/Software 3.Test setups HiB, UiB, UiO.

Migration to prototype II – next steps

• Transfer of current design to Prototype II (done).• Testing of data transfer from Prototype II external

memory to new SIU card.• Building larger fragments (up to full subevent) in

RCU external memory (consisting of data from all active channels on all ALTROs/FECs connected to the RCU front end branches) – optimize performance/latency vs memory usage.

• Improve PCI readout speed by DMA engine• Merging the Front End and DDL/SIU designs to

send data via the new SIU to the RORC/DAQ.

Page 15: RCU Status 1.RCU hardware 2.Firmware/Software 3.Test setups HiB, UiB, UiO.

DCS

• Backend interface to DCS– OPC server

• Fieldbus– Profibus– Ethernet

• Frontend interface– Profibus slave ASIC + SM– Ethernet chip + NIOS core

Page 16: RCU Status 1.RCU hardware 2.Firmware/Software 3.Test setups HiB, UiB, UiO.

PROFIBUS• Profichip VPC3+B Evaluation Kit

including Slave board, Software (incl. source code C)

• 5 pcs programmable PROFIBUS-DP Slave Controller ASICs

• Hilscher Master-Card CIF50-PB (PCI-interface, incl. software)

• 3 pcs Profichip EasyConn PB diagnostic plugs with P/D sockets

• 10 m profichip PROFIBUS cable type A (EN 50170)

• OPC server licence

Page 17: RCU Status 1.RCU hardware 2.Firmware/Software 3.Test setups HiB, UiB, UiO.

TTCrx interface

• Firmware development– Model the TTCrx ASIC with VHDL– Emulate the TTC system stimulating the TTCrx

model– Code the communication between the RCU FPGA

and the TTCrx

• Trigger system test– Need “TPC local trigger crate”– Where? CERN or Oslo/Bergen?– Who?

Page 18: RCU Status 1.RCU hardware 2.Firmware/Software 3.Test setups HiB, UiB, UiO.

TTCrx block diagra

m

Page 19: RCU Status 1.RCU hardware 2.Firmware/Software 3.Test setups HiB, UiB, UiO.

RCU system for TPC test: end 2002

/2003

FEE-bus controller

SIU controller

PCI core

SIUinterface

PCI bus

FPGA

SRAM

LINUX RH7.2FEE configurator

PCI-toolsRCU-API

device driver SIU

DIUinterface

PCI bus

LINUX RH7.2DATE 4

DDL/PCI-toolsHLT-RORC-

APIdevice driver

DIU

DDL

RCU prototype II

RORC

ext. SRAM FLASH

Manager

FEE-bus

Trigger

FEE-boards

PCI core

FPGA