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

A–24 Appendix A: Avalon-ST Video Verification IP Suite
Complete Class Reference
Video and Image Processing Suite January 2013 Altera Corporation
User Guide
Table A–4 lists the members of the method calls.
c_av_st_video_data
The following is the declaration for the c_av_st_video_data class:
class c_av_st_video_data#(parameter BITS_PER_CHANNEL = 8,
CHANNELS_PER_PIXEL = 3) extends c_av_st_video_item;
Table A–5 lists the method calls for the c_av_st_video_data class.
function void set_garbage_probability (int i);
—
function string info();
Returns a formatted string containing the width,
height and interlacing members.
Table A–3. Method Calls for the c_av_st_video_control Class (Part 2 of 2)
Method Call Description
Table A–4. Members of the c_av_st_video_control Class
Members Call Description
rand bit[15:0] width;
—
rand bit[15:0] height;
—
rand bit[3:0] interlace;
—
rand t_packet_control append_garbage = off;
The
append_garbage
control is of type
t_packet_control
,
defined as:
typedef enum{on,off,random} t_packet_control
;
rand int garbage_probability = 50;
The source BFM uses
garbage_probability
and
append_garbage
to determine whether or not to append garbage
beats to the end of the control packets. Garbage beats are
generated with a probability of Garbage_probability%. When a
stream of garbage is being generated, the probability that the
stream terminates is fixed in the source BFM at 10%. When
garbage is produced, this typically produces around
1 to 30 beats of garbage per control packet.
Table A–5. Method Calls for the c_av_st_video_data Class (Part 1 of 2)
Method Call Description
function new();
Constructor
function void copy (c_av_st_video_data c);
Copies object c into this object.
function bit compare (c_av_st_video_data r);
Compares this instance to object r. Returns 1 if identical, 0 if
otherwise.
function void set_max_length(int length);
—
function int get_length();
—
function c_pixel
#(BITS_PER_CHANNEL,CHANNELS_PER_PIXEL)
pop_pixel();
Returns a pixel object from the packet in first in first out
(FIFO) order.
function c_pixel
#(BITS_PER_CHANNEL,CHANNELS_PER_PIXEL)
query_pixel(int i);
Returns a pixel object from the packet at index i, without
removing the pixel.