1 / 14

P0 Feedback Project: Merging EPICS with FPGA’s

P0 Feedback Project: Merging EPICS with FPGA’s. Nicholas P. DiMonte June 2006. P0 Feedback Project. Transverse beam stabilizer Turn-by-turn horizontal kick of the ‘P0’ bunch Monitors X-plane, Sum, ( Y-plane near future ). ALTERA. ColdFire CPU. Timing Event System. Console serial Port.

keefe
Télécharger la présentation

P0 Feedback Project: Merging EPICS with FPGA’s

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. P0 Feedback Project:Merging EPICS with FPGA’s Nicholas P. DiMonte June 2006

  2. P0 Feedback Project • Transverse beam stabilizer • Turn-by-turn horizontal kick of the ‘P0’ bunch • Monitors X-plane, Sum, ( Y-plane near future ) ALTERA ColdFire CPU Timing Event System Console serial Port Network

  3. P0 Feedback Project • Project given to me with the following criteria: • Use Coldfire CPU • Use RTEMS • Use Altera’s DSP Development Kit • Use Altera’s SOPC • Never used any of the above • Never worked on a DSP project • And, by the way, they want to install it in 6 months. • Oddly enough, an opportunity like this wasn’t coming from the RF Group. • Why change analog to DSP when up-time is around 99%?

  4. P0 Feedback Project • However, this project was accomplished in two months in light of my other priorities. • Why • because of SOPC • because of ASYN • because of the DSP kit • because of the Coldfire CPU • because of EPICS R3.14.8 • and support from Eric Norum

  5. P0 Feedback • Algorithm: (For single P0 bunch) • Read horizontal beam position ADC. • Remove ‘DC’ component, selectable HPF. • Apply programmable 32-tap FIR filter. • Apply programmable delay (up to 1 turn). • Write value to DAC. • Filter coefficients, control bits, raw ADC waveforms are needed as EPICS process variables.

  6. Hardware • Altera Stratix II DSP Kit • Two 12 bit 125 MHz A/D • Two 14 bit 165 MHz D/A • 288 DSP 9-bit blocks ( 64 used ) • 12 PLLs (2 used) • Arcturus UCDIMM ColdFire 5282 CPU module (64 MHz) • 16 Megabyte SDRAM, 32-bit data path • 4 Mb Flash (App), 0.5 Mb Flash (bootstrap) • Ethernet, Serial • 5 Interrupt lines • ColdFire transition module • APS Event Receiver • High Resolution A/D module ( for Y-plane addition ) • Two 14-bit 105 MHz A/D

  7. Hardware Altera’s DSP Development Kit Stratix II (FPGA) APS Event Receiver Connection ColdFire IOC Two 14-bit DACs Transition Board Two 12-bit ADCs High Res A/D Module Connection Serial Network

  8. Block Diagram of the P0 Feedback System 0.4 to 53Hz #0, 4, 8, …1296 Total = 324 X plane Programmable 32tap FIR Bucket Control Programmable Delay DAC To Amp ADC Clk Y plane Programmable 32tap FIR Bucket Control Programmable Delay DAC To Amp ADC Scope Network Sum Coldfire CPU Serial Bucket Select P0 Sync & Control P0 Inhibit Ctl FPGA Code (Flash) Flash Port Clk APS Event Receiver PLL x 2 = 88 MHz Event Signal 44 MHz Clk

  9. How to connect? ColdFire FPGA Do you create a large memory/register map? What will the device support look like?

  10. FPGA side, use Altera’s Avalon Components for SOPC ColdFire Bridge Master Component P0 Sync Coefficients for FIR High Pass Filter Scale Avalon Bus Digital Delay Slaves Components: Each slave has ASYN device support. Coefficient Scale Sel. FPGA Compile time 16 Mbytes Flash Scope Function APS Event Receiver

  11. FPGA • Altera Quartus II 5.1 with SOPC builder • SOPC creates a system.h file that defines all the devices on the Avalon Bus. This is used for all the ASYN & GTR device support. • Multiple DSP cores • e.g. the P0 feedback computes ~3×109 multiply-accumulate operations per second – Using less than 1/4 of the available multiplier (DSP) blocks. • This will double to ~6×109 once the Y plane is added. More than half of the DSP blocks will be available. • Originally designed for a single bunch, P0 • but, the FPGA performs the algorithm in parallel, so the ‘P0 feedback’ can also be ‘P0, P4, P8, …. P1296’ feedback. (324)

  12. IOC side: Device Support • RTEMS 4.7 • EPICS R3.14.8.2 • VME like ( devLib ) • devReadProbe, etc. • asynDriver: Asynchronous Driver Support • FPGA components • asynInt32 – ai, ao, bo, longin, longout, mbbiDirect • asynInt32Array – waveform • asynFloat64Array – waveform • asynOctet - stringin • GTR: Generic Transient Recorder • For the Oscilloscope functions in the FPGA. • Minimal device support when adding more FPGA components of the same type. (system.h)

  13. Difficulties • Mostly with the FPGA tools • Altera’s SOPC builder • Problem with spurious interrupts. • Made ASYN more difficult than it was • no record types defined

  14. Conclusion…. • Using Altera’s Avalon bus reduced the FPGA development time. Simply drop in a new component and SOPC will automatically add it to the system. Components can be reused. • Altera’s Development Board eliminated the need to lay out a complex printed circuit board. • ASYN and GTR greatly simplify device support. • This is really the way to go. • The Coldfire CPU can be easily integrated with an FPGA. • Only difference between VxWorks and RTEMS is how they are configured and how they download EPICS. • In all, the tools from both EPICS and Altera helped produce a project ahead of schedule.

More Related