Professional Documents
Culture Documents
Chapter 07
1
Basic Computer Networks
INPUT/OUTPUT
NLU-FIT
KEY POINTS
The computer system’s I/O architecture is its
interface to the outside world.
2
1
05-May-22
properly.
• Peripherals often use different data formats and word lengths
than the computer to which they are attached.
2
05-May-22
3
05-May-22
Modem
Network Interface Card (NIC)
4
05-May-22
5
05-May-22
6
05-May-22
7
05-May-22
following:
• Command decoding: The I/O module
Basic Computer Networks
8
05-May-22
9
05-May-22
buffering.
• Whereas the transfer rate into and out of main
Basic Computer Networks
10
05-May-22
11
05-May-22
buffered in one or more data registers.
There may also be one or more status registers
that provide current status information.
A status register may also function as a control
register, to accept detailed control information
from the processor.
The logic within the module interacts with the
NLU-FIT
12
05-May-22
processor.
An I/O module that is quite primitive and
requires detailed control is usually referred
to as an I/O controller or device
controller. I/O controllers are commonly
seen on microcomputers, whereas I/O
NLU-FIT
operations.
With programmed I/O
• Data are exchanged between the processor and the
Basic Computer Networks
I/O module.
• The processor executes a program that gives it
direct control of the I/O operation, including sensing
device status, sending a read or write command, and
transferring the data.
• When the processor issues a command to the I/O
module, it must wait until the I/O operation is
complete.
NLU-FIT
13
05-May-22
14
05-May-22
15
05-May-22
16
05-May-22
17
05-May-22
18
05-May-22
system bus.
The DMA module Figure 7.11 is capable of
mimicking the processor and, indeed, of taking
Basic Computer Networks
operation temporarily.
19
05-May-22
20
05-May-22
a variety of ways.
Some possibilities are shown in Figure
Basic Computer Networks
7.13.
• In the first example
all modules share the same system bus.
The DMA module, acting as a surrogate processor,
uses programmed I/O to exchange data between
memory and an I/O module through the DMA
This configuration, while it may be inexpensive, is
clearly inefficient. As with processor-controlled
NLU-FIT
21
05-May-22
c),
• The system bus that the DMA module shares
Basic Computer Networks
22