Exercise 1- Modify the single-cycle MIPS processor to implement one of the following instructions. Sec Appendix B for a definition of the instructions. Mark up a copy to indicate the changes to the datapath. Name any new control signals. Mark up a copy of Table to show the changes to the main decoder. Describe any other changes that are required.
(a) sll
(b) lui
(c) slti
(d) blez
Table- Main decoder truth table to mark up with changes
Instruction
|
Opcodc
|
RcgWrite
|
RegDst
|
ALUSrc
|
Branch
|
Mem\Vrite
|
McmtoRcg
|
ALUOp
|
It-type
|
000000
|
1
|
1
|
0
|
0
|
0
|
0
|
10
|
1w
|
100011
|
|
0
|
|
0
|
0
|
1
|
00
|
SW
|
101011
|
0
|
X
|
I
|
0
|
|
X
|
00
|
tie,3
|
000100
|
0
|
X
|
0
|
1
|
0
|
X
|
01
|
Exercise 2- Repeat Exercise 1 for the following MIPS instructions.
(a) jal
(b lh
(c) jr
(d) srl