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-306 11 - Tracing signals with the Dataflow window<br />

Tracing events (causality)<br />

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

One of the most useful features of the Dataflow window is tracing an event to see the cause<br />

of an unexpected output. This feature uses the Dataflow window’s embedded wave viewer<br />

(see "The embedded wave viewer" (UM-304) for more details).<br />

In short you identify an output of interest in the Dataflow pane <strong>and</strong> then use time cursors in<br />

the wave viewer pane to identify events that contribute to the output.<br />

The process for tracing events is as follows:<br />

1 Log all signals before starting the simulation (add log -r /*).<br />

2 After running a simulation for some period of time, open the Dataflow window <strong>and</strong> the<br />

wave viewer pane.<br />

3 Add a process or signal of interest into the Dataflow window (if adding a signal, find its<br />

driving process). Select the process <strong>and</strong> all signals attached to the selected process will<br />

appear in the wave viewer pane.<br />

4 Place a time cursor on an edge of interest; the edge should be on a signal that is an output<br />

of the process.<br />

5 Select Trace > Trace next event.<br />

A second cursor is added at the most recent input event.<br />

6 Keep selecting Trace > Trace next event until you've reached an input event of interest.<br />

Note that the signals with the events are selected in the wave pane.<br />

7 Now select Trace > Trace event set.<br />

The Dataflow display "jumps" to the source of the selected input event(s). The operation<br />

follows all signals selected in the wave viewer pane. You can change which signals are<br />

followed by changing the selection.<br />

8 To continue tracing, go back to step 5 <strong>and</strong> repeat.<br />

If you want to start over at the originally selected output, select Trace > Trace event reset.

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

Saved successfully!

Ooh no, something went wrong!