Top Banner
Ethernet Based Embedded IOC for FEL Control Systems J. Yan, D. Sexton, Al Grippo, W. Moore, and K. Jordan ICALEPCS 2007 October 19, 2007 Knoxville Convention Center Knoxville, Tennessee USA
21

Ethernet Based Embedded IOC for FEL Control Systems J. Yan, D. Sexton, Al Grippo, W. Moore, and K. Jordan ICALEPCS 2007 October 19, 2007 Knoxville Convention.

Jan 02, 2016

Download

Documents

Frank Bradford
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: Ethernet Based Embedded IOC for FEL Control Systems J. Yan, D. Sexton, Al Grippo, W. Moore, and K. Jordan ICALEPCS 2007 October 19, 2007 Knoxville Convention.

Ethernet Based Embedded IOC for FEL Control Systems

J. Yan, D. Sexton, Al Grippo, W. Moore, and K. Jordan

ICALEPCS 2007October 19, 2007

Knoxville Convention CenterKnoxville, Tennessee USA

Page 2: Ethernet Based Embedded IOC for FEL Control Systems J. Yan, D. Sexton, Al Grippo, W. Moore, and K. Jordan ICALEPCS 2007 October 19, 2007 Knoxville Convention.

JLab FEL Energy Recovered Linac

E = 120 MeV135 pC pulses up to 75 MHz20/120/1 microJ/pulse in UV/IR/THz250 nm – 14 microns, 0.1 – 5 THz

Page 3: Ethernet Based Embedded IOC for FEL Control Systems J. Yan, D. Sexton, Al Grippo, W. Moore, and K. Jordan ICALEPCS 2007 October 19, 2007 Knoxville Convention.

Motivation

• Additional channels for BPM and Viewer systems required

• The cost for expanding the current configuration is high

• FEL “master plan” is to move away from Crate-Based solutions involving licensed software

• Use distributed processors instead of VME IOCs

• Develop a new I/O connection as a “default” standard

• Embedded COTS Arcturus Coldfire Board chosen to start with

• Chose RTEMS as the real-time operating system for the IOC

Page 4: Ethernet Based Embedded IOC for FEL Control Systems J. Yan, D. Sexton, Al Grippo, W. Moore, and K. Jordan ICALEPCS 2007 October 19, 2007 Knoxville Convention.

Current VME IOC System

VME

IOC

. . . . . . . . . .

. . . . . . . . . .

Ethernet

Device 1 Device n

Cable

Page 5: Ethernet Based Embedded IOC for FEL Control Systems J. Yan, D. Sexton, Al Grippo, W. Moore, and K. Jordan ICALEPCS 2007 October 19, 2007 Knoxville Convention.

New System Design

Ethernet

BPMI/O

Device

. . . . . . .

ColdFire

FPGA

SBIOC

ColdFire

FPGA

SBIOC

ColdFire

FPGA

SBIOC

BeamViewer

Page 6: Ethernet Based Embedded IOC for FEL Control Systems J. Yan, D. Sexton, Al Grippo, W. Moore, and K. Jordan ICALEPCS 2007 October 19, 2007 Knoxville Convention.

Single Board IOC (SBIOC)

• Integrated a ColdFire uC5282 Microprocessor with an FPGA

• A standard footprint for the embedded IOC• Provide abundant of I/O connectors• Compatible with existing designs• Stand-alone system• Suitable for most of I/O controls

– Beam Position Monitor

– Beam Viewer & Video controls

– Stepper motor controls

Page 7: Ethernet Based Embedded IOC for FEL Control Systems J. Yan, D. Sexton, Al Grippo, W. Moore, and K. Jordan ICALEPCS 2007 October 19, 2007 Knoxville Convention.

Block Diagram of the SBIOC

FPG A C oldF ireuC 5282

A ddress

D ata

C on trol

E th ern et

S in g le B o a rd IO C

I/OI/O

R S-232

JT A G

Page 8: Ethernet Based Embedded IOC for FEL Control Systems J. Yan, D. Sexton, Al Grippo, W. Moore, and K. Jordan ICALEPCS 2007 October 19, 2007 Knoxville Convention.

Pictures of the SBIOC

13.5 cm

5.5 cm

Page 9: Ethernet Based Embedded IOC for FEL Control Systems J. Yan, D. Sexton, Al Grippo, W. Moore, and K. Jordan ICALEPCS 2007 October 19, 2007 Knoxville Convention.

Modules on the FPGA

Coldfire-FPGABridge

I/OM odule

ControlM odule

M em ory

Address

Data

Contro l

I/O

Page 10: Ethernet Based Embedded IOC for FEL Control Systems J. Yan, D. Sexton, Al Grippo, W. Moore, and K. Jordan ICALEPCS 2007 October 19, 2007 Knoxville Convention.

Circuit of the FPGA-ColdFire Bridge

Page 11: Ethernet Based Embedded IOC for FEL Control Systems J. Yan, D. Sexton, Al Grippo, W. Moore, and K. Jordan ICALEPCS 2007 October 19, 2007 Knoxville Convention.

Read and Write Cycles of the Bridge

Read Bus Cycles

