Modelsim example script processing – Altera Mentor Verification IP Altera Edition AMBA AXI4-Stream User Manual

Page 198

Advertising
background image

Mentor Verification IP AE AMBA AXI4-Stream User Guide, V10.3

198

Getting Started with Qsys and the BFMs
Setting Up Simulation from the Windows GUI

April 2014

1. Change the directory to the work directory containing the example to be simulated.

cd axi4stream-qsys-examples/ex1_back_to_back_sv

2. In a shell, start the Modelsim simulator with the example.do script.

vsim -mvchome $QUARTUS_ROOTDIR/../ip/altera/\

mentor_vip_ae/common -gui -do example.do

Note

For details about the processing performed by the example.do script, refer to the section

ModelSim Example Script Processing

.

3. In the Transcript window, start the simulation and run to completion.

vsim> run -all

ModelSim Example Script Processing

The example.do script described below is contained in the installed Mentor VIP AE directory
location axi4stream/qsys-examples/ex1_back_to_back_sv.

The Mentor VIP AE BFMs for AXI4-Stream are compiled.

set TOP_LEVEL_NAME top
set QSYS_SIMDIR simulation

source $QSYS_SIMDIR/mentor/msim_setup.tcl
if {![info exists env(MENTOR_VIP_AE)]}
{
set env(MENTOR_VIP_AE) $env(QUARTUS_ROOTDIR)/../ip/altera/mentor_vip_ae
}

ensure_lib libraries
ensure_lib libraries/work
vmap work libraries/work

vlog -work work -sv \

$env(MENTOR_VIP_AE)/common/questa_mvc_svapi.svh \
$env(MENTOR_VIP_AE)/axi4stream/bfm/mgc_common_axi.sv \
$env(MENTOR_VIP_AE)/axi4stream/bfm/mgc_axi_monitor.sv \
$env(MENTOR_VIP_AE)/axi4stream/bfm/mgc_axi_inline_monitor.sv \
$env(MENTOR_VIP_AE)/axi4stream/bfm/mgc_axi_master.sv \
$env(MENTOR_VIP_AE)/axi4stream/bfm/mgc_axi_slave.sv

The two tcl alias commands dev_com and com compile the required design files. These alias
commands are defined in the msim_setup.tcl simulation script generated by Qsys, along with the
simulation model files.

Advertising