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.

4 - VHDL simulation<br />

Chapter contents<br />

Compiling VHDL files. . . . . . . . . . . . . . UM-73<br />

Creating a design library . . . . . . . . . . . . UM-73<br />

Invoking the VHDL compiler . . . . . . . . . . . UM-73<br />

Dependency checking . . . . . . . . . . . . . UM-73<br />

Range <strong>and</strong> index checking . . . . . . . . . . . UM-74<br />

Subprogram inlining . . . . . . . . . . . . . UM-74<br />

Differences between language versions . . . . . . . . UM-75<br />

Simulating VHDL designs . . . . . . . . . . . . . UM-78<br />

Simulator resolution limit . . . . . . . . . . . . UM-78<br />

Default binding . . . . . . . . . . . . . . UM-79<br />

Delta delays . . . . . . . . . . . . . . . UM-80<br />

Simulating with an elaboration file . . . . . . . . . . UM-82<br />

Overview . . . . . . . . . . . . . . . . UM-82<br />

Elaboration file flow . . . . . . . . . . . . . UM-82<br />

Creating an elaboration file . . . . . . . . . . . UM-83<br />

Loading an elaboration file . . . . . . . . . . . UM-83<br />

Modifying stimulus . . . . . . . . . . . . . UM-84<br />

Using with the PLI or FLI. . . . . . . . . . . . UM-84<br />

Checkpointing <strong>and</strong> restoring simulations . . . . . . . . . UM-86<br />

Checkpoint file contents . . . . . . . . . . . . UM-86<br />

Controlling checkpoint file compression . . . . . . . . UM-87<br />

The difference between checkpoint/restore <strong>and</strong> restart . . . . UM-87<br />

Using macros with restart <strong>and</strong> checkpoint/restore . . . . . UM-87<br />

Using the TextIO package . . . . . . . . . . . . . UM-88<br />

Syntax for file declaration. . . . . . . . . . . . UM-88<br />

Using STD_INPUT <strong>and</strong> STD_OUTPUT within <strong>ModelSim</strong> . . . UM-89<br />

TextIO implementation issues . . . . . . . . . . . . UM-90<br />

Writing strings <strong>and</strong> aggregates . . . . . . . . . . UM-90<br />

Reading <strong>and</strong> writing hexadecimal numbers . . . . . . . UM-91<br />

Dangling pointers . . . . . . . . . . . . . . UM-91<br />

The ENDLINE function . . . . . . . . . . . . UM-91<br />

The ENDFILE function . . . . . . . . . . . . UM-91<br />

Using alternative input/output files . . . . . . . . . UM-92<br />

Providing stimulus . . . . . . . . . . . . . UM-92<br />

VITAL specification <strong>and</strong> source code . . . . . . . . . . UM-93<br />

VITAL packages . . . . . . . . . . . . . . . UM-93<br />

<strong>ModelSim</strong> VITAL compliance. . . . . . . . . . . . UM-93<br />

VITAL compliance checking . . . . . . . . . . . UM-94<br />

VITAL compliance warnings . . . . . . . . . . . UM-94<br />

Compiling <strong>and</strong> simulating with accelerated VITAL packages . . . UM-95<br />

UM-71<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!