simulation - HACKT CHPSIM Manual
Description: HACKT CHPSIM Manual

Next: tracing, Previous: modes, Up: Commands

### 3.5 `simulation` commands

— Command: initialize

> Resets the variable state of the simulation, while preserving other settings such as mode and breakpoints.

— Command: reset

> Similar to `initialize`, but also resets all modes to their default values.

The following commands run the simulation. Simulation is interrupted if a run-time error occurs, or a breakpoint is tripped. `Ctrl-c` or ``SIGINT`' (from ``kill -INT`') interrupts the simulation and returns control back to the interpreter in interactive mode.

— Command: advance delay

> Advances the simulation delay units of time.

— Command: advance-to t

> Advances the simulation until time t.

— Command: step n

> Advances the simulation by n steps.

— Command: run

> Runs the simulation until the event queue is empty, if ever.

The following commands pertain to breakpoints.

— Command: break-event event-id

> Stop the simulation when event event-id executes.

— Command: break-value inst

> Stop the simulation when variable inst is written, event when its value does not change.

— Command: unbreak-event event-id

> Remove breakpoint on event event-id.

— Command: unbreak-value inst

> Remove breakpoint on variable inst.

— Command: show-event-breaks

> List all event breakpoints.

— Command: show-value-breaks

> List all variable breakpoints.

— Command: unbreakall-events

> Removes all event breakpoints.

— Command: unbreakall-values

> Removes all variable breakpoints.