Solution ID: rd02082008_85
Last Modified: Jul 01, 2008
Product Category: Embedded Processors
Product Area: SOPC Builder
Product Sub-area: Other
Problem
When running Verilog or VHDL simulation of my SOPC Builder system in ModelSimSE, why can't I see some nodes when I use the waveform "w" macro to call in my system waveforms?
Solution
If you are running Verilog or VHDL simulations in Modelsim®SE in optimized mode, some nodes called up by the waveform "w" macro can be optimized away.
When you simulate the SOPC Builder standard design example in ModelsimSE, you may see the following when typing 's' followed by 'w' macro commands. You will notice that some nodes are not found.
VSIM >s
.
.
# vsim +nowarnTFMPC -t ps test_bench
# ** Note: (vsim-3812) Design is being optimized...
.
.
VSIM >w
# ** Error: (vish-4014) No objects found matching '/test_bench/DUT/the_sdram/za_data'.
# Error in macro ./wave_presets.do line 10
# (vish-4014) No objects found matching '/test_bench/DUT/the_sdram/za_data'.
# while executing
# "add wave -noupdate -format Literal -radix hexadecimal /test_bench/DUT/the_sdram/za_data"
In order to fix this problem, you can either turn off optimized simulation in the modelsim.ini or modify the vsim command in the setup_sim.do file to override the optimized simulation with the -novopt switch. By default Modelsim is always configured to run non-optimized/debug mode and a user has to have set the VoptFlow variable to true manually.
To turn off optimization in modelsim.ini, change the VoptFlow variable to "0" and restart modelsim:
[vsim]
; vopt flow
; Set to turn on automatic optimization of a design.
; Default is off (pre-6.0 flow without vopt).
; VoptFlow = 1
VoptFlow = 0
To turn off optimization in the setup_sim.do file (located in the the <quartus_project>/<sopc_builder_system>_sim directory) you can modify the following line:
alias _vsim {vsim -t ps +nowarnTFMPC test_bench } }
to
alias _vsim {vsim -t ps -novopt +nowarnTFMPC test_bench } }
NOTE: If you re-generate you system the setup_sim.do file will be over-written by SOPC Builder during system generation.
Feedback
Altera does not warrant that this solution will work for the customer's intended purpose and disclaims all liability for use of or reliance on the solution.
