-
Notifications
You must be signed in to change notification settings - Fork 266
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
user_guide example on linux/modelsim #56
Comments
Could you try to open a modelsim gui and run one of the vsim commands above to see what it says? |
More specifically could you open a modelsim gui and issue the following commands in the same working directory as you ran run.py. set vsim_extra_args ""
vsim {*}${vsim_extra_args} -modelsimini vunit_out/modelsim/modelsim.ini -wlf -quiet -t ps -grunner_cfg="" lib.tb_example(tb) |
You could also do |
run.py --gui=load: vsim opens up, also prints:
(unrelated: after closing vsim, each test is shown as 'passed') from vsim gui:
so this looks good... note that I had to remove the "{*}" to make it work. this time with the vsim command from the error string:
|
The {} TCL operator was something that we recently introduced. Without it the Also the reason it says passed when you close the GUI is that the exit code from you closing the GUI manually is 0. Had you written |
branch issue56 works! On vsim gui closing: indeed, I closed it with quit -f so return code is 0 - thanks for the clarification. |
I have merged this to master and made a new release. Thank you for reporting. |
@kraigher I am trying to use vunit. I tried to run user_guide/run.py and faced a Error: (volt - 2253) No module name found in command-line "true, enabled_test_cases". #Error loading design. when I tried python run.py --gui. It showed the same errors in the modelsim's vsim. My modelsim version is 10.1a on windows 7. thank you~ |
@PingNie 10.1a is probably to old and not compatible with VUnit. The oldest version known to work is 10.1b I believe. Of course it would be theoretically possible for us to support 10.1a but I do not have access to it. You have to upgrade your simulator. There is the free Intel Modelsim starter edition (former Altera) or GHDL. The other alternative is that you try to make a fix for 10.1a yourself, in that case have a look in vunit/modelsim_interface.py and vunit/vsim_simulator_mixin.py |
Hi,
there's probably something wrong with my environment but I can't spot it - can you give advice?
The text was updated successfully, but these errors were encountered: