How do you set the "Compile to Library" setting on an individual file without using the GUI. I would like to set it from a TCL script.
The "Place in Folder" setting can be set when using the project addfile command in a TCL script.
How do you set the "Compile to Library" setting on an individual file without using the GUI. I would like to set it from a TCL script.
The "Place in Folder" setting can be set when using the project addfile command in a TCL script.
You can use the -work
option to vlog
, vcom
, etc. to set the target library for each set of files:
vlib mylib
vlog -work mylib ...
vcom -work mylib ...
You can set library mapping for files in your modelsim.ini
using the LibMap
option:
LibMap = (**/*.vhd => <library name>);
It won't show it in the project / file properties, but when you gui-compile it will actually compile it in the correct library