Avalon-st source bfm with avalon-st api wrapper – Altera Avalon Verification IP Suite User Manual
Page 99
May 2011
Altera Corporation
Avalon Verification IP Suite User Guide
2. Avalon-ST Source BFM with Avalon-ST
API Wrapper
The Avalon-ST Source BFM with Avalon-ST API Wrapper provides VHDL support for
the Avalon-ST Source BFM. You can use the Avalon-ST Source BFM with Avalon-ST
API Wrapper in HDL simulators that support mixed language simulation.
1
The API wrapper is only supported in SOPC Builder. The API wrapper cannot be
generated in Qsys to create VHDL simulation models.
The Avalon-ST Source BFM with Avalon-ST API Wrapper component is implemented
in SystemVerilog and uses an API wrapper to cast the Avalon-ST Source BFM’s
method calls and returns into signals that are carried on the call and return interface
ports. The wrapper is necessary because VHDL can only access ports and does not
support the method calls used in the Avalon-ST Source BFM.
provides a
high-level view of this component.
, the API call interface and Avalon-ST call and return interface operate in
separate clock domains with
av_clk
synchronizing the FPGA logic and
api_clk
synchronizing the Avalon-ST translation interface. The Avalon-ST interface, which is
not part of the actual hardware design, operates at a much faster clock frequency than
the Avalon-ST Source BFM interface.
Figure 2–1. Avalon-ST Source BFM with Avalon-ST Wrapper
Avalon-ST Source BFM
Translator
API Methods
(Tasks & Functions
SystemVerilog)
API Calls and Returns
Ports to References
Avalon-ST Sink
VHDL
Testbench Using Mixed-Language Simulator
Avalon-ST
Avalon-ST
Function
Calls
Avalon-ST
Function
Returns
Avalon-ST Source BFM with Avalon-ST Wrapper
API Call
Interface
Test Program
VHDL