Verilog Quickstart: A Practical Guide to Simulation and Synthesis in Verilog, 3rd Edition

INTERACTIVE DEBUGGING

Interactive debugging is the ultimate way of finding problems in a simulation. You can look at any value; see what is driving a wire; change values on wires and regs; set breakpoints; add signals to a waveform display; and so on. The entire simulation becomes an open book for you to look at.

This book has attempted to be simulator-independent. This section provides details on interactive debugging using commands native to Verilog-XL TM. Some clone simulators may include some or all of these commands and features by the same name or by using other commands. Companies that primarily use simulators other than Verilog-XL often have some copies of Verilog-XL for debugging use.

Going Interactive

The main command for going interactive is $stop. The $stop command is a breakpoint that stops simulation and places the simulator into interactive mode. There are other ways to put the simulator into interactive mode. It is often desirable to start the simulator in interactive mode. You can start the simulator in interactive mode by using the -s command-line option. The -s stands for "stop at time 0." It is equivalent to having initial $stop; in one of your Verilog modules.

You can also put Verilog into interactive mode by interrupting it. You can start Verilog in the normal fashion, and they hit the interrupt key. The interrupt key can be a button in a graphical user interface, or a keyboard key. The interrupt key is most commonly

UNLIMITED FREE
ACCESS
TO THE WORLD'S BEST IDEAS

SUBMIT
Already a GlobalSpec user? Log in.

This is embarrasing...

An error occurred while processing the form. Please try again in a few minutes.

Customize Your GlobalSpec Experience

Category: Programming Languages
Finish!
Privacy Policy

This is embarrasing...

An error occurred while processing the form. Please try again in a few minutes.