MODULE 2 Computer Architecture
MODULE 2 Computer Architecture
The organization of computer Hardware is based on the Von-Newman Architecture which says
that an instruction follows a Fetch-Decode-Execute and write back procedure it is based on the
concept of binary representation of numbers in the computer. This organization, also known as
the computer theoretical organization, describes how the different types of computer hardware
interact with each other, in the processing of data, so that the desired results can be achieved. The
figure below illustrates the architecture:
SECONDARY MEMORY
OR
OUTPUT
INPUT MAIN
DEVICES
DEVICES MEMORY
Data Flow
ARITHMETIC / LOGIC
Command
UNIT
Peripheral devices
These are equipment that are used with the computer but are not integral part of it. They include
printers, keyboards, monitors, mice, disk drives.
Input Devices
Input refers to the process of entering programs, commands, user responses and data into main
memory. The most common input devices are:
a) Keyboard:
Users input data to a computer by pressing the keys on the keyboard. As the user enters the data
on the Keyboard it displays on the screen. It has several keys such as:-
The function keys labeled with letters F1 - F12. Which perform different tasks depending on
the software program you are using.
The arrow keys/cursor control keys used to move the cursor.
1
The Numeric Keys used to enter the letters, numbers and symbols.
Alphanumerics – takes care of the alphabets and number parts
Special purpose keys e.g. Backspace, Del. Shift, Alt., Ctrl, Enter ,Esc., Pause etc.
b) Mouse
This is a small lightweight device that easily fits in the palm of your hand. Software programs
designed to use mouse display a mouse pointer on the screen. The pointer may be an arrow,
small rectangle, an I-beam or even a hand with a pointed finger.
c) Trackball
It is a pointing device that is used as an alternative to a mouse. You roll the ball to position the
pointer on the screen. Unlike the mouse, a trackball doesn’t move on the desk and therefore
requires less space.
d) Scanners
Scanners convert texts, characters or images into a form that can be processed by the computer.
Expansion Cards: These are optional components that can be added to a computer to provide
additional functionality, such as graphics cards, sound cards, or network cards. They are often
depicted as smaller rectangles connected to the motherboard.
2
Cables and Connectors: Various cables and connectors, such as USB, HDMI, and Ethernet
cables, are used to interconnect the components. These lines or arrows indicate the connections
between components.
MEMORY
Memory is electronic circuitry that holds the data and program instruction. It is sometimes
called primary storage.
There are four major types of memory, namely random access memory (RAM), virtual memory,
CMOS memory and read-only memory (ROM).
RAM capacity
The storage capacity of RAM is measured in megabytes (MB) or Gigabytes (GB). Most recent
micro-computers have between 128 MB – 8 GB of RAM. The amount of RAM your computer
needs depends on the software you use.
Virtual Memory
The computer sometimes uses space on the computer’s hard disk as an extension of RAM. A
computer’s ability to use disk storage to simulate RAM is called virtual memory.
Virtual memory allows computers without enough real memory to run large programs,
manipulate large data files and run more than one program at a time. One disadvantage of a
virtual memory is reduced performance.
3
This is a set of chips containing instructions that help a computer prepare for processing tasks.
These instructions also called firmware are permanent, and the only way to change them is to
remove the ROM chips from the main board and replace them with another set.
When you turn on your computer, the CPU receives electrical power and is ready to begin
executing instructions. But because the computer was turned on, RAM is empty with no
instructions for CPU to process. This is when ROM finds its use.
When you turn on your computer, the CPU performs a series of steps by following instructions
stored in ROM. This series of steps is called the boot process.
Programmable read-only memory (PROM) - acts the same as ROM when it is part of the
computer. I.e. it can only be read but its contents cannot be altered. However the data or
programs are not stored in the memory when they are manufactured. Instead it can be loaded
with special programs during installation.
Erasable Prom (EPROM) - their data can be erased using special ultraviolet light device that
destroys the bit settings within the memory.
EEPROM (Electrically Erasable Programmable Read-Only Memory): EEPROM is a
type of ROM that can be electrically erased and reprogrammed multiple times. Unlike
EPROM, EEPROM does not require UV light for erasure. It can be modified using
specialized programming equipment or circuitry in the device itself, making it more flexible
for updates.
CMOS Memory
Metal oxide semi conductor memory. This is a type of memory which is more permanent than
RAM but less permanent than ROM which is used to store boot data such as the number of hard
disk tracks and sections. CMOS require very little power to retain its contents and as such can
be powered by battery. To change CMOS data, you usually run a CMOS configuration, or set
up program.
Auxiliary/Secondary Storage
Stores programs and data when they are not being processed. They are non-volatile ie. data and
programs are retained when the power is turned off.
4
Uses: SSDs are used in laptops, desktops, servers, and even as external drives for tasks like
gaming, video editing, and operating system installations.
Memory Cards:
Description: Memory cards are small, removable flash storage devices commonly used in
cameras, smartphones, tablets, and other portable devices.
Characteristics: Compact and lightweight with varying storage capacities and data transfer
speeds.
Uses: Memory cards are used for storing photos, videos, music, and other data on portable
devices.
5
EMERGENT DATA STORAGE TECHNOLOGIES:
Non-Volatile Memory (NVM): SCM, such as Intel Optane, combines the speed of RAM
with the persistence of traditional storage. It's used to accelerate data-intensive applications.
DNA Data Storage: Researchers are exploring the possibility of storing data in DNA
molecules, which offer incredibly dense and long-lasting storage capabilities.
Holographic Data Storage: Holographic storage uses 3D patterns of light to store data. It
has the potential for extremely high storage densities.
Quantum Storage: Quantum storage leverages the principles of quantum mechanics to store
data in quantum bits (qubits). Quantum storage could revolutionize data encryption and
information security.
Glass Storage: Researchers have developed a method to store data in fused quartz glass
using femtosecond laser writing. It promises extreme durability and longevity.
DNA and Molecular Storage: Molecular Data Storage: Besides DNA, other molecules, like
synthetic polymers, are being explored as potential data storage media due to their stability
and high data density.
Racetrack Memory: This technology uses the movement of magnetic domain walls along
nanowires to store and retrieve data, offering high-speed, non-volatile storage.
3D NAND Flash: This is an advanced form of NAND flash memory that stacks memory
cells vertically, increasing storage capacity and endurance.
Memristor-Based Storage: Memristors are nanoscale resistors with memory. They can be
used for non-volatile storage and neuromorphic computing.
Magnetic Tape Advancements: Modern magnetic tapes, like IBM's LTO-8 and LTO-9,
offer high capacities and reliability for archival storage.
Storage Class Memory (SCM): SCM in SSDs: Some solid-state drives (SSDs) incorporate
SCM as a caching layer to improve read and write speeds.
Persistent Memory: These modules, like Intel's Optane DIMMs, offer large, non-volatile
memory capacity that can be accessed directly by applications, reducing latency.
Edge Storage Solutions: With the growth of edge computing, storage solutions designed for
edge devices and IoT (Internet of Things) applications are becoming more prominent.
Software-Defined Storage (SDS): SDS: SDS decouples storage software from hardware,
allowing for more flexible, scalable, and cost-effective storage solutions.
Hybrid and Multi-Cloud Storage: These approaches involve using a combination of on-
premises, public cloud, and private cloud storage to optimize performance, cost, and data
availability.
As technology advances, these innovations are likely to shape the future of data storage and
management.
CPU Architecture
The CPU consists of one or more integrated circuits. In microcomputer the CPU is a single
integrated circuit called a micro-processor.
The CPU has two main parts; the arithmetic logic unit (ALU) and the control unit (CU).
6
The ALU performs arithmetic operations such as addition, subtraction, division and
multiplication. It also performs logical operations such as comparing two numbers. It uses
registers to hold the data that is being processed. In ALU, the results of an arithmetic or logical
operation is held temporarily in the accumulator.
The CU (Control Unit) - directs and coordinates processing and places it in a special instruction
register. The CU then interprets the instruction to find out what needs to be done. According to
its interpretation, the control unit sends signals to the data bus to fetch data from RAM, and to
the ALU to perform a process.
CPU Performance
CPU performance/speed is influenced by several factors such as clock rate, word size, cache and
instruction set size.
Clock rate
A computer contains a system clock that emits pulses to establish the timing for all system
operations. The “system clock” is not the same as “real-time clock” that keeps track of the time
of day.
The system clock sets the speed for data transport and instruction execution. The clock rate set
by the system clock determines the speed at which the computer can execute an instruction. The
time to complete an instruction circle is measured in megahertz (MHz).
Word Size
This refers to the number of bits the CPU can manipulate at a time. e.g. CPU with 8 - bit word
size is referred to as an 8 -bit processor. Today’s faster computers use 32 bit or 64 - bit micro
processors.
Cache
This is a special high-speed memory that give the CPU more rapid access to data. As you begin
a task, the computer anticipates what data the CPU is likely to need and loads or caches this data
into the cache area. The CPU then takes the data from cache instead of fetching it from RAM,
which takes longer. Therefore more cache means faster processing.
Output Devices
Output is the data that has been processed into useful form/information that can be used by a
person or a machine.
Most outputs are in form of reports or graphics. The most used output devices are:-
1. Printers
Printers can be classified by how they transfer characters from the printer to the paper.
Impact Printers
7
Transfer images into paper by some type of printing mechanism striking paper, ribbon, and
character together.
Non-Impact Printers
Printing occurs without having a mechanism striking against a sheet of paper.
Speed
Another way of classifying printers is by speed:-
Low speed- print one character at a time.
Medium and high-speed printers - called line printers, can print multiple characters on a line
at the same time.
Very high-speed printers - can print excess of 3,000 lines per minute, often called page
printers.
TYPES OF PRINTERS
1) Dot Matrix Printers
Create letters and graphics by striking an inked ribbon with a column of small wires called pins.
By activating some wires in the column, but not activating others, the printer creates patterns for
letters and numbers.
Advantages
Low operating costs
Low price
Can print multi-part forms – Make carbon copies
Durable
Limitations
Noisy
Low to medium quality output
Slow
2) Ink-jet Printers
Produce characters and graphics by spraying ink onto paper. The print-head is a matrix of fire
spray nozzles, patterns are created by activating selected nozzles.
Advantages
Moderate price
Inexpensive to operate
High quality color printouts/high quality output.
Quiet
Durable
Disadvantages
Slow
Cannot print multi-part forms – cannot make carbon copies
Poor quality colour compared to laser printers
3) Laser Printers
Use the same technology as the duplicating machines.
Advantages
Quiet
8
High quality output
Fast
High quality color
Durable
Limitations
Expensive color
Cannot print multi-part forms
More expensive to operate
Others
4) Daisy wheel printers
5) Thermal printers
6) Chain printers
7) Band printers
3. Plotters
Used to produce high-quality line drawing, such as building plans, charts or circuit diagrams.
The two types are (a) pen plotters - create image on a sheet of paper by moving the paper under
the tip of pen (b) electrostatic plotters.
4. Voice Output
Consist of spoken words that are conveyed to the user from the computer. The data that
produces voice output is usually created in one of two ways:-
a) A person can talk into a device that will encode the words in digital pattern. The digital data
is then stored on a disk. It can later be translated back from digital data into voice.
b) Voice Synthesizer:- can transform words stored in main memory into speech.