on-board pcs for interfacing front-end electronics · 2002. 4. 10. · 12 bit data altera 10k50e240...

16
1 On-board PCs for interfacing front-end electronics JCOP team meeting April 10, 2002 Niko Neufeld CERN/EP

Upload: others

Post on 20-Jan-2021

0 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: On-board PCs for interfacing front-end electronics · 2002. 4. 10. · 12 bit data Altera 10K50E240 189pin data ad d 512Kx 18 VME Conn EPM7160-100 Glue Logic JTAG DATA ADD CONTR Dout

1

On-board PCs for interfacing front-end electronics

JCOP team meetingApril 10, 2002

Niko NeufeldCERN/EP

Page 2: On-board PCs for interfacing front-end electronics · 2002. 4. 10. · 12 bit data Altera 10K50E240 189pin data ad d 512Kx 18 VME Conn EPM7160-100 Glue Logic JTAG DATA ADD CONTR Dout

Niko NEUFELDCERN, EP

2

Controlling BoardsThe traditional approach

Crate Controller(CPU)

Electronics Modules

Parallel Bus(VME, Fastbus,…)

Ethernet

ControlStation

Page 3: On-board PCs for interfacing front-end electronics · 2002. 4. 10. · 12 bit data Altera 10K50E240 189pin data ad d 512Kx 18 VME Conn EPM7160-100 Glue Logic JTAG DATA ADD CONTR Dout

Niko NEUFELDCERN, EP

3

Traditional board control• Bus based control system• Each board in a crate is controlled via a bus (VME

etc.) either by a dedicated crate processor (e.g. RIO) or has a dedicated interface to a remote processor (usually a PC)

• The crates can be chained via a bus interconnect• The crate processor is connected to the control

system via a LAN (Ethernet)• The main disadvantages are that

– a faulty module can block access to a whole crate/chain– the faulty module is difficult to isolate once the bus is

blocked – the crate processors / local interface - PC combinations

are expensive

Page 4: On-board PCs for interfacing front-end electronics · 2002. 4. 10. · 12 bit data Altera 10K50E240 189pin data ad d 512Kx 18 VME Conn EPM7160-100 Glue Logic JTAG DATA ADD CONTR Dout

Niko NEUFELDCERN, EP

4

Point-to-point board control

Standard

Application Specific

Power Connectors

LAN

I/OI/O

FPGAs

Regs

e.g. 9Ux400mm

LUTs

DSPs

Reset

PC

•Configuration•Monitoring•Diagnostics•Debugging•...

ADCsTDCs

etc...

CONTROLINTERFACE

access toon boardcomponents

Only interface to the board

Page 5: On-board PCs for interfacing front-end electronics · 2002. 4. 10. · 12 bit data Altera 10K50E240 189pin data ad d 512Kx 18 VME Conn EPM7160-100 Glue Logic JTAG DATA ADD CONTR Dout

Niko NEUFELDCERN, EP

5

Board control without a bus

• Each board has a single point-to-point connection to the control system

• 100 MBit Ethernet provides lots of bandwidth at a negligible cost (switch ports ~ 40 CHF)

• Embedded PCs provide a versatile local entry point on each board

• Many (20 to 50) embedded PCs can be booted, configured and controlled from a single Control Server PC

Page 6: On-board PCs for interfacing front-end electronics · 2002. 4. 10. · 12 bit data Altera 10K50E240 189pin data ad d 512Kx 18 VME Conn EPM7160-100 Glue Logic JTAG DATA ADD CONTR Dout

Niko NEUFELDCERN, EP

6

Commercial embedded PCs• Small embedded PCs built around micro-controllers• Many products based on various core chips, 1 BCHF

market, growing fast• Applications include: Web terminals, settop boxes,

