Fundamentals of Information Technology

Chapter 3
Computer Hardware and Digital Devices

Bachelors Program in IT
Fundamentals of Information Technology   •   Bachelor

Computer Hardware and Digital Devices

Introduction

Information technology systems are built from physical components that sense, process, store, transmit, and present digital information. Although software determines what a system does, hardware determines the physical limits within which software operates. Understanding hardware is therefore essential for selecting equipment, diagnosing faults, designing information systems, evaluating cloud and mobile platforms, and making sustainable technology decisions.

A modern computing device may contain processors with several cores, multiple levels of memory, solid-state storage, wireless interfaces, sensors, specialized accelerators, and power-management circuitry. These components are connected through communication pathways and controlled by firmware and operating-system software. The same basic principles appear in desktop computers, servers, smartphones, industrial controllers, vehicles, medical equipment, and Internet of Things (IoT) devices.

This chapter examines computer architecture, memory, storage, input/output, buses, peripherals, mobile and embedded systems, and the criteria used to compare alternative architectures.

Learning Objectives

By the end of this chapter, you should be able to:

  1. Explain the functional organization of a computer system.
  2. Describe CPU architecture, instruction execution, cores, registers, cache, and pipelining.
  3. Distinguish primary memory from secondary storage and compare storage technologies.
  4. Explain buses, interfaces, input/output devices, and peripheral operation.
  5. Compare desktop, server, mobile, and embedded architectures.
  6. Evaluate systems using performance, compatibility, reliability, cost, energy use, security, and lifecycle criteria.
  7. Apply these criteria to a realistic hardware-selection problem.

1. The Functional Organization of a Computer

A computer is an electronic system that represents data in binary form and processes instructions according to a stored program. Its principal functional units are:

  • Input: captures data or commands from users, sensors, networks, or other systems.
  • Processing: transforms data through arithmetic, logic, control, and decision operations.
  • Memory: holds instructions and data currently needed by the processor.
  • Storage: retains programs and data when power is removed.
  • Output: communicates results to users, actuators, displays, or other systems.
  • Communication: exchanges data through wired or wireless networks.

The stored-program concept, associated with the von Neumann model, places instructions and data in addressable memory. A processor fetches an instruction, decodes it, obtains required operands, executes it, and stores or communicates the result. Most general-purpose computers use a modified von Neumann architecture, while some systems use separate instruction and data paths, often called a Harvard or modified Harvard architecture.

Functional computer architecture CPUControl unit • ALU • RegistersCache and cores Main memoryRAM • volatile System busData • address • control StorageSSD • HDD • removable Input devices Output devices Network interfaces
Functional computer architecture showing processor, memory, storage, input output, and buses
Figure: Functional computer architecture showing processor, memory, storage, input output, and buses

Figure: Major functional units of a computer system and their communication pathways.

2. CPU Architecture and Instruction Execution

2.1 Components of the CPU

The central processing unit (CPU) executes instructions. Its major components include:

  • The arithmetic and logic unit (ALU) performs arithmetic, comparisons, Boolean operations, and bit manipulation.
  • The control unit coordinates instruction fetching, decoding, execution, and interaction with other components.
  • Registers are very fast storage locations inside the CPU. Examples include the program counter, instruction register, stack pointer, and general-purpose registers.
  • Cache memory stores recently used instructions and data close to the execution units.
  • A clock provides timing signals. Clock frequency is measured in hertz, but frequency alone does not determine performance.

The instruction set architecture (ISA) defines the programmer-visible contract between hardware and software. It specifies instructions, registers, data types, addressing modes, memory behavior, and privilege mechanisms. Examples include x86-64, ARM instruction sets, and RISC-V. The microarchitecture is the internal implementation of an ISA, including pipelines, caches, branch predictors, execution units, and power controls. Different microarchitectures can implement the same ISA with different performance and energy characteristics.

2.2 The instruction cycle

During the instruction cycle, the program counter identifies the next instruction. The CPU fetches it from memory or cache, decodes its operation and operands, executes it, and writes the result to a register or memory. A branch, interrupt, or exception may change the next instruction address. Modern processors overlap these stages through pipelining, so several instructions can be at different stages simultaneously.

A pipeline improves throughput, meaning the number of instructions completed per unit time, but it does not necessarily reduce the latency of one instruction. Branch misprediction, cache misses, data dependencies, and interruptions can reduce the benefit of pipelining.

2.3 Performance measures

CPU performance depends on workload, compiler, memory behavior, operating system, and software design. A useful approximation for CPU execution time is:

CPU time = Instruction count × CPI × Clock cycle time

