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.

Moving a library<br />

Working with design libraries UM-63<br />

More than one logical name can be mapped to a single directory. For example, suppose the<br />

modelsim.ini file in the current working directory contains following lines:<br />

[Library]<br />

work = /usr/rick/design<br />

my_asic = /usr/rick/design<br />

This would allow you to use either the logical name work or my_asic in a library or use<br />

clause to refer to the same design library.<br />

Unix symbolic links<br />

You can also create a UNIX symbolic link to the library using the host platform comm<strong>and</strong>:<br />

ln -s <br />

The vmap comm<strong>and</strong> (CR-370) can also be used to display the mapping of a logical library<br />

name to a directory. To do this, enter the shortened form of the comm<strong>and</strong>:<br />

vmap <br />

Library search rules<br />

The system searches for the mapping of a logical name in the following order:<br />

First the system looks for a modelsim.ini file.<br />

If the system doesn’t find a modelsim.ini file, or if the specified logical name does not<br />

exist in the modelsim.ini file, the system searches the current working directory for a<br />

subdirectory that matches the logical name.<br />

An error is generated by the compiler if you specify a logical name that does not resolve to<br />

an existing directory.<br />

Individual design units in a design library cannot be moved. An entire design library can<br />

be moved, however, by using st<strong>and</strong>ard operating system comm<strong>and</strong>s for moving a directory<br />

or an archive.<br />

Setting up libraries for group use<br />

By adding an “others” clause to your modelsim.ini file, you can have a hierarchy of library<br />

mappings. If the <strong>ModelSim</strong> tools don’t find a mapping in the modelsim.ini file, then they<br />

will search the library section of the initialization file specified by the “others” clause. For<br />

example:<br />

[library]<br />

asic_lib = /cae/asic_lib<br />

work = my_work<br />

others = /usr/modeltech/modelsim.ini<br />

Only one "others" clause can be entered in the library section.<br />

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

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

Saved successfully!

Ooh no, something went wrong!