MIPS Main Control Logic

In the Patterson & Hennessy book,

This is for these 4 instructions, if I need to implement instructions like andi, addi, ori, j, etc, do I add on to this table? Or do I do something else?

UPDATE

If I do add on, I think the hard part is the ALUOp. There are only 2 bits, I think I need the below operations. And I added what my idea of an implementation. Whats the correct MIPS implementation tho?

instr    ALUOp
--------+------
AND      0000
OR       0001
sub      0101
slt      0111
funct    1xxx


Where the MSB (bit 3) is a "see funct" bit (R-Type instructions). bit 2 will be "use ALU" bit. Then the last 2 is the operation bits. I saw various implementations, where there are more instructions like NOR, XOR, shift etc. Is there no standard or most commonly used standard?

• Yet another homework question. Oct 25 '11 at 16:42
• @Brian Carlton What's wrong with that? Oct 25 '11 at 17:10
• I guess this is not my strong point :) with little useful help in school ... Oct 26 '11 at 0:04