Altera Video and Image Processing Suite User Manual

Page 288

Advertising
background image

Method Call

Description

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.

function void set_garbage_probability (int i);

function string info();

Returns a formatted string containing the

width, height and interlacing members.

Table A-5: Members of c_av_st_video_control Class

Member

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.

A-20

c_av_st_video_control

UG-VIPSUITE

2015.05.04

Altera Corporation

Avalon-ST Video Verification IP Suite

Send Feedback

Advertising