Free mock test
Computer Architecture and Organisation

Computer Architecture and Organisation

Computer Fundamentals · 4 min read

Architecture versus organisation

FeatureArchitectureOrganisation
FocusLogical design: what the machine can doPhysical build: how it does it efficiently
Visible to the programmer?YesNo
CoversInstruction set, addressing modes, data formats, I/O mechanisms, CPU designCache, DMA, interfaces, circuits, memory hierarchy

Think of a building: the architecture is the blueprint; the organisation is the bricks, wiring and plumbing that realise it. DMA (Direct Memory Access) lets an I/O device move data to or from memory without troubling the CPU.

The five units of a computer

UnitJob
Input unitTakes data from the user and converts it to binary
Memory unitHolds data and instructions (RAM and ROM)
CPUProcesses everything; contains the ALU, Control Unit and registers
Output unitConverts binary results back to a form people understand
Storage unitPermanent secondary storage (HDD, SSD)

The input unit is a converter and communicator: the keyboard turns key presses into ASCII or Unicode, the mouse turns movement into coordinates, the microphone turns sound into digital audio through an ADC. The output unit is the reverse converter: speakers use a DAC to turn digital audio back into sound.

ALU and Control Unit

  • The ALU does arithmetic (+, −, ×, ÷), logic (AND, OR, NOT, XOR) and comparison (greater, less, equal). It takes both operands from registers, puts the result in the accumulator, and stores nothing itself.
  • The Control Unit is the director. It fetches and decodes instructions, directs data between CPU, memory and I/O, and keeps everything in step with the system clock. It does not compute.

Fetch, decode, execute

StageWhat happensRegisters involved
FetchThe address in the PC goes to the MAR; the instruction is read through the MDR into the IR; the PC moves to the next addressPC, MAR, MDR, IR
DecodeThe CU decodes the instruction in the IR into control signalsIR, decoder
ExecuteThe ALU performs the operation, or the CU moves dataALU, AC, registers

Memory cell and address

  • A memory cell is the smallest addressable storage location, normally one byte (8 bits). It can hold data or an instruction.
  • Every cell has a unique address, counted from 0 and written in binary or hexadecimal. The CPU puts the address on the address bus to read or write.
  • With n address lines the CPU can reach 2^n locations. For example 16 lines give 2^16 = 65,536 locations (64 KB) in a byte-addressable memory.
FeatureByte addressableWord addressable
Address unit1 byte1 word (2, 4 or 8 bytes)
Each stepAddress rises by 1 byteAddress rises by 1 word
FlexibilityMore preciseLess flexible, a little faster per fetch
UseAll modern computersOlder or specialised systems

Buses in brief

  • Address bus: one-way, CPU to memory or I/O. Its width fixes the memory capacity.
  • Data bus: two-way. Its width (8, 16, 32, 64 bits) sets how much moves at once.
  • Control bus: carries Read (RD), Write (WR), Wait and Ready signals and timing.

Registers at a glance

RegisterFull nameKey functionConnected to
ACAccumulatorHolds ALU resultsALU
PCProgram CounterAddress of the next instruction (called Instruction Pointer, IP, on x86)Control Unit
IRInstruction RegisterThe instruction now being executedControl Unit and decoder
SR / FRStatus or Flag RegisterCondition flags Z, C, S, VALU and branch logic
MARMemory Address RegisterAddress to be accessedAddress bus
MDR / MBRMemory Data (Buffer) RegisterData moving to or from memoryData bus

Flags: Z (zero) is set when a result is zero; C (carry) when an operation carries out; S (sign) shows positive or negative; V (overflow) when the result is too big for the data type. Conditional jump instructions read these flags.

Keep practising

Notes are only half the work. Test yourself with questions and discuss doubts with other aspirants.

Prepared for exam revision from standard computer textbooks, Microsoft documentation and official sources. Features differ between Excel and Word versions (2016, 2019, 2021, 365) so check which version your exam follows. Found a mistake? Tell us.