embedded epics the ucdimm coldfire 5282

12
A U.S. Department of Energy Office of Science Laboratory Operated by The University of Chicago Argonne National Laboratory Office of Science U.S. Department of Energy Embedded EPICS The uCDIMM ColdFire 5282 2005-03-02 W. Eric Norum The submitted manuscript has been created by the University of Chicago as Operator of Argonne National Laboratory (“Argonne”) under Contract No. W-31-109-ENG-38 with the U.S. Department of Energy. The U.S. Government retains for itself, and others acting on its behalf, a paid-up, nonexclusive, irrevocable worldwide license in said article to reproduce, prepare derivative works, distribute copies to the public, and perform publicly and display publicly, by or on behalf of the Government.

Upload: nura

Post on 23-Mar-2016

60 views

Category:

Documents


1 download

DESCRIPTION

Embedded EPICS The uCDIMM ColdFire 5282. 2005-03-02. W. Eric Norum. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Embedded EPICS The uCDIMM ColdFire 5282

A U.S. Department of EnergyOffice of Science LaboratoryOperated by The University of Chicago

Argonne National Laboratory

Office of ScienceU.S. Department of Energy

Embedded EPICSThe uCDIMM ColdFire 5282

2005-03-02

W. Eric NorumThe submitted manuscript has been created by the University of Chicago as Operator of Argonne National Laboratory (“Argonne”) under Contract No. W-31-109-ENG-38 with the U.S. Department of Energy. The U.S. Government retains for itself, and others acting on its behalf, a paid-up, nonexclusive, irrevocable worldwide license in said article to reproduce, prepare derivative works, distribute copies to the public, and perform publicly and display publicly, by or on behalf of the Government.

Page 2: Embedded EPICS The uCDIMM ColdFire 5282

Embedded EPICS – Arcturus uCDIMM ColdFire 5282

2Pioneering Science andTechnology

Office of Science U.S. Department

of Energy

Arcturus uCDIMM ColdFire 5282 module

•Motorola/FreeScale ColdFire 5282 processor (64 MHz)

•16 Megabyte SDRAM (32-bit data path)

•4 Megabyte flash memory (RTEMS/EPICS/IOC)

•1/2 Megabyte on-chip flash (bootstrap)

•SO-DIMM form factor

•~$200 (U.S.) in small quantities, $120 each for 500.

Page 3: Embedded EPICS The uCDIMM ColdFire 5282

Embedded EPICS – Arcturus uCDIMM ColdFire 5282

3Pioneering Science andTechnology

Office of Science U.S. Department

of Energy

Arcturus uCDIMM ColdFire 5282 module

•10/100 Mb/s Ethernet (10/100 BaseT)

•3 serial ports (2 RS-232, 1 LVTTL)

•I2C and SPI

•CAN support

•8-channel, 10-bit ADC

•A24/D16 external bus

•5 interrupt request lines

•16 general-purpose I/O lines

Page 4: Embedded EPICS The uCDIMM ColdFire 5282

Embedded EPICS – Arcturus uCDIMM ColdFire 5282

4Pioneering Science andTechnology

Office of Science U.S. Department

of Energy

Arcturus uCDIMM ColdFire 5282 module

•~10% faster than 25 MHz MVME-167 for integer operations

•Much slower for floating-point operations

–No floating-point instructions

•Fast Ethernet Controller scatter/gather Direct-Memory Access

•Queued ADC and SPI hardware

–Can perform repetitive I/O with no processor overhead

Page 5: Embedded EPICS The uCDIMM ColdFire 5282

Embedded EPICS – Arcturus uCDIMM ColdFire 5282

5Pioneering Science andTechnology

Office of Science U.S. Department

of Energy

EPICS device support

• Ethernet and serial ASYN drivers• I2C ASYN driver

- Tested with MAX1619 temperature monitor- Easy to add support for additional devices (GPIB-style)

• QADC device support for analog-in record- Scanning (“voltmeter”) operation

• Watchdog timer device support for binary-out record- Hardware reset on failure to process record in 5 second interval

• Flash memory programming device support- Remote updates of application using standard EPICS tools

• devLib support- ‘VME’ devices implemented in Altera FPGA (Avalon)

Page 6: Embedded EPICS The uCDIMM ColdFire 5282

Embedded EPICS – Arcturus uCDIMM ColdFire 5282

6Pioneering Science andTechnology

Office of Science U.S. Department

of Energy

Altera Avalon Bus

• Altera “System on a programmable chip” technology• Appears to designer as multiple master/slave bus• Masters can be active simultaneously (to different slaves)• Example Master devices

- NIOS processor (on-chip)- PCI bridge

• Example Slave devices- On-chip memory- Off-chip SDRAM- UART- Ethernet- LCD

Page 7: Embedded EPICS The uCDIMM ColdFire 5282

Embedded EPICS – Arcturus uCDIMM ColdFire 5282

7Pioneering Science andTechnology

Office of Science U.S. Department

of Energy

uCDIMM ColdFire 5282 Bridge

• Separate ColdFire/Avalon clock domains• 25-bit Avalon address space (16-bit data bus to ColdFire)

- 000000 to 0FFFFF appear as VME A24/D16 space devRegisterAddress(name, atVMEA24, …

- 100000 to 1FFFFD appear as VME A32/D32 space devRegisterAddress(name, atVMEA32, …

- 1F0000 to 1FFFFD also appear as VME A16/D16 space devRegisterAddress(name, atVMEA16, …

• Full Avalon interrupt support- Avalon interrupts 0 to 63 map to VME interrupts 192 to 255

devConnectInterruptVME(192, … • Very low resource usage (49 ALUTs, 31 registers)• Serial port monitor

- Force system reboot on console ^X-^Y-^Z reception

Page 8: Embedded EPICS The uCDIMM ColdFire 5282

Embedded EPICS – Arcturus uCDIMM ColdFire 5282

8Pioneering Science andTechnology

Office of Science U.S. Department

of Energy

Ongoing development

• APS event receiver- EPICS driver identical to vxWorks/VME version- Complete event receiver is single Avalon module

- Click/drop ColdFire Bridge and Event Receiver- Assign pins – Compile – Download – Done!

- Use external receiver or FPGA TAXI implementation- Preliminary testing complete

• BPM data acquisition and signal processing

Page 9: Embedded EPICS The uCDIMM ColdFire 5282

Embedded EPICS – Arcturus uCDIMM ColdFire 5282

9Pioneering Science andTechnology

Office of Science U.S. Department

of Energy

Example ColdFire/FPGA system

Page 10: Embedded EPICS The uCDIMM ColdFire 5282

Embedded EPICS – Arcturus uCDIMM ColdFire 5282

10Pioneering Science andTechnology

Office of Science U.S. Department

of Energy

uCDIMM application – SR BPM Prototype

Page 11: Embedded EPICS The uCDIMM ColdFire 5282

Embedded EPICS – Arcturus uCDIMM ColdFire 5282

11Pioneering Science andTechnology

Office of Science U.S. Department

of Energy

uCDIMM application – SR BPM Prototype

Page 12: Embedded EPICS The uCDIMM ColdFire 5282

Embedded EPICS – Arcturus uCDIMM ColdFire 5282

12Pioneering Science andTechnology

Office of Science U.S. Department

of Energy

uCDIMM application – SR BPM Prototype