MIPS memory access / MEM Stage

Block diagram

Requirements

  • Only MIPS lw and MIPS sw perform operations here.

    Using memory address calculated by ALU Stage, Read / Write to data memory.

  • Other instructions

    Passed through to be used in Result store stage if applicable.

Input from previous stage MIPS Arithmetic-logical unit (ALU) / EX Stage

Result to be used as memory address (if applicable)

Output to next stage MIPS result write / WB Stage

Result to be stored (if applicable).

Components

MIPS data memory

Examples

MIPS memory stage - load word (lw) example

MIPS memory stage - store word (sw) example