Lab11 - Data Path Main Components Design-II
Lab11 - Data Path Main Components Design-II
Objective(s)
Tool(s)/Software
LOGISIM
Description
Register File
The register file consists of 32 x 32-bit registers and has the following interface as shown in
Figure 10.1:
BusA and BusB: 32-bit output busses for reading 2 registers
BusW: 32-bit input bus for writing a register when RegWrite is 1
RA selects register to be read on BusA
RB selects register to be read on BusB
RW selects the register to be written
Thus, two registers are read, and one register is written in a single cycle. Writing happens on the
rising edge of the clock. During read operation, the register file behaves as a combinational block
and once the RA or RB have valid data, the content of the read register will appear on BusA or
BusB after a certain access time.
In-Lab Tasks
You are required to design a 32-bit MIPS-like processor with 31 general-purpose registers. The
first building blocks of the CPU are the ALU and the register file.
Task 1:
Model the 32x32-bit register file given in Figure 10.2 as one single module in Logisim
Test the register file for correct operation by writing to and reading from different register
combinations.
Deliverables(s)
LOGISIM model file for question described in previous section.