Computer Architecture

advertisement
• Computer Architecture
Full Chapter
• By Fazal Rehman (Shamil)
ITC : By Fazal Rehman(Shamil)
1
Objectives Overview
Differentiate among various
styles of system units on
desktop computers,
notebook computers, and
mobile devices
Describe the control unit
and arithmetic logic unit
components of a processor,
and explain the four steps in
a machine cycle
Define a bit and describe
how a series of bits
represents data
Differentiate among the
various types of memory
ITC : By Fazal Rehman(Shamil)
2
Objectives Overview
Describe the purpose
and types of expansion
slots and adapter cards
Differentiate between a
port and a connector,
and explain the
differences among a USB
port and other ports
Describe the types of
buses in a computer
Understand how to clean
a system unit on a
computer or mobile
device
ITC : By Fazal Rehman(Shamil)
3
The System Unit
• The system unit is a case that contains electronic components of the
computer used to process data
ITC : By Fazal Rehman(Shamil)
4
The System Unit
• The inside of the system unit on a desktop personal
computer includes:
Drive bay(s)
Power supply
Sound card
Video card
Processor
Memory
ITC : By Fazal Rehman(Shamil)
5
The System Unit
• The motherboard is the main circuit board of the system
unit
– A computer chip contains integrated circuits
ITC : By Fazal Rehman(Shamil)
6
Processor
• The processor, also called the central processing unit (CPU),
interprets and carries out the basic instructions that operate
a computer
– Contain a control unit and an arithmetic logic unit (ALU)
Multi-core
processor
Dual-core
processor
ITC : By Fazal Rehman(Shamil)
Quad-core
processor
7
multi-core processor
• A multi-core processor is a single computing component
with two or more independent actual CPU’s.
Model
Core i3
Core i5
Core i7
Number of
cores
2
4
4
ITC : By Fazal Rehman(Shamil)
8
• Quad Cores has 4 cores
• Core 2 due has 2 cores
• Dual core has 2 cores
ITC : By Fazal Rehman(Shamil)
9
ITC : By Fazal Rehman(Shamil)
10
Processor
ITC : By Fazal Rehman(Shamil)
11
Processor
• The control unit is the component of the processor that
directs and coordinates most of the operations in the
computer
• The arithmetic logic unit (ALU) performs arithmetic,
comparison, and other operations
ITC : By Fazal Rehman(Shamil)
12
Processor
• For every instruction, a processor repeats a set of four basic
operations, which comprise a machine cycle
ITC : By Fazal Rehman(Shamil)
13
ITC : By Fazal Rehman(Shamil)
14
Processor
The system clock controls the
timing of all computer operations
•The pace of the system clock is called the
clock speed, and is measured in gigahertz
(GHz)
ITC : By Fazal Rehman(Shamil)
15
Data Representation
Most computers are digital
Digital signals are in one of two states: on or off
• Most computers are digital
• The binary system uses two unique digits (0 and 1)
• Bits and bytes
ITC : By Fazal Rehman(Shamil)
16
Data Representation
A computer circuit represents the 0 or
the 1 electronically by the presence or
absence of an electrical charge
Eight bits grouped together as a unit
are called a byte. A byte represents
a single character in the computer
ITC : By Fazal Rehman(Shamil)
17
Data Representation
• ASCII (American Standard
Code for Information
Interchange) is the most
widely used coding scheme
to represent data
ITC : By Fazal Rehman(Shamil)
18
Data Representation
ITC : By Fazal Rehman(Shamil)
19
ITC : By Fazal Rehman(Shamil)
20
Cache
• The speed of CPU is extremely high compared to the
access time of main memory.
• Therefore the performance of CPU decreases due to the
slow speed of main memory.
SO
• CPU required its own memory.
• The solution to this problem are Cache memory and
registers.
ITC : By Fazal Rehman(Shamil)
21
Cache
• Cache Memory is a small memory chip is attached
between CPU and Main memory whose access time is
very close to the processing speed of CPU.
• CACHE memories are accessed much faster than
conventional RAM. It is used to store programs or data
currently being executed or temporary data
ITC : By Fazal Rehman(Shamil)
22
Register
• Register is a small amount of memory available as part
of a digital processor, such as a CPU. Such registers are
(typically) addressed by mechanisms other than main
memory and can be accessed faster.
• Processor registers are normally at the top of
the memory hierarchy, and provide the fastest way to
access data.
ITC : By Fazal Rehman(Shamil)
23
Examples of registers
• PCR-Program counter Register:
• Controls the sequence in which instructions are fetched
from memory.
• It stores the address of next instruction to be fetched for
execution.
ITC : By Fazal Rehman(Shamil)
24
Examples of registers
• MAR-Memory Address Register:
Holds the memory addresses of data and instructions.
ITC : By Fazal Rehman(Shamil)
25
Examples of registers
IR- Instruction Register:
• Once an instruction is fetched from main memory, it is
stored in the instruction register.
ITC : By Fazal Rehman(Shamil)
26
Examples of registers
• MBR- Memory Buffer Register:
• Holds the contents of data or instructions read from, or
written in memory.
• Also called data register.
ITC : By Fazal Rehman(Shamil)
27
Examples of registers
• Accumulator Register:
• Located inside ALU.
• Used during arithmetic and logical operations
ITC : By Fazal Rehman(Shamil)
28
Memory
• Memory consists of electronic components that store
instructions waiting to be executed by the processor, data
needed by those instructions, and the results of processing
the data
• Stores three basic categories of items:
The operating
system and other
system software
Application
programs
ITC : By Fazal Rehman(Shamil)
Data being
processed and the
resulting
information
29
Memory
• Each location in memory has an address
• Memory size is measured in kilobytes (KB or K), megabytes
(MB), gigabytes (GB), or terabytes (TB)
ITC : By Fazal Rehman(Shamil)
30
Memory
• The system unit contains two types of memory:
Volatile memory
Nonvolatile memory
Loses its contents when
power is turned off
Does not lose contents
when power is removed
Example includes RAM
Examples include ROM,
flash memory, and CMOS
ITC : By Fazal Rehman(Shamil)
31
Memory
ITC : By Fazal Rehman(Shamil)
32
Memory
• Three basic types of RAM chips exist:
Dynamic RAM
(DRAM)
Static RAM (SRAM)
Magnetoresistive
RAM (MRAM)
ITC : By Fazal Rehman(Shamil)
33
•
•
•
•
•
•
SRAM
It is faster than DRAM.
It is more expensive as compared to DRAM.
It does not need to be power – refreshed.
It utilizes less power.
It holds data indefinitely as long as the computer is
turned on.
• It is more complex and less compact.
ITC : By Fazal Rehman(Shamil)
34
•
•
•
•
•
•
•
DRAM
It is slower than SRAM.
It is less expensive.
It has to be refreshed after each read operation.
It utilizes more power.
It holds data dynamically not indefinitely.
It is less complex and more compact.
ITC : By Fazal Rehman(Shamil)
35
• MRAM (Magneto resistive Random Access Memory)
• MRAM stands for Magneto resistive Random Access Memory. It
stores data using magnetic charges instead of electrical charges.
MRAM uses far less power than other RAM technologies so it is
ideal for portable devices. It also has greater storage capacity. It
has faster access time than RAM. It retains its contents when the
power is removed from computer.
ITC : By Fazal Rehman(Shamil)
36
Memory
• RAM chips usually reside on a memory module and are
inserted into memory slots
ITC : By Fazal Rehman(Shamil)
37
Memory
• The amount of RAM necessary in a computer often depends
on the types of software you plan to use
• Memory cache speeds the processes of the computer
because it stores frequently used instructions and data
ITC : By Fazal Rehman(Shamil)
38
Memory
Read-only memory (ROM) refers to memory
chips storing permanent data and
instructions
• ROM is a Firmware
• Firmware is a combination of both hardware and
software.
ITC : By Fazal Rehman(Shamil)
39
Read Only Memory (ROM) Types
•
•
•
•
Basic ROM types:
ROM - Read Only Memory
PROM - Programmable Read Only Memory
EPROM - Erasable Programmable Read Only Memory.
– Data can be erased by special devices.
• EEPROM - Electrically Erasable Programmable Read Only Memory
– Data can be erased by electrical pulses
ITC : By Fazal Rehman(Shamil)
40
Memory
• Flash memory can be erased
electronically and rewritten
– CMOS technology provides
high speeds and consumes
little power
ITC : By Fazal Rehman(Shamil)
41
Memory
• Access time is the amount of time it takes the processor to
read from memory
– Measured in nanoseconds
ITC : By Fazal Rehman(Shamil)
42
Expansion Slots and Adapter Cards
• An expansion slot is a socket on
the motherboard that can hold an
adapter card
• An adapter card enhances
functions of a component of the
system unit and/or provides
connections to peripherals
– Sound card and video card
ITC : By Fazal Rehman(Shamil)
43
Expansion Slots and Adapter Cards
• Removable flash memory includes:
– Memory cards, USB flash drives, and PC Cards/ExpressCard
modules
ITC : By Fazal Rehman(Shamil)
44
Ports and Connectors
A port is the point at which a peripheral attaches to or
communicates with a system unit (sometimes referred
to as a jack)
A connector joins a cable to a port
ITC : By Fazal Rehman(Shamil)
45
Ports and Connectors
ITC : By Fazal Rehman(Shamil)
46
Ports and Connectors
• On a notebook computer, the ports are on the back, front,
and/or sides
ITC : By Fazal Rehman(Shamil)
47
Ports and Connectors
• A USB port can connect up to 127 different peripherals
together with a single connector
– You can attach multiple peripherals using a single USB port with a
USB hub
ITC : By Fazal Rehman(Shamil)
48
Ports and Connectors
• A port replicator is an external
device that provides connections
to peripherals through ports built
into the device
• A docking station is an external
device that attaches to a mobile
computer or device
ITC : By Fazal Rehman(Shamil)
49
Buses
• A bus allows the various devices
both inside and attached to the
system unit to communicate
with each other
– Data bus
– Address bus
• A computer can have these
basic types of buses:
– System bus
– Backside bus
– Expansion bus
ITC : By Fazal Rehman(Shamil)
50
Bays
• A bay is an opening inside the
system unit in which you can
install additional equipment
– A drive bay typically holds disk
drives
ITC : By Fazal Rehman(Shamil)
51
Power Supply
The power supply converts the wall outlet
AC power into DC power
Some external peripherals have an AC
adapter, which is an external power supply
ITC : By Fazal Rehman(Shamil)
52
Putting It All Together
Home
Intel Core 2 Duo or Intel
Celeron Dual Core or AMD
Sempron
Small Office/
Home Office
Intel Core 2 Quad or Intel Core
2 Extreme or AMD Athlon FX
or AMD Athlon X2 Dual-Code
Mobile
Intel Core 2 Extreme or AMD
Turion X2
Minimum RAM: 2 GB
Minimum RAM: 2 GB
Minimum RAM: 4 GB
ITC : By Fazal Rehman(Shamil)
53
Putting It All Together
Power
Enterprise
Intel Itanium 2 or AMD
Quad Core Opteron or Intel
Quad Core Xeon or Sun
UltraSPARC T2
Intel Core 2 Quad or Intel
Core 2 Extreme or AMD
Athlon FX or AMD Athlon X2
Dual-Core
Minimum RAM: 8 GB
Minimum RAM: 4 GB
ITC : By Fazal Rehman(Shamil)
54
Summary
Components of the
system unit
How memory stores
data, instructions, and
information
Sequence of
operations that occur
when a computer
executes an instruction
Comparison of various
personal computer
processors on the
market today
ITC : By Fazal Rehman(Shamil)
55
Download