basic structure of computer

73
Basic Structure of Computer Introduction of computer system & its sub-modules Basic organization of computer & block level description of the functional units Von Neumann model Introduction to buses & connecting I/O devices to CPU & memory Asynchronous & synchronous bus, PCI, SCSI

Upload: lynn

Post on 05-Feb-2016

89 views

Category:

Documents


2 download

DESCRIPTION

Basic Structure of Computer. Introduction of computer system & its sub-modules Basic organization of computer & block level description of the functional units Von Neumann model Introduction to buses & connecting I/O devices to CPU & memory Asynchronous & synchronous bus, PCI, SCSI. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Basic Structure of Computer

Basic Structure of Computer

• Introduction of computer system & its sub-modules

• Basic organization of computer & block level description of the functional units

• Von Neumann model• Introduction to buses & connecting I/O devices

to CPU & memory• Asynchronous & synchronous bus, PCI, SCSI

Page 2: Basic Structure of Computer

Computer Organization & Architecture

Page 3: Basic Structure of Computer
Page 4: Basic Structure of Computer

Structural/functional view of a computer

Page 5: Basic Structure of Computer
Page 6: Basic Structure of Computer
Page 7: Basic Structure of Computer

Data

movement

apparatus

Control

mechanism

Data

processing

facility

Data

storage

facility

Operating environment

(source & destination of data)

Fig: A Functional View of the Computer

Page 8: Basic Structure of Computer

COMPUTER

•Storage

•Processing

Com

munication

Lines

Perip

heral

s

Fig: The Computer

Page 9: Basic Structure of Computer
Page 10: Basic Structure of Computer

Input/

Output

Main

Memory

Central

Processing

unit

System

interconnection

COMPUTER

COMPUTER

Fig: The Computer: Top-level Structure

Page 11: Basic Structure of Computer

Registers Arithmetic &

Logic unit

Control

unit

Internal CPU

interconnection

CPU

CPU

I/OMemory

System

bus

COMPUTER

Fig: The Central Processing Unit (CPU)

Page 12: Basic Structure of Computer

Sequencing

logic

Control

memory

Control unit

Registers &

decoders

CONTROL

UNIT

Control unit

RegistersALU

Internal

bus

CPU

Fig: The Control Unit

Page 13: Basic Structure of Computer

Von Neumann Model

Page 14: Basic Structure of Computer
Page 15: Basic Structure of Computer
Page 16: Basic Structure of Computer
Page 17: Basic Structure of Computer
Page 18: Basic Structure of Computer

Interconnection Structures

Page 19: Basic Structure of Computer

Fig: Computer Modules

Page 20: Basic Structure of Computer
Page 21: Basic Structure of Computer
Page 22: Basic Structure of Computer
Page 23: Basic Structure of Computer
Page 24: Basic Structure of Computer
Page 25: Basic Structure of Computer

The interconnection structure must support the

following types of transfers:• Memory to Processor• Processor to Memory• I/O to Processor• Processor to I/O to or from memory

Page 26: Basic Structure of Computer
Page 27: Basic Structure of Computer
Page 28: Basic Structure of Computer

Fig: Bus Interconnection Scheme

Page 29: Basic Structure of Computer
Page 30: Basic Structure of Computer
Page 31: Basic Structure of Computer

Control Bus

Used to control the access to & the use of data & address lines

Typical control lines include

• Memory read/write

• I/O read/write

• Transfer ACK

• Bus request/grant

• Interrupt request/ACK

• Clock

• Reset

Page 32: Basic Structure of Computer
Page 33: Basic Structure of Computer

Multiple-Bus hierarchies

Page 34: Basic Structure of Computer
Page 35: Basic Structure of Computer
Page 36: Basic Structure of Computer
Page 37: Basic Structure of Computer

Fig: High-performance architecture

Page 38: Basic Structure of Computer
Page 39: Basic Structure of Computer

Elements of Bus design

Page 40: Basic Structure of Computer

Type Bus Width

Dedicated Address

Multiplexed Data

Method of Arbitration Data transfer Type

Centralized Read

Distributed Write

Read-modify-write

Timing Read-after-write

Synchronous Block

Asynchronous

Elements of Bus Design

Page 41: Basic Structure of Computer
Page 42: Basic Structure of Computer
Page 43: Basic Structure of Computer
Page 44: Basic Structure of Computer

Synchronous Timing Diagram

Page 45: Basic Structure of Computer

Asynchronous Timing

• Occurrence of one event on a bus follows & depends on the occurrence of previous event.

Page 46: Basic Structure of Computer

Asynchronous Timing – Read Diagram

Page 47: Basic Structure of Computer

Asynchronous Timing – Write Diagram

Page 48: Basic Structure of Computer
Page 49: Basic Structure of Computer

PCI

(Peripheral Component Interconnect)

Page 50: Basic Structure of Computer
Page 51: Basic Structure of Computer
Page 52: Basic Structure of Computer
Page 53: Basic Structure of Computer
Page 54: Basic Structure of Computer

• 50 optional signal lines, divided into following groups:

• Interrupt pins: not shared, each PCI device has its own interrupt line to an interrupt controller.

• Cache support pins: support a memory on PCI that can be cached in the processor or another device.

• 64-bit bus extension pins: 32- additional time-multiplexed lines for address & data, plus lines to interrupt & validate these, and to provide agreement between two PCI devices on use of these.

