24.03.2013 Views

ModelSim SE User's Manual - Electrical and Computer Engineering

ModelSim SE User's Manual - Electrical and Computer Engineering

ModelSim SE User's Manual - Electrical and Computer Engineering

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

UM-62 3 - Design libraries<br />

Assigning a logical name to a design library<br />

<strong>ModelSim</strong> <strong>SE</strong> User’s <strong>Manual</strong><br />

VHDL uses logical library names that can be mapped to <strong>ModelSim</strong> library directories. By<br />

default, <strong>ModelSim</strong> can find libraries in your current directory (assuming they have the right<br />

name), but for it to find libraries located elsewhere, you need to map a logical library name<br />

to the pathname of the library.<br />

You can use the GUI, a comm<strong>and</strong>, or a project to assign a logical name to a design library.<br />

Library mappings with the GUI<br />

To associate a logical name with a library, select the library in the workspace, right-click<br />

<strong>and</strong> select Edit from the context menu. This brings up a dialog box that allows you to edit<br />

the mapping.<br />

The dialog box includes these options:<br />

Library Mapping Name<br />

The logical name of the library.<br />

Library Pathname<br />

The pathname to the library.<br />

Library mapping from the comm<strong>and</strong> line<br />

You can issue a comm<strong>and</strong> to set the mapping between a logical library name <strong>and</strong> a<br />

directory; its form is:<br />

vmap <br />

You may invoke this comm<strong>and</strong> from either a UNIX/DOS prompt or from the comm<strong>and</strong> line<br />

within <strong>ModelSim</strong>.<br />

The vmap (CR-370) comm<strong>and</strong> adds the mapping to the library section of the modelsim.ini<br />

file. You can also modify modelsim.ini manually by adding a mapping line. To do this, use<br />

a text editor <strong>and</strong> add a line under the [Library] section heading using the syntax:<br />

=

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!