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.

Controlling checkpoint file compression<br />

Checkpointing <strong>and</strong> restoring simulations UM-143<br />

The checkpoint file is normally compressed. To turn off the compression, use the following<br />

comm<strong>and</strong>:<br />

set CheckpointCompressMode 0<br />

To turn compression back on, use this comm<strong>and</strong>:<br />

set CheckpointCompressMode 1<br />

You can also control checkpoint compression using the modelsim.ini file in the [vsim]<br />

section (use the same 0 or 1 switch):<br />

[vsim]<br />

CheckpointCompressMode = <br />

The difference between checkpoint/restore <strong>and</strong> restart<br />

The restart (CR-246) comm<strong>and</strong> resets the simulator to time zero, clears out any logged<br />

waveforms, <strong>and</strong> closes any files opened under VHDL <strong>and</strong> the Verilog $fopen system task.<br />

You can get the same effect by first doing a checkpoint at time zero <strong>and</strong> later doing a<br />

restore. Using restart, however, is likely to be faster <strong>and</strong> you don't have to save the<br />

checkpoint. To set the simulation state to anything other than time zero, you need to use<br />

checkpoint/restore.<br />

Using macros with restart <strong>and</strong> checkpoint/restore<br />

The restart (CR-246) comm<strong>and</strong> resets <strong>and</strong> restarts the simulation kernel, <strong>and</strong> zeros out any<br />

user-defined comm<strong>and</strong>s, but it does not touch the state of the macro interpreter. This lets<br />

you do restart comm<strong>and</strong>s within macros.<br />

The pause mode indicates that a macro has been interrupted. That condition will not be<br />

affected by a restart, <strong>and</strong> if the restart is done with an interrupted macro, the macro will still<br />

be interrupted after the restart.<br />

The situation is similar for using checkpoint/restore without quitting <strong>ModelSim</strong>; that is,<br />

doing a checkpoint (CR-93) <strong>and</strong> later in the same session doing a restore (CR-248) of the<br />

earlier checkpoint. The restore does not touch the state of the macro interpreter so you may<br />

also do checkpoint <strong>and</strong> restore comm<strong>and</strong>s within macros.<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!