wait-for-simulation-stopped while
Simics Reference Manual  /  3 Commands  /  3.2 Command List  / 

wait-for-write

Synopsis

wait-for-write [object] address value [size] [-l|-b] [initiator]

Description

The command issues a write transaction (via the object's 'transaction' interface) to address with the value value and the length of size bytes. The default size is 4 bytes, but it can have any positive value. If the transaction is not completed immediately the command postpones the execution of a script branch until the transaction is completed.

The object argument is optional. If it is not provided then a transaction will be sent through the physical memory associated with the current processor. A CPU object can also be passed in the object argument. In that case, a transaction will be sent through the physical memory associated with that processor.

If a value doesn't fit into the specified size, an error is reported.

Providing initiator is rarely needed, but some devices may only accept accesses from certain initiating objects. If provided, initiator is the object that will be used as the source of the access.

The -l and -b flags are used to select little-endian and big-endian byte order, respectively. If neither is given, the byte order of the initiator is used if specified and a processor, or else the order of the currently selected processor.

If the value argument is a list, then each item is written to memory as a value of size bytes, starting at address. The byte order flags operate on each item in the list.

If a request fails an error is reported.

Provided By

Simics Core

See Also

<transaction>.wait-for-read, <transaction>.wait-for-write, <transaction>.wait-for-get, <transaction>.wait-for-set
wait-for-simulation-stopped while