1 / 33

Presented by: Alon Tirosh & Jonathan Ezroni Supervisor: Mike Sumszyk

LOW COST FPGA IMPLEMENTATION OF TRACKING SYSTEM FROM USB TO VGA. Final Presentation Part A: Video Streaming. Presented by: Alon Tirosh & Jonathan Ezroni Supervisor: Mike Sumszyk. Project Goals. Get to know Quartus SoPC builder environment Stream Video

yakov
Download Presentation

Presented by: Alon Tirosh & Jonathan Ezroni Supervisor: Mike Sumszyk

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. LOW COST FPGA IMPLEMENTATION OF TRACKING SYSTEM FROM USB TO VGA Final Presentation Part A: Video Streaming Presented by: AlonTirosh & Jonathan Ezroni Supervisor: Mike Sumszyk

  2. Project Goals • Get to know • Quartus • SoPC builder environment • StreamVideo • Build foundation for part B - Tracking system

  3. Project Stages • Configurethe system using SoPC builder • Createembeddedsoftware • Generatesystem input using USB • Displayvideo

  4. USB Basics Device Host

  5. Host • Detect Attachment/Removal • Manage Control flow • Manage Data Flow Device • Respond to Requests • Status • Data

  6. Isochronous Transfer • High priority • Low latency • No Resend on Error

  7. System Architecture DE2 Board Cyclone II Instruction memory Nios II Processor Avalon BUS VGA controller SRAM Controller DMA block USB Controller PC - USB VGA D/A SRAM Philips ISP1362 15 fps

  8. Referenced Architecture • Tal Rath and EyalEnav • Configuration: • NIOS II USB • Jungo configuration • DE2 demonstrations

  9. Our Design • Data flow inside the System • Input from file • Streaming format

  10. Video Streamer 1 2 . . . Packet Number Packet Data 1 1022 38 Packets per frame USB

  11. Packet Arrival Philips ISP1362 UBS 2.0 controller PC DMA Block NIOS Cyclone II SRAM DE2

  12. Software [Iso Data Transfer] [USB Interrupt received] Start Tx & Rx IDLE Lock INT [Tx done Interrupt] [No Error]

  13. ISO ISR • ISO Data Transfers • USB interrupt handler • USB interrupt handler TIMELINE Main Loop TIME [USB Int] ISR_Ep05Done Tx DMA ReadIsoEndpoint Rx DMA Tx Done Rx Done

  14. Why DMA? • CPU can perform data transfers… … but then it won’t be available for anything else… • The DMA allows us to transfer data from one place to another without making use of the CPU.

  15. Direct Memory Access • DMA receives: • Source • Destination • Amount of data to transfer

  16. DMA USB INTERFACE DMA PC sends a packet System receives INT DMA starts transfer USB DATA PORT System awaits next INT Transfer finishes SRAM

  17. SRAM VGA INTERFACE VGA SRAM

  18. Host Access Collision DMA VGA SRAM

  19. DMA VGA System with fifo Host Transmission done DMA streaming FIFO Reception done SRAM

  20. USB Selected Design DMA DMA Block FIFO DMA VGA SRAM

  21. Pixel Format • Data Bytes per packet = 1022 • Bytes per pixel = 2 • Pixel per packet = 1022/2 = 511

  22. 24 vs 16 bit RGB 24 bit RGB 16 bit RGB

  23. Tools and Debug • Quartus II – Signal tap. • Model Sim– for design verification • Logic analyser • Nios II IDE • Hex Editor • Microsoft Visual Studio

  24. Troubleshooting • Quartus • Version related issues • USB Drivers • Model Sim • Nios II IDE • SoPC builder environment

  25. VGA signals in Signaltap

  26. VGA signals in ModelSim

  27. LogicAnalizer • Digital Scope • Memory

  28. Hex Editor Neo

  29. Nios II IDE Memory view

  30. Microsoft Visual studio 2005

  31. Memory considerations • 0.5 MB SRAM is not enough for possible extended image resolution (640x480). • 8 MB of SDRAM will be enough for: 160x120x3x3 = 172,800 Bytes which is the current plan.

  32. Summery

  33. 2.Algorithm Motion image computation Mass center computation Prediction of next mass center (Kalman filter or more simple algorithm)

More Related