Professional Documents
Culture Documents
Section 21.3
Section 21.4
Section 21.2
Section 21.5: Other devices
Section 21.6: Networked I/O
Feb. 2011 Computer Architecture, Input/Output and Interfacing Slide 5
21.1 Input/Output Devices and Controllers
Table 3.3 Some input, output, and two-way I/O devices.
Input type Prime examples Other examples Data rate (b/s) Main uses
Symbol Keyboard, keypad Music note, OCR 10s Ubiquitous
Position Mouse, touchpad Stick, wheel, glove 100s Ubiquitous
Identity Barcode reader Badge, fingerprint 100s Sales, security
Sensory Touch, motion, light Scent, brain signal 100s Control, security
Audio Microphone Phone, radio, tape 1000s Ubiquitous
Image Scanner, camera Graphic tablet 1000s-106s Photos, publishing
Video Camcorder, DVD VCR, TV cable 1000s-109s Entertainment
Output type Prime examples Other examples Data rate (b/s) Main uses
Symbol LCD line segments LED, status light 10s Ubiquitous
Position Stepper motor Robotic motion 100s Ubiquitous
Warning Buzzer, bell, siren Flashing light A few Safety, security
Sensory Braille text Scent, brain stimulus 100s Personal assistance
Audio Speaker, audiotape Voice synthesizer 1000s Ubiquitous
Image Monitor, printer Plotter, microfilm 1000s Ubiquitous
Video Monitor, TV screen Film/video recorder 1000s-109s Entertainment
Two-way I/O Prime examples Other examples Data rate (b/s) Main uses
Mass storage Hard/floppy disk CD, tape, archive 106s Ubiquitous
Network Modem, fax, LAN Cable, DSL, ATM 1000s-109s Ubiquitous
Interrupts
CPU Main
memory
Cache
System bus
Graphics
Disk Disk Network
display
Proprietary
Bus Bus
adapter adapter
AGP PCI bus
Intermediate Standard
buses / ports
Bus
I/O bus adapter
I/O controller
c d e f
Spring
8 9 a b
Conductor-coated membrane
Contacts 0 1 2 3
Software:
Emulates a
real keyboard,
even clicking
key sounds
y axis
Photosensor detects
Ball touching the rollers crossing of grid lines
x axis rotates them via friction
Electron
beam 1K
lines Pixel info:
Electron brightness,
gun color, etc.
y
x
Sensitive 1K pixels Frame buffer
screen per line
Figure 21.5 CRT display unit and image storage in frame buffer.
Shadow
mask
RGB
Faceplate
Row
lines
Address
pulse
Light beam
A/D
converter
Light source
Scanning
software
Mirror
Image file
Figure 21.8 Scanning mechanism for hard-copy input.
Feb. 2011 Computer Architecture, Input/Output and Interfacing Slide 20
Character Formation by Dot Matrices
oooooooooooooo
ooooooooooooooooo
oo oooo
oo ooo
oo oo
oo oo
oo oo
oo oo
oo oo
ooooooooo oo o
o oo oo oo
o oo oo oo
o o oo oo
o o oo oo
ooooo o o oo oo
o o o o oo oo
o o o o oo oo
o o o o oo oo
o o o o oo oo
o o o o oo oo
o o o o oo oo
o o o o oo oo
ooooo o o oo oo
o o oo oo
o o oo oo
o o oo oo
o o oo oo
oooooooooooooo
ooooooooooooooooo
o oo oo oo
oo oo
oo oooo
o oo
oo ooo
oo oo
oo oo
oo o
oo oo
oo oo
ooooooooo
oo oo
oooooo oo o
oo oo
oo oo
oo oo oo
oo oo oo
o oo oo
o oo oo
o
oo oo
o oo oo
o oo oo
o oo oo
o oo oo
oo oo
o oo oo
o oo oo
o oo oo
o oo oo
o oo oo
oo oo
o oo oo
o oo oo
o oo oo
oo oo oo
oo oo
oo oo oo
oooooo oo o
oo oo
oo ooo
oo oo
oo oo
oo ooo
oo oooo
oo oooo
ooooooooooooooooo
oooooooooooooo
Figure 21.9 Forming the letter “D” via dot matrices of varying sizes.
Feb. 2011 Computer Architecture, Input/Output and Interfacing Slide 21
Simulating Intensity Levels via Dithering
Red Green
Illusion of
full color
created with
CMYK dots
Primary colors appear at center and equally spaced around the perimeter
Secondary colors are midway between primary colors
Tertiary colors are between primary and secondary colors
Source of this and several other slides on color: http://www.devx.com/projectcool/Article/19954/0/
(see also color theory tutorial: http://graphics.kodak.com/documents/Introducing%20Color
%20Theory.pdf)
Feb. 2011 Computer Architecture, Input/Output and Interfacing Slide 27
21.5 Other Input/Output Devices
N S N N
S
S
S
S
N S
N
N
N
N
S S S
N
N
Locomotive Screw
Computer 1
Printer 2
Camera Ethernet
Computer 3
Printer 1
Computer 2 Printer 3
Network
interface Digital Digital Digital sensors:
input signal detectors, counters,
interface conditioning on/off switches, ...
Control
Memory
Address
bus
Data
Device status
Device
address
Device data
Compare
= Control
logic Device
controller
Bus request
DMA
CPU controller
Typical
Main
and Bus grant Status Source I/O
memory
cache Length Dest’n device
CPU
BusRequest
BusGrant
DMA
(a) DMA trans fer in one continuous burst
CPU
BusRequest
BusGrant
DMA
(b) DMA trans fer in several shorter bursts
4 5 MB/s
2
0.05 MB/s
0
Figure 22.5 0 100 200 300 400 500
Block size (KB)
Feb. 2011 Computer Architecture, Input/Output and Interfacing Slide 45
Computing the Effective Throughput
Elaboration on Example 22.9: Effective I/O bandwidth from disk
Total access time for x bytes = 10 ms + xfer time = (0.01 + 10–7x) s
Effective access time per byte = (0.01 + 10–7x)/x s/B
Effective transfer rate = x/(0.01 + 10–7x) B/s
For x = 100 KB: Effective transfer rate = 105/(0.01 + 10–2) = 5106 B/s
10
Average
Throughput (MB / s)
access 8
latency
= 10 ms 6
Peak 4 5 MB/s
throughput
= 10 MB/s 2
0.05 MB/s
0
Figure 22.5 0 100 200 300 400 500
Block size (KB)
Feb. 2011 Computer Architecture, Input/Output and Interfacing Slide 46
Distributed Input/Output
Switch
Module with
built-in switch Router
Switch
Switch
HCA
HCA HCA HCA
HCA To other subnets
I/O
I/O I/O I/O
I/O
(a) Cross section of layers (b) 3D view of wires on multiple metal layers
Computer
(
a)R
S-
232 (
b)E
t
h e
rn
et (
c)A
TM
9 8 7 6
Twisted
pair
Plastic
Insulator
Coaxial
Copper cable
core
Outer
conductor
Reflection Silica
Optical
Light
source fiber
Feb. 2011 Computer Architecture, Input/Output and Interfacing Slide 53
23.2 Buses and Their Appeal
1 1
0 2 0 2
n–1 3 n–1 3
n–2 n–2
Bus connectivity requires only one input and one output port per unit,
or O(n) links in all
Feb. 2011 Computer Architecture, Input/Output and Interfacing Slide 54
Bus Components and Types
Handshaking,
.
.
. Control direction,
transfer mode,
. arbitration, ...
.
. Address
one bit (serial)
. to several bytes;
.
. Data may be shared
Data
Wait Wait Wait Data
availability
ensured
FRAME
IRDY Wait
TRDY Wait
DEVSEL
R0 G0
R1 S G1
R2 y G2
. n . .
. . Arbiter .
. c . .
R n1 Gn1
Bus release
R0 G0
R1 S G1
R2 y G2
. n . . Daisy chain of devices
. . Arbiter .
. c . .
Device Device Device Device
Bus A B C D
Bus release grant
Bus request
N Microcontroller
W Ground with internal
+5 V DC A/D converter
Contact E
point S Pin x of port y
1 2 USB B
Device side Hub Hub
4 3
Device
Hub Device
Pin 1: 5V DC Pin 2: Data
Pin 4: Ground Pin 3: Data Single product
Device Device with hub & device
IntAck
S IntDisable
IntReq y
n S Q S Q
c IntAlert
FF FF
R Q R Q
Signals
Signals Interrupt Interrupt from/to
from/to acknowledge mask CPU
devices
IntEnable
Clock
IntAck
IntMask
IntAlert
IncrPC
Old
0 /
PC 30
1 / (PC) 31:28| jta
NextPC 0 / 30
/
30 2 / (rs) 31:2
30 1 30
3 / SysCallAddr
30
/ IntHandlerAddr
30
IntAlert PCSrc
Context
switch
Talkingontelephone
Sync
Sync
Bubble
Function units