I'm using the command line argument -modelsimini <modelsim.ini>
to specify my own modelsim.ini
file for most QuestaSim / ModelSim executables.
This works perfectly fine on Linux for vcom
and vsim
, as well as for vcom
on Windows. But the Windows vsim
aborts and throws an error:
C:\Mentor\QuestaSim64\10.4c\win64\vsim.exe -do "do D:/git/PoC/sim/vSim.batch.tcl" -c -modelsimini D:\git\PoC\temp\precompiled\vsim\modelsim.ini -error 3473 -t 1fs test.arith_prng_tb Reading C:/Mentor/QuestaSim64/10.4c/tcl/vsim/pref.tcl # 10.4c # ** Error: (vsim-7) Failed to open -modelsimini file "{D:\git\PoC\temp\precompiled\vsim\modelsim.ini}" in read mode. # # Invalid argument. (errno = EINVAL) # Error loading design Error loading design # Errors: 1, Warnings: 0
The modelsim.ini
files exists and has the following content:
[Library] others = $MODEL_TECH/../modelsim.ini
(This file will contain more lines if vendor tools add their library mappings.)
How can I pass my own modelsim.ini
configuration file to vsim.exe
?
In a UNIX environment, vsim can be invoked in batch mode by redirecting standard input using the "here-document" technique. Batch mode does not require the -c option. In a Windows environment, vsim is run from a Windows 95/98/2000/NT DOS prompt and standard input and output are re-directed to and from files.
The vsim command is used to invoke the VSIM simulator, or to view the results of a previous simulation run (when invoked with the -view switch). You can specify a configuration, an entity/architecture pair, or a module for simulation. If a configuration is specified, it is invalid to specify an architecture.
Vsim is a full featured VHDL and/or Verilog simulator with best-in-class VHDL simulation. It is also very easy to learn and use. VHDL Libraries. Before a VHDL design can be simulated, it must be compiled into a machine executable form.
ModelSim allows users to simulate SystemC, either alone or in combination with other VHDL/Verilog modules. The following is an overview of the usage flow for strictly SystemC designs. More detailed instructions are presented in the sections that follow.
QuestaSim's vsim
executable on Windows cannot cope with Windows paths (using \
as path delimiter sign) in the -modelsimini
command line switch. The path needs to be in posix writing (using /
delimiters).
As far as I can see, vcom
has no problems with the correct path delimiter sign.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With