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–23
Complete Class Reference
January 2013 Altera Corporation Video and Image Processing Suite
User Guide
A complete test would set up functional coverpoints in the DUT code and use the
SystemVerilog’s
get_coverage()
call to run the test until the required amount of
coverage has been seen. The Avalon-ST BFM monitors (available in Qsys) include a
comprehensive set of functional coverage points
(in the altera_avalon_st_monitor_coverage.sv file) that can add an Avalon-ST
protocol coverage to any user DUT coverage, greatly facilitating powerful constrained
random test.
Complete Class Reference
This section provides a detailed description of the method calls implemented by each
class:
■ “c_av_st_video_control”
■ “c_av_st_video_data”
■ “c_av_st_video_file_io”
■ “c_av_st_video_item”
■ “c_av_st_video_source_sink_base”
■ “c_av_st_video_sink_bfm_’SINK”
■ “c_av_st_video_source_bfm_’SOURCE”
■ “c_av_st_video_user_packet”
■ “c_pixel”
c_av_st_video_control
The following is the declaration for the c_av_st_video_control class:
class c_av_st_video_control #(parameter BITS_PER_CHANNEL = 8,
CHANNELS_PER_PIXEL = 3) extends c_av_st_video_item;
Table A–3 lists the method calls for the c_av_st_video_control class.
Table A–3. Method Calls for the c_av_st_video_control Class (Part 1 of 2)
Method Call Description
function new();
Constructor
function bit compare (c_av_st_video_control r);
Compares this instance to object r. Returns 1 if
identical, 0 if otherwise.
function bit [15:0] get_width ();
—
function bit [15:0] get_height ();
—
function bit [3:0] get_interlacing ();
—
function t_packet_control get_append_garbage ();
—
function int get_garbage_probability ();
—
function void set_width (bit [15:0] w);
—
function void set_height (bit [15:0] h);
—
function void set_interlacing (bit [3:0] i);
—
function void set_append_garbage (t_packet_control i);
Refer to
append_garbage
member.