Topic 2 of 8 · Form 5
Computer architecture and the fetch–execute cycle
A single memory holds both data and instructions; the CPU fetches and executes instructions one at a time.
Notes for this topic 1 file, in order
Create a free account to download PDFs.
The Von Neumann model
A single memory holds both data and instructions; the CPU fetches and executes instructions one at a time.
Components of the CPU
- Arithmetic logic unit (ALU), control unit, system clock.
- Registers: program counter (PC – address of next instruction), memory address register (MAR), memory data register (MDR), current instruction register (CIR), accumulator (ACC), index register, status register.
- Buses: address bus (one-way, carries addresses), data bus (two-way), control bus (signals such as read/write, clock, interrupt).
The fetch–execute cycle (register transfer notation)
MAR ← [PC]; PC ← [PC] + 1; MDR ← [[MAR]]; CIR ← [MDR]; the instruction is decoded and executed. Interrupts are checked at the end of each cycle.
Performance factors
Clock speed, number of cores, cache size and bus width.
Assembly language and addressing modes
Opcode and operand; immediate (the value itself), direct (the address of the value), indirect, indexed and relative addressing. An assembler translates assembly language into machine code (two-pass assembler for labels).
Alternative architectures
Harvard (separate instruction and data memory), RISC versus CISC, pipelining, and parallel processing (SIMD, MIMD).
Check yourself
- What does the program counter hold?
- Which bus is bidirectional?
- Give one advantage of RISC processors.
Show answers
- The address of the next instruction to be fetched.
- The data bus.
- Any one: simpler instructions execute in one cycle, easier pipelining, lower power use.
Questions about this topic (0)
No questions about this topic yet.
Sign in or create a free account to join in.