π Computer Architecture & Logic
From transistors to pipelines. 51 topics, from beginner to advanced.
Computer architecture explains how hardware runs software. Starting from logic gates and binary arithmetic, this area moves up through the CPU datapath, instruction pipelines, caches and memory hierarchy. Knowing these layers helps explain why some code runs thousands of times faster than other code that does the same work.
Who this area is for
Students of electrical engineering and computer engineering, software developers who want to understand performance, and anyone curious about how a processor runs their code.
Real-world use cases
- Explaining why accessing data sequentially in memory is much faster than random access.
- Designing a simple arithmetic circuit from logic gates.
- Reasoning about how branch mispredictions slow down a tight loop.
- Understanding why a loop over a large array is faster when it reads memory in order.
- Choosing a data type that wastes no bits in an embedded device with little memory.
Topics in Computer Architecture & Logic
Beginner (17)
- Binary Number System β Base-2 representation using only digits 0 and 1.
- Hexadecimal and Octal β Compact base-16 and base-8 notations for binary data.
- Two's Complement β Standard encoding of signed integers in binary.
- Floating Point Representation β Scientific-notation style encoding of real numbers in bits.
- Character Encoding β Mapping characters to numeric codes such as ASCII and Unicode.
- Logic Gates β Basic circuits implementing AND, OR, NOT and related functions.
- Truth Tables β Exhaustive listings of outputs for every input combination.
- Boolean Algebra β Algebra of true and false values with laws for simplification.
- Karnaugh Maps β Graphical method for minimizing Boolean expressions.
- Combinational Circuits β Circuits whose outputs depend only on current inputs.
- Adders β Circuits performing binary addition with carry.
- Multiplexers β Circuits selecting one of many inputs using control lines.
- Flip-Flops β One-bit memory elements that store state on a clock edge.
- Registers β Small fast storage locations inside the processor.
- Clock Signal β Periodic pulse synchronizing sequential logic.
- Von Neumann Architecture β Design storing instructions and data in the same memory.
- Fetch-Decode-Execute Cycle β The repeated instruction processing loop of a CPU.
Intermediate (17)
- Sequential Circuits β Circuits whose outputs depend on current inputs and stored state.
- Finite State Machines in Hardware β Hardware controllers moving between defined states.
- Arithmetic Logic Unit β CPU component performing arithmetic and bitwise operations.
- Instruction Set Architecture β The contract between software and processor hardware.
- RISC vs CISC β Philosophies of simple fixed instructions versus rich complex ones.
- Assembly Language β Human-readable mnemonics for machine instructions.
- Addressing Modes β Ways instructions specify operand locations.
- Memory Hierarchy β Tiers of storage trading speed for capacity.
- Cache Memory β Small fast memory holding recently used data close to the CPU.
- Cache Mapping β Direct, set-associative and fully associative placement policies.
- Cache Replacement Policies β Rules like LRU deciding which block to evict.
- Virtual Memory in Hardware β Address translation giving each process a private space.
- TLB β Cache of recent virtual-to-physical address translations.
- Instruction Pipelining β Overlapping stages of multiple instructions.
- Pipeline Hazards β Data, control and structural conflicts that stall pipelines.
- Branch Prediction β Guessing branch outcomes to keep the pipeline full.
- Out-of-Order Execution β Running instructions as operands become ready rather than program order.
Advanced (17)
- Superscalar Processors β CPUs issuing multiple instructions per cycle.
- Speculative Execution β Executing ahead on predicted paths and discarding if wrong.
- Multicore Processors β Chips with several independent processing cores.
- Cache Coherence β Keeping copies of shared data consistent across cores.
- SIMD and Vector Processing β Applying one instruction to many data elements at once.
- GPU Architecture β Massively parallel processors for throughput workloads.
- DMA β Hardware letting devices move data without CPU involvement.
- Interrupts β Signals diverting the CPU to handle urgent events.
- Bus Architecture β Shared pathways carrying data, address and control signals.
- Storage Devices β HDDs and SSDs and how they persist data.
- RAID β Combining disks for redundancy or performance.
- Memory Consistency Models β Rules on the apparent order of memory operations across cores.
- Microarchitecture Side Channels β Leaks exploiting timing and cache behavior of CPUs.
- FPGA β Reconfigurable chips programmed to implement custom hardware.
- Hardware Description Languages β Languages like Verilog describing digital circuits.
- ARM and RISC-V β Prominent modern reduced instruction set families.
- Moore's Law and Dennard Scaling β Historical trends in transistor density and power.
How to study Computer Architecture & Logic
Build the ideas up from the bottom: learn number systems, then gates, then registers and memory, and only then the pipeline. Draw each circuit or diagram by hand. The Visual Lab binary and logic-gate views let you test each idea against a truth table.
Frequently asked questions
What is a CPU cache and why does it matter?
What is pipelining?
Do I need to know logic gates to be a programmer?
Do I need to know hardware to be a software developer?
What is the difference between architecture and organization?
Open the interactive Computer Architecture & Logic area Take the Computer Architecture & Logic quiz
Other areas
- π» Programming Fundamentals
- π§± Data Structures
- βοΈ Algorithms
- π₯οΈ Operating Systems
- π Computer Networks
- ποΈ Databases
- ποΈ Software Engineering
- πΈοΈ Web Development
- π Security & Cryptography
- β Theory & Discrete Math
- 𧬠Languages & Compilers
- π€ AI & Machine Learning
- βοΈ Distributed Systems & Cloud
- π¨ Graphics, Vision & Media
- π Math for Computing
- π Concurrency & Parallelism
- π± Mobile, Embedded & IoT
- π οΈ DevOps & Tooling
- π Emerging & Frontier Topics