Download ModelSim SE User`s Manual - Electrical and Computer Engineering

Transcript
UM-60
3 - Design libraries
Working with design libraries
The implementation of a design library is not defined within standard VHDL or Verilog.
Within ModelSim, design libraries are implemented as directories and can have any legal
name allowed by the operating system, with one exception; extended identifiers are not
supported for library names.
Creating a library
When you create a project (see "Getting started with projects" (UM-40)), ModelSim
automatically creates a working design library. If you don’t create a project, you need to
create a working design library before you run the compiler. This can be done from either
the command line or from the ModelSim graphic interface.
From the ModelSim prompt or a UNIX/DOS prompt, use this vlib command (CR-356):
vlib <directory_pathname>
To create a new library with the ModelSim graphic interface, select File > New > Library.
The options in this dialog are described under "Create a New Library dialog" (GR-38).
When you click OK, ModelSim creates the specified library directory and writes a
specially-formatted file named _info into that directory. The _info file must remain in the
directory to distinguish it as a ModelSim library.
The new map entry is written to the modelsim.ini file in the [Library] section. See
"[Library] library path variables" (UM-525) for more information.
Note: Remember that a design library is a special kind of directory; the only way to
create a library is to use the ModelSim GUI or the vlib command (CR-356). Do not try to
create libraries using UNIX, DOS, or Windows commands.
ModelSim SE User’s Manual