Author: [Generated AI] Date: 2026-04-12 Subject: Computer Engineering Fundamentals
Key Insight: Amazingly, the NAND gate is functionally complete. You can build any other gate (AND, OR, NOT) using only NAND gates. This means the entire digital universe can be constructed from a single type of primitive.
Computers use different types of memory to balance speed vs. cost: Title: From Switches to Silicon: A Top-Down Analysis
The table below summarizes the complete stack, from top to bottom:
| Layer | Abstraction | Physical / Logical Unit | Example |
|-------|-------------|-------------------------|---------|
| Application | Problem solving | Software | c = a + b; |
| Compiler | Translation | Compiler executable | Assembly ADD r3, r1, r2 |
| ISA | Hardware/Software boundary | Instruction Set | 0b0001000000010101 |
| Processor | Microarchitecture | Register file, ALU, CU | Fetch-Decode-Execute |
| Digital Circuit | Logic functions | Adder, MUX, Flip-flop | Ripple-carry adder |
| Logic Gate | Boolean algebra | NAND, NOR, AND, OR | CMOS NAND gate |
| Transistor | Switch | MOSFET | Voltage-controlled switch | AND Gate: Outputs 1 only if both inputs are 1
Once you have circuits that can add, compare, and store data, you can assemble them into a processor (Central Processing Unit or CPU). The processor is the engine of the computer.
By connecting logic gates, we create circuits that perform specific tasks. These generally fall into two categories. Key Insight: Amazingly, the NAND gate is functionally
| Level | Component | Function | Example | | :--- | :--- | :--- | :--- | | 0 | Physics | Electricity flow | Transistors | | 1 | Logic Gates | Boolean Logic | AND, OR, NOT | | 2 | Circuits | Data processing & Storage | Adders, Flip-Flops | | 3 | Architecture | Instruction Execution | CPU (MIPS, x86, ARM) | | 4 | System Software | Translation | Compilers, Assemblers | | 5 | Application | User Interaction | Web Browsers, Games |