<bp-manager.cycle_event>.trace <bp-manager.exc>.break
Simics Reference Manual  /  3 Commands  /  3.2 Command List  / 

<bp-manager.cycle_event>.wait-for

Synopsis

<bp-manager.cycle_event>.wait-for object [event-object] ["event-class"] ["description"] [-reverse] [-always] [timeout] [timeout-rt]

Description

This command uses breakpoint functionality on object, with the following description: Waits for an event to trigger on a clock object. The object needs to implement the cycle_event_instrumentation interface for this to work.

To narrow down the events to match you can give the properties event-class to match the name of the event class, and/or event-object to match the object in the event, and/or description to match the description of the event. If a property is not given it will match any value. If timeout is a positive number, the command will run for at most that many seconds of virtual time.

If timeout-rt is a positive number, the command will run for at most that many seconds of real time.

A time-out will be signaled by throwing a CLI exception, which can be captured using try/except in order to take specific action, or to let it pass unhandled.

The command will by default only wait for events that occur when the simulation is running forward. To wait for events in the reverse direction use the -reverse flag. Similarly, the -always flag tells the command to wait for events in both simulation directions.

Provided By

bp-manager
<bp-manager.cycle_event>.trace <bp-manager.exc>.break