OSK2014 08 Input Output
OSK2014 08 Input Output
IO controller
IO devices
Storage
I/O Software
Interrupt Handlers, Device Driver, DeviceIndependent Software, User-Space I/O Software
Important concepts
Three ways to perform I/O operations
Polling, interrupt and DMAs
Categories:
Block devices
Character devices
Copyright : Nahrstedt, Angrave, Abdelzaher
10
Cadangan
Cadangan
5120
5119
Input Output
4096
4095
Memory
Cadangan
5120
5119
4096
4095
Memory
Input Output
0
Memory Mapped
1023
Data
Address
Write
Read
Main
Memory
Memiliki 2
instruksi
sekaligus untuk
Memori dan IO
CPU
Write
Read
IO Port 1
IO Port 2
IO Device 1
IO Port 3
IO Device 2
12
Data
Address
M Write
IO Write
IO Read
M Read
Main
Memory
Memiliki 4
instruksi
untuk memori
dan IO
CPU
M Write
M Read
IO Write
IO Read
IO Port 1
IO Port 2
IO Device 1
IO Port 3
IO Device 2
13
Programmed IO
Interrupt Driven
Direct Memory Access
(DMA)
14
Mulai
Baca Status
Lakukan tugas
lain
Tidak
Periksa Status
Divais
Siap?
Ya
Layani Divais
15
16
17
18
22
23
A d d r e s s /d a ta
bus
a n d r e a d /w r ite
c o n tr o l s ig n a l
D a ta
M e m o ry
C o n tr o l
S ta tu s
P ro g ra m m e d
I/O in te r fa c e
CPU
I/O d e v ic e
(a )
A d d r e s s /d a ta
bus
a n d r e a d /w r ite
c o n tr o l s ig n a l
D a ta
C o n tr o l
S ta tu s
M e m o ry
24
P ro g ra m m e d
I/O in te r fa c e
CPU
I/O d e v ic e
(a )
A d d r e s s /d a ta
bus
a n d r e a d /w r ite
c o n tr o l s ig n a l
D a ta
C o n tr o l
M e m o ry
S ta tu s
In te r r u p t s ig n a l
CPU
P ro g ra m m e d
I/O in te r fa c e
I/O d e v ic e
(b )
A d d r e s s /d a ta
bus
a n d r e a d /w r ite
D a ta
25
CPU
I/O in te r fa c e
I/O d e v ic e
(b )
A d d r e s s /d a ta
bus
a n d r e a d /w r ite
c o n tr o l s ig n a l
D a ta
M e m o ry
C o n tr o l
S ta tu s
In te r r u p t s ig n a l
CPU
P ro g ra m m e d
I/O in te r fa c e
D M A s ig n a l
I/O d e v ic e
(c )
26
27
3 ISA
slots
5 PCI slots
Pentium CPU
6 SIMM
slots
2 DIMM
slots
Floppy disk
SCSI Small Computer Systems Interface
ESDI Enhanced Small Device Interface (mid-80s, obsolete)
PCMCIA (Personal Computer Memory Card International
Association)
SATA Serial AT Attachment
Serial/RS232C
To connect a system to a voice-grade modem
Ethernet
To connect a system to a high-speed network
39