FPGA Intellectual Property
PCI Express*, Networking and Connectivity, Memory Interfaces, DSP IP, and Video IP

ASMI P2 IP simulation

guenaule
Beginner
392 Views

hi,

 

i have a trouble when i want to simulate model ASMI P2

 

my version version modelsim is 2020.4

and quartus is 20.1

 

on windows10 , the problem with vsim is :

vsim -L work_lib -L avst_fifo -L asmi2_qspi_interface_0 -L asmi2_cmd_generator_0 -L multiplexer -L merlin_demultiplexer_0 -L xip_controller -L csr_controller -L rst_controller -L asmi2_addr_adaption -L asmi2_core -L asmi_parallel2_top_0 -L altera_ver -L lpm_ver -L sgate_ver -L altera_mf_ver -L altera_lnsim_ver -L cyclonev_ver -L cyclonev_hssi_ver -L cyclonev_pcie_hip_ver -L altera -L lpm -L sgate -L altera_mf -L altera_lnsim -L cyclonev work.testbench_fpga
# Start time: 09:51:44 on Aug 31,2022
# ** Note: (vsim-3812) Design is being optimized...
# ** Error: C:/intelfpga_lite/20.1/quartus/eda/sim_lib/mentor/cyclonev_atoms_ncrypt.v(38): in protected region
# Optimization failed 

 

 

and with script msim_setup.tcl , this component has a warning

vlog -reportprogress 300 C:/intelfpga_lite/20.1/quartus/eda/sim_lib/mentor/cyclonev_atoms_ncrypt.v -work cyclonev
# ** Warning: (vlog-2083) <protected>(<protected>): Carriage return (0x0D) is not followed by a newline (0x0A).
# ** Warning: (vlog-2083) <protected>(<protected>): Carriage return (0x0D) is not followed by a newline (0x0A).
# ** Warning: (vlog-2083) <protected>(<protected>): Carriage return (0x0D) is not followed by a newline (0x0A).
# ** Warning: (vlog-2083) <protected>(<protected>): Carriage return (0x0D) is not followed by a newline (0x0A).
# ** Warning: (vlog-2083) <protected>(<protected>): Carriage return (0x0D) is not followed by a newline (0x0A).
# ** Warning: (vlog-2083) <protected>(<protected>): Carriage return (0x0D) is not followed by a newline (0x0A).
# ** Warning: (vlog-2083) <protected>(<protected>): Carriage return (0x0D) is not followed by a newline (0x0A).
# ** Warning: (vlog-2083) <protected>(<protected>): Carriage return (0x0D) is not followed by a newline (0x0A).
# ** Warning: (vlog-2083) <protected>(<protected>): Carriage return (0x0D) is not followed by a newline (0x0A).
# ** Warning: (vlog-2083) <protected>(<protected>): Carriage return (0x0D) is not followed by a newline (0x0A).

 

 

 

on linux, it's better but there are again a problem, parameter generic between vhdl and systemverilog have a trouble

 

vsim -vopt -c -t ps -L avst_fifo -L asmi2_qspi_interface_0 -L asmi2_cmd_generator_0 -L multiplexer -L merlin_demultiplexer_0 -L xip_controller -L csr_controller -L rst_controller -L asmi2_addr_adaption -L asmi2_core -L asmi_parallel2_top_0 -L altera_ver -L lpm_ver -L s
gate_ver -L altera_mf_ver -L cyclonev -do "set IterationLimit 10000;do i:/projects/onixi/source/asmi_p2/simu/wave.do;run -all;quit" -lib lib_work tb_asmi_p2 -gSCENARIO=TU_TELEDIAG_ASMI_P2 -gMODE=fnc
# Start time: 08:43:28 on Aug 31,2022
# ** Note: (vsim-3812) Design is being optimized...
# ** Error (suppressible): ../libs/altera/sources/submodules/asmi_p2_asmi_parallel2_top_0_asmi2_core.vhd(405): (vopt-1271) Bad default binding for component instance "xip_controller: altera_asmi2_xip_controller".
# (Component generic "ADDR_WIDTH" is not on the entity.)
# ** Error (suppressible): ../libs/altera/sources/submodules/asmi_p2_asmi_parallel2_top_0_asmi2_core.vhd(511): (vopt-1271) Bad default binding for component instance "asmi2_qspi_interface_0: asmi_p2_asmi_parallel2_top_0_asmi2_core_asmi2_qspi_interface_0".
# (Component generic "ENABLE_SIM_MODEL" is not on the entity.)
# ** Error (suppressible): ../libs/altera/sources/submodules/asmi_p2_asmi_parallel2_top_0_asmi2_core.vhd(576): (vopt-1271) Bad default binding for component instance "rst_controller: altera_reset_controller".
# (Component generic "ADAPT_RESET_REQUEST" is not on the entity.)
# ** Error (suppressible): ../libs/altera/sources/submodules/asmi_p2_asmi_parallel2_top_0.vhd(234): (vopt-1271) Bad default binding for component instance "asmi2_addr_adaption: avl_mem_addr_adaption".
# (Component generic "ASMI_ADDR_WIDTH" is not on the entity.)
# ** Error (suppressible): ../libs/altera/sources/submodules/asmi_p2_asmi_parallel2_top_0.vhd(299): (vopt-1271) Bad default binding for component instance "rst_controller: altera_reset_controller".
# (Component generic "ADAPT_RESET_REQUEST" is not on the entity.)
# Optimization failed
# ** Note: (vsim-12126) Error and warning message counts have been restored: Errors=5, Warnings=0.
# Error loading design
Error loading design
# End time: 08:43:28 on Aug 31,2022, Elapsed time: 0:00:00
# Errors: 5, Warnings: 0

0 Kudos
3 Replies
Farabi
Employee
374 Views

Hello,


This is duplicated with case#05580912.

I will close this case and focus to support you on case#05580912.


regards,

Farabi


0 Kudos
Farabi
Employee
372 Views

Hello,


Do you have the testcase for this error? we need this to replicate at our side. if there is a bug, we can report this bug to engineering.


regards,

Farabi


0 Kudos
guenaule
Beginner
360 Views

 

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. 

 

 

 

 

 

 

0 Kudos
Reply