- Home
- Computer Organization & Architecture
Computer Organization & Architecture
How a CPU really executes instructions: pipelines, caches, control units, I/O and number representation.
Instruction Pipelining
How a CPU works on five instructions at once, like an assembly line. Watch instructions flow through IF, ID, EX, MEM and WB in 3D, and see stalls and forwarding fix data hazards.
Cache Memory Mapping
Why the same memory requests hit or miss depending on where blocks are allowed to go. Compare direct, set-associative and fully associative caches in 3D, with LRU replacement.
IEEE 754 Floating Point
How −6.75 becomes 32 bits. Build the sign, exponent and mantissa in 3D, and see why 0.1 can't be stored exactly.
Booth's Multiplication Algorithm
Multiply signed binary numbers with only add, subtract and shift. Watch the A, Q and Q₋₁ registers change bit by bit in 3D.
Restoring & Non-Restoring Division
Binary long division in hardware. Shift, try to subtract the divisor, and write 1 if it fits or 0 if not. Non-restoring skips the undo step.
Two's Complement
How computers store negative numbers. Invert the bits, add 1, and watch the sign bit take a negative weight.
Ripple-Carry Adder
Add two binary numbers with a chain of full adders and watch the carry ripple from the lowest bit to the highest.
Carry Look-Ahead Adder
Stop waiting for carries to ripple. Work out every carry at once from generate and propagate signals, and race a 4-bit look-ahead adder against a ripple-carry adder in 3D.
Addressing Modes
Where is the operand? Follow one LOAD instruction through nine addressing modes in 3D, from immediate and direct to indexed and auto-increment, and count the memory reads each one needs.
Cache Write Policies
What happens when the CPU writes to cached data? Compare write-through and write-back, write-allocate and no-write-allocate in 3D, and count the memory traffic each one causes.
Hardwired vs Microprogrammed Control Unit
How the CPU turns each instruction into control signals, one clock step at a time. Run the same program on a hardwired control unit (logic gates) and a microprogrammed one (a control memory) in 3D.
Programmed I/O, Interrupts & DMA
How does a fast CPU get data from a slow device? Compare polling, interrupt-driven I/O and DMA cycle by cycle in 3D, and see how much time each leaves for the CPU's own work.
About Computer Organization & Architecture
Inside every processor are tricks that make it fast. Watch instructions flow through a five-stage pipeline with stalls and forwarding, compare direct-mapped and set-associative caches and their write policies, convert decimal numbers to IEEE 754 bits, and multiply signed numbers with Booth's algorithm, register by register. Race a carry look-ahead adder against a ripple-carry adder, follow one instruction through nine addressing modes, run the same program on a hardwired and a microprogrammed control unit, and see how polling, interrupts and DMA move data from slow devices.