Here, instruction count is the number of executed instructions, CPI is the average cycles per instruction, and clock cycle time is measured in seconds per cycle. Since clock cycle time is the reciprocal of clock frequency:

CPU time = (Instruction count × CPI) ÷ Clock frequency

These relationships assume that the measured instruction count and average CPI describe the workload and that other delays are either included in CPI or separately accounted for. They should not be used to compare systems using different benchmarks without controlling the workload.

Worked example. A program executes 2 × 10⁹ instructions on a processor with an average CPI of 1.5 and a clock frequency of 3 × 10⁹ cycles per second.

CPU time = (2 × 10⁹ × 1.5) ÷ (3 × 10⁹) = 1 second.

If a software improvement reduces instruction count by 20% while CPI and frequency remain unchanged, execution time becomes 0.8 seconds. This example illustrates why clock speed alone is an incomplete performance measure.

2.4 Multicore and specialized processors

A multicore processor contains multiple processing cores on one package. Multicore systems can improve throughput when software has independent tasks, but speedup is limited by sequential work, synchronization, communication, and memory bandwidth. Amdahl’s principle expresses this limitation. If a fraction p of a workload can be perfectly parallelized across N processors, an idealized speedup is:

Speedup = 1 ÷ [(1 − p) + (p ÷ N)]

The formula assumes no parallelization overhead and equal processor performance; real speedup is usually lower.

Graphics processing units (GPUs) contain many simpler parallel execution units and are effective for data-parallel workloads such as graphics, matrix operations, and machine-learning inference. Digital signal processors, neural-processing units, and field-programmable gate arrays (FPGAs) are specialized for particular classes of computation. Specialization can improve performance per watt but may reduce flexibility and increase software-development complexity.

3. Memory and Storage Hierarchy

A computer uses a hierarchy because fast technologies are expensive and limited in capacity, while larger technologies are slower or farther from the CPU.

LevelTypical roleVolatile?Relative speedTypical capacity
RegistersImmediate operandsYesHighestVery small
CPU cacheRecently used data and instructionsYesVery highSmall
RAMActive programs and dataYesHighModerate to large
SSDPersistent files and applicationsNoModerate to highLarge
HDD or archival storageBulk and long-term storageNoLowerVery large

3.1 Primary memory

Random-access memory (RAM) allows approximately direct access to locations. Dynamic RAM (DRAM) stores bits in electrical circuits that must be periodically refreshed. It is relatively dense and is widely used as main memory. Static RAM (SRAM) uses flip-flop circuits and does not require refresh while powered, making it faster but more expensive per bit; it is commonly used for CPU caches.

Memory capacity is commonly expressed in bytes, where one byte contains eight bits. Manufacturers often use decimal prefixes, such as 1 GB = 10⁹ bytes, while operating systems may report binary quantities, such as 1 GiB = 2³⁰ bytes. Confusing these units can produce apparently different capacity figures.

3.2 Cache and locality

Cache systems exploit temporal locality—recently used data is likely to be used again—and spatial locality—nearby addresses are likely to be accessed soon. A cache hit supplies data from the cache; a cache miss requires retrieval from a lower level. Cache size, associativity, block size, replacement policy, and workload access patterns affect the hit rate.

3.3 Secondary storage

Hard disk drives (HDDs) use rotating magnetic platters and moving read/write heads. They offer high capacity at relatively low cost but have mechanical latency, noise, shock sensitivity, and greater power consumption during activity. Solid-state drives (SSDs) use non-volatile flash memory and have no moving parts. They generally provide lower access latency, better shock resistance, and lower active power, although flash cells have finite write endurance and SSD performance can vary with workload and available free space.

Storage interfaces and protocols also matter. A drive’s internal technology may be capable of high throughput, but the interface, controller, thermal conditions, and workload can limit observed performance. RAID can improve availability or performance, but RAID is not a substitute for independent backup because deletion, corruption, malware, or site loss can affect all members of an array.

4. Buses, Interfaces, and Input/Output

A bus is a communication pathway and protocol arrangement used to transfer information. Traditionally, a system bus is described through:

  • Data lines, which carry values or instruction information.
  • Address lines, which identify a memory location or device register.
  • Control lines, which communicate read, write, interrupt, timing, and arbitration signals.

A bus may be parallel or serial. High-speed modern links commonly use serial signaling because it reduces synchronization and wiring difficulties at high frequencies. Examples of interfaces include USB for general peripherals, PCI Express for high-speed internal devices, SATA for storage, HDMI or DisplayPort for displays, Ethernet for wired networking, and Wi-Fi for wireless networking. The exact capabilities depend on the version, implementation, cabling, and device support.

