12a OSK-Organisasi Input Output
12a OSK-Organisasi Input Output
12a OSK-Organisasi Input Output
Priyanto
priyanto@uny.ac.id
Jurusan PTEI
Fakultas Teknik
Universitas Negeri Yogyakarta
2021
Organisasi
Input/Output
Priyanto (2021)
• Komponen IO
• Dua macam pengalamatan IO
• Tiga teknik IO
Priyanto (2021)
RWM Memori
Internal
CPU Input Output IO controller
IO devices
Storage
Input Devices Output Devices Memori Eksternal
•IO devices
• Berkomunikasi dengan dunia luar
• Menyimpan data
•IO controller
• Bertindak sebagai antarmuka antara bus sistem dan perangkat IO
• IO controller memiliki tiga tipe register: data, command, dan
status
•IO software 🡪 Program yang mengendalikan IO controler
Priyanto (2021)
•I/O Software
• Interrupt Handlers, Device Driver, Device-Independent
Software, User-Space I/O Software
Priyanto (2021)
Memory Mapped
Dua
Macam IO Mapped
Pengalamatan IO Organisasi Sistem Komputer
Priyanto (2021)
Memory Memory
1023
Input Output
0 0 0
10239
Cadangan
5120
5119
Input Output
4096
4095
0
Priyanto (2021)
A2 A1 A0 Dec
0 0 0 0
0 0 1 1
0 1 0 2
0 1 1 3
1 0 0 4
1 0 1 5
Organisasi Sistem Komputer
Priyanto (2021)
20
Priyanto (2021)
Data
Address
Write
Read
W R W R R W R W R W
Memory CPU IO Port 1 IO Port 2 IO Port 3
Data
Address
M Write IO Write
M Read IO Read
W R MR MW IOW R W R W R W
Memory CPU IOR IO Port 1 IO Port 2 IO Port 3
• M Write
Memiliki 4 instruksi • M Read IO Device 1 IO Device 2
untuk memori dan • IO Write
IO • IO Read ! Perhatikan Bus Read dan
Write
23
Programmed IO
Mulai
Baca Status
Tidak
Divais Siap?
Y
a
Layani Divais
Priyanto (2021)
3
Teknik IO
Organisasi Sistem Komputer
Organisasi Sistem Komputer
Priyanto (2021)
40
Programmed IO
Organisasi Sistem Komputer
Priyanto (2021)
41
Interrupt Driven
Organisasi Sistem Komputer
Priyanto (2021)
42
DMA
Priyanto
priyanto@uny.ac.id