37
8-1 Chapter 8 - Input and Output Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring Principles of Computer Architecture Miles Murdocca and Vincent Heuring Chapter 8: Input and Output

8-1 Chapter 8 - Input and Output Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring Principles of Computer

Embed Size (px)

Citation preview

Page 1: 8-1 Chapter 8 - Input and Output Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring Principles of Computer

8-1 Chapter 8 - Input and Output

Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring

Principles of Computer ArchitectureMiles Murdocca and Vincent Heuring

Chapter 8: Input and Output

Page 2: 8-1 Chapter 8 - Input and Output Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring Principles of Computer

8-2 Chapter 8 - Input and Output

Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring

Chapter Contents

8.1 Simple Bus Architectures

8.2 Bridge-Based Bus Architectures

8.3 Communication Methodologies

8.4 Case Study: Communication on the Intel Pentium Architecture

8.5 Mass Storage

8.6 Input Devices

8.7 Output Devices

Page 3: 8-1 Chapter 8 - Input and Output Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring Principles of Computer

8-3 Chapter 8 - Input and Output

Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring

Simple Bus Architecture

• A simplified motherboard of a personal computer (top view):

Page 4: 8-1 Chapter 8 - Input and Output Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring Principles of Computer

8-4 Chapter 8 - Input and Output

Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring

Simplified Illustration of a Bus

Page 5: 8-1 Chapter 8 - Input and Output Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring Principles of Computer

8-5 Chapter 8 - Input and Output

Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring

100 MHz Bus Clock

Page 6: 8-1 Chapter 8 - Input and Output Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring Principles of Computer

8-6 Chapter 8 - Input and Output

Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring

The Synchronous Bus• Timing diagram for a synchronous memory read (adapted from

[Tanenbaum, 1999]).

Page 7: 8-1 Chapter 8 - Input and Output Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring Principles of Computer

8-7 Chapter 8 - Input and Output

Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring

The Asynchronous Bus• Timing diagram for asynchronous memory read (adapted from

[Tanenbaum, 1999]).

Page 8: 8-1 Chapter 8 - Input and Output Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring Principles of Computer

8-8 Chapter 8 - Input and Output

Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring

Bus Arbitration

• (a)Simple centralized bus arbitration; (b) centralized arbitration with priority levels; (c) decentralized bus arbitration. (Adapted from [Tanenbaum, 1999]).

Page 9: 8-1 Chapter 8 - Input and Output Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring Principles of Computer

8-9 Chapter 8 - Input and Output

Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring

Bridge Based

Bus Arch-itecture

• Bridging with dual Pentium II Xeon processors on Slot 2.