Input/output (I/O) may be programmed, interrupt-driven, or direct memory access (DMA). With programmed I/O, the CPU repeatedly checks device status. Interrupt-driven I/O allows a device to notify the CPU when attention is needed. DMA enables a controller to transfer blocks of data between a device and memory with limited CPU intervention. DMA improves efficiency for large transfers but requires careful protection and memory-management controls.

Peripherals

Input peripherals include keyboards, pointing devices, cameras, microphones, barcode readers, biometric sensors, and industrial sensors. Output peripherals include displays, printers, speakers, haptic devices, and actuators. Some devices perform both roles; a touchscreen, for example, displays output and detects touch input.

Device drivers translate operating-system requests into device-specific operations. Plug-and-play mechanisms identify devices and allocate resources, but compatibility still depends on drivers, firmware, operating-system support, security policy, and physical standards.

5. Mobile and Embedded Devices

Mobile systems prioritize portability, battery life, wireless connectivity, integrated sensors, and thermal limits. Smartphones and tablets commonly use system-on-chip (SoC) designs that integrate CPU cores, graphics, memory controllers, radio components, image processors, security functions, and AI accelerators. ARM-based designs are widespread because of their performance-per-watt characteristics and licensing model, although ISA choice alone does not determine efficiency.

Embedded systems are computing systems incorporated into a larger product. They may be found in vehicles, appliances, medical devices, industrial robots, cameras, and network equipment. They range from simple microcontrollers to powerful real-time computers.

A microcontroller integrates a processor, memory, timers, and I/O interfaces on one chip. It is appropriate for low-cost control tasks. A microprocessor generally requires external memory and support components and is used when greater computing capacity or a full operating system is required.

Some embedded systems have real-time requirements. A hard real-time system must meet specified deadlines; missing one may cause unacceptable failure. A soft real-time system experiences degraded service when deadlines are missed. Real-time design emphasizes predictable latency, scheduling, interrupt behavior, fault handling, and verification—not merely average speed.

Embedded devices also require secure boot, signed firmware, restricted interfaces, update mechanisms, and protection of secrets. A device that cannot receive security updates may become a long-term vulnerability even if its original hardware remains functional.

6. Comparing Architectures and Systems

Hardware selection should use a weighted, evidence-based comparison rather than a single specification such as processor frequency. Important criteria include:

  • Performance: response time, throughput, latency, memory bandwidth, graphics or accelerator capability, and benchmark results relevant to the workload.
  • Compatibility: ISA, operating-system support, application availability, drivers, file formats, interfaces, and migration requirements.
  • Reliability and availability: failure rates, error detection and correction, redundancy, environmental tolerance, serviceability, and vendor support.
  • Cost: purchase price, licensing, installation, training, maintenance, energy, downtime, and disposal. Total cost of ownership is more informative than acquisition cost alone.
  • Energy use: active and idle power, battery capacity, cooling requirements, and energy per completed task.
  • Security: secure boot, hardware isolation, update support, encryption facilities, vulnerability history, and physical access controls.
  • Lifecycle: expected support period, repairability, spare parts, upgradeability, recycling, and e-waste consequences.

A simple multi-criteria decision model can support transparent selection. If each criterion has a normalized score sᵢ between 0 and 1 and a weight wᵢ whose total is 1, the weighted score is:

Overall score = ∑(wᵢ × sᵢ), for i = 1 to n

This model assumes that criteria can be represented meaningfully on comparable scales and that trade-offs are acceptable. It should support expert judgment, not replace security, safety, legal, or minimum-performance requirements.

7. Applied Case: Selecting Devices for a Community Health Service

Background. A community health organization needs 60 portable devices for field workers. Staff must record patient information, scan identity codes, communicate with a central system, and work for a full shift. The devices will handle sensitive personal data and may operate in dusty or poorly connected environments.

Problem. The organization is considering inexpensive consumer tablets, business-class tablets, and rugged handheld computers. The cheapest option has adequate processing power but a short vendor-support period and a fragile charging connector.

Analysis. The decision team identifies minimum requirements: encrypted storage, biometric or strong passcode authentication, mobile connectivity, barcode scanning, manageable operating-system updates, replaceable protective accessories, and at least eight hours of realistic field use. Performance testing focuses on the clinical application rather than synthetic benchmark scores. Reliability includes drop resistance, warranty terms, repair turnaround, and availability of replacement batteries or charging equipment. Lifecycle analysis includes support duration, accessories, mobile-data costs, and secure disposal.

