User guide

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