Organisasi Sistem Komputer: Materi VIII (Input Output)
Organisasi Sistem Komputer: Materi VIII (Input Output)
Komputer
Address
Lines Input External Data
Output Device
Data Logic Status
Interface
Lines
Logic Control
I/O Module Decisions
Hide or reveal device properties to CPU
Support multiple or single device
Control device functions or leave for CPU
Also O/S decisions
e.g. Unix treats everything it can as a file
Input Output Techniques
Programmed
Interrupt driven
Direct Memory Access (DMA)
Programmed I/O
CPU has direct control over I/O
Sensing status
Read/write commands
Transferring data
CPU waits for I/O module to complete
operation
Wastes CPU time
Programmed I/O - detail
CPU requests I/O operation
I/O module performs operation
I/O module sets status bits
CPU checks status bits periodically
I/O module does not inform CPU directly
I/O module does not interrupt CPU
CPU may wait or come back later
I/O Commands
CPU issues address
Identifies module (& device if >1 per module)
CPU issues command
Control - telling module what to do
e.g. spin up disk
Read/Write
Module transfers data via buffer from/to device
Addressing I/O Devices
Reset
Command,
Bus Data,
free Arbitration (Re)Selection
Status,
Message
SCSI Timing Diagram
Configuring SCSI
Bus must be terminated at each end
Usually one end is host adapter
Plug in terminator or switch(es)
SCSI Id must be set
Jumpers or switches
Unique on chain
0 (zero) for boot device
Higher number is higher priority in arbitration
IEEE 1394 FireWire
High performance serial bus
Fast
Low cost
Easy to implement
Also being used in digital cameras, VCRs
and TV
FireWire Configuration
Daisy chain
Up to 63 devices on single port
Really 64 of which one is the interface itself
Up to 1022 buses can be connected with bridges
Automatic configuration
No bus terminators
May be tree structure
FireWire 3 Layer Stack
Physical
Transmission medium, electrical and signaling
characteristics
Link
Transmission of data in packets
Transaction
Request-response protocol
FireWire - Physical Layer
Data rates from 25 to 400Mbps
Two forms of arbitration
Based on tree structure
Root acts as arbiter
First come first served
Natural priority controls simultaneous requests
i.e. who is nearest to root
Fair arbitration
Urgent arbitration
FireWire - Link Layer
Two transmission types
Asynchronous
Variable amount of data and several bytes of transaction data
transferred as a packet
To explicit address
Acknowledgement returned
Isochronous
Variable amount of data in sequence of fixed size packets at
regular intervals
Simplified addressing
No acknowledgement