Avalon Verification IP Suite: User Guide

ID 683439
Date 2/17/2022
Public
Document Table of Contents

19.3. Using the VHDL BFMs

The Quartus II software version 13.0 and higher provides VHDL BFM support in Qsys. To use a VHDL BFM, your test program must include the appropriate VHDL package. For example, to use the Avalon-MM master BFM, include the package for this BFM in your test program. Packages are named: <BFM type or component name>_vhdl_pkg

The VHDL BFM design and simulation flow is similar to the Verilog HDL flow, and involves the following steps:

  1. Create the system design in Qsys.
  2. Generate the testbench design in the Qsys Generation tab. Qsys automatically assigns a unique ID (0 to 1023) to each VHDL BFM instance in the testbench design.

You can implement up to 1,024 instances of a particular BFM component.

  1. Open the testbench system in Qsys.
  2. (Optional) Make changes as needed to the BFM, such as changing the BFM instance name or the VHDL BFM ID. You change the ID with the VHDL BFM ID option.

The VHDL BFM ID is only applicable for VHDL BFMs. The parameter appears in the top-level HDL for both Verilog HDL and VHDL files. However, Verilog HDL systems ignore this setting.

  1. Generate a VHDL simulation model of the testbench design.
  2. Create a custom test program.
  3. Compile and load the Qsys design and testbench in a simulator.
  4. Run the simulation.