embedded Web servers, digital TV with integrated Internet browsers, switching stations, electronic telephone books, navigation systems, passenger entertainment, onboard Internet terminals, ATMs, vending machines, information terminals , heart monitors, blood analyzers, brain activity analyzers, X-ray equipment, computer-aided tomographs, data loggers, machine controllers, programmable logic controllers (PLCs), mobile data input devices, flight calculators for unmanned flight equipment, communications servers, and additional extremely rugged military applications

Page 7: On-board PCs for interfacing front-end electronics · 2002. 4. 10. · 12 bit data Altera 10K50E240 189pin data ad d 512Kx 18 VME Conn EPM7160-100 Glue Logic JTAG DATA ADD CONTR Dout

Niko NEUFELDCERN, EP

7

LHCb requirements

• The embedded PC must be accessible via standard 100 MBit Ethernet

• We have identified and recommended three main ways to configure and monitor devices such as FPGAs, DSPs and other chips:– I2C, JTAG and a simple parallel bus

Other ways are in principle possible (with somereservations) but discouraged: e.g. PCI or ISA

Page 8: On-board PCs for interfacing front-end electronics · 2002. 4. 10. · 12 bit data Altera 10K50E240 189pin data ad d 512Kx 18 VME Conn EPM7160-100 Glue Logic JTAG DATA ADD CONTR Dout

Niko NEUFELDCERN, EP

8

The LHCb choice

• Surveying the market for suitable (small, cheap) commercial devices brought forth an excellent candidate ☺

• SM586 by Digital Logic: Credit Card size module [66x85x6 mm] built around PC on-a-chip ZFx86 (low power Pentium compatible core @ 133 MHz), ~ 250 CHF in quantities

• Includes all standard PC interfaces: RS232, ISA, EIDE, PCI, USB

• Plus add-ons dedicated for embedded applications: Onboard Flash RAM for primary OS boot, I2C, BIOS control via serial line

Page 9: On-board PCs for interfacing front-end electronics · 2002. 4. 10. · 12 bit data Altera 10K50E240 189pin data ad d 512Kx 18 VME Conn EPM7160-100 Glue Logic JTAG DATA ADD CONTR Dout

Niko NEUFELDCERN, EP

9

Electronics board controlled by a Credit-Card PC

Standard

Application Specific

Power Connectors

100 Mbit Ethernet

I/OI/O

FPGAs

Regs

E.g. 9Ux400mm

LUTs

DSPs

Reset

PC

•Configuration•Monitoring•Diagnostics•Debugging•...

ADCsTDCs

Etc...

CCPC

I2C

JTAG

Parallel BusPCI Bus

GLUECARD

Page 10: On-board PCs for interfacing front-end electronics · 2002. 4. 10. · 12 bit data Altera 10K50E240 189pin data ad d 512Kx 18 VME Conn EPM7160-100 Glue Logic JTAG DATA ADD CONTR Dout

Niko NEUFELDCERN, EP

10

The LHCb solution for board control in non-radiation areas

• Use commercial Credit-Card PC as an interface• Use a standard (home-made) glue-card to provide

additional logic and provide a standard pin-out for developers

• The individual board (designer) needs to provide (apart from the board space) only one RJ45 connector on the front-panel and a connection to the reset-line (on the power-backplane)

• Optional extra connectors, if desired, could include: serial line, keyboard, JTAG header etc.

Page 11: On-board PCs for interfacing front-end electronics · 2002. 4. 10. · 12 bit data Altera 10K50E240 189pin data ad d 512Kx 18 VME Conn EPM7160-100 Glue Logic JTAG DATA ADD CONTR Dout

Niko NEUFELDCERN, EP

11

The LHCb standard glue card

• Final glue card (under design) could provide– more JTAG and I2C

interfaces (necessitates additional decoder logic on ISA bus)

– simpler (cheaper) PLX local bridge (e.g. 9030)

• Prototype LHCb glue card connects to CCPC and provides– JTAG (from parallel

port via Altera ByteBlaster)

– Parallel local bus via PLX PCI9080 bridge

