Keywords: HDL Bencher, Project Navigator, ModelSim, Vsim, user mode
General Description: An error occurs immediately after I double-click on "Generate Expected Simulation result" in HDL Bencher -- the message "Exit code 0005" appears in the console window.
ModelSim can be loaded from Project Navigator without difficulty, but VSim (the underlying program for "Generate Expected Simulation result") cannot be run.
This error is reported because the default location for VSim does not match the ModelSim default path. If you only have user-level access, Project Navigator cannot write the appropriate path into the registry:
To correct this problem, set the Edit -> Preferences -> Partner Tools location when logged on the machine as an administrator. Once this has been done, the machine can be operated with user privileges, and the vsim.exe will be located correctly.
In the latest 4.1i Service Pack, Project Navigator has been fixed so that it searches for vsim.exe in the same default directory as modelsim.exe.