User guide

Table Of Contents
Appendix A: Avalon-ST Video Verification IP Suite A–25
Complete Class Reference
January 2013 Altera Corporation Video and Image Processing Suite
User Guide
Table A6 lists the members of the method calls.
c_av_st_video_file_io
The following is the declaration for the c_av_st_video_file_io class:
class c_av_st_video_file_io#(parameter BITS_PER_CHANNEL = 8,
CHANNELS_PER_PIXEL = 3);
Table A7 lists the method calls for the c_av_st_video_file_io class.
function void unpopulate(bit display);
Pops all pixels from the packet, displaying them if display =
1.
function void push_pixel(c_pixel
#(BITS_PER_CHANNEL, CHANNELS_PER_PEXEL)pixel);
Pushes a pixel into the packet.
Table A–5. Method Calls for the c_av_st_video_data Class (Part 2 of 2)
Method Call Description
Table A–6. Members of the c_av_st_video_data Class
Members Description
c_pixel
#(BITS_PER_CHANNEL,CHANNELS_PER_PIXEL)pixels
[$];
The video data is held in a queue of pixel objects.
c_pixel #(BITS_PER_CHANNEL,CHANNELS_PER_PIXEL)
pixel, new_pixel, r_pixel;
Pixel objects used for storing intermediate data.
rand int video_length;
The length of the video packet (used for constrained random
generation only).
int video_max_length = 10;
Maximum length of video packet (used for constrained
random generation only).
Table A–7. Method Calls for the c_av_st_video_file_io Class (Part 1 of 3)
Method Call Description
function void
set_send_control_packets(t_packet_controls);
If this method is used to set the
send_control_packet
control to off, then one control packet is sent at the
beginning of video data, but no further control packets are
sent.
function t_packet_control
get_send_control_packets();
function void
set_send_user_packets(t_packet_control s);
If the
send_user_packets
control is off, no user packets at
all are sent. Otherwise, user packets are sent before and
after any control packets.
function t_packet_control
get_send_user_packets();
function void
set_send_early_eop_packets(t_packet_control s);
If the
send_eop_packets
control is off, all packets are of
the correct length (or longer). Otherwise, early EOP are sent
of a length determined by the constraints on
early_eop_packet_length
.
function t_packet_control
get_send_early_eop_packets();