Video implementation reference¶
Recommended reading order:
src/fpga_verification/video/core.py: vendor-independentFrameSizeandcompare_frames.src/fpga_verification/altera/video/format.py:VideoFormat,ImageGenerator, and Avalon-STVideoPayloadCodec.src/fpga_verification/altera/video/packets.py: Altera Avalon-ST Video user, control, and video packet wire format.src/fpga_verification/altera/video/codec.py: conversion between neutral frames and VIP packets.src/fpga_verification/altera/video/checker.py: control-before-video checks and active frame-size validation.src/fpga_verification/altera/video/uvm/agent.py: pyuvm source, monitor, sink, sequence, and item classes for VIP packet streams.src/fpga_verification/sim/analysis/pyuvm.py: sharedAnalysisImphelper that forwards pyuvm analysis writes to a Python callable.src/fpga_verification/altera/video/uvm/scoreboard.py: strict ordered protocol scoreboard used underneath IP-specific behavior models.src/fpga_verification/sim/agents/frame_source.py: output-only conduit source contract and pre-driveFrameTransactionpublication.tests/test_video.py,tests/test_altera_video.py, andtests/test_altera_video_agent.py: fast regression tests that do not require Questa.
The package is installed as one dependency set. A normal install provides the neutral video helpers, protocol codecs, cocotb simulation utilities, pyuvm agents, and HIL helpers together:
For early experiments, change width, height, color planes, and
pixels_in_parallel in small unit tests first. Run the fast Python tests
before moving the same scenario into a cocotb or Questa regression. See
Video frames for the public data API and
Altera Avalon-ST Video for packet conversion.