Home / Notes / Class 11 / Computer Science / Computer architecture
The parts of a computer system, the Von Neumann model, the CPU and its registers, buses, the fetch, decode and execute cycle, the memory hierarchy and the factors that affect performance.
Computer architecture describes how the parts of a computer are arranged and how they work together. Most modern computers follow the Von Neumann model. In this model the program and the data are stored together in the same memory. The central processing unit (CPU) fetches instructions one at a time from the memory and runs them.
The main parts of the CPU:
Important registers:
A bus is a set of wires that carries signals between parts of the computer. The data bus carries data in both directions. The address bus carries the address of a memory location, and it works in one direction from the CPU. The control bus carries control signals such as read, write and clock. The width of the address bus decides how much memory can be addressed: an address bus of n lines can address 2ⁿ locations.
The fetch, decode and execute cycle repeats for every instruction:
The memory hierarchy arranges storage by speed and cost. From the fastest and smallest to the slowest and largest, the order is registers, cache memory, main memory (RAM) and secondary storage such as a hard disk or SSD. The faster levels cost more for each byte, so computers have a small amount of them and use cache to keep the most used data close to the CPU.
RAM is volatile memory: it loses its contents when the power is off, and it holds the programs and data in use. ROM is non-volatile and holds fixed instructions such as the start-up program. Cache memory is a small, very fast memory between the CPU and RAM that holds copies of recently used data.
Factors that affect CPU performance:
Instruction sets differ. A CISC (complex instruction set computer) has many instructions, and some do several jobs at once. A RISC (reduced instruction set computer) has fewer, simpler instructions, and each normally runs in one clock cycle. Many mobile devices use RISC processors for their low power use.
Study tip: When you describe the fetch, decode and execute cycle, name the registers in order: PC to MAR, memory to MDR, MDR to IR, then decode and execute.
Say the meaning first, then open the card to check.
A design in which instructions and data are stored in the same memory.
The part of the CPU that carries out arithmetic and logic operations.
The part of the CPU that decodes instructions and directs the other parts.
A very small, fast storage place inside the CPU.
A group of wires that carries data, addresses or control signals.
A small, very fast memory that holds copies of frequently used data.
The number of clock cycles the CPU completes every second.
Memory that loses its contents when the power is turned off.
| Name | Formula | What it means |
|---|---|---|
| Addressable locations | 2ⁿ | n is the number of address bus lines. |
| Time for one clock cycle | T = 1 / f | f is the clock frequency in hertz. |
| Memory size | locations × bits in each location | Divide by 8 to get bytes. |
These are the kind of questions asked for 2, 3 and 5 marks. Try each one before opening the answer.
It is a computer design in which the program instructions and the data are stored in the same memory, and the CPU fetches and runs the instructions one after another.
The ALU performs arithmetic operations and logic operations. The control unit fetches and decodes instructions and sends signals that direct the other parts of the computer.
The data bus carries data between the CPU, memory and devices. The address bus carries the address of the memory location or device. The control bus carries control signals such as read, write and clock.
In the fetch step the address in the program counter is sent to memory and the instruction is brought to the instruction register while the program counter moves to the next address. In the decode step the control unit works out the operation. In the execute step the operation is carried out, usually by the ALU, and the result is stored.
Main memory is much slower than the CPU. Cache is a small, fast memory that holds recently used data and instructions, so the CPU waits less time for them.
Answer: 65 536 locations (64 K)
Answer: 0.5 nanoseconds
Answer: 1024 bytes (1 KB)
Answer: 12