Computer architecture

71
Computer Architecture(Basics) Sunawar Khan Ahsan IIUI

Transcript of Computer architecture

Page 1: Computer architecture

Computer Architecture(Basics)

Sunawar Khan AhsanIIUI

Page 2: Computer architecture

COMPUTER ARCHITECTURE

TOPICS OF DISCUSSION:-

DEFINITION HISTORY ROLE I/O

DEVICES CPU MEMORY REGISTERS BUS

Page 3: Computer architecture

Definition

Section 1

Page 4: Computer architecture

Computer architecture??

Computer architecture is the conceptual design and fundamental operational structure of a computer system.

The design made a clear distinction between architecture and implementation, allowing IBM to release a suite of compatible designs at different prices.

Page 5: Computer architecture

History of computer architecture:-

• The term architecture as applied to computer design, was first used in 1964 by Gene Amdahl, G. Anne Blaauw, and Frederick Brooks, Jr., the designers of the IBM System/360.

• They joined the term to refer to those aspects of the instruction set available to programmers, independent of the hardware on which the instruction set was implemented.

Page 6: Computer architecture

Frederick Brooks Gene Amdahl

Page 7: Computer architecture

Role of Computer Architecture:-

The coordination of abstract levels of a processor under changing forces, involving design, measurement and evaluation.

It also includes the overall fundamental working principle of the internal logical structure of a computer system.

Page 8: Computer architecture

Von Neumann Architecture

Section 2

Page 9: Computer architecture
Page 10: Computer architecture

Components of computer architecture:-

The important components are:

I/O Devices

CPU(central

processing unit)

Memory Register Buses

Page 11: Computer architecture

Components

Section 3

Page 12: Computer architecture

I/O Devices

Its stands for Input and Output devices. Input devices:

These devices are used to communicate with the computer.

Output devices: These devices are used to communicate with the

user.

Page 13: Computer architecture

Input devices:

Following are the examples of some input devices: Keyboard Mouse Joystick Microphone Scanner Bar code reader

Page 14: Computer architecture

Output Devices:

Following are the examples of some input devices: Monitor Speakers Printers Projectors

Page 15: Computer architecture
Page 16: Computer architecture

Central Processing Unit

Section 4

Page 17: Computer architecture

CPU:

Central processing unit (CPU) is the portion of a computer system that carries out the instructions of a computer program, to perform the basic arithmetical, logical, and input/output operations of the system.

The CPU plays a role somewhat analogous to the brain in the computer.

CPU is a small chip mounted on the circuit board (mother board).

CPU also perform data processing.

Page 18: Computer architecture

PARTS:-

CPU.

CU ALU

Page 19: Computer architecture

CU:

It stands for “Control Unit”. A control unit in general is a central

part of the machinery that controls its operation.

The CU reads the instruction from memory, decodes and executes these instructions.

Its is also known as fetch-decode and execute cycle.

Page 20: Computer architecture

EXAMPLES:-

A few examples of devices that require a control unit are CPUs and GPUs.

Page 21: Computer architecture

ALU:

Its stands for “Arithmetic and Logical Unit”. An arithmetic-logic unit (ALU) is the part of

a computer processor (CPU) that carries out arithmetic and logic operations on the operands in computer instruction words.

Page 22: Computer architecture

Operations

Operations

Arithmetic operations

.

Logical operations

.

Page 23: Computer architecture

Arithmetic operations:

Followings are some Arithmetic's operators:

AdditionSubtraction

MultiplicationDivision

Page 24: Computer architecture

Logical operations:

These operations produce results

True

False

There are some logical

operator:

AND

OR

NOT

Page 25: Computer architecture

Memory Unit

Section 5

Page 26: Computer architecture

Memory:

It is the very important part of any system. The term memory identifies data storage

that comes in the form of chips, and the word storage is used for memory that exists on tapes or disks.

Some computers also use virtual memory.

Page 27: Computer architecture

TYPES :-

Types of Memory

Primary /Main memory

Secondary Memory /

Storage devices

Page 28: Computer architecture

Main Memory:

It is called working area of computer. Refers to physical memory that is

internal to the computer. Another term for main memory is RAM. Computer cannot work without it.

Page 29: Computer architecture

Types of Main Memory:

Types of Main Memory

RAM (Random Access Memory)

ROM (Read Only Memory)

Page 30: Computer architecture

RAM:

Main memory is usually referred as RAM. It is also called volatile, or user memory. The contents are lost as the electric

supply is cut-off. One of the first home computer used 64

kilobytes of RAM memory but today’s modren computers need a minimum of 64 MB (recommended 128 MB or more)to run a Windows.

Page 31: Computer architecture
Page 32: Computer architecture

Types of RAM:

Types• SRAM

• Static Random Access Memory• DRAM

• Dynamic random Access Memory

Page 33: Computer architecture

SRAM:

Its stands for static random access memory.

No refreshing of electric states is required in SRAM.

These chips are faster than DRAM.

