Verification Martial Arts: A Verification Methodology Blog

Cool Things You Can Do With DVE – Part 2

Posted by Yaron Ilani on April 7th, 2011

Yaron Ilani, Apps. Consultant, Synopsys

In Part 1 of this series we discussed how SystemVerilog macros might add complexity when it comes to debugging your test bench and how DVE can make your life much easier in that area. Today we’re going to show you another cool feature in DVE that if used wisely, could save you a significant amount of time when debugging. Let’s recall for a moment the two main use models of DVE – Post Processing and Interactive. The former is where you’re debugging your simulation results after it has completed. The latter is where you’re running and debugging your simulation simultaneously, trading off performance for enhanced debug capabilities. Today we shall focus on the interactive mode. We’re about to see how the Interactive Rewind feature will help you minimize your debug turnaround time.

So during a typical interactive session you put a breakpoint somewhere in your code and let the simulation run until it reaches your breakpoint. From that point and on you take the controls and advance the simulation step by step which allows you to inspect your signals or variables very closely. You may assign different values to signals along the way to try out potential workarounds or fixes. Now here’s the tricky part: simulation can only advance forward! So if your breakpoint occurs late in the simulation, every time you want to restart your debug trail you’re bound to wait for the simulation to rerun from the beginning. Why would you want to start over? Well, you might want to change a signal value (remember you can force signals interactively in DVE). But more often than not, stepping through your code gets very complicated and you might miss the interesting point where the bug occurs, or you lose track of the debug trail and need to start fresh. In certain cases your breakpoints occur periodically (e.g. every time a packet is transmitted) and you just wish you could go back in time to the previous occurrence to step through the code again.

The good news is that DVE allows you to navigate backwards in simulation!  We call it Interactive Rewind. All you have to do is set up one or more checkpoints along the simulation. Upon each checkpoint a snapshot of the simulation is saved and you may use it later on to literally go back in time. To give you a sense of how easy it is to work with checkpoints, here’s how it looks like – the left button is used to add a new checkpoint. The right button will be used later to rewind to any of the previously added checkpoints.

Selecting a checkpoint to rewind to is easy: simply select one from the drop-down menu:

You can also control your checkpoints via UCLI, where you’ll find many advanced features such as the ability to add periodic checkpoints automatically.

To sum up, interactive debugging with DVE becomes much more efficient with Interactive Rewind. Simply add checkpoints at strategic points along the debug trail. Then use Step/Next to advance simulation time and Rewind to go back. This will keep your debug turnaround time to minimum, thus enabling you to focus on debugging and not waiting.

5 Responses to “Cool Things You Can Do With DVE – Part 2”

  1. yaron_think_ver (Yaron Ilani) Says:

    Cool Things You Can Do With DVE – Part 2 –

  2. Anurag Chauhan Says:


    May I know that these Checkpoint and Grid features are version specific, If not, then please tell me how can I enable them. Since I am using C-2009.06 version of DVE but I did not get these on my toolbar as these are shown in picture in your posts.


  3. Na Xing Says:

    Hi Anurag,
    These two features are supported since 2010.06.


  4. Verification Martial Arts » Blog Archive » Cool Things You Can Do With DVE – Part 3 Says:

    [...] Cool Things You Can Do With DVE – Part 2 [...]

  5. Verification Martial Arts » Blog Archive » Cool Things You Can Do With DVE – Part 4 Says:

    [...] Cool Things You Can Do With DVE – Part 2 [...]