Approach. The team first eliminates products that fail mandatory security or support requirements. It then weights battery endurance, reliability, security management, total cost, application compatibility, and usability. A pilot deployment measures actual battery life, network behavior, scanning accuracy, worker acceptance, and failure rates over four weeks. Devices are enrolled in mobile-device management, configured with least privilege, encrypted, and set to receive verified updates.

Outcome. The business-class tablet is selected despite a higher purchase price because its support period, repairability, security controls, and accessory ecosystem reduce operational risk. Rugged cases and spare charging equipment are purchased. The organization also establishes a replacement and secure-wipe procedure.

Learning points. The case demonstrates that architecture selection is contextual. A faster processor cannot compensate for weak security, poor connectivity, short support life, or unacceptable field reliability. Total cost and fitness for purpose are more useful than headline specifications.

8. Challenges, Governance, and Contemporary Developments

Hardware systems face several limitations. Benchmark results may not represent real workloads. Thermal throttling can reduce sustained performance. Vendor-specific drivers and firmware can create compatibility risks. Supply-chain shortages, counterfeit components, and undocumented hardware changes can affect reliability and security. Cloud computing may reduce local hardware requirements, but it transfers some concerns to network availability, provider dependence, data governance, and energy use in data centers.

Hardware governance includes asset inventories, configuration baselines, procurement controls, patch and firmware management, access restrictions, backup policies, and secure disposal. Organizations should maintain evidence of ownership and warranty status, classify data, and ensure that storage media are securely erased or physically destroyed when appropriate. Privacy regulations may impose requirements for protecting personal data, while safety regulations may apply to medical, industrial, automotive, or radio equipment.

Artificial-intelligence workloads are increasing demand for GPUs, tensor accelerators, high-bandwidth memory, and efficient data movement. Edge AI places inference closer to sensors, reducing latency and network transmission but increasing requirements for local processing, model updates, and device security. Chiplet designs and three-dimensional packaging may improve integration, but they also increase manufacturing and thermal-management complexity. Sustainable design increasingly emphasizes energy efficiency, repairability, longer support, component reuse, and reduction of electronic waste.

Best Practices for Hardware Evaluation

  1. Begin with workload, user, environmental, security, and regulatory requirements.
  2. Separate mandatory requirements from desirable features.
  3. Test sustained real-world performance, not only peak specifications.
  4. Evaluate compatibility with existing software, interfaces, and management tools.
  5. Calculate total cost of ownership over the intended lifecycle.
  6. Verify update policy, vulnerability response, warranty, and repair arrangements.
  7. Consider energy per task, battery degradation, cooling, and environmental impact.
  8. Plan backup, replacement, secure disposal, and continuity procedures before deployment.
  9. Document assumptions, weights, test results, and approval decisions.
  10. Reassess hardware periodically as workloads, threats, standards, and support policies change.

Chapter Summary

Computer hardware is organized around input, processing, memory, storage, output, and communication. The CPU executes instructions through coordinated control, arithmetic, registers, caches, and execution units. ISA defines the software-visible contract, while microarchitecture determines how that contract is implemented. Performance depends on instruction count, CPI, clock frequency, memory behavior, parallelism, and workload—not clock frequency alone.

Memory and storage form a hierarchy that balances speed, capacity, cost, and persistence. Buses and interfaces connect processors, memory, storage, peripherals, and networks, while drivers and DMA support efficient I/O. Mobile and embedded devices emphasize integration, energy efficiency, specialized functions, and—in many cases—real-time behavior.

Sound hardware decisions compare performance, compatibility, reliability, cost, energy use, security, and lifecycle. Weighted evaluation, realistic pilots, total-cost analysis, update planning, and secure disposal help organizations choose systems that remain useful and trustworthy beyond their initial purchase.

Key Terms

ALU: CPU component that performs arithmetic and logical operations.

Architecture: Organization and design principles of a computing system.

Bus: Communication pathway and signaling arrangement connecting system components.

Cache: Small, fast memory holding frequently or recently used data and instructions.

CPI: Average number of clock cycles required per executed instruction.

CPU: Processor that fetches and executes program instructions.

DMA: Direct memory access; transfer between a device and memory with limited CPU intervention.

DRAM: Dense volatile memory that requires periodic refresh.

Embedded system: Computer integrated into a larger product or environment.

Firmware: Low-level software stored in or closely associated with hardware.

GPU: Highly parallel processor suited to graphics and data-parallel computation.

ISA: Instruction set architecture; the programmer-visible CPU specification.

Microarchitecture: Internal implementation of an instruction set architecture.

Peripheral: External or auxiliary device that provides input, output, storage, or communication.

