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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

UM-60 3 - Design libraries<br />

Working with design libraries<br />

Creating a library<br />

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

The implementation of a design library is not defined within st<strong>and</strong>ard VHDL or Verilog.<br />

Within <strong>ModelSim</strong>, design libraries are implemented as directories <strong>and</strong> can have any legal<br />

name allowed by the operating system, with one exception; extended identifiers are not<br />

supported for library names.<br />

When you create a project (see "Getting started with projects" (UM-40)), <strong>ModelSim</strong><br />

automatically creates a working design library. If you don’t create a project, you need to<br />

create a working design library before you run the compiler. This can be done from either<br />

the comm<strong>and</strong> line or from the <strong>ModelSim</strong> graphic interface.<br />

From the <strong>ModelSim</strong> prompt or a UNIX/DOS prompt, use this vlib comm<strong>and</strong> (CR-356):<br />

vlib <br />

To create a new library with the <strong>ModelSim</strong> graphic interface, select File > New > Library.<br />

The options in this dialog are described under "Create a New Library dialog" (GR-38).<br />

When you click OK, <strong>ModelSim</strong> creates the specified library directory <strong>and</strong> writes a<br />

specially-formatted file named _info into that directory. The _info file must remain in the<br />

directory to distinguish it as a <strong>ModelSim</strong> library.<br />

The new map entry is written to the modelsim.ini file in the [Library] section. See<br />

"[Library] library path variables" (UM-525) for more information.<br />

Note: Remember that a design library is a special kind of directory; the only way to<br />

create a library is to use the <strong>ModelSim</strong> GUI or the vlib comm<strong>and</strong> (CR-356). Do not try to<br />

create libraries using UNIX, DOS, or Windows comm<strong>and</strong>s.

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

Saved successfully!

Ooh no, something went wrong!