Table of Contents Previous page Next page Index

ModelSim Documentation Bookcase

Model Technology Inc.


run

The run command advances the simulation by the specified number of timesteps.

Syntax

run

[<timesteps>[<time_units>]] | all | continue | next | step |
stepover

Arguments

<timesteps>[<time_units>]

Specifies the number of timesteps for the simulation to run. The number may be fractional, or may be specified absolute by preceding the value with the character @. Optional. In addition, optional <time_units> may be specified as:

fs, ps, ns, us, ms, or sec

The default <timesteps> and <time_units> specifications can be changed during a ModelSim session by selecting Options > Simulation (Main window). See "Setting default simulation options" . Time steps and time units may also be set with the RunLength and UserTimeUnit variables in the modelsim.ini file.

all

Causes the simulator to run the current simulation forever, or until it hits a breakpoint or specified break event. Optional.

continue

Continues the last simulation run after a step command, step -over command or a breakpoint. A run -continue command may be input manually or used as the last command in a bp command string. Optional.

next

Causes the simulator to run to the next event time. Optional.

step

Steps the simulator to the next HDL statement. Optional.

stepover

Specifies that VHDL procedures, functions and Verilog tasks are to be executed but treated as simple statements instead of entered and traced line by line. Optional.

Examples

run 1000

Advances the simulator 1000 timesteps.

run 10.4 ms

Advances the simulator the appropriate number of timesteps corresponding to 10.4 milliseconds.

run @8000

Advances the simulator to timestep 8000.

See also

step


Model Technology Inc.
Model Technology Incorporated
Voice: (503) 641-1340
Fax: (503)526-5410
www.model.com
sales@model.com
Table of Contents Previous page Next page Index

ModelSim Documentation Bookcase