On- board PCs f or interf acing f ront- end electronics J COP t eam meet ing April 10, 2002 Niko Neuf eld CERN/ EP 1
Controlling Boards The traditional approach Parallel Bus (VME, Fast bus,… ) Ethernet Cont rol St at ion Crat e Cont roller Elect ronics Modules (CPU) Niko NEUFELD 2 CERN, EP
Traditional board control • Bus based cont rol syst em • Each board in a crat e is cont rolled via a bus (VME et c.) eit her by a dedicat ed crat e processor (e.g. RI O) or has a dedicat ed int erf ace t o a remot e processor (usually a PC) • The crat es can be chained via a bus int erconnect • The crat e processor is connect ed t o t he cont rol syst em via a LAN (Et hernet ) • The main disadvant ages are t hat – a f ault y module can block access t o a whole crat e/ chain – t he f ault y module is dif f icult t o isolat e once t he bus is blocked – t he crat e processors / local int erf ace - PC combinat ions are expensive Niko NEUFELD 3 CERN, EP
Point- to- point board control e.g. 9Ux400mm I/O ADCs I/O FPGAs LUTs TDCs • Configuration • Monitoring Power Connectors • Diagnostics Regs DSPs etc... • Debugging • ... access to CONTROL Reset on board INTERFACE PC components LAN Standard Application Specific Only interface to the board Niko NEUFELD 4 CERN, EP
Board control without a bus • Each board has a single point -t o-point connect ion t o t he cont rol syst em • 100 MBit Et hernet provides lot s of bandwidt h at a negligible cost (swit ch port s ~ 40 CHF) • Embedded PCs provide a versat ile local ent r y point on each board • Many (20 t o 50) embedded PCs can be boot ed, conf igured and cont rolled f rom a single Cont rol Server PC Niko NEUFELD 5 CERN, EP
Commercial embedded PCs • Small embedded PCs built around micro-cont rollers • Many product s based on various core chips, 1 BCHF market , growing f ast • Applicat ions include: Web t erminals, set t op boxes, embedded Web servers, digit al TV wit h int egrat ed I nt ernet browsers, swit ching st at ions, elect ronic t elephone books , navigat ion syst ems , passenger ent ert ainment , onboard I nt ernet t erminals, ATMs , vending machines, inf ormat ion t erminals , heart monit ors, blood analyzers , brain act ivit y analyzers, X-ray equipment , comput er-aided t omographs, dat a loggers, machine cont rollers, programmable logic cont rollers (PLCs), mobile dat a input devices , f light calculat ors f or unmanned f light equipment , communicat ions servers, and addit ional ext remely rugged milit ary applicat ions Niko NEUFELD 6 CERN, EP
LHCb requirements • The embedded PC must be accessible via st andard 100 MBit Et hernet • We have ident if ied and recommended t hree main ways t o conf igure and monit or devices such as FPGAs, DSPs and ot her chips: – I 2C, J TAG and a simple parallel bus Ot her ways are in principle possible (wit h some reservat ions) but discouraged: e.g. PCI or I SA Niko NEUFELD 7 CERN, EP
The LHCb choice • Surveying t he market f or suit able (small, cheap) commercial devices brought f ort h an excellent candidat e ☺ • SM586 by Digit al Logic: Credit Card size module [66x85x6 mm] built around PC on-a-chip ZFx86 (low power Pent ium compat ible core @ 133 MHz), ~ 250 CHF in quant it ies • I ncludes all st andard PC int erf aces: RS232, I SA, EI DE, PCI , USB • Plus add-ons dedicat ed f or embedded applicat ions: Onboard Flash RAM f or primary OS boot , I 2C, BI OS cont rol via serial line Niko NEUFELD 8 CERN, EP
Electronics board controlled by a Credit- Card PC E.g. 9Ux400mm I/O ADCs I/O FPGAs LUTs TDCs • Configuration • Monitoring Power Connectors • Diagnostics Regs DSPs Etc... • Debugging • ... I 2 C Parallel Bus GLUE CCPC Reset PCI Bus CARD PC JTAG 100 Mbit Ethernet Standard Application Specific Niko NEUFELD 9 CERN, EP
The LHCb solution f or board control in non- radiation areas • Use commercial Credit -Card PC as an int erf ace • Use a st andard (home-made) glue-card t o provide addit ional logic and provide a st andard pin-out f or developers • The individual board (designer) needs t o provide (apart f rom t he board space) only one RJ 45 connect or on t he f ront -panel and a connect ion t o t he reset -line (on t he power-backplane) • Opt ional ext ra connect ors, if desired, could include: serial line, keyboard, J TAG header et c. Niko NEUFELD 10 CERN, EP
The LHCb standard glue card • Prot ot ype LHCb glue • Final glue card (under card connect s t o CCPC design) could provide and provides – more J TAG and I 2C int erf aces – J TAG (f rom parallel (necessit at es addit ional port via Alt era decoder logic on I SA Byt eBlast er) bus) – Parallel local bus via – simpler (cheaper) PLX PLX PCI 9080 bridge local bridge (e.g. 9030) – Level adapt at ion f or serial port Niko NEUFELD 11 CERN, EP
Mechanical layout of the Credit- Card PC 66 mm 41 mm 25 mm •Glue board is ~ 6 mm SMART PLX May above PCB 85 mm PCI 9080 SM586PC be covered •Could put by f inal shallow glue- component s board beneat h it 123 mm Niko NEUFELD 12 CERN, EP
Central inf rastructure • Provide servers which give t he Credit Card PCs access t o NFS and logging services • Provide cust omised OS f or t he CC-PCs (Linux – current ly version 2.2.19) • Provide drivers and (local) API libraries f or I 2C, J TAG and parallel bus and some specialised ut ilit y libraries (e.g. programming of FPGAs via st andard STAPL f iles) Niko NEUFELD 13 CERN, EP
I ntegration into the LHCb Experiment Control System • Framework Component provides – Remot e access t o local libraries/ drivers (via DI M) – Predef ined conf igurat ions (“macros” / “mini-component s”) f or on-board devices (FPGAs, TTC devices, DSPs, delay chips, et c.) – Templat es f or user int erf aces, panels Niko NEUFELD 14 CERN, EP
Status 1: the CC- PC evaluation Board • 6U board comprising 2 Altera PHOS4 ADC 40 Add[18..0] 10K50E240 MB of RAM, MHz Din C 9042 ad 12 bit data d 189pin Clk 512Kx lk Dout Enc 18 FPGA, CC-PC, CY230 data Data[15..0] Phos4 I 2 C Clk in 8-2 Ain x1 Data[31..16] programmable I2C CLK 80MHz ad d delay x2 512Kx 18 IN Shaper • data FPGA t o drive LAD[31..0] ADC and local EEPROM 11 Control select bus; it is 14 / Floppy I2C programmed PLX 9080 via J TAG 4 / LAN PCI • Credit Card 16-bit 6 / PC works: the VGA J1 J2 J1 J2 J3 JTAGConn OS boots Byteblast DATA 2 JTAG MS er f rom the VME Conn 4 JTAG 2 8 internal f lash KB RS232 40MHz ADD RAM, runs 7 f rom the SMART CONTR network, can Glue Logic 9 / EPM7160-100 COM CLK access board User Conn. components Niko NEUFELD 15 CERN, EP
Status 2 & immediate f uture • Bet a versions of most of t he local API s exis. The drivers f or I 2C and J TAG have already been ext ensively t est ed and demonst rat ed t o work • The local bus driver is current ly being t est ed using our evaluat ion board • The re-design of t he glue-card is under way • Plan t o have “version 1” ready by 06/ 02 Niko NEUFELD 16 CERN, EP
Recommend
More recommend