Building a Datapath

The components of a datapath include:

  1. Register File
  2. Instruction Memory and Data Memory
  3. Arithmetic Logic Unit (ALU)
  4. Program Counter
  5. Multiplexers

As a review, let’s go over the different instruction formats. Remember that all instructions are 32-bit.

Figure 6.1 Basic instruction format.

Figure 6.1 Basic instruction format.

Register File

The register file is a collection of readable/writeable registers. It contains the 32 MIPS general-purpose registers.

Figure 6.2 Register file.

Figure 6.2 Register file.

Instruction Memory