MIPS Architecture

CPU

Register File:

Control Unit: All computer operations are controlled by the CU.

ALU: Most computer operations are executed in the processor’s ALU

Example: Data flow in and out of the ALU

  1. Load operands into memory
  2. Bring operands from memory into the processor’s registers
  3. Perform operation in ALU
  4. Store result in the processor or move back into memory

Memory Unit

Memory Unit: Stores programs and data

Basic Operational Concepts

To perform tasks, we use programs (lists of instructions and data), which are stored in memory, which are moved into the processor’s registers and/or cache as needed.

Example: A Typical Instruction

ADD R0, M1

Note: In the real world, the BIU is accessible only to the control unit, and the IR and PC are only indirectly accessible through instructions.

Example: Typical Operating Steps: \text{Program Execution: } \\ \text{Secondary Storage $\to$ Main Memory $\to$ CPU Registers $\to$ Execution}

  1. Program loaded from secondary storage into main memory.
  1. PC set to point to the first instruction.
  2. Content of PC is transferred to the MAR
  3. Read signal is asserted to main memory
  4. Instruction retrieved from memory and loaded into MDR
  5. Contents of MDR transferred to IR
  1. Instruction get decoded by CU.
  2. Get operands for the ALU
  1. Perform operations using ALU
  2. Store result
  1. PC incremented to next step