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.

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 />

Syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . UM-84<br />

Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . UM-85<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 />

Flushing the TEXTIO buffer . . . . . . . . . . . . . . . . . . . . . . . . . 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 />

Compiler options for VITAL optimization . . . . . . . . . . . . . . . . . . . UM-95<br />

Util package . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . UM-96<br />

get_resolution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . UM-96<br />

init_signal_driver() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . UM-97<br />

init_signal_spy() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . UM-97<br />

signal_force() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . UM-97<br />

signal_release() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . UM-97<br />

to_real() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . UM-98<br />

to_time() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . UM-99<br />

Foreign language interface . . . . . . . . . . . . . . . . . . . . . . . . . . UM-100<br />

Modeling memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . UM-101<br />

’87 <strong>and</strong> ’93 example . . . . . . . . . . . . . . . . . . . . . . . . . . . UM-101<br />

’02 example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . UM-104<br />

Affecting performance by cancelling scheduled events . . . . . . . . . . . . . . . UM-108<br />

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