RAM: Volatile working memory used by active programs and data.

Real-time system: System whose correctness includes meeting specified timing constraints.

SoC: System-on-chip integrating multiple computing and interface functions.

SSD: Non-volatile storage using solid-state flash memory.

Total cost of ownership: Acquisition and all significant operating, support, energy, and disposal costs.

Volatile memory: Memory whose contents are normally lost when power is removed.

Review Questions

Short Answer Questions

  1. What are the main stages of the instruction cycle?
  2. Distinguish an ISA from a microarchitecture.
  3. Why is cache memory used in a computer system?
  4. State two differences between an HDD and an SSD.
  5. What is the purpose of DMA?

Long Answer Questions

  1. Explain the organization of a modern computer using the CPU, memory, storage, buses, input, and output.
  2. Discuss the factors that influence CPU performance and explain why clock frequency is insufficient as a performance measure.
  3. Compare general-purpose, mobile, and embedded architectures in terms of flexibility, energy use, and reliability.
  4. Explain how cache, RAM, SSDs, and HDDs form a memory and storage hierarchy.
  5. Describe a responsible hardware procurement process that includes security, lifecycle, and sustainability.

Analytical / Application Questions

  1. A program executes 3 × 10⁹ instructions with an average CPI of 2 on a 2.5 GHz processor. Calculate its CPU execution time and state the assumptions behind the calculation.
  2. An organization values security and support more highly than peak performance when selecting field tablets. Design a weighted decision framework and identify at least five measurable criteria.
  3. A factory controller occasionally misses its control deadlines after a software update. Analyze possible hardware, firmware, scheduling, and I/O causes, and propose a diagnostic plan.

Multiple Choice Questions with Answers

Question 1

Which CPU component performs arithmetic and Boolean operations?

A. Control unit

B. Arithmetic and logic unit

C. Program counter

D. Cache controller

Correct Answer: B. Arithmetic and logic unit

Question 2

Which statement best distinguishes an ISA from a microarchitecture?

A. An ISA is physical memory, while a microarchitecture is secondary storage.

B. An ISA defines the programmer-visible instruction contract, while microarchitecture is its internal implementation.

C. An ISA applies only to mobile devices, while microarchitecture applies only to servers.

D. An ISA measures energy use, while microarchitecture measures cost.

Correct Answer: B. An ISA defines the programmer-visible instruction contract, while microarchitecture is its internal implementation.

Question 3

A program executes 2 × 10⁹ instructions with CPI 1.5 on a 3 × 10⁹ Hz processor. What is its CPU time?

A. 0.5 s

B. 1.0 s

C. 1.5 s

D. 3.0 s

Correct Answer: B. 1.0 s

Question 4

Which memory is normally volatile and used to hold actively running programs?

A. RAM

B. SSD

C. Optical disc

D. Magnetic tape

Correct Answer: A. RAM

Question 5

What is the principal benefit of DMA?

A. It permanently stores firmware without power.

B. It allows large device-memory transfers with limited CPU intervention.

C. It increases the number of CPU instruction types.

D. It converts an HDD into an SSD.

Correct Answer: B. It allows large device-memory transfers with limited CPU intervention.

Question 6

Which technology is generally characterized by rotating platters and moving read/write heads?

A. DRAM

B. SRAM cache

C. HDD

D. Flash SSD

Correct Answer: C. HDD

Question 7

What is a key characteristic of a hard real-time system?

A. It always uses a desktop CPU.

B. Its correctness includes meeting specified deadlines.

C. It cannot use interrupts.

D. It must store all data on an HDD.

Correct Answer: B. Its correctness includes meeting specified deadlines.

Question 8

Which criterion most directly addresses whether existing applications and drivers will work on a proposed device?

A. Compatibility

B. Clock frequency

C. Physical color

D. Battery chemistry alone

Correct Answer: A. Compatibility

Question 9

Why does a multicore processor not always provide proportional speedup?

A. All programs are automatically single-bit programs.

B. Sequential work, synchronization, and parallelization overhead limit speedup.

C. More cores eliminate the need for memory.

D. Cores cannot execute instructions.

Correct Answer: B. Sequential work, synchronization, and parallelization overhead limit speedup.

Question 10

Why is RAID not a complete substitute for backup?

A. RAID cannot contain more than one drive.

B. RAID prevents all hardware redundancy.

C. Deletion, corruption, malware, or site loss may affect the entire array.

D. RAID works only with volatile memory.

Correct Answer: C. Deletion, corruption, malware, or site loss may affect the entire array.

Fundamentals of Information Technology
Chapter 3 of 15