1. Trang chủ
  2. » Giáo án - Bài giảng

The architecture of computer hardware and systems software an information technology approach ch09

39 152 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 39
Dung lượng 3,08 MB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

Chapter 9 Input / Output 9-2Basic Model  determined primarily by ability of I/O operations to stay ahead of processor... I/O Modules Functions  Recognizes messages from devices addres

Trang 1

Chapter 9: Input/Output

The Architecture of Computer Hardware

and Systems Software:

An Information Technology Approach

3rd Edition, Irv Englander John Wiley and Sons 2003

Trang 2

Chapter 9 Input / Output 9-2

Basic Model

 determined primarily by ability of I/O

operations to stay ahead of processor.

Trang 3

I/O Considerations

Speed Issues

 CPU operates at speeds much faster than the fastest I/O device

 Devices operate at different speeds

 Various input formats

 Status information needed for each device

Trang 4

Chapter 9 Input / Output 9-4

I/O Device Interface Issues

Trang 5

Examples of I/O Devices

Trang 6

Chapter 9 Input / Output 9-6

Simple I/O Configuration

Trang 7

I/O Modules Functions

 Recognizes messages from device(s) addressed to it and accepts commands from the CPU

 Provides a buffer where the data from memory can be held until it can be transferred to the disk

 Provides the necessary registers and controls to

perform a direct memory transfer

 Physically controls the device

 Copies data from its buffer to the device/from the

CPU to its buffer

 Notifies with interrupts

Trang 8

Chapter 9 Input / Output 9-8

Input/Output Modules

 CPU controlled I/O

 Interrupt Driven I/O

 External input controls

 Method for transferring data between main memory and a device that bypasses the CPU

Trang 9

Programmed I/O

 I/O data and address registers in CPU

 One word transfers

 Address information for each I/O device

 LMC I/O capability for 100 devices

 Full instruction fetch/execute cycle

 Primary use:

 keyboards

 communication with I/O modules (see DMA)

Trang 10

Chapter 9 Input / Output 9-10

Programmed I/O

Trang 11

Programmed I/O Example

Trang 12

Chapter 9 Input / Output 9-12

Programmed I/O Example

Trang 13

 Signal that causes the CPU to alter its normal flow on instruction execution

 frees CPU from waiting for events

 provides control for external input

Trang 14

Chapter 9 Input / Output 9-14

The CPU - The Interrupt Cycle

HALT

START

Fetch Next Instruction

Execute Instruction

Check/Process Interrupt

Interrupts Disabled

Trang 15

Interrupt Terminology

 Interrupt lines (hardware)

 Interrupt request

 Interrupt handlers

 Program that services the interrupt

 Also known as an interrupt routine

 Process Control Block (PCB)

 Located in a part of memory known as the stack area

 All registers of a program are saved here before control is transferred to the interrupt handler

Trang 16

Chapter 9 Input / Output 9-16

Interrupt Terminology

 Servicing the interrupt

 suspends program in progress

 saves pertinent information including last instruction executed and data values in registers in the PCB (process control block)

 branches to interrupt handler

Trang 17

Servicing an Interrupt

Trang 18

Chapter 9 Input / Output 9-18

Use of Interrupts

 Notify that an external event has occurred

 real-time or time-sensitive

 Signal completion

 printer ready or buffer full

 Allocate CPU time

 time sharing

 Indicate abnormal event (CPU originates for

notification and recovery)

 illegal operation, hardware error

 Software interrupts

Trang 19

Multiple Interrupts

 Identifying devices

 Polling (checking for input in rotation)

 Vectored interrupts (include address of

interrupting device)

 Interrupt priorities

 Loss of data vs task completion

 Maskable (disabled) interrupts

Trang 20

Chapter 9 Input / Output 9-20

Vectored Interrupts

Trang 21

Polled Interrupts

Trang 22

Chapter 9 Input / Output 9-22

Multiple Interrupts Example

Trang 23

Direct Memory Access

 Transferring large blocks of data

 Direct transfer to and from memory

 CPU not actively involved in transfer itself

 Required conditions for DMA

 The I/O interface and memory must be connected

 The I/O module must be capable of reading and writing to memory

 Conflicts between the CPU and the I/O module

must be avoided

Trang 24

Chapter 9 Input / Output 9-24

DMA Instruction Set

 Application program requests I/O service

from operating system

 privileged instructions

 To initiate DMA, programmed I/O is used to

send the following information:

1 location of data on I/O device

2 the starting location in memory

3 the size of the block

4 read/write

 Interrupt to CPU upon completion

Trang 25

DMA Initiation and Control

Trang 26

Chapter 9 Input / Output 9-26

Basic CPU-Memory-I/O Pathway*

Trang 27

Bus Configuration

Trang 28

Chapter 9 Input / Output 9-28

Bus Characteristics

 Data width in bits carried simultaneously

 Throughput, i.e., data transfer rate in

bits per second

Trang 29

Bus Hierarchy

 Processor bus: on-chip

 Cache bus (backside bus)

 Memory bus (front-side bus)

 connects the memory subsystem and processor

 Local I/O bus

 high-speed bus used to connect performance

critical peripherals to memory and processor

 Examples: PCI, VESA Local Bus

 Standard I/O bus

 connects slower peripherals (ISA) to Local I/O bus

Trang 30

Chapter 9 Input / Output 9-30

Wintel Bus Systems

 ISA: Industry Standard Architecture

 MCA: Micro Channel Architecture

 EISA: Extended Industry Standard Architecture

 Local Bus

 PCI: Peripheral Component Interconnect (also Apple, Sun, Compaq Alpha Server)

 VLB: VESA (Video Electronics Standards Association) Local Bus

 AGP: Accelerated Graphics Port

 Point-to-point channel from graphics controller to main

memory

 Co-exists with PCI

Trang 31

Compaq 7000 and 10000

System Architecture

Trang 32

Chapter 9 Input / Output 9-32

External Interface Buses and Ports

Trang 33

SCSI Bus

 ANSI standard but multiple variations

 Really an I/O bus rather than simple interface

 Supports multiple devices from a single SCSI port

Trang 34

Chapter 9 Input / Output 9-34

Root Hub Hub Hub

Trang 35

USB and FireWire (IEEE 1394)

 Both serial, multipoint bus specifications

Trang 36

Chapter 9 Input / Output 9-36

USB vs. FireWire

transfer applications, i.e., storage

Trang 37

Typical FireWire Configuration

 Network-like characteristics

Trang 38

Chapter 9 Input / Output 9-38

 Channel control words

 Programs that transfer data between memory and

an I/O device using DMA

Trang 39

I/O Channel Architecture

Ngày đăng: 10/01/2018, 16:23

TỪ KHÓA LIÊN QUAN

TÀI LIỆU CÙNG NGƯỜI DÙNG

TÀI LIỆU LIÊN QUAN