User`s guide

SROM Mini-Debugger Command Set 3–31
User Commands
fw
The follow-with-write (fw) command toggles the follow-with-write flag, enabling or
disabling the execution of a write operation after the last operation executed by a
command.
Control Flags
Not applicable.
Description
The follow-with-write command is an advanced command whose use is required in
certain situations where a second operation is needed to achieve a desired result,
such as continuously creating a cache victim or having an I/O write operation
interspersed between memory read operations. Enabling the follow-with-write flag
causes a prompt for an additional address to which the write will be performed.
The write operation takes place at the end of the command sequence, but before any
read operations due to the follow-with-read flag being enabled. The data used for the
write operation varies. If the write operation follows a read operation, then the data
used comes from the read operation. If the write operation follows a write operation,
then it uses the data supplied by the user or the data generated by the command (see
the wa and !d commands).
The default state is off.
Example
In the following example, the fm command writes the block beginning at 0x400000
with the specified data pattern, because the follow-with-write (fw) flag is enabled; it
also writes the same data to the block starting 0x500000. For the bm command, the
write operation gets its data from the previously executed read operations, in effect,
making this sequence a copy command.
SROM> fw ! Follow the last operation with a write.
FollowWr ON