Forum Discussion
How to turn off or reduce optimization in questa sim
I downloaded and installed questasim started edition 2021.2 for quartus prime lite 21.1 and the tool opens up and compiles and starts a simulation, but nothing shows up in the "OBJECS" window, almost acting like it is optimizing everything out? where is the menu to change optimization to a lower level? I know this is not related to the source files, because I can run the same simulation in Modelsim and everything works just fine.
12 Replies
- GLT1
Occasional Contributor
It's part of the vsim command line used to open up questa.
vsim -voptargs=+acc <your simulation test bench name>
- JSLY
New Contributor
Yes that helps Thank You. However I hate typing, is there a way to modify the TCL script or the modelsim.ini to turn off optimization so I can just do on the top menu Simulate-> Start Simulation-><test bench> . right now using that command line vsim -voptargs=+acc <your simulation test bench name> works just fine until you shut down the questa, if you restart questa a later time, then you have to type in the vsim arguments all over again.
- SyafieqS
Super Contributor
Hi Jeff,
You can go through below manual related to Modelsim as Modelsim and Questa is similar only different in features supported. In term of usability, this could be same. Below manual is related to object window. Is turn off and on the object window resolve the issue? Close it and go to view click object to on the window and see if it reflect any data objects.
https://www.microsemi.com/document-portal/doc_view/131619-modelsim-user#page=164
- JSLY
New Contributor
Thank you for trying but closing the window and reopening the window gives the same results. the compiler is optimizing out all the net so there is nothing to view? In the terminal window it says loading the optimized design, I do not know if this is related to the starter edition license, or if it is a configurable setting some where I can turn off or modify?
- GLT1
Occasional Contributor
Adding -voptargs=+acc to the questa command line will turn off all optimizations and allow all signals to be visible.
- Maulik0405
New Contributor
This works when also removed the following flag from the vsim - command.
-novopt
Overall the command should be looking like this.
vsim -voptargs=+acc -c -t 1ps -L cyclonev_ver -L altera_ver -L altera_mf_ver -L 220model_ver -L sgate_ver -L altera_lnsim_ver work.firstBlockTest_vlg_vec_tst
- SyafieqS
Super Contributor
Hi Jeff,
Have you tried adding -voptargs=+acc to the questa as suggested below?
- JSLY
New Contributor
# reading modelsim.ini
Questa>-voptargs=+acc
# invalid command name "-voptargs=+acc" - GLT1
Occasional Contributor
I'm not sure. You'd have to check the Questa documentation.
I just put the command to launch the simulation in a script or makefile and call that to launch the simulation.
That way I only have to type it once.
- SyafieqS
Super Contributor
Jeff,
What I could this of is to save the command in a script, invoke and read it whenever you want launch simulation
Thus prevent you from typing.
- SyafieqS
Super Contributor
Jeff,
Let me know if there is any update or concern at your end
- SyafieqS
Super Contributor
We do not receive any response from you to the previous reply that I have provided, thus I will put this case to close pending. Please post a response in the next 15 days to allow me to continue to support you. After 15 days, this thread will be transitioned to community support. The community users will be able to help you with your follow-up questions.