Write Bus Cycles

Page 12: Ethernet Based Embedded IOC for FEL Control Systems J. Yan, D. Sexton, Al Grippo, W. Moore, and K. Jordan ICALEPCS 2007 October 19, 2007 Knoxville Convention.

BPM Applications

• The first version of new BPMs have been running for 2 years

• They are very reliable, and easily maintained• Throughput from the ADC is 100 Hz. This is a

limitation• New solution has to be found• Use Single Board IOC to improve the performance• Cut the cost. The cost of original configuration is

$3000/BPM; the new system is $1200/BPM

Page 13: Ethernet Based Embedded IOC for FEL Control Systems J. Yan, D. Sexton, Al Grippo, W. Moore, and K. Jordan ICALEPCS 2007 October 19, 2007 Knoxville Convention.

First Version BPM (without FPGA)

Page 14: Ethernet Based Embedded IOC for FEL Control Systems J. Yan, D. Sexton, Al Grippo, W. Moore, and K. Jordan ICALEPCS 2007 October 19, 2007 Knoxville Convention.

New Version BPM

* FPGA Functions:

- Sampling ADC, Calculations (add & average)

- Communication with the ColdFire processor

* Goal: 100KHz throughput– FPGA clock 20 MHz– ADC 1 MSPS throughput– FPGA sampling frequency up to 2 MHz– Memory block to save data– ColdFire processor read data through bus

Page 15: Ethernet Based Embedded IOC for FEL Control Systems J. Yan, D. Sexton, Al Grippo, W. Moore, and K. Jordan ICALEPCS 2007 October 19, 2007 Knoxville Convention.

New Version BPM with the SBIOC

Page 16: Ethernet Based Embedded IOC for FEL Control Systems J. Yan, D. Sexton, Al Grippo, W. Moore, and K. Jordan ICALEPCS 2007 October 19, 2007 Knoxville Convention.

3U General Purpose Processor Card (GPPC)

• A Carrier board that provides a bridge between the SBIOC and other crates

• Pin-pin compatible with existing CAN bus Digital Signal Processor (DSP) card.

• Use resources from the SBIOC• 96-Pin Backplane• For Beam Viewer Controls, GC magnet power

supply, HVPS Controller, Temperature monitoring system, Vacuum instruments.

Page 17: Ethernet Based Embedded IOC for FEL Control Systems J. Yan, D. Sexton, Al Grippo, W. Moore, and K. Jordan ICALEPCS 2007 October 19, 2007 Knoxville Convention.

Block Diagram of the 3U GPPC

8-B it A ddress

32-B it I/O

8-B it Q SPI

8-B it G PI/O

H ighSpeedA D C H igh

SpeedD A CH igh

R es.A D C

N etw ork & R S-232

SB

IOC

BA

CK

PL

AN

E

Page 18: Ethernet Based Embedded IOC for FEL Control Systems J. Yan, D. Sexton, Al Grippo, W. Moore, and K. Jordan ICALEPCS 2007 October 19, 2007 Knoxville Convention.

3U GPPC for Beam Viewer Control

Ethernet

3U General Purpose Processor Card

Beam Viewer Control Card

Page 19: Ethernet Based Embedded IOC for FEL Control Systems J. Yan, D. Sexton, Al Grippo, W. Moore, and K. Jordan ICALEPCS 2007 October 19, 2007 Knoxville Convention.

Software Applications

• RTEMS (4.7) Chosen as the real-time operating system for SBIOC

• EPICS R3.14 as the development toolkits• Developed the EPICS applications for BPM, 3U

GPPC, Beam Viewer control• Use Software Quartus II to program the codes for

the FPGA

Page 20: Ethernet Based Embedded IOC for FEL Control Systems J. Yan, D. Sexton, Al Grippo, W. Moore, and K. Jordan ICALEPCS 2007 October 19, 2007 Knoxville Convention.

Summary & Conclusions• The first version of BPM based on embedded IOC had

been running on FEL. It is reliable, and easily maintained.

• Setup the software

– EPICS, RTEMS, Device support, Database

• Designed the Single Board IOC

• ColdFire uC5282 processor is a ideal choice for the embedded IOC

• Use RTEMS as the real-time operating system

• By distributing the IOC on front-end I/O devices, dramatically cut the cost of expensive cables.

• It is a novel configuration to use FPGA+uC5282+RTEMS for FEL diagnostics and controls upgrading

Page 21: Ethernet Based Embedded IOC for FEL Control Systems J. Yan, D. Sexton, Al Grippo, W. Moore, and K. Jordan ICALEPCS 2007 October 19, 2007 Knoxville Convention.

Acknowledgement• Thanks

– Eric Norum in Argonne National Lab for providing RTEMS tools and installation instructions.

– Trent Allison in EESICS group of Jefferson Lab for the help of Altera FPGA programming.

– The Operations and Commissioning team of the FEL for the support and technical advice

• This work is supported by the Office of Naval Research, the Joint Technology Office, The Commonwealth of Virginia, the Army Night Vision Laboratory, the Air Force Research Laboratory, and by DOE Contract DE-AC05-84ER40150.