Matthew
Matthew

Reputation: 13977

How can I undo something set in the global modelsim.ini?

I want to use OSVVM. Modelsim comes with an older version of OSVVM precompiled in a library called osvvm. This is set up in the global modelsim.ini file:

osvvm = $MODEL_TECH/../osvvm

I would like to be able to compile a later version of OSVVM. I still want to compile it into a library called osvvm, because that is where the OSVVM source code expects it to be.

I have got round this temporarily by just commenting out the above line in the global modelsim.ini. That works, but is not very sustainable: it will have to be done every time we install Modelsim (presumably).

So, is there some way of undoing this line in a local modelsim.ini file? That would be much more sustainable for me. Or, is there some other method that doesn't involve making a machine-specific change?

Upvotes: 2

Views: 1193

Answers (2)

JHBonarius
JHBonarius

Reputation: 11271

You can simply overwrite the global mapping in your local 'modelsim.ini'. This file is automatically loaded when you enter the directory (at least in the modelsim GUI).

Just make a local modelsim.ini in you project/simulation directory and fill it with:

[Library]
; load the global modelsim.ini
others = $MODEL_TECH/../modelsim.ini
; overwrite the existing mapping
osvvm = osvvm

(assuming your osvvm has been build in the directory osvvm in your project directory. Else just add the correct path.)

Upvotes: 1

Paebbels
Paebbels

Reputation: 16231

Almost every ModelSim program can load a private modelsim.ini with option -modelsim_ini. You can write your own modelsim INI file.

I suggest, to remove OSVVM from the global modelsim.ini and create a local modelsim.ini that references the existing global file. INI file syntax:

others = ../../modelsim.ini

Upvotes: 1

Related Questions