Forum Discussion
Hi Njoroge
I just wanted to check whether you received the private message I sent earlier.
Due to a system issue on my side, I’m unable to see the message in our internal tools, so I’m not sure if it was delivered successfully.
The message contained the information below regarding the ld and ld_debug simulation flows and the vsim command updates.
Hi Njoroge,
Thanks for the detailed information. You've done a great job, and I really appreciate the effort you put into documenting and sharing all the steps you've taken so far. It was very helpful.
Based on the documents (AN 985: Nios V Processor Tutorial), there are 2 commands, which are ld and ld_debug. Both of them will calling different simulation flow. Hence, you will see 2 separate instance of the vsim commnd in the msim_setup.tcl.
Just as a quick update to prevent confusion, the documentation is expected to be revised in the future release.
In the elab_debug section, the statement:
"Elaborates the top-level design with the novopt option"
The novopt will be updated to -voptargs=+acc, since novopt is no longer being used.
Likewise, in the ld_debug section, the description:
"Compiles all the design files and elaborates the top-level design with the vopt option"
The vopt will be updated to -voptargs=+acc as well.
To answer on your question on which vsim should be modify, based on the tutorial, if you are using ld_debug command, it is an alias that calls dev_com -> com -> elab_debug
In this case, the vsim command that needs to be modified is the one inside the elab_debug alias. Hence, the updated command will be eval vsim -voptargs=+acc -ldflags "-lws2_32" -64 $elabcommand
Alternatively, if you want to try on ld command, then you may modify the vsim command defined in the elab alias instead. Then, the updated command will be eval vsim -ldflags "-lws2_32" -64 $elabcommand
The main difference between these two vsim commands is the -voptargs="+acc". The +acc argument enables full signal visibility during simulation, preventing signals from being optimized away and making them accessible for debugging, waveform viewing, and signal tracing.
Could you please try the suggested changes and let me know the outcome? If you run into any issues or have any questions, feel free to share the details and I'll be happy to help further.
Regards,
ZiYingE_Altera
When you have a moment, could you please confirm whether you received it? Due to the issue on my side, I just want to make sure the message and attachment came through successfully. Thanks and appreciate for your understanding!
Regards,
ZiYingE_Altera