User guide
Table Of Contents
- Contents
- 1. About This MegaCore Function Suite
- Release Information
- Device Family Support
- Features
- Design Example
- Performance and Resource Utilization
- 2D FIR Filter
- 2D Median Filter
- Alpha Blending Mixer
- Avalon-ST Video Monitor
- Chroma Resampler
- Clipper
- Clocked Video Input
- Clocked Video Output
- Color Plane Sequencer
- Color Space Converter
- Control Synchronizer
- Deinterlacer
- Deinterlacer II
- Frame Buffer
- Gamma Corrector
- Interlacer
- Scaler
- Scaler II
- Switch
- Test Pattern Generator
- Trace System
- 2. Getting Started with Altera IP Cores
- 3. Interfaces
- Interface Types
- Avalon-ST Video Protocol
- Avalon-MM Slave Interfaces
- Avalon-MM Master Interfaces
- Buffering of Non-Image Data Packets in Memory
- 4. 2D FIR Filter MegaCore Function
- 5. 2D Median Filter MegaCore Function
- 6. Alpha Blending MegaCore Function
- 7. Avalon-ST Video Monitor MegaCore Function
- 8. Chroma Resampler MegaCore Function
- 9. Clipper MegaCore Function
- 10. Clocked Video Input MegaCore Function
- 11. Clocked Video Output MegaCore Function
- 12. Color Plane Sequencer MegaCore Function
- 13. Color Space Converter MegaCore Function
- 14. Control Synchronizer MegaCore Function
- 15. Deinterlacer MegaCore Function
- Core Overview
- Functional Description
- Parameter Settings
- Signals
- Control Register Maps
- 16. Deinterlacer II MegaCore Function
- 17. Frame Reader MegaCore Function
- 18. Frame Buffer MegaCore Function
- 19. Gamma Corrector MegaCore Function
- 20. Interlacer MegaCore Function
- 21. Scaler MegaCore Function
- 22. Scaler II MegaCore Function
- 23. Switch MegaCore Function
- 24. Test Pattern Generator MegaCore Function
- 25. Trace System MegaCore Function
- A. Avalon-ST Video Verification IP Suite
- B. Choosing the Correct Deinterlacer
- Additional Information

Appendix A: Avalon-ST Video Verification IP Suite A–17
Video File Reader Test
January 2013 Altera Corporation Video and Image Processing Suite
User Guide
In Stage 3, the video source BFM retrieves the data from its mailbox, recasts the data
back into a
c_av_st_video_data
video object, and begins translating it into
transactions for the Avalon-ST source BFM. To indicate that a video packet is being
sent, there is one transaction per pixel and an initial transaction with LSBs of 0×0
when using RGB24 data, 24-bit data buses, and parallel transmission.
In Stage 4, the Avalon-ST source BFM turns each transaction into beats of data on the
Avalon-ST bus, which are received by the DUT.
In Stage 5, the DUT processes the data and presents the output data on the Avalon-ST
bus. The Avalon-ST Sink BFM receives these and triggers a
signal_transaction_received
event for each beat.
In Stage 6, after the video sink BFM detects the
signal_transaction_received
event,
the video sink BFM starts collecting transaction data from the BFM. When a start of
packet (SOP) beat is detected, the type of the packet is verified, and transaction data is
pushed into a pixel object, which is in turn pushed into a video_data object.
In Stage 7, an end of packet (EOP) is seen in the incoming transactions, the video sink
BFM casts the video data into a
c_av_st_video_item
object, and transfers the data
into its mailbox. The file writer then receives the video item.
Lastly, in Stage 8, the file writer recasts the video item to a video data packet, pops off
the pixel, and writes the data to the output file as binary data.