C_av_st_video_user_packet – Altera Video and Image Processing Suite User Manual
Page 298

Method Call
Description
task send_video;
The
send_video()
task waits until a video
item is put into the mailbox, then it drives the
Avalon-ST sink BFM's API accordingly.
The
set_transaction_idles()
call is used to
set the valid signal in accordance with the
probability settings in the base class. The
mailbox object is categorized according to
object type.
Each object is presented to the bus according
to the Avalon-ST Video specification and the
setting of the
pixel_transport
control.
c_av_st_video_user_packet
The declaration for the c_av_st_video_user_packet class:
class c_av_st_video_user_packet#(parameters BITS_PER_CHANNEL=8,
CHANNELS_PER_PIXEL=3) extends c_av_st_video_item;
Table A-16: Method Calls for c_av_st_video_user_packet Class
Method Call
Description
function new();
Constructor.
function void copy (c_av_st_video_user_packet
c);
Copies object c into this object.
function bit compare (c_av_st_video_user_
packet r);
Compares this instance to object r. Returns 1 if
identical, 0 for otherwise.
function void set_max_length(int l);
For constrained random generation, this
method is used to apply a maximum length to
the user packets.
function int get_length();
—
function bit[3:0] get_identifier();
The identifier is the Avalon-ST video packet
identifier. 0x0 indicates video, 0xf indicates a
control packet and the user packets take
random values from 0x4 to 0xe.
function bit [BITS_PER_CHANNEL*CHANNELS_PER_
PIXEL-1:0] pop_data();
Returns the next beat of user data.
function bit [BITS_PER_CHANNEL*CHANNELS_PER_
PIXEL-1:0] query_data(int i);;
Returns the next beat of user data without
removing it from the object.
function void push_data(bit [BITS_PER_
CHANNEL*CHANNELS_PER_PIXEL-1:0] d);
—
A-30
c_av_st_video_user_packet
UG-VIPSUITE
2015.05.04
Altera Corporation
Avalon-ST Video Verification IP Suite