Lesson: The Computer System Hardware
Lesson: The Computer System Hardware
Tacloban City
Lesson
2 COMPUTER FUNDAMENTALS AND PROGRAMMING
1st Sem., AY 2020-2021
The computer as a machine consists of different components that interact with each other to provide
the desired functionality. As a user of the computer, we need to be aware of the main components of the
computer, their functions, and the interconnection between the different components of the computer. This
lesson describes the different hardware components of the computer.
Objectives:
Discuss the terms computer architecture, computer organization, and computer design.
Discuss CPU and Memory Unit
Discuss Instruction Set and Instruction Format
Explain the Instruction Cycle.
Explain the interconnecting units of a computer – System bus, expansion bus and external
ports
Discuss the inside of the computer cabinet
Presentation/Discussion:
When we talk of computer hardware, the three related terms that require introduction are – computer
architecture, computer organization and computer design. Computer Architecture refers to the structure and
behavior of the computer. It includes the specification of the components, for example, instruction format,
instruction set and techniques for addressing the memory, and how they connect to the other components.
Given the components, Computer Organization focuses on the organizational structure. It deals with how the
hardware components operate and the way they are connected to form the computer. Given the system
specification, Computer Design focuses on the hardware to be used and the interconnection of parts. Different
kinds of computer, such as a PC or a mainframe computer may have different organization; however, basic
organization of the computer remains the same.
A computer consists of three main components – (1) Input/Output (I/O) Unit, (2) Central Processing
Unit (CPU), and (3) Memory Unit. The computer user interacts with the computer via the I/O unit. The purpose
of I/O unit is to provide data and instructions as input to the computer and to present relevant information as
output from the computer. CPU controls the operations of the computer and processes the received input to
generate the relevant output. The memory unit stores the instructions and the data during the input activity,
to make instructions readily available to CPU during processing. It also stores the processed output. This
chapter discusses the hardware components of the computer and the interaction between them.
Registers are high-speed storage areas within the CPU but have the least storage
capacity. Registers are not referenced by their address, but are directly accessed and
manipulated by the CPU during the instruction execution.
Registers store data, instructions, addresses and intermediate results of processing.
Registers are often referred to as the CPU’s working memory.
The data and instructions that require processing must be brought in the registers of the
CPU before they can be processed. For example, if two numbers are to be added, both
numbers are brought in the registers, added and the result is also placed in a register.
c. Control Unit
The control unit of a computer does not do any actual processing of data. It organizes the
processing the data and instructions. It acts as a supervisor and, controls and coordinates
the activity of the other units of computer.
CU coordinated the input and output devices of a computer. It directs the computer to carry
our stored program instructions by communicating with the ALU and the registers. CU
uses the instructions in the Instruction Register (IR) to decide which circuit needs to be
activated. It also instructs the ALU to perform the arithmetic or logic operations. When the
program is run, the Program Counter (PC) registers keeps track of the program instruction
to be executed next.
CU tells when to fetch the data and instructions, what to do, where to store the results, the
sequencing of events during processing etc.
a. Cache Memory
The data and instructions that are required during the processing of data are brought from the
secondary storage devices and stored in the RAM . For processing, it is required that the data and
instructions are accessed from the RAM and stored in the registers. The time taken to move the
data between RAM and CPU registers is large. This affects the speed of processing of computer
and results in decreasing the performance of CPU.
Cache memory is a very high-speed memory placed in between RAM and CPU. Cache memory
increases the speed of processing.
Cache memory is a storage buffer that stores the data that is used more often, temporarily and
make them available to CPU at a fast rate. During processing, CPU first checks cache for the
required data. If data is not found in cache, then it looks in the RAM for data.
b. Primary Memory
Primary memory is the main memory of computer. It is used to store data and instructions during
the processing of data. Primary memory is semiconductor memory.
Primary memory is of two kinds – Random Access Memory (RAM) and Read Only Memory (ROM)
gets erased when the computer is turned off. RAM provides temporary storage for data and
instructions.
RAM is volatile. It stores data when the computer is on. The information stored in RAM gets
erased when the computer is turned off. RAM provides temporary storage for data and
instructions.
ROM is non-volatile memory but is a read only memory. The storage in ROM is permanent in
nature and is used for storing standard processing programs that permanently reside in the
computer. ROM comes programmed by the manufacturer.
RAM stores data and instructions during the execution of instructions. The data and instructions
that require processing are brought into the RAM from the storage devices like hard disk. CPU
access the data and the instructions from RAM, as it can access it at a fast speed than the storage
devices connected to the input and output unit. RAM provides a limited storage capacity, due to its
high cost.
c. Secondary Memory
The secondary memory stores data and instructions permanently. The information can be stored in
secondary memory for a long time (years) and is generally permanent in nature unless erased by
the user. It is a non-volatile memory.
It provides back-up storage for data and instructions. Hard disk drive, floppy drive and optical disk
drives are some examples of storage devices.
The data and instructions that are currently not being used by CPU, but may be required later for
processing, are stored in secondary memory.
Secondary memory has a high storage capacity than the primary memory.
Am instructions is designed to perform a task and is an elementary operation that the processor can
accomplish. An instruction is divided into groups called fields. The common field of an instructions are –
Operation (op) code and Operation code. The remainder of the instruction field differs from one computer type
to other. The operation code represents action that the processor must execute. It tells the processor what
basic operation to perform. The operand code defines the parameters of the action and depends on the
operation. It specifies the locations of the data or the operand on which the operation is performed. It can be
data or a memory address.
A processor has a set of instructions that it understands, called as instruction set. An instruction set
or an instruction set architecture is a part of the computer architecture. It relates to programming, instructions,
registers, addressing modes, memory architectures, etc. An instruction set is the set of all basic operations
that a processor can accomplish. The instructions in the instruction set are the language that a processor
understands. All programs have to communicate with the processor using these instructions. An instruction in
the instruction set involves a series of logical operations (may be thousand) that are performed to complete
each task. The instruction set is embedded in the processor (hard-wired) which determines the machine
language for the processor. All programs written in a high-level language are compiled and translated into
machine code before execution, which is understood by the processor for which the program has been coded.
Two processors are different if they have different instructions sets. A program run on one computer
may not run on another computer having a different processor. Two processors are compatible if the same
machine level program can run on both the processors. Therefore, the system software is developed within
the processor’s instruction set.
The primary responsibilities of a computer processor is to execute a sequential set of instructions that
constitute a program. CPU executes each instruction in a series of steps, called instruction cycle.
Fetching. The process fetches the instruction from the memory. The fetched instruction is
placed in the Instructions Registers. Program Counter holds the address of next
instructions to be fetched and is incremented after each fetch.
Decoding. The instruction that is fetched is broken down into parts or decoded. The
instructions is translated into commands so that they corresponds to those in the CPU’s
instruction set. The instruction set architecture of the CPU defines the way in which an
instruction is decoded.
Executing. The decoded instructions or the command is executed. CPU performs the
operations implied by the program instruction. For example, if it is ADD instruction, addition
is performed.
Storing. CPU writes back the results of execution to the computer’s memory.
CISC architecture hardwires the processor with complex instructions, which are difficult to create
otherwise using basic instructions. CISC combines different instructions into one single CPU.
RISC has simple, single-cycle instructions, which performs only basic instructions. RISC architecture
does not have hardwired advanced functions. All high-level language support is done in the software.
CPU sends data, instructions, and information to the components inside the computer as well as to
the peripherals and devices attached to it. Bus is a set of electronic signal pathway that allows information
and signals to travel between components inside or outside of a computer. The different components of
computer, i.e., CPU, I/O unit and memory unit are connected with each other by a bus. The data, instructions
and the signal are carried between the different components via a bus. The features and functionality of a
bus are as follows –
A bus is a set of wires used for interconnection, where each wire can carry one bit of data.
A bus width is defined by the number of wires in the bus.
A computer bus can be divided into two types – Internal Bus and External Bus.
The Internal Bus connects components inside the motherboard like, CPU and system memory. It
is also called the System Bus.
The External Bus connects the different external devices, peripherals, expansion slots, I/O ports
and drive connections to the rest of computer. The external bus allows various devices to be
attached to the computer. It allows for the expansion of the computer’s capabilities. It is
generally slower than the system bus. It is also referred to as the Expansion Bus.
A system bus or expansion bus comprise of three kinds of buses – data bus, address bus and
control bus.
The interaction of CPU with the memory and I/O devices involves all the three buses.
The command to access the memory or the I/O device is carried by the control bus.
The address of I/O device or memory is carried by the address bus.
The data to be transferred is carried by the data bus.
Motherboard. The computer is built up around a motherboard. The motherboard is the most important
components in the PC. It is a large Printed Circuit Board (PCB), having many chips, connectors and
other electronics mounted on it. The motherboard is the hub, which is used to connect all the essential
components of a computer. The RAM, hard drive, disk drives and optical drives are all plugged into
interfaces on the motherboard. The motherboard contains the processor, memory chips, interfaces
and sockets, etc.
BIOS It is the basic program used as an interface between the operating system and the
motherboard. The BIOS is stored in the ROM and cannot be rewritten.
CMOS Chip. Bios ROMS are accompanied by a smaller CMOS (CMOS is a type of memory
technology) memory chip. When the computer is turned off, the power supply stops providing
electricity to the motherboard. When the computer is turned on again, the system still
displays the correct clock time. This is because the CMOS chip saves some system
information, such as time, system date and essential system settings. This CMOS chip is
working even when the computer power is switched off. It is kept powered by a button battery
located on the motherboard.
Motherboard has a certain number of I/O sockets that are connected to the ports and
interfaces found on the rear side of a computer. You can connect external devices to the ports
and interfaces which get connected to the computer’s motherboard.
ISA (Industry Standard Architectures) slot – to connect modem and input devices.
PCI (Peripherals Component Interconnect) slot – to connect audio, video, and graphics. They
are much faster than ISA cards.
AGP (Accelerated Graphics Port) slots – a fast port for a graphics card.
PCI (Peripheral Component Interconnect) Express slot – Faster bus architecture than AGP and
PCI buses.
PC Card – It is used in laptop computers. It includes Wi-FI card, network card and external
modem.
Ribbon Cables
Ribbon cables are flat, insulated and consists of several tiny wires molded together that carry
data to different components on the motherboard. There is a wire for each bit of the word or byte and additional
wires to coordinate the activity of moving information. They also connect floppy drives, disk drives and CD-
Rom drives to the connectors in the motherboard.
Memory Chips
The RAM consists of chips on a small circuit board. Two types of memory chips – Single In-Line
Memory Module (SIMM) and Dual In-line Memory Module (DIMM) are used in desktop computers. The CPU
can retrieve information from DIMM chip at 64bits compared to 32bits or 16 bits transfer with SIMM chips.
DIMM chips are used in Pentium 4 onwards to increase the access speed.
Storage Devices
The disk drives are present inside the machine. The common disk drives in a machine are hard
disk drive, floppy drive and CD drive or DVD drive. High-storage devices like hard disk, floppy disk and CDs
are inserted into the hard drive, floppy drive and CD drive, respectively. These storage devices can store large
amounts of data, permanently.
Processor
The processor or the CPU is the main component of the computer. Select a processor based on
factors like its speed, performance, reliability, and motherboard support. Pentium Pro, Pentium 2 and Pentium
4 are some of the processors.
1. IC 6. SATA
2. PCI 7. AGP
3. GHz 8. CMOS
4. BIOS 9. ROM
5. USB 10. DIMM
Reference: