User guide

Table Of Contents
A–20 Appendix A: Avalon-ST Video Verification IP Suite
Constrained Random Test
Video and Image Processing Suite January 2013 Altera Corporation
User Guide
The code in Example A–5 starts the source and sink, then randomly generates either a
video data, control or user packet. Generation is achieved by simply calling
randomize() on the objects previously created at the end of the code in Example A–1,
putting the objects in the source BFM’s mailbox (
m_video_items_for_src_bfm
),
making a copy of the objects, and putting that in a reference mailbox used by the
scoreboard (
m_video_items_for_scoreboard
).
Finally, the code signals to the scoreboard that a video item has been sent and waits
for the output of the DUT to be analyzed, also signalled by an event from the
scoreboard.
All that remains now is to create the scoreboard, which retrieves the video item
objects from the two scoreboard mailboxes and compares the ones from the DUT with
the reference objects.
1 The scoreboard expects to see the DUT returning greyscale video data. You must
customize the data to mirror the behavior of individual DUTs exactly.