REVISION AND PRACTICE
Week 1 — Quick Revision
On this page 3 headings
Start here Week 1 on one page: from “what is a computer” to bits and binary numbers.
- Every computer computes, remembers and communicates.
- A problem reaches hardware through layers: problem → algorithm → program → system software → instruction set → microarchitecture → logic → circuits → electrons. This course: logic up to a simple CPU.
- Chips are built in levels (transistor → gate → module → chip → board → device) using abstraction.
- Moore’s Law: transistors per chip double about every 2 years (1965 paper said every year; revised in 1975).
- Information is stored as voltage (e.g. 0 V black, 1 V white).
- Noise piles up in analog chains. The digital abstraction reads only low/high, so each block restores a clean signal.
- V ≤ V_L → 0, V ≥ V_H → 1, between = forbidden zone.
- Binary = 2 values. n bits → 2ⁿ values. Binary place values: 1, 2, 4, 8, 16…
- Other bases: hex digit = 4 bits (A––15); any base → decimal by place values; unknown bases: test the options in the equation.
- Boole (1854): logic as maths. Shannon (1937): logic with switches (series = AND, parallel = OR).
| Task | Method |
|---|---|
| Values from n bits | 2ⁿ (largest number 2ⁿ − 1) |
| Bits for N things | smallest n with |
| Binary → decimal | add place values where the bit is 1 |
| Decimal → binary | divide by 2 repeatedly, read remainders bottom to top |
| Read a voltage | compare with V_L and V_H |
| Moore’s Law T/F | Y ÷ time = 2n years |
| Binary ↔︎ hex | groups of 4 bits from the right |
| Bits to write number N | < 2ⁿ |
