LEARNING OBJECTIVES
What you will be able to do
- describe CPU components and the fetch–decode–execute cycle
- explain input, output and sensor choices
- compare primary and secondary storage
- identify network hardware and device addressing
AT A GLANCE
INTRODUCTION · THE BIG IDEA
Connect processor architecture, input/output, storage and network devices to system performance.
Hardware is the physical part of a computer system. The processor repeatedly fetches and executes instructions, while memory, storage and peripherals supply data and preserve results.
Device suitability depends on the data source, required output, environment, capacity, speed, durability and cost.
SECTION 01
CPU architecture and the FDE cycle
The control unit coordinates operations; the arithmetic logic unit performs arithmetic and logic; registers provide very fast temporary storage. Buses carry addresses, data and control signals.
In the fetch–decode–execute (FDE) cycle, the program counter holds the next instruction address, the memory address register sends it, memory returns the instruction through the memory data register, and the current instruction register holds it for decoding and execution. The accumulator stores intermediate results.
Higher clock speed, more cores and larger cache can improve performance, but software parallelism, heat and other bottlenecks limit gains. Embedded systems are dedicated computers inside larger devices.
Tracking one instruction fetch
- The PC contains address 240.
- 240 is copied to the MAR and the instruction at that address returns through the data bus to the MDR, then CIR.
- The PC increments to 241 before the instruction is decoded.
Answer: The CIR holds the current instruction while the PC is already ready with the next instruction address, 241.
SECTION 02
Input, output and sensors
Input devices include keyboard, pointing devices, microphones, cameras, scanners and readers such as barcode, QR, magnetic stripe, chip, RFID and optical character or mark recognition. Choose using accuracy, speed, environment and data type.
Output devices include displays, projectors, printers, speakers and actuators. A sensor measures a physical quantity such as temperature, pressure, light or moisture; an analogue signal may need analogue-to-digital conversion before processing. Actuators turn digital decisions into physical action.
| Technology | Reads | Typical strength |
|---|---|---|
| OCR | printed characters | editable text without retyping |
| OMR | filled positions | fast standard-form marking |
| RFID | radio tag | no line of sight required |
| Barcode/QR | printed code | cheap and widely supported |
SECTION 03
Primary memory and secondary storage
ROM is non-volatile and stores instructions such as firmware. RAM is read/write and volatile. Cache is smaller and faster than RAM and stores frequently needed instructions and data near the CPU.
Magnetic storage offers high capacity at low cost but has moving parts. Optical media are portable and useful for distribution or archive but slower and lower capacity. Solid-state storage has no moving parts, so it is fast, quiet and robust but can cost more per unit and has limited write endurance.
Virtual memory uses secondary storage when RAM is insufficient; it prevents immediate failure but is much slower and can cause thrashing.
| Type | Strength | Limitation |
|---|---|---|
| Magnetic | large capacity and low cost | moving parts |
| Optical | portable physical distribution | low speed/capacity |
| Solid state | fast and robust | cost and write endurance |
SECTION 04
Network hardware and addressing
A network interface controller connects a device. Switches forward frames within a local network using MAC addresses; routers move packets between networks using IP addresses. Wireless access points provide radio connection and modems convert signals for a communication link.
MAC addresses are hardware identifiers used locally; IP addresses identify network locations and may be IPv4 or IPv6, static or dynamic. A device can have both. A router commonly assigns private addresses through DHCP and uses network address translation for internet access.
| Device | Main role |
|---|---|
| Switch | connect devices inside a LAN |
| Router | connect networks and select packet routes |
| Wireless access point | connect wireless clients to a network |
| NIC | provide a device's network interface |
QUICK CHAPTER SUMMARY
The ideas to carry forward
- The CPU coordinates and executes instructions through the FDE cycle.
- Input and output choices must match data and environment.
- Memory and storage trade speed, capacity, persistence and cost.
- Switches serve local networks; routers connect networks.
QUICK REVISION CHECKLIST
Can you do each of these without your notes?
- describe CPU components and the fetch–decode–execute cycle
- explain input, output and sensor choices
- compare primary and secondary storage
- identify network hardware and device addressing