– Level adaptation for serial port

Page 12: On-board PCs for interfacing front-end electronics · 2002. 4. 10. · 12 bit data Altera 10K50E240 189pin data ad d 512Kx 18 VME Conn EPM7160-100 Glue Logic JTAG DATA ADD CONTR Dout

Niko NEUFELDCERN, EP

12

Mechanical layout of the Credit-Card PC

SMARTSM586PC

PLXPCI9080 May

be covered by final

glue-board

123 mm

66 mm85

mm

41 mm 25 mm

•Glue board is ~ 6 mm above PCB•Could put shallow components beneath it

Page 13: On-board PCs for interfacing front-end electronics · 2002. 4. 10. · 12 bit data Altera 10K50E240 189pin data ad d 512Kx 18 VME Conn EPM7160-100 Glue Logic JTAG DATA ADD CONTR Dout

Niko NEUFELDCERN, EP

13

Central infrastructure

• Provide servers which give the Credit Card PCs access to NFS and logging services

• Provide customised OS for the CC-PCs (Linux – currently version 2.2.19)

• Provide drivers and (local) API libraries for I2C, JTAG and parallel bus and some specialised utility libraries (e.g. programming of FPGAs via standard STAPL files)

Page 14: On-board PCs for interfacing front-end electronics · 2002. 4. 10. · 12 bit data Altera 10K50E240 189pin data ad d 512Kx 18 VME Conn EPM7160-100 Glue Logic JTAG DATA ADD CONTR Dout

Niko NEUFELDCERN, EP

14

Integration into the LHCb Experiment Control System

• Framework Component provides– Remote access to local libraries/drivers

(via DIM)– Predefined configurations (“macros” /

“mini-components”) for on-board devices (FPGAs, TTC devices, DSPs, delay chips, etc.)

– Templates for user interfaces, panels

Page 15: On-board PCs for interfacing front-end electronics · 2002. 4. 10. · 12 bit data Altera 10K50E240 189pin data ad d 512Kx 18 VME Conn EPM7160-100 Glue Logic JTAG DATA ADD CONTR Dout

Niko NEUFELDCERN, EP

15

40 MHzClk

Shaper

PHOS4

Din

Clk in

Enc

Ain

14 /

4 /

Floppy

LAN

6 /VGA

2

2

MS

KB

SMART

PCI

Byteblaster

JTAG

PLX 9080

12 bit data

Altera10K50E240

189pin

data

ad d51

2Kx

18

VM

E C

onn

EPM7160-100Glue Logic

JTAGDATA

ADD

CONTR

DoutClk

Add[18..0]

Data[31..16]

data

ad d51

2Kx

18

EEPROM

CY2308-2x1

x2

16-bit

80MHz

40MHz

LAD[31..0]

Control

ADC

CLK

11

I2C

IN

7

select

4

CLK

I2C

9042

9 /COM

J1 J2

Data[15..0]

8

JTAGConn

User Conn.

J1 J2 J3

RS232

Status 1: the CC-PC evaluation Board• 6U board

comprising 2 MB of RAM, FPGA, CC-PC, Phos4 I2C programmable delay

• FPGA to drive ADC and local bus; it is programmed via JTAG

• Credit Card PC works: the OS boots from the internal flash RAM, runs from the network, can access board components

Page 16: On-board PCs for interfacing front-end electronics · 2002. 4. 10. · 12 bit data Altera 10K50E240 189pin data ad d 512Kx 18 VME Conn EPM7160-100 Glue Logic JTAG DATA ADD CONTR Dout

Niko NEUFELDCERN, EP

16

Status 2 & immediate future

• Beta versions of most of the local APIs exis. The drivers for I2C and JTAG have already been extensively tested and demonstrated to work

• The local bus driver is currently being tested using our evaluation board

• The re-design of the glue-card is under way

• Plan to have “version 1” ready by 06/02