Stanford Linear Accelerator Center Power PC and VXI

  • Slides: 8
Download presentation
Stanford Linear Accelerator Center Power. PC and VXI Kinetic Systems V 151 Embedded Power.

Stanford Linear Accelerator Center Power. PC and VXI Kinetic Systems V 151 Embedded Power. PC Slot-0 Controller Kristi Luchini EPICS Collaboration - Nov 14/17, 2000 - Oak ridge

Objective • Port the EPICS low-level RF code to another VXI slot-0 controller ü

Objective • Port the EPICS low-level RF code to another VXI slot-0 controller ü ü ü • vx. Works 5. 3. 1 and EPICS R 3. 13. 2 Current cpu, ni. Cpu 030 has been discontinued Crate profile – SLAC VXI register based modules and AB VME Scanner Why choose the Power. PC ü ü Kristi Luchini Pressure at SLAC to replace ni. Cpu 030 Intel slot-0 controllers (NI) did not have favorable reviews Consistency; one ppc architecture for VMEbus and VXIbus projects at SLAC byte orientation (big endian) is the same as the 68 K architecture of the ni. Cpu 030 EPICS Collaboration - Nov 14/17, 2000 - Oak ridge 2

Hardware Issues • • • Kristi Luchini Elma crate power-on hang SYSRST not asserted

Hardware Issues • • • Kristi Luchini Elma crate power-on hang SYSRST not asserted on reboot D 8/D 16 IACK Cycle SLAC VXI modules and the VXI spec Interrupt controller uses a mechanism for autovectoring VME interrupts EPICS Collaboration - Nov 14/17, 2000 - Oak ridge 3

Software Issues • • Learning about the VXIbus Standard as well the SLAC VXI

Software Issues • • Learning about the VXIbus Standard as well the SLAC VXI register-based modules. Interrupts ü ü • • Lack of atomic Read-Modify-Write VXI Library ü ü ü • 1 Interrupt Level instead of 7 as with 68 k Architectory Missing functions int. Vec. Get Unsolicited Interrupt Handlers – different naming standard VXI mode vs. VME mode Incorrect and/or buggy library - Resman crashes Missing basic functions – Get. My. LA, Set. MODID VXI library initialization A 32 Space – device window configuration ü ü EPICS_VXI_A 32_BASE 0 x 20000000 0 x 9000000 EPICS_VXI_A 32_SIZE 0 x 00100000 0 x 1000000 Kristi Luchini EPICS Collaboration - Nov 14/17, 2000 - Oak ridge 4

Code Changes • EPICS Code changed ü ü • Bsp kernel changes ü ü

Code Changes • EPICS Code changed ü ü • Bsp kernel changes ü ü Kristi Luchini drv. Epvxi. c, dev. Lib. c, veclist. c – table of unsolicited interrupts Crate a dummy isr static void *vme. Arg. Tbl[ 7] ; dev. Interrupt. Connect. VXI( level, isr, parm ) t; ; dummy. ISR(controller, status. Id, level) { my. Vme. Isr( vme. Arg. Tbl[level-1] ) ) } Adding functionality – sys. Bus. Tas, int. Vec. Get (Andrew Johnson) VXI vs VME mode – VXI/VME fighting for control of the bus sys. Universe. Int. Handler – VXI vs VME mode sys. Vme. c - KSC method of taking control of VME interrupt autovectoring EPICS Collaboration - Nov 14/17, 2000 - Oak ridge 5

Vector Table PPC External Interrupt Vector 0 x 500 0 … …. . .

Vector Table PPC External Interrupt Vector 0 x 500 0 … …. . . Handler Argument Next 11 Universe VME Interrupt … ksc. Int. Handler … sys. Universe. Int. Handler … vxi. Base. Isr 254 255 Kristi Luchini EPICS Collaboration - Nov 14/17, 2000 - Oak ridge 6

VXI Vector Table Level 1 2 3 4 5 6 7 Kristi Luchini ISR

VXI Vector Table Level 1 2 3 4 5 6 7 Kristi Luchini ISR Default. VXIint. Handler Default. VXIint. Handler EPICS Collaboration - Nov 14/17, 2000 - Oak ridge 7

Conclusions • • • Prefer a BSP supported by the OS Ask for VXI

Conclusions • • • Prefer a BSP supported by the OS Ask for VXI library code Awaiting SLAC VXI board modification to recognize D 8 IACK cycle Kristi Luchini EPICS Collaboration Mtg. - Nov 14 -16, 2000 Oak Ridge 8