• JTAG/boundary scan pins: support testing procedures defined in IEEE Standard 1149.1.

Page 55: Basic Structure of Computer
Page 56: Basic Structure of Computer

PCI Commands

• Interrupt Acknowledge• Special Cycle• I/O Read• I/O Write• Memory Read• Memory Read Line• Memory Read Multiple

• Memory Write• Memory Write and

Invalidate• Configuration Read• Configuration Write• Dual Address Cycle

Page 57: Basic Structure of Computer
Page 58: Basic Structure of Computer

SCSI

Small Computer System Interface

Page 59: Basic Structure of Computer

Introduction

The Small Computer System Interface (SCSI) is a parallel I/0 bus and protocol that permits the connection of a variety of peripherals including disk drives, tape drives, modems, printers, scanners, optical devices, test equipment, and medical devices to a host computer.

Page 60: Basic Structure of Computer

The SCSI Bus

The SCSI bus connects all parts of a computer system so that they can communicate with each other.

The bus frees the host processor from the responsibility of I/O internal tasks.

Page 61: Basic Structure of Computer

The SCSI protocol

The SCSI protocol is a peer-to-peer relationship: one device does not have to be subordinated to another device in order to perform I/0 activities.

A total of eight devices can be connected to the bus simultaneously. Only two of these devices can communicate on the bus at any given time.

Page 62: Basic Structure of Computer

• A unique SCSI device ID (7-0) is assigned to the SCSI host adaptor and to each device controller.

• One of the devices on the bus must be the initiator (usually the host adaptor). The other device is the target (usually the peripheral device controller).

• When two devices communicate on the bus, one device initiates the communication to the target, and the target performs the task.

• SCSI devices usually have a fixed role as an initiator or a target, although some devices can perform both roles.

Page 63: Basic Structure of Computer

Fig: SCSI Configuration

Page 64: Basic Structure of Computer

SCSI Bus signals

The SCSI bus uses eighteen signals. Nine are control signals used to develop logical bus phases, and nine are data signals, including parity, for messages, commands, status, and data.

The state of the SEL, BSY, and I/O signals and the sequence of the phases determine when the Bus Free, Arbitration, Selection, and Reselection phases are entered.

Page 65: Basic Structure of Computer

Table 1: SCSI Bus Signals

SignalDescription

BSY(BUSY) An 'OR-tied signal which indicates that the bus is being used.

SEL(SELECT) A signal used by an initiator to select a target, or by a target to reselect an initiator.

C/D (CONTROL/DATA)

A signal drven by a target to indicate whether or not control or data information is on the data bus. True indicates control.

I/0 (INPUT/OUTPUT)

A signal driven by a target to control the direction of data movement on the data bus. True indicates input to the initiator. This signal is also used to distinguish between selection and reselection phases.

MSG (MESSAGE) A signal driven by a target during the Message phase.

REQ (REQUEST) A signal driven by a target to request a REO/ACK data transfer handshake.

ACK (ACKNOWLEDGE)

A signal driven by an iniüator to acknowledge a REO/ACK data transfer.

ATN (ATTENTION)A signal driven by an inifiator to indicate the Atterifion conditioti (inidator has a message for the target).

RST (RESET) An 'OR-tied' signal and hard Res.et condition.

DB (7-0,P) (DATA BUS)

Eight data-bit(DB) signals, plus a parity-bit signal that form a Data Bus. DB(7) is the most significant bit and has the highest phohty during the Arbitradon phase. Bit number, significance, and priority decreaso downward to DB (0). A data bit is defined as one when the signal value is true, and defined as zero when the signal value is false. Data parity DB(P) shall be odd, but parity is undefined during the Arbitradon phase.

NOTE

Page 66: Basic Structure of Computer

Fig: SCSI Bus Phases

Page 67: Basic Structure of Computer

Bus operation

• An arbitration scheme is used to determine which devices can transfer data at a given time.

• Initiator- SCSI device that initiates transaction

• Target: the responding device

• 8 different bus phases

Page 68: Basic Structure of Computer

SCSI Bus phases

• Bus free phase: The initiator begins a transaction by testing BSY & SEL signals. When these are inactive, bus is free.

• Arbitration phase: The unit that wants to control the bus, activates the BSY & data bit corresponding to its SCSI ID.

• Selection phase: SEL line is made active & SCSI address bits corresponding to initiator & target are placed on data lines.

Page 69: Basic Structure of Computer

SCSI Bus phases

• Reselection phase: Once target receives a command, it carries that command out without intervention from initiator. Once the task is finished, the target, remembering initiator’s ID, reestablishes connection using arbitration & selection phases.

Page 70: Basic Structure of Computer

SCSI Bus phases

• Command phase: Device specific commands are sent to the target from the initiator.

• Data phase: Data transfer may occur asynchronously or synchronously.

• Message phase: Various messages can be exchanged between Initiator & Target. Eg: command complete, terminate I/O

Page 71: Basic Structure of Computer

SCSI Bus phases

• Status phase:

Page 72: Basic Structure of Computer

Questionnaire

Page 73: Basic Structure of Computer

Explain structure of computer defined by Sir Von Neumann. Distinguish between computer architecture and computer

organization with the help of appropriate examples. Write short note on PCI bus. Explain the different element considered while designing the

bus interconnection architecture. Explain the five elements of bus design. Explain the bus interconnection structure with the help of

data, address & control lines. Explain the PCI bus structure.

Questionnaire