CPE 315
Professor Stearns
Winter 2008
Laboratory #4 - MIPS cpu phase 2
Formal lab deliverable due Thursday, Feb. 28 at 3:10 pm.
This individual lab is mandatory and counts as 4 labs.
Lab 4 FAQ
    Chapt. 5 name confusion
Notes:
- All submission and plagiarism rules are in effect for this lab and
will be enforced.
- You may share control unit designs with your partner on Lab Exercise #5 but
nothing else!
Objective: to build Fig. 5.24 + the addi, lui and sltu instructions
Files:
makefile
Test Program #1 and its
machine code
Test Program #2
References
Appendix C of Patterson and Hennessy if you wish to build your Control
in hardware.
But, it is strongly recommended that you hardcode
both of your Control Units in two separate ROMs.
Description:
- Build a simulation of Fig. 5.24
Your simulation must support the following instructions
    add, addi, sub, addu, and, or, slt, sltu, lw, sw, beq, j, lui
- You must include the 3rd port on the Register File for debugging.
- Control Unit and ALU control
You must create these two controls as two separate modules.
You are not allowed to increase the size of ALUop; keep it as 2 bits.
You are not allowed to use the ALUop == 3 for any reason.
- Control Unit Documentation
Your control must use the signal names on Fig. 5-24.
- Shifters
You may not use any gates or logic to implement the Shift left 2 operations.
The shifts can be done solely with proper wiring.
- Testing
Your cpu must execute both test programs correctly.
Deliverables:
- A formal, professional lab submission.
- Professional source code (will have large impact on lab grade)
- include all files whether you wrote them or not
- sort listings by file name (.h followed by .c for each file)
- code meets coding standards, especially overview standards
- A demo in lab on Feb. 26 or Feb. 28
Last updated on 2/17/08