(Source: http://www.intel.com.)

Page 10: 8-1 Chapter 8 - Input and Output Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring Principles of Computer

8-10 Chapter 8 - Input and Output

Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring

Programmed I/O Flowchart for a Disk Transfer

Page 11: 8-1 Chapter 8 - Input and Output Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring Principles of Computer

8-11 Chapter 8 - Input and Output

Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring

Interrupt Driven I/O

Flowchart for a Disk

Transfer

Page 12: 8-1 Chapter 8 - Input and Output Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring Principles of Computer

8-12 Chapter 8 - Input and Output

Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring

DMA Transfer from Disk to Memory Bypasses the CPU

Page 13: 8-1 Chapter 8 - Input and Output Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring Principles of Computer

8-13 Chapter 8 - Input and Output

Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring

DMA Flowchart for a Disk Transfer

Page 14: 8-1 Chapter 8 - Input and Output Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring Principles of Computer

8-14 Chapter 8 - Input and Output

Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring

Intel Memory and I/O Address Spaces

Page 15: 8-1 Chapter 8 - Input and Output Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring Principles of Computer

8-15 Chapter 8 - Input and Output

Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring

Standard Intel Pentium Read and Write Bus Cycles

Page 16: 8-1 Chapter 8 - Input and Output Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring Principles of Computer

8-16 Chapter 8 - Input and Output

Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring

Intel Pentium Burst Read Bus Cycle

Page 17: 8-1 Chapter 8 - Input and Output Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring Principles of Computer

8-17 Chapter 8 - Input and Output

Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring

Intel Pentium

Hold-Hold Acknow-

ledge Bus Cycle

Page 18: 8-1 Chapter 8 - Input and Output Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring Principles of Computer

8-18 Chapter 8 - Input and Output

Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring

A Magnetic Disk with Three Platters

Page 19: 8-1 Chapter 8 - Input and Output Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring Principles of Computer

8-19 Chapter 8 - Input and Output

Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring

Manchester Encoding

• (a) Straight amplitude (NRZ) encoding of ASCII ‘F’; (b) Manchester encoding of ASCII ‘F’.

Page 20: 8-1 Chapter 8 - Input and Output Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring Principles of Computer

8-20 Chapter 8 - Input and Output

Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring

Organization of a Disk Platter with a 1:2 Interleave Factor

Page 21: 8-1 Chapter 8 - Input and Output Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring Principles of Computer

8-21 Chapter 8 - Input and Output

Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring

Master Control Block

Page 22: 8-1 Chapter 8 - Input and Output Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring Principles of Computer

8-22 Chapter 8 - Input and Output

Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring

Magnetic Tape• A portion of a magnetic tape (adapted from [Hamacher, 1990]).

Page 23: 8-1 Chapter 8 - Input and Output Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring Principles of Computer

8-23 Chapter 8 - Input and Output

Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring

Magnetic Drum

Page 24: 8-1 Chapter 8 - Input and Output Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring Principles of Computer

8-24 Chapter 8 - Input and Output

Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring

Spiral Format for Compact Disk

Page 25: 8-1 Chapter 8 - Input and Output Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring Principles of Computer

8-25 Chapter 8 - Input and Output

Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring

ECMA-23 Keyboard Layout

• Keyboard layout for the ECMA-23 Standard (2nd ed.). Shift keys are frequently placed in the B row.

Page 26: 8-1 Chapter 8 - Input and Output Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring Principles of Computer

8-26 Chapter 8 - Input and Output

Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring

The Dvorak Keyboard Layout

Page 27: 8-1 Chapter 8 - Input and Output Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring Principles of Computer

8-27 Chapter 8 - Input and Output

Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring

Bit Pad with Puck

Page 28: 8-1 Chapter 8 - Input and Output Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring Principles of Computer

8-28 Chapter 8 - Input and Output

Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring

Mouse and Trackball• A three-button mouse (left) and a three-button trackball (right).

Page 29: 8-1 Chapter 8 - Input and Output Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring Principles of Computer

8-29 Chapter 8 - Input and Output

Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring

Lightpen

• A user selects an object with a lightpen.

Page 30: 8-1 Chapter 8 - Input and Output Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring Principles of Computer

8-30 Chapter 8 - Input and Output

Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring

Touchscreen

• A user selects an object on a touchscreen.

Page 31: 8-1 Chapter 8 - Input and Output Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring Principles of Computer

8-31 Chapter 8 - Input and Output

Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring

Joystick

• A joystick with a selection button and a rotatable rod:

Page 32: 8-1 Chapter 8 - Input and Output Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring Principles of Computer

8-32 Chapter 8 - Input and Output

Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring

Laser Printer

• Schematic of a laser printer (adapted from [Tanenbaum, 1999]).

Page 33: 8-1 Chapter 8 - Input and Output Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring Principles of Computer

8-33 Chapter 8 - Input and Output

Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring

Cathode Ray Tube

• A CRT with a single electron gun:

Page 34: 8-1 Chapter 8 - Input and Output Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring Principles of Computer

8-34 Chapter 8 - Input and Output

Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring

Display Controller• Display controller

for a 640480 color monitor (adapted from [Hamacher et al., 1990]).

Page 35: 8-1 Chapter 8 - Input and Output Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring Principles of Computer

8-35 Chapter 8 - Input and Output

Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring

VHDL SpecificationInterface specification for the majority component

-- Interfaceentity MAJORITY is port

(A_IN, B_IN, C_IN: in BIT F_OUT: out BIT);

end MAJORITY;Behavioral model for the majority component -- Body

architecture LOGIC_SPEC of MAJORITY isbegin-- compute the output using a Boolean expressionF_OUT <= (not A_IN and B_IN and C_IN) or

(A_IN and not B_IN and C_IN) or(A_IN and B_IN and not C_IN) or(A_IN and B_IN and C_IN) after 4 ns;

end LOGIC_SPEC;

Page 36: 8-1 Chapter 8 - Input and Output Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring Principles of Computer

8-36 Chapter 8 - Input and Output

Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring

VHDL Specification (cont’)-- Package declaration, in library WORKpackage LOGIC_GATES iscomponent AND3 port (A, B, C : in BIT; X : out BIT);end component;component OR4 port (A, B, C, D : in BIT; X : out BIT);end component;component NOT1 port (A : in BIT; X : out BIT);end component;-- Interfaceentity MAJORITY is port

(A_IN, B_IN, C_IN: in BITF_OUT: out BIT);

end MAJORITY;

Page 37: 8-1 Chapter 8 - Input and Output Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring Principles of Computer

8-37 Chapter 8 - Input and Output

Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring

VHDL Specification (cont’)-- Body-- Uses components declared in package LOGIC_GATES -- in the WORK library-- import all the components in WORK.LOGIC_GATESuse WORK.LOGIC_GATES.all architecture LOGIC_SPEC of MAJORITY is-- declare signals used internally in MAJORITYsignal A_BAR, B_BAR, C_BAR, I1, I2, I3, I4: BIT;begin-- connect the logic gatesNOT_1 : NOT1 port map (A_IN, A_BAR);NOT_2 : NOT1 port map (B_IN, B_BAR);NOT_3 : NOT1 port map (C_IN, C_BAR);AND_1 : AND3 port map (A_BAR, B_IN, C_IN, I1);AND_2 : AND3 port map (A_IN, B_BAR, C_IN, I2);AND_3 : AND3 port map (A_IN, B_IN, C_BAR, I3);AND_4 : AND3 port map (A_IN, B_IN, C_IN, I4);OR_1 : OR3 port map (I1, I2, I3, I4, F_OUT);end LOGIC_SPEC;