Courses & Projects by Rob Marano

Architecture Cheat Sheet (Chapters 1-4)

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).


Chapter 1: Performance & Abstractions

Core Performance Equations

Dynamic Power Limit

Power is traditionally constrained by switching properties in CMOS transistors:


Chapter 2: The MIPS Instruction Set Architecture (ISA)

Universal Register File

| 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 |

Machine Code Formats (32-bit Array)

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) ]

Byte Alignment

MIPS memory is byte-addressed. Word addresses (32-bits) MUST be multiples of 4 (e.g., 0, 4, 8, 12).


Chapter 3: Arithmetic & Data Representation

Two’s Complement Integer Representation


Chapter 4: The Processor Datapath & Control

Implementation 1: The Single-Cycle Datapath

Implementation 2: The Multicycle Datapath

Implementation 3: Pipelining

← back to syllabus