Lec 06-07 Computer Hardware, System Unit Its Parts.
Lec 06-07 Computer Hardware, System Unit Its Parts.
Lec 06-07 Computer Hardware, System Unit Its Parts.
2
What is the system unit?
Box-like case
that houses
the electronic
components
of the
computer
3
System Unit
The main components of system unit are
here under:
• Mother Board
• CPU
Primary Memory
4
Mother Board
5
Assignment No 1
6
The Von Neumann Architecture
➢Before discussing the CPU, memory and other system unit
components let us introduce the Von Neumann
Architecture
➢ All computers more or less based on the same basic design, the Von
Neumann Architecture
Von Neumann
Architecture
The Von Neumann Architecture
Bus
Processor (CPU)
Memory Input-Output
Control Unit
ALU
Communicate with
Store data and program
"outside world", e.g.
• Screen
Execute program
• Keyboard
Do arithmetic/logic operations • Storage devices
requested by program • ...
8
CENTRAL PROCESSING UNIT
What is the central processing unit (CPU)?
Also called the processor it interprets and carries out the basic
instructions that operate a computer
Most devices communicate with the CPU in order to carry out a
task
This model of the typical digital computer is often called the von
Neumann computer.
9
CENTRAL PROCESSING UNIT
What are the components
of the central processing
CPU
unit (CPU )?
The CPU consists of three
main parts: Control Arithmetic/
Logic Unit
Unit
The Control Unit - coordinates (ALU)
activities of the computer
The Arithmetic Logic Unit
(ALU) - performs the
calculations
Registers - store a small Registers
amount of data and
instructions
10
CENTRAL PROCESSING UNIT
What is the control unit?
11
CENTRAL PROCESSING UNIT
What is the arithmetic/logic unit (ALU)?
CPU
Registers
13
CENTRAL PROCESSING UNIT
What is a personal computer processor?
The single processor chip found in personal
computers
Sometimes called a microprocessor
Processors identified by
• Manufacturer
• Model name or
model number
Athlon™
Pentium® 4
14
Celeron™ Duron™
MEMORY
What is memory?
Temporary storage place for data, instructions, and
information
Consists of one or more chips on the motherboard or
some other circuit board
Bytes are the basic storage unit in memory
Each byte is stored at a specific location in memory
called an address
15
MEMORY
How is memory measured?
Size of memory is measured by the number of bytes
available
• Kilobyte - 1,024 bytes
• Megabyte - one million bytes
16
MEMORY
What is memory access time?
17
MEMORY & ITS TYPES:
Memory
1-Main 4-Virtual
2-ROM 3-Cache
Memory/RAM Memory
18
1-MAIN MEMORY/RAM
What is random access memory (RAM)?
20
DRAM
Dynamic RAM needs to be refreshed thousands of
times per second.
The term dynamic indicates that the memory must
be constantly refreshed or it will lose its contents.
Contents are constantly refreshed 1000 times per
second
Access time 60 – 70 nanoseconds
21
1-MAIN MEMORY/RAM
SDRAM (Synchronous Dynamic RAM) is much faster
than DRAM because they are synchronized to system
clock..
DDR SDRAM (Double Date Rate SDRAM) are faster
than SDRAM because they transfer data twice the
system cycle.
The processor relies on a small quartz crystal circuit
called the system clock to control the timing of all
computer operations. Just as your heart beats at a
regular rate to keep your body functioning, the system
clock generates regular electronic pulses, or ticks, that
set the operating pace of components of the system unit
The pace of the system clock, called the clock speed, is measured by the number of
ticks per second. Current personal computer processors have clock speeds in the
gigahertz range. Giga is a prefix that stands for billion, and a hertz is one cycle per22
second. Thus, one gigahertz (GHz) equals one billion ticks of the system clock per
second
2- NONVOLATILE MEMORY / ROM
Does not lose its contents when the computer’s power is
turned off
Once data has been written onto a ROM chip, it cannot
be removed and can only be read.
Unlike main memory (RAM), ROM retains its contents
even when the computer is turned off. ROM is referred
to as being nonvolatile, whereas RAM is volatile
Most personal computers contain a small amount of
ROM that stores critical programs such as the program
that boots the computer.
In addition, ROMs are used extensively in calculators
and peripheral devices such as laser printers, whose 23
fonts are often stored in ROMs.
READ ONLY MEMORY(ROM)
The contents of ROM are permanent for example
BIOS which is a sequence of instructions the
computer follows to lead the operating system &
other files when you first turn on the computer.
The content is written onto the ROM when it is first
made.
ROM keeps its contents even when the computer is
turned off and so is known as Non-Volatile
Memory.
24
TYPES OF ROM
ROM is further divided in to three types
PROM (Programmable Read-Only Memory)
Read-Only Memory)
25
PROM
A variation of a ROM is a PROM (programmable
read-only memory). PROMs are manufactured as
blank chips on which data can be written with a
special device called a PROM programmer
For this reason, developers created a type of
ROM known as programmable read-only memory
(PROM). Blank PROM chips can be bought
inexpensively and coded by the user with a
programmer.
26
EPROM
Erasable programmable read-only memory (EPROM)
addresses this issue. EPROM chips can be rewritten
many times.
Erasing an EPROM requires a special tool that emits a
certain frequency of ultraviolet (UV) light.
EPROMs are configured using an EPROM programmer
that provides voltage at specified levels depending on the
type of EPROM used.
A rewritable memory chip that holds its content without
power.
EPROM chips are written on an external programming
device before being placed on the mother board.
27
EEPROM
The chip does not have to removed to be
rewritten.
The entire chip does not have to be completely
erased to change a specific portion of it.
Changing the contents does not require
additional dedicated equipment.
A rewritable memory chip that holds its content
without power.
EEPROMs are typically used on circuit boards to
store small amounts of instructions and data.
28
3 - CACHE MEMORY
What is memory cache?
30
3-CACHE
(1)RAM Cache/ Memory Cache:
(a) Level-1 Primary cache or Internal Cache
is built directly into processor chip, has a small capacity ranging from 8 Kb to
64 Kb. Most common size is 16Kb.
Cache that is closest to the processor: typically located inside the CPU chip.
Also referred to as primary cache or internal cache. often accessed in just a few
cycles, usually tens of kilobytes
(b) Level-2 or External cache
Has much larger capacity, ranging from 64Kb to 4 Mb.
In older computers L2 was not in processor, instead it was on separate chip on
board. Current processors include “Advance Transfer Cache “ a type of L2 built
directly on Processor chip.
• Cache may be on chip or nearby (external)
• Cache that is second closest to the processor; typically located on the system board.
Also referred to as secondary cache and external cache.
(c) Level-3 cache
If processor has L2 advance Transfer Cache, It also can use L3 cache.
L3 cache is separate from the processor Chip on the mother board.
Note: when Processor needs an instruction or data it searches memory in
this order: L1 Cache, then L2 Cache then L3 Cache (If it exists) , then
RAM 31
THE OPERATION OF CACHE MEMORY
Cache
Main
Memory
Memory
(SRAM) CPU
(DRAM)
= Bus connections 32
L2 CACHE STRUCTURE
33
DISK CACHE
What is a disk cache?
A portion of memory that the processor uses to store
frequently accessed items.
A cache
controller process
or
manages
cache and disk
cache
thus hard
disk
determines
which items
cache should first request for
store data — to disk
cache 35
second request for data — to
hard disk
4-WHAT IS VIRTUAL MEMORY (VM) MANAGEMENT?
The operating system allocates a portion of a storage medium,
usually the hard disk, to function as additional RAM
Step 1: Operating
system transfers least pageswapped
page swappedout
out
recently used data and
program instructions to
disk because memory
disk
disk
is needed for other (virtual
(virtual
functions memory)
memory)
Step 2: Operating
system transfers
RAM
RAM
data and program (physical
(physical
instructions from memory)
memory)
disk to memory
when they are
needed page swapped in 36
EXPANSION SLOTS AND EXPANSION
CARDS
What is an expansion
slot?
An opening, or
37
EXPANSION SLOTS AND EXPANSION
CARDS
What are four common types of expansion cards?
Video card
also called
video
adapter or
graphics Sound
card
card Network
interface
card (NIC)
also called a Modem
network card also
card called an
internal
modem 38
PORTS mouse
keyboard
What is a port? USB
USB
Used to
serial port
connect printer (parallel
external port)
devices to the
system unit speaker
monitor
Port is the
interface, or microphone
game port
point of
attachment, network
to the system telephone
unit telephone line out
line in
video out FM
39
reception
cable TV
PORTS
What are Types of ports:
➢ Serial
➢ Parallel
➢ PS/2 Port
➢ KB-AT Port
➢ RGB Display Port
➢ Auxiliary Port
➢ USB Port
➢ Twin Pair Ethernet Port
➢ Coaxial Ethernet Port
➢ A/V Port
40
PORT TYPES
What is a serial port?
• Serial port are bi directional
• connecting devices such as Digital Cameras or PALM
Host
• Syncs sent one bit after another with some extra bits
like start bit, stop bit and parity bit to detect errors
• Connect devices that do not require fast transmission
rates
• mouse
• Keyboard
41
PORT TYPES
What is a Parallel port
But in parallel port, all the 8 bits of a byte will be sent to
the port at a time and a indication will be sent in another
line
Used to connect Printers and Scanners to the computer
42
PORT TYPES
KB-AT PORT
USED TO CONNECT OLDER STYLE KEYBOARDS TO THE COMPUTER
AUXILIARY PORT
USED TO CONNECT JOYSTICKS, GAME CONTROLLERS, AND MIDIS
(MUSICAL INSTRUMENT DATA INTERFACE) TO THE COMPUTER
43
PORTS
What is a universal serial bus port (USB)?
Can connect up to
127 different
45
BUSES
In computer architecture, a bus is a subsystem
that transfers data between components inside a
computer, or between computers
Types of Buses
System bus
Expansion bus
46
SYSTEM BUS
System bus connects processor and RAM. It is also called
internal bus.
it is subdivided in to two types:
1. Address bus
2. Data bus
1-ADDRESS BUS
The address bus is a unidirectional pathway that carries
addresses generated by the microprocessor to the memory.
2-DATA BUS
•
In contrast to the address bus, the data bus is bi-
directional in nature.
•
Data flows along the data bus from the microprocessor to
memory during a Write operation.
•
Conversely, data moves from memory to the microprocessor 47
during a Read operation.
POWER SUPPLY
48
STORAGE
MEMORY VERSUS STORAGE
What is storage?
The media on which data, instructions, and information are
kept, as well as the devices that record and retrieve these
items
50
MEMORY VERSUS STORAGE
How does storage differ from memory?
51
MEMORY VERSUS STORAGE
What is reading and writing?
Reading
Process of transferring
data, instructions, Writing
and information from
a storage medium Process of
into memory transferring
items from
Serves as a source of memory to a
input storage medium
Serves as a
source of output
52
MEMORY VERSUS STORAGE
What is access time?
53
Tape
ACCESS TYPES
What is sequential access vs. direct access?
55
FLOPPY DISKS
Consists of several
inflexible, circular
platters that store
items electronically
Also called a hard disk
drive or a fixed disk
57
Hard disk
installed in
system unit
HARD DISKS
What is an Internet hard drive?
A service on the
Web that provides
storage to
computer users
Sometimes called
online storage
Many offer
storage free of
charge
Revenues come
from advertisers
58
HARD DISKS
What are advantages of an Internet hard drive?
Others can be
authorized to access
data from your Internet
hard drive
59
What is a compact disc (CD)?
COMPACT DISCS
A flat, round, portable,
metal storage medium.
CD: 650MB; DVD:4.7-
17GB
Also called an
optical disc
Available in a
variety of formats
60