User guide

Table Of Contents
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 A3 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.