Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

vsim does not accept -modelsimini parameter on Windows

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?

like image 929
Paebbels Avatar asked May 03 '16 23:05

Paebbels


People also ask

How do I run Vsim in batch mode?

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.

What is Vsim command?

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.

What is Vsim Verilog?

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.

Does ModelSim support SystemC?

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.


1 Answers

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.

like image 58
Paebbels Avatar answered Sep 27 '22 20:09

Paebbels