high performance interface between the omap3 and an fpga
play

High Performance Interface between the OMAP3 and an FPGA Philip - PowerPoint PPT Presentation

Outline Introduction USRP E1XX Device Driver GNU Radio on OMAP3 Summary High Performance Interface between the OMAP3 and an FPGA Philip Balister philip@opensdr.com Open SDR June 23, 2011 Outline Introduction USRP E1XX Device Driver


  1. Outline Introduction USRP E1XX Device Driver GNU Radio on OMAP3 Summary High Performance Interface between the OMAP3 and an FPGA Philip Balister philip@opensdr.com Open SDR June 23, 2011

  2. Outline Introduction USRP E1XX Device Driver GNU Radio on OMAP3 Summary Introduction 1 USRP E1XX 2 Device Driver 3 GNU Radio on OMAP3 4 Summary 5

  3. Outline Introduction USRP E1XX Device Driver GNU Radio on OMAP3 Summary What is Software Defined Radio (SDR) A/D CPU

  4. Outline Introduction USRP E1XX Device Driver GNU Radio on OMAP3 Summary OMAP3 High performance (and easily available) ARM. 600 MHz Cortex-A8 NEON and VFP extensions for floating point acceleration POWERVR TM graphics hardware C64X+ DSP

  5. Outline Introduction USRP E1XX Device Driver GNU Radio on OMAP3 Summary OMAP3 Block Diagram

  6. Outline Introduction USRP E1XX Device Driver GNU Radio on OMAP3 Summary ARM Cortex A8 ARM version 7 instruction set (armv7a) Thumb 2 instructions allow smaller code size NEON SIMD coprocessor (single precision vector floating point) Supported by GNU Compiler Collection (GCC) C, C++, Java, FORTRAN, ADA etc Current GCC does not optimize NEON well Commercial compilers are available with better NEON Support

  7. Outline Introduction USRP E1XX Device Driver GNU Radio on OMAP3 Summary Texas Instruments C64X+ DSP 32 bit fixed point processor VLIW based instruction set 8 instructions per cycle, 8 execution units Memory Management Unit (MMU) available TI Code Composer for software development Command line Linux compiler available DSPLINK provides communications between DSP and ARM

  8. Outline Introduction USRP E1XX Device Driver GNU Radio on OMAP3 Summary Key Features of the USRP E1XX High performance interface to FPGA based on GPMC controller Uses Gumstix Overo COM (Computer On Module) for processor All functions in one box, capable of standalone operation Develop flow graphs and block directly on the box Supported peripherals: monitors via HDMI/DVI, keyboard and mouse via USB Available with the largest Spartan 3A-DSP available. Same code runs on Linux, Mac, Windows, and USRP-Embedded. Supports all USRP daughterboards Open Source FPGA and drivers

  9. Outline Introduction USRP E1XX Device Driver GNU Radio on OMAP3 Summary USRP E100

  10. Outline Introduction USRP E1XX Device Driver GNU Radio on OMAP3 Summary USRP Embedded Block Diagram USRP E1x0 Block Diagram USB Serial Console Gumstix Overo USB Master 720 MHz ARM Cortex A8 USB OTG 520 MHz TI C64x+ DSP PowerVR SGX GPU HDMI Video 512 MB RAM Audio In / Out 4 GB microSD card F R FPGA GPMC BUS GPIO O Configure N T D JTAG A 10/100 baseT Ethernet P Logic Analyzer Debug Port U Ethernet A UART G N Spartan 3A-DSP IPPS Optional H -1800 (E100) GPSDO E T LEDs -3400 (E110) 10 MHz L E R Flexible B Clock Gen O A Analog R Interface CODEC D Digital Interface

  11. Outline Introduction USRP E1XX Device Driver GNU Radio on OMAP3 Summary System Diagram GPMC ARM FPGA CODEC DSP GPIO RAM DMA L3/L4

  12. Outline Introduction USRP E1XX Device Driver GNU Radio on OMAP3 Summary Device Driver Overview Must support high data rates (MSPS) Zero copy design based on a large ring buffer DMA used to transfer data to/from the ring buffer User space memory maps the ring buffer Ring buffer allocated via get free pages

  13. Outline Introduction USRP E1XX Device Driver GNU Radio on OMAP3 Summary Ring Buffer Structure s t r u c t r i n g b u f f e r i n f o { i n t f l a g s ; i n t l e n ; } ; s t r u c t { s t r u c t r i n g b u f f e r i n f o t x r b i [N ] ; t x b u f [ 2 0 4 8 ] [N ] ; s t r u c t r i n g b u f f e r i n f o r x r b i [N ] ; r x b u f [ 2 0 4 8 ] [N ] ; } ;

  14. Outline Introduction USRP E1XX Device Driver GNU Radio on OMAP3 Summary Filling the ring buffer from the FPPA GPIO signals the FPGA has data ready to transfer Read the number of bytes to transfer from the FPGA control space Configure the transfer destination address and length Start the DMA transfer Use dma sync single for device to invalidate the cache When DMA transfer ends, wake up the data received work queue Attempt to start a new transfer

  15. Outline Introduction USRP E1XX Device Driver GNU Radio on OMAP3 Summary Writing the ring buffer to the FPPA User writes data into the ring buffer User calls write to trigger data transfer from ring buffer to fpga Write the number of bytes to be transferred to the FPGA control space Configure the source address and length Execute data store barrier Start data transfer Wake up space available work queue Attempt to start a new transfer

  16. Outline Introduction USRP E1XX Device Driver GNU Radio on OMAP3 Summary Poll implementation Poll operation is critical for syncronizing user application with FPGA. Two wait queues monitored for wake up events (transmit and receive) For read, kernel has pointer to next empty entry in ring buffer ... For read, poll checks buffer before for valid data For write, kernel has pointer to next buffer to to send ... For write, poll checks the block before the pointer for space available

  17. Outline Introduction USRP E1XX Device Driver GNU Radio on OMAP3 Summary User space interface Flags indicate if data is available or space available in ring buffer If data available process data from ring buffer When processing complete or buffer filled, update flags If no data available or no space available, call poll to wait We can mark a buffer flag as returned from poll, but not processed

  18. Outline Introduction USRP E1XX Device Driver GNU Radio on OMAP3 Summary GNU Radio on the OMAP3 GNU Radio was originally developed for high end X86 systems. GNU Radio does run on the OMAP3 GNU Radio floating point performance poor Solution: Rewrite performance critical sections using NEON USRP1 works with OMAP3 system, USRP2 does not (no Gig-E solutions)

  19. Outline Introduction USRP E1XX Device Driver GNU Radio on OMAP3 Summary References https://github.com/balister/linux-omap-philip http://gnuradio.org http://www.ettus.com

  20. Outline Introduction USRP E1XX Device Driver GNU Radio on OMAP3 Summary Questions Questions?

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend