Computer Architecture & Design-Slides
Computer Architecture & Design-Slides
DESIGN
Course Instructor: Ms. Rimsha Khan
Computer Architecture
Computer architecture refers to the design and
organization of a computer's components and how they
interact to execute instructions efficiently.
Instruction Set Architecture (ISA): The ISA is the part
of the computer architecture related to programming. It
defines the set of instructions that the CPU can execute.
Microarchitecture describes the design features and
circuitry of the central processing unit itself.
The system architecture (with which we are chiefly
concerned in this section) determines the main hardware
components that make up the physical computer system
and how they’re interconnected.
System Architecture
The main components required for a computer system
are listed below.
Motherboard
Central processing unit (CPU)
Random access memory (RAM)
Read-only memory (ROM)
Input / output (I/O) ports
The system bus
A power supply unit (PSU)
Motherboard/Mainboard
A motherboard is the main printed circuit board
(PCB) in a computer. The motherboard is a computer's
central communications backbone connectivity point,
through which all components and external peripherals
connect.
The motherboard supplies power to the processor,
RAM, hard disk, and other hardware components.
The components that connect through them include
chipsets, central processing units (CPU), BIOS
and memory. The external peripherals include Wi-Fi,
Ethernet and graphics cards with the graphics
Motherboard Components
Co-processor: A co-processor performs routine mathematical tasks, the core
processor is freed up from this computation and its time is saved.
CMOS Chip: It provides power to the CMOS chip, which stores important system
information such as the date, time, and hardware settings in the CMOS memory.
AGP Slot: An Accelerated Graphics Port (AGP) is a point to point channel that is
used to connect graphic cards to a computer’s motherboard.
PCI Slots: A peripheral component interconnect (PCI) expansion slot is a type of
slot that allows you to add additional cards to your computer system. These
slots are typically used to add sound cards, network cards, or other types of
interface cards.
Power Supply Connectors: These connectors delivers electrical power from
the power supply unit (PSU) to the motherboard, enabling it to power
components like the CPU, memory, and peripherals.
Heat Sink Connector: It provides power and control to the CPU fan, helping to
regulate the fan's speed and ensure proper cooling of the processor by
dissipating heat from the heat sink.
Motherboard Components
BIOS: BIOS identifies, configures, tests and connects computer hardware to the
Operating System immediately after a computer is turned on.
Game Port: The game port on a motherboard connects analog joysticks and game
controllers for input in gaming applications.
Audio Port: The audio port on a motherboard allows the connection of audio
devices like speakers and microphones
VGA Port: VGA port connects to a monitor or display for transmitting analog video
signals.
Comport: A communications port, also known as a serial port or COM port, allows
you to connect external devices for data transfer like printers, modems, and
scanners.
USB Port: USB Port allows you to connect USB devices to your computer.
PS/2 keyboard Mouse Port: PS/2 keyboard port connects a keyboard to the
motherboard, while the PS/2 mouse port connects a mouse.
Parallel Port: Parallel ports were commonly used to connect printers, scanners, and
external storage devices like ZIP drives.
Motherboard Components
Condenser: Condenser store electrical energy, filter power supply variations, and
smooth out voltage fluctuations to ensure stable operation of the motherboard and
its components.
CPU Socket: A CPU socket is a specific part on a motherboard that is purposely
designed to hold a central processing unit (CPU).
RAM Slot: A RAM slot is a physical connector on a computer motherboard designed
to hold and connect RAM.
FDD Connector: The FDD (floppy disk drive) connector on a motherboard allows for
the connection of a floppy disk drive, enabling data transfer from floppy disks
Primary and slave IDE Connector: The primary and slave IDE connectors on a
motherboard are used to connect hard drives and optical drives, with the primary
connector typically designated for the main drive (master) and the slave connector
for an additional drive, allowing for data transfer between the drives and the
motherboard.
Start/restart/hdd/power/IED: The start/restart connector powers the computer on
or off, the HDD connector connects the hard drive for data transfer, the power
CPU
Central Processing Unit (CPU): The CPU is the brain of the
computer. It is the electronic circuit responsible for executing
the instructions of a computer program. It is sometimes referred
to as the microprocessor or processor.
Subcomponents:
Arithmetic Logic Unit (ALU): Performs arithmetic (addition,
subtraction, etc.) and logical operations (AND, OR, NOT).
Control Unit (CU): Directs the operation of the processor by
telling different parts of the CPU and system how to respond to
instructions.
Registers: Small, fast storage locations inside the CPU used for
temporary storage of data and instructions.
Role in the System: Executes the system’s instructions and
CPU
How a CPU Executes Instructions
A CPU (Central Processing Unit) works together with memory to
execute a computer program. Most computers execute one
instruction at a time, though very quickly. Before the CPU can
execute an instruction, the program instructions and data must be
loaded into memory from an input or storage device. Once the data
and instructions are in memory, the CPU follows a process to
execute them.
4 Steps of CPU Instruction Execution:
Fetch:
The control unit figures out what the instruction means and
moves the necessary data from memory to the Arithmetic/Logic
How a CPU Executes Instructions
Execute:
The ALU performs the required operation (either arithmetic or
logic) on the data.
Store:
SRAM DRAM
In this bit is stored in the form of electric
In this bit are stored in voltage form.
energy.
These are used in cache memories. These are used in main memories.
SRAMs are more resistant to radiation than DRAMs are less resistant to radiation than
DRAM SRAMs
SRAM has higher data transfer rate DRAM has lower data transfer rate
SRAM is used in high-speed cache memory DRAM is used in lower-speed main memory
EPROM (Erasable
PROM (Programmable read-
Programmable read-only
only memory): It can be
memory): It can be
programmed by the user. Once
reprogrammed. To erase data
programmed, the data and
from it, expose it to ultraviolet
instructions in it cannot be
light. To reprogram it, erase all
changed.
the previous data.
MROM(Mask ROM): Mask ROM
EEPROM (Electrically erasable
is a kind of read-only memory,
programmable read-only
that is masked off at the time of
memory): The data can be
production. Like other types of
erased by applying an electric
ROM, mask ROM cannot enable
field, with no need for ultraviolet
the user to change the data
light. We can erase only portions
stored in it. If it can, the process
of the chip.
would be difficult or slow.
Secondary memory/Storage
Secondary memory (also known as auxiliary memory
or permanent storage) refers to storage devices that
are used to store data and applications permanently.
Unlike primary memory (like RAM), secondary memory
retains data even when the power is turned off.
CPU directly does not access these memories, instead
they are accessed via input-output routines.
The contents of secondary memories are first
transferred to the main memory, and then the CPU can
access it.
For example, disk, CD-ROM, DVD, etc.
Types of Secondary Memory
Secondary
Memory
Fixed Removable
Storage Storage
moving parts.
Speed: Much faster because it can access
CDs are inserted in CD drives built into CPU cabinet. They are
portable as you can eject the drive, remove the CD and carry it
with you.
DVD Drive:
DVD stands for Digital Video Display.
DVD are optical devices that can store 15 times the data held by
CDs.
They are usually used to store rich multimedia files that need high
storage capacity.
Types of Secondary Memory
Blu Ray Disk: Blu Ray Disk (BD)
is an optical storage media used
to store high definition (HD) video
and other multimedia filed. BD
uses shorter wavelength laser as
compared to CD/DVD.
This enables writing arm to focus
more tightly on the disk and
hence pack in more data. BDs can
store up to 128 GB data.
Input/output Ports
An input/output (I/O) port, also known as an I/O
interface, is a connection point on a computer or
electronic device that allows data to be transferred
between the device and external devices or
peripherals.
Types of I/O Ports:
Serial Ports
Parallel Ports
USB Ports
VGA Ports
HDMI Ports
Input/output Ports
I/O Ports
Port Type Data Speed Purpose Type
Transmission
Serial Port One bit at a time Slow Connect older Input/output
(serial devices like
communication) modems
Parallel Port Multiple bits at Faster than serial Mostly used for Output
once (parallel printers
communication)