User guide

Table Of Contents
A–2 Appendix A: Avalon-ST Video Verification IP Suite
Avalon-ST Video Class Library
Video and Image Processing Suite January 2013 Altera Corporation
User Guide
In Figure A–1, DUT is fed with Avalon-ST Video-compliant video packets and control
packets. The responses from the DUT are collected, analyzed, and the resultant video
written to an output file.
Although the test environment in Figure A–1 shows a simple example of using the
class library, other test environments can conform to this test structure (with respect to
the Verilog module-level connectivity and object/class-level connectivity.)
The class library uses the Avalon-ST source and sink
BFM [1]
and provides the
following functionality:
Embodies the Avalon-ST Video standard to facilitate compliance testing.
Implements a host of common Avalon-ST Video protocol failures that the DUT can
be tested against. You can configure these using simple method calls to the class
library.
Implements file reader or file writer functionality to facilitate DUT testing with
real video sequences.
The class library is built from a fresh code-base, designed from the ground-up
from newly-defined objects such as ‘pixels’ and ‘video packets’, which means:
The library code is easily understandable for new users.
The library code has all the properties of good object-oriented code design, so it
is easily extensible to meet any further requirements.
Uses SystemVerilog’s powerful verification features such as mailboxes and
randomization of objects, allowing you to construct complex and noisy bus
environments easily for rigourous stress-testing of DUTs.
Avalon-ST Video Class Library
This section describes the class library.
Figure A–2 shows a unified modeling language (UML)-styled diagram of the class
structure of the library and how these break down into individual files and packages.
1 The method call arguments are not shown in Figure A–2 but are detailed in
“Complete Class Reference” on page A–22.