Basic Machine Organisation

Created by Sam Li

Hardware Components & Bus System

A computer system is a team of hardware components. They must communicate seamlessly to process data into useful information. Think of it like a restaurant: the waiters take orders (Input), the kitchen cooks (Processing), and the food is served (Output).

Input & Output Devices

These devices are our bridge to the computer. We use them to collect data from the real world and display the processed results back to us. Choosing the right device depends on the type of data (text, audio, image, video).

📥 Input (Collecting Data):

  • Keyboard: For text and commands.
  • Microphone: For audio input.
  • Scanner / Digital Camera: For capturing images.
  • Webcam: For capturing live video.

📤 Output (Displaying Information):

  • Monitor / Screen: For visual and video output.
  • Printer: For hard copy text and images.
  • Speaker: For audio output.

Processing Units

These are the "brains" of the operation. They take the input data, perform calculations or logic operations, and generate the output.

  • CPU (Central Processing Unit): The "Head Chef". It handles general tasks, manages all other components, and ensures the whole system runs smoothly. Every computer needs a CPU.
  • GPU (Graphics Processing Unit): The "Specialist Chef". Designed specifically to handle complex mathematical calculations required for rendering high-quality images, 3D graphics, and video very quickly.

The Bus System: The Internal Highway

Hardware components are useless if they can't talk to each other. The Bus System is a set of physical wires that acts as an internal highway, transferring data between the CPU, memory, and I/O devices.

Data Bus Carries the actual data being processed.
Address Bus Carries the specific memory location where data needs to go or come from.
Control Bus Carries commands (like 'read' or 'write') from the CPU to coordinate everything.

Think About It: How does the computer know what to do?

When you click a mouse or type on a keyboard, the data travels via the Bus System to the CPU. But the CPU is just electronic circuits; it needs a step-by-step process to understand and act on your input. Let's move to the next tab to learn about the "Machine Cycle" to see how the CPU actually thinks!

CPU & The Machine Cycle

Measuring CPU Speed

CPU speed is measured in frequency (e.g., Gigahertz - GHz), which represents how many billions of cycles it can perform per second. Because CPUs operate at such mind-boggling speeds, we must use microscopic units of time to measure a single operation:

Microsecond: 10-6s
Nanosecond: 10-9s
Picosecond: 10-12s

The Fetch-Decode-Execute Cycle

Step 1 Fetch Get instruction
Step 2 Decode Understand it
Step 3 Execute Do the action

To perform this cycle continuously, the CPU relies on Buses (to transport data) and internal Registers (tiny, super-fast temporary memory areas built directly inside the CPU to hold data being processed right now). Here is what happens in detail:

  • 1
    Fetch: The CPU retrieves the next instruction from Main Memory (RAM) via the bus and stores it in a register.
  • 2
    Decode: The Control Unit (CU) translates the instruction into electronic signals the computer understands.
  • 3
    Execute: The Arithmetic Logic Unit (ALU) performs the requested action (e.g., math calculation, moving data), and results are saved back to a register or memory.

Analogy Time!

Imagine the CPU is a chef in a kitchen.
Fetch: Reading the next step on the recipe card.
Decode: Understanding what ingredients and tools are needed.
Execute: Actually chopping the vegetables or stirring the pot.

Question: But where does the chef keep the recipe book and all the ingredients? Let's explore Memory and Storage to find out!

Memory & Storage

Primary Memory (Main Memory)

Analogy: The Chef's Kitchen Counter (Fast access, but limited space). Holds what is being worked on right now.

  • RAM (Random Access Memory): Volatile (loses all data when powered off). Holds data and programs currently in use. The CPU accesses it directly and quickly.
  • ROM (Read Only Memory): Non-volatile (keeps data without power). Holds essential, unchanging boot instructions (like the BIOS) needed to start the computer.
  • Cache Memory: Extremely fast, small capacity memory built right next to or inside the CPU. It stores frequently used data to speed up processing, acting like a bridge between the super-fast CPU and the slower RAM.

Secondary Storage

Analogy: The Chef's Fridge/Pantry (Slower access, but huge capacity). Keeps food safely forever until needed.

  • Magnetic Disk: Hard Drives (HDD). Uses moving parts. Good for cheap, large storage.
  • Optical Disk: CD/DVD. Uses lasers to read/write data.
  • Flash Memory: SSDs, USB drives. Very fast, no moving parts, highly durable. Becoming the modern standard.
  • Magnetic Tape: Strictly sequential access (must read from start to finish, like a cassette). Slow, but used for cheap, massive data backups.
  • Network Storage: Cloud storage accessed via the internet (e.g., Google Drive).

What affects Computer Performance?

  • Memory Size (RAM): More RAM means a larger "kitchen counter". More applications can run simultaneously without the computer slowing down to swap data to the hard drive.
  • Word Length: The number of bits the CPU can process in one go (e.g., 32-bit vs 64-bit). A larger word length means processing more data per cycle, resulting in higher performance.
  • Memory Address Bus Width: Every piece of data has a unique location. A wider address bus allows the CPU to access a larger maximum amount of memory locations.

Data Units (SI vs Computer)

Humans count in Base-10 (SI system), but computers count in binary (Base-2). This causes a crucial difference in how prefixes are calculated!

UnitSI (Base 10)Computer (Base 2)
Kilobyte (KB) 1000 Bytes 1024 Bytes (210)
Megabyte (MB) 1000 KB 1024 KB (220)
Gigabyte (GB) 1000 MB 1024 MB (230)
Terabyte (TB) 1000 GB 1024 GB (240)

Latest Developments & Trends

Technology evolves rapidly. The clear historical trend for computer components is: Physical size gets smaller, while storage capacity and processing speed grow massively. We moved from floppy disks holding 1.44MB to tiny MicroSD cards holding 1TB, and from single-core processors to multi-core CPUs that can execute multiple cycles simultaneously.

Now that you understand the basics, are you ready to test your knowledge?

Knowledge Check

Test your understanding! Select an answer for each question. Detailed explanations will help you learn from any mistakes.