Library mapping with environment variables
Once the MY_PATH variable is set, you can use it with the vmap command to add library mappings to the current modelsim.ini file.
If you're using the vmap command from DOS prompt type:
vmap MY_VITAL %MY_PATH%If you're using vmap from ModelSim/VSIM prompt type:
vmap MY_VITAL \$MY_PATHIf you used DOS vmap, this line will be added to the modelsim.ini:
MY_VITAL = c:\temp\workIf vmap is used from the ModelSim/VSIM prompt, the modelsim.ini file will be modified with this line:
MY_VITAL = $MY_PATHYou can easily add additional hierarchy to the path. For example,
vmap MORE_VITAL %MY_PATH%\more_path\and_more_path vmap MORE_VITAL \$MY_PATH\more_path\and_more_pathThe "$" character in the examples above is Tcl syntax that precedes a variable. The "\" character is an escape character that keeps the variable from being evaluated during the execution of vmap.
Model Technology Incorporated Voice: (503) 641-1340 Fax: (503)526-5410 www.model.com sales@model.com |