Running the tests – Altera Video and Image Processing Suite User Manual

Page 275

Advertising
background image

Class

Description

class c_av_st_video_file_io

Parameterized class.
Extends c_av_video_item. Comprises of width, height, and

interlaced bits (the fields found in an Avalon-ST video control

packet). It also contains data types and methods that control the

addition of garbage beats that are used by other classes. The class

provides methods to get and set the individual fields.

class c_av_st_user_packet

This parameterized class is defined in a separate file (av_st_video_

file_io_class.sv) because some test environments do not use video

data from a file, using constrained random data generated by the

other classes instead.
This class provides the following methods:
• to read and write video files (in .raw format)

• to send or receive videos and control packet objects to or from

the mailbox.

Variables that govern the file I/O details include the ability to

artificially lengthen and shorten video packets and to introduce

garbage beats into control packets by various get and set method

calls.
Typical usage of the file I/O class is to construct two objects—a

reader and a writer, call the open file methods for both, call the

read_file

method for the reader, and repeatedly call the

wait_

for_and_write_video_packet_to_file

method in the writer.

The parameters for this class are BITS_PER_CHANNEL and

CHANNELS_PER_PIXEL.

Running the Tests

This example system is available in the Quartus II install directory.
• For example video files test:

$(QUARTUS_ROOTDIR)/../ip/altera/vip/verification/example_video_files

• For constrained random test:

$(QUARTUS_ROOTDIR)/../ip/altera/vip/verification/
example_constrained_random

Note: The actual commands used in this section are for a Linux example. However, the same flow applies

for Windows users.

1. Automatically generate the

tb.v

netlist from the Qsys system integration tool in the Quartus II

software.

UG-VIPSUITE

2015.05.04

Running the Tests

A-7

Avalon-ST Video Verification IP Suite

Altera Corporation

Send Feedback

Advertising