User guide

Table Of Contents
A–30 Appendix A: Avalon-ST Video Verification IP Suite
Complete Class Reference
Video and Image Processing Suite January 2013 Altera Corporation
User Guide
c_av_st_video_source_sink_base
The following is the declaration for the c_av_st_video_source_sink_base class:
class c_av_st_video_source_sink_base;
Table A–11 lists the method calls for the c_av_st_video_source_sink_base class.
Table A–12 lists the members of the method calls for the c_av_st_video_source_sink_base
class.
Table A–11. Method Calls for the c_av_st_video_source_sink_base Class
Method Call Description
function new(mailbox #(c_av_st_video_item)m_vid);
Constructor. The video source
and sink classes transfer video
objects through their
mailboxes.
function void set_readiness_probability(int percentage);
function int get_readiness_probability();
function void set_long_delay_probability(real percentage);
function real get_long_delay_probability();
function void set_long_delay_duration_min_beats(int percentage);
function int get_long_delay_duration_min_beats();
function void set_long_delay_duration_max_beats(int percentage);
function int get_long_delay_duration_max_beats();
function void set_pixel_transport(t_pixel_format in_parallel);
function t_pixel_format get_pixel_transport();
function void set_name(string s);
function string get_name();
Table A–12. Members of the c_av_st_video_source_sink_base Class
Member Description
mailbox # (c_av_st_video_item) m_video_items= new(0);
t_pixel_format pixel_transport = parallel;
The Avalon-ST video standard allows you to send
symbols in serial or parallel format. You can set
this control to either format.
string name = "undefined";
int video_packets_sent = 0;
int control_packets_sent = 0;
int user_packets_sent = 0;
int readiness_probability = 80;
Determines the probability of when a sink or
source is ready to receive or send data in any given
clock cycle, as manifested on the bus by the
READY
and
VALID
signals, respectively.