Visible to Intel only — GUID: mwh1411073378777
Ixiasoft
Visible to Intel only — GUID: mwh1411073378777
Ixiasoft
3.7.10.1.4. Generate Testbench System's Simulation Models
- In Platform Designer, open the testbench system, pattern_generator_tb.qsys, from the simulation_tutorial\pattern_generator\testbench directory.
- On the System Contents tab, rename the instance as they appear in Table 5–1.
Platform Designer-Generated Components' Names New Instance Name pattern_generator_inst DUT pattern_generator_inst_pg_clock_bfm clock_source pattern_generator_inst_pg_reset_bfm reset_source pattern_generator_inst_pg_csr_bfm csr_master pattern_generator_inst_pg_pattern_access_bfm pattern_master pattern_generator_inst_pg_pattern_output_bfm pattern_sink - Double-click a BFM component to open the parameter editor and view its settings. These BFM components are available in the Avalon Verification Suite group in the library. If necessary, you can change the parameters for the BFMs to ensure adequate test coverage for your design.
The Platform Designer-generated testbench matches inserted BFMs with the exported interfaces from the design that they drive. The test program that provides stimulus to the BFMs must account for the matching interface. For example, an exported Avalon-MM slave interface (which expects word-aligned addresses) is connected to an Avalon master BFM, which expects and transacts word-aligned addresses instead of the byte or symbol addresses that are default for Avalon masters.
- Click Cancel to close the parameter editor without making changes.
- In the Generation dialog box, under Simulation, for Create simulation model, select Verilog.
- Under Testbench System, select None for Create testbench Platform Designer system and Create testbench simulation model.
- Under Synthesis, select None for Create HDL design files for synthesis, and turn off Create Block design files (.bsf).
- Save the system.
- Click Generate.
- After Platform Designer generates the testbench, click Close.
Platform Designer generates the testbench system’s simulation models in the \simulation_tutorial\pattern_generator\testbench\pattern_generator_tb\simulation directory.
Platform Designer generates the simulation models and a ModelSim simulation script (msim_setup.tcl), which compiles the required files for simulation and sets up commands to load the simulation in the ModelSim simulator. You can run this ModelSim script in ModelSim to compile, elaborate, or load for simulation.
In this tutorial, there is an external test program to provide simulation stimulus. The tutorial design files include a simulation script, load_sim.tcl that compiles the top-level simulation file and test program, and calls the Platform Designer-generated script to compile the required files.