21.3.3 add_modelsim_path

Description

This Tcl command adds a ModelSim simulation library to your project.

add_modelsim_path -lib library_name  [-path library_path] \
                 [-remove "library_name"]

Arguments

ParameterTypeDescription
libstringName of the library you want to add.
pathstringPath to library that you want to add. Enables you to change the mapping for your simulation library (both Verilog and VHDL). Type the pathname or click the Browse button to navigate to your library directory.
removestringName of library you want to remove (if any).

Error Codes

Error Code

Description

None

Required parameter 'lib' is missing.

None

Parameter 'param_name' is not defined. Valid command formatting is 'add_modelsim_path -lib "library name" [-path "library path"] [-remove "TRUE | FALSE"]'

Supported Families

Supported Families
PolarFire®
RTG4
SmartFusion® 2
IGLOO® 2

Example

Add the ModelSim library "msim_update2" located in the "c:\modelsim\libraries" directory and remove the library "msim_update":

add_modelsim_path -lib "msim_update2" \
                  -path "c:\modelsim\libraries" \
                  -remove "msim_update"