• Static random-access memory (SRAM) is a type of semiconductor memory.

Page 34: Computer architecture

DRAM(dynamic random access memory)

It must have an electric current to maintain its electric states.

Its design is less complex than SRAM. Dynamic random-access memory (DRAM)

is a type of random-access memory that stores each bit of data in a separate capacitor within an integrated circuit.

Page 35: Computer architecture

DRAM:-

Page 36: Computer architecture

ROM: It is obvious from name that the

contents of ROM are read only. New data can not be written on it. Its contents are permanent. It is referred to non-volatile or

system memory. When the power is switched off

the contents of ROM is not lost.

Page 37: Computer architecture
Page 38: Computer architecture

Types of ROM:

PROM EPROM EEPROM

Page 39: Computer architecture

PROM (programmable read only memory)

It is initially blank and the manufacture writes instruction and data with some special devices.

Once the information is stored onto PROM ,then it cannot be changed.

Page 40: Computer architecture

EPROM:

It stands for erasable programmable read only memory.

It is another type of ROM chip and it is possible to erase the stored information and the chip can be reprogrammed using special devices.

Information can be erased using ultraviolet rays.

Page 41: Computer architecture

EEPROM:

It stands for electrically erasable programmable read only memory.

It is a kind of ROM chip can be re-written using electrical devices.

The stored information on EEPROM can be erased, modified or reprogrammed easily using special devices.

Page 42: Computer architecture

Secondary Memory

This is the memory which is used to store the data permanently.

There are some example of secondary memory: CD (Compact disk) Hard disk Floppy disk Flash drive

Page 43: Computer architecture

What is virtual memory?

In computing, virtual memory is a memory management technique developed for multitasking kernels.

Page 44: Computer architecture

Registers:

These are the high speed memory locations built into the microprocessor.

It increase the performance of system.

Page 45: Computer architecture

Types of Registers:

PC (Program Counter) IR (Instruction Register) MAR (Memory Address Register) MBR (Memory Buffer Register) SP (Stack Pointer Register) GPR (General Pointer Register A,B,C,D) Address Register (CS, DS, ES, SS)

Page 46: Computer architecture

PC (Program Counter)

It hold the address of the next instruction to be fetched and executed.

Page 47: Computer architecture

PC REGISTER

Page 48: Computer architecture

IR (Instruction Register)

It hold the current instruction that is being executed.

Page 49: Computer architecture

MAR (Memory Address Register)

It holds the address of active memory location.

Page 50: Computer architecture

MBR (Memory Buffer Register)

It holds the contents of the memory location read from or written in the memory.

Page 51: Computer architecture

SP (Stack Pointer Register)

Arrangement of data is called stack data is stored in or retrieved from stack using LIFO (Last in First Out).

LIFO is also known FILO (First in Last Out).

Page 52: Computer architecture

GPR (General Purpose Register)

These registers are used to perform arithmetic and logical operations.

Page 53: Computer architecture

GENERAL PURPOSES

There are four general purpose register: Accumulator Base register Counter register Data register

Page 54: Computer architecture

Accumulator:

It is used for Arithmetic and logical operations.

Page 55: Computer architecture

Base register

Base register is used for: Arithmetic Data movement Special addressing abilities.

Page 56: Computer architecture

Counter register

As the name show it is used for counting purpose.

It acts as counter in loop.

Page 57: Computer architecture

Data register

It has special role in division and multiplication.

The size of these registers is from 1 to 4 bytes.

Page 58: Computer architecture

Address Register

It is a group of 4 registers: CS (Code Segment) DS (Data Segment) ES (Extra Segment) SS (Stack Segment)

Page 59: Computer architecture

Buses:

These are circuits provide a communication path between two or more devices of a digital computer.

Page 60: Computer architecture

All the components of a computer are connected with a set of parallel lines.

These lines are called BUS. There are two types of Buses:

System Bus Expansion Bus

Page 61: Computer architecture

System Bus:

It is divided into three main categories: Control Bus Address Bus Data bus

Page 62: Computer architecture

SYSTEM BUS

Page 63: Computer architecture

Control Bus

These lines are used to transmits the other control signals from one component to another.

It also transmits the other control signals like ACKS (acknowledgement signal).

Page 64: Computer architecture

CONTROL BUS

Page 65: Computer architecture

Address Bus

It carries the address of various memory locations to perform read and write operations.

It uses a few system bus lines to specify the address of destination; these lines are called address bus.

Page 66: Computer architecture

ADRESS BUS

Page 67: Computer architecture

Data Bus

Data bus is used to transfer the data from one component to another.

These are 32 or 64 parallel lines reserved on system bus.

Page 68: Computer architecture

DATA BUS

Page 69: Computer architecture

Expansion Bus:

The major components are connected to the system bus and the remaining components are connected to another bus called expansion bus and the expansion bus is connected to the system bus.

Page 70: Computer architecture

EXPANSION BUS

Page 71: Computer architecture