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.

UM-232 8 - WLF files (datasets) <strong>and</strong> virtuals<br />

Collapsing time <strong>and</strong> delta steps<br />

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

By default <strong>ModelSim</strong> collapses delta steps. This means each logged signal that has events<br />

during a simulation delta has its final value recorded to the WLF file when the delta has<br />

expired. The event order in the WLF file matches the order of the first events of each signal.<br />

You can configure how <strong>ModelSim</strong> collapses time <strong>and</strong> delta steps using arguments to the<br />

vsim comm<strong>and</strong> (CR-373) or by setting the WLFCollapseMode (UM-534) variable in the<br />

modelsim.ini file. The table below summarizes the arguments <strong>and</strong> how they affect event<br />

recording.<br />

vsim argument effect modelsim.ini setting<br />

-wlfnocollapse All events for each logged signal are recorded to the<br />

WLF file in the exact order they occur in the<br />

simulation.<br />

-wlfdeltacollapse Each logged signal which has events during a<br />

simulation delta has its final value recorded to the<br />

WLF file when the delta has expired. Default.<br />

-wlftimecollapse Same as delta collapsing but at the timestep<br />

granularity.<br />

WLFCollapseMode = 0<br />

WLFCollapseMode = 1<br />

WLFCollapseMode = 2<br />

When a run completes that includes single stepping or hitting a breakpoint, all events are<br />

flushed to the WLF file regardless of the time collapse mode. It’s possible that single<br />

stepping through part of a simulation may yield a slightly different WLF file than just<br />

running over that piece of code. If particular detail is required in debugging, you should<br />

disable time collapsing.

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

Saved successfully!

Ooh no, something went wrong!