Technical data
vlib
CR-198 ModelSim Commands ModelSim EE/SE Command Reference
vlib
The vlib command creates a design library.
Syntax
vlib
[-help][-dos| -short][-unix | -long] <directory_name>
Arguments
-help
Displays the command’s options and arguments. Optional.
-dos
Specifies that subdirectories in a library have names that are compatible with
DOS. Not recommended if you use the vmake
(CR-205) utility. Optional. Default
for ModelSim PE.
-short
Interchangeable with the -dos argument. Optional.
-unix
Specifies that subdirectories in a library may have long file names that are NOT
compatible with DOS. Optional. Default for ModelSim EE.
-long
Interchangeable with the -unix argument. Optional.
<directory_name>
Specifies the pathname of the library to be created. Required.
Examples
vlib design
Creates the design library called design. You can define a logical name for the library using
the vmap command
(CR-207) or by adding a line to the library section of the modelsim.ini
file that is located in the same directory.
The vlib command must be used to create a library directory. Operating system
commands cannot be used to create a library directory or index file.
If the specified library already exists as a valid ModelSim library, the vlib
command will exit with an error message without touching the library.