CH08 COA11e
CH08 COA11e
CH08 COA11e
Chapter 8
Input/Output
Processor communication
• Involves command decoding, data, status reporting, address recognition
Device communication
• Involves commands, status information, and data
Data buffering
• Performs the needed buffering operation to balance device and memory speeds
Error detection
• Detects and reports transmission errors
• There are four types of I/O commands that an I/O module may
receive when it is addressed by a processor:
1) Control
– used to activate a peripheral and tell it what to do
2) Test
– used to test various status conditions associated with an I/O module and its
peripherals
3) Read
– causes the I/O module to obtain an item of data from the peripheral and place it in an
internal buffer
4) Write
– causes the I/O module to take an item of data from the data bus and subsequently
transmit that data item to the peripheral
Each I/O device connected through I/O modules is given a unique identifier or address(Mỗi thiết bị
I/O được kết nối thông qua các mô-đun I/O sẽ được gán một định danh hoặc địa chỉ duy
nhất.)
There is a single address space for memory locations and A single read line and a single write line are needed on the
Thus each I/O module must interpret the address I/O devices(có một không gian địa chỉ duy nhất cho các vị bus(Trên bus, chỉ cần sử dụng một dòng đọc và một dòng
lines to determine if the command is for itself(Do trí bộ nhớ và các thiết bị I/O.) ghi duy nhất.)
đó, mỗi mô-đun I/O phải giải thích các dòng địa
chỉ để xác định xem lệnh có dành cho nó hay
không.)
The I/O module will then interrupt the processor to request service when
it is ready to exchange data with the processor(sau đó, mudule I/O sễ
ngắt bộ xử lý để yêu cầu dịch vụ khi nó sẵn sàng để trao đổi dữ liệu với
bộ xử lý)
The processor executes the data transfer and resumes its former
processing(bộ xử lý thực hiện việc truyền dữ liệu và tiếp tục xử lý công
việc trước đây)
E/D = enable/disable
TC = terminal count
Copyright © 2022 Pearson Education, Ltd. All Rights Reserved
Direct Cache Access (DCA)
The lowest, or link, level protocol is typically Ethernet, so that each arriving and departing block of data consists
of an Ethernet packet containing as payload the higher-level protocol packet
The higher-level protocols are usually the Internet Protocol (IP), operating on top of Ethernet and the
Transmission Control Protocol (TCP), operating on top of IP
The Ethernet payload consists of a block of data with a TCP header and an IP header
For outgoing data, Ethernet packets are formed in a peripheral component, such as in I/O controller or network
interface controller (NIC)
For incoming traffic, the I/O controller strips off the Ethernet information and delivers the TCP/IP packet to the host CPU
Incoming • Outgoing
• Packet arrives
• Packet transfer requested
• DMA
• Packet created
• NIC interrupts host
• Output operation invoked
• Retrieve descriptors and
headers • DMA transfer
• Cache miss occurs • NIC signals completion
• Header is processed • Driver frees buffer
• Payload transferred
Much more substantial gains can be realized by avoiding the system buffer in main
memory altogether
up to 64k
chann els p er
s ubchann el s et
Copyright © 2022 Pearson Education, Ltd. All Rights Reserved
Figure 8.20
IBM z13 I/O System Structure