I am given a long period of time that allows me to review for CS 251. I decided to read the book and take notes all along.

I skimmed the parts before 4.3 and realized it is better to start straight from 4.3.

Building a datapath

  • First step of datapath design: examine the major components required to execute each class of MIPS instructions.

  • Datapath elements: a unit used to operate on or hold data within a processor. In the MIPS implementation, the datapath elements include the instruction and data memories, the register file, the ALU, and adders.

When we show the datapath elements, we will also show their control signals.

  • The first datapath element we need is a memory unit to store the instructions of a program and supply instructions given an address.