hello,
here the testbench,
the first case is that design is optimised
# vsim Message # 3812:
# The simulator has detected that the design-wide optimizations
# performed by the "vopt" tool have not been run on the top level
# design-units supplied to vsim. vopt is being run automatically
# by the simulator to do this optimization step.
i would like to suppress optimisation but option -novopt has deprecated
the second case , i don't use msim_setup.tcl but i compile the library like this
echo ".. compiling design files... ASMI P2"
rm -rf avst_fifo
vlib avst_fifo
vmap avst_fifo avst_fifo
vlog -work avst_fifo -93 ./sources/submodules/altera_avalon_sc_fifo.v
vcom -work avst_fifo -93 ./sources/submodules/avst_fifo.vhd
rm -rf asmi2_qspi_interface_0
vlib asmi2_qspi_interface_0
vmap asmi2_qspi_interface_0 asmi2_qspi_interface_0
vlog -sv -work asmi2_qspi_interface_0 -93 ./sources/submodules/altera_asmi2_qspi_interface_asmiblock.sv
vlog -sv -work asmi2_qspi_interface_0 -93 ./sources/submodules/asmi_p2_asmi_parallel2_top_0_asmi2_core_asmi2_qspi_interface_0.sv
etc...
and i use cygwin to emulate linux environnement.