Stopping and finishing in a simulation
The task $stop is provided to stop during a simulation.
Usage: $stop; (断点)
The $stop task puts the simulation in an interactive mode. The designer can then debug
the design from the interactive mode. The $stop task is used whenever the designer wants
to suspend the simulation and examine the values of signals in the design.
The $finish task terminates the simulation.
Usage: $finish;(结束)
参考文件
1:Verilog HDL A Guide to Digital Design and Synthesis, Second Edition 第56页