This reference consolidates the critical mathematical equations, instructional formats, logic limits, and hardware abstractions mapping Chapters 1 through 4 of Computer Organization and Design (MIPS Edition).
CPU Time = Instruction Count x CPI x Clock Cycle TimeCPU Time = (Instruction Count x CPI) / Clock RateCPI = Total Clock Cycles / Instruction CountPerformance(A) / Performance(B) = Execution Time(B) / Execution Time(A)Power is traditionally constrained by switching properties in CMOS transistors:
Power = 1/2 x Capacitive Load x Voltage^2 x Frequency Switching| Name | Number | Usage | Preservation Constraint |
| :— | :— | :— | :— |
| $zero | 0 | Hardwired Constant Logic 0 | N/A |
| $v0-$v1 | 2-3 | Results and expression evaluations | Not preserved |
| $a0-$a3 | 4-7 | Procedure arguments | Not preserved |
| $t0-$t9 | 8-15, 24-25 | Temporary variables | Not preserved |
| $s0-$s7 | 16-23 | Saved variables | Saved across calls |
| $sp | 29 | System Stack Pointer | Saved (Restored) |
| $ra | 31 | Return Address (linked jumps) | Saved |
1. R-Type (Register Math) add, sub, and, or, slt
[ Opcode (6) | rs (5) | rt (5) | rd (5) | shamt (5) | funct (6) ]
2. I-Type (Immediate/Offset) lw, sw, beq, bne, addi
[ Opcode (6) | rs (5) | rt (5) | Immediate (16) ]
3. J-Type (Jump Alignment) j, jal
[ Opcode (6) | Target Address (26) ]
MIPS memory is byte-addressed. Word addresses (32-bits) MUST be multiples of 4 (e.g., 0, 4, 8, 12).
-2^(N-1) to +2^(N-1) - 1XOR of the mathematical carry-in and carry-out of the final physical sign bit.lw instruction: I-Mem -> Reg -> ALU -> D-Mem -> Reg).IR, MDR, A, B, ALUOut).Memory read or ALU compute).Fetch: Extract instruction from RAM.Decode: Read Register values, prepare branch target offsets.Execute: Fire physical ALU calculation.Memory: Read/Write physical RAM storage.Write Back: Log updated math back into the targeted Register.