The execution of sw
would follow the following steps in your diagram:
- Instruction is read and decoded from the
PC
in the Instruction Memory subcircuit. - The register file is read for
$rs
and$rt
(Registers subcircuit) - The value of
$rs
is added to the sign extended immediate (selected byALUSrc
) (ALU subcircuit). - The added value and
$rt
are passed to the Data Memory subcircuit where the value of$rt
is written to memory.