computer architecture full chapter by fazal rehman (shamil) itc : by fazal rehman(shamil)1

55
Computer Architecture Full Chapter By Fazal Rehman (Shamil) ITC : By Fazal Rehman(Shamil) 1

Upload: aubrey-walsh

Post on 28-Dec-2015

243 views

Category:

Documents


6 download

TRANSCRIPT

• Computer ArchitectureFull Chapter

• By Fazal Rehman (Shamil)

ITC : By Fazal Rehman(Shamil) 1

Objectives Overview

ITC : By Fazal Rehman(Shamil) 2

Objectives Overview

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:

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)

ITC : By Fazal Rehman(Shamil) 7

multi-core processor

• A multi-core processor is a single computing component with two or more independent actual CPU’s.

ITC : By Fazal Rehman(Shamil)8

Model Core i3 Core i5 Core i7

Number of cores

2 4 4

• 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

ITC : By Fazal Rehman(Shamil) 15

Data Representation

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:

ITC : By Fazal Rehman(Shamil) 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:

ITC : By Fazal Rehman(Shamil) 31

Memory

ITC : By Fazal Rehman(Shamil) 32

Memory

• Three basic types of RAM chips exist:

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

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

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

ITC : By Fazal Rehman(Shamil) 52

Putting It All Together

ITC : By Fazal Rehman(Shamil) 53

Putting It All Together

ITC : By Fazal Rehman(Shamil) 54

Summary

ITC : By Fazal Rehman(Shamil) 55