Even with DMA, the processor must set up each transfer and handle the interrupts. A larger system hands most of its input-output work to a special processor, so that the central processor can concentrate on programs.

What Is an Input-Output Processor?

An input-output processor (IOP) is a processor with its own instruction set that is designed to handle input-output tasks. It communicates with devices, performs data format conversion and can transfer data to memory by DMA, using memory cycles. It is also called a channel. The central processor only starts the IOP and later receives its report.

Definition: Input-output processor. A processor with its own instructions, dedicated to controlling input-output devices and transferring data between them and memory without burdening the central processor.

CPU and IOP Communication

The CPU and the IOP share the memory. The CPU sends an instruction to test the IOP path and then starts the IOP, which reads its program of commands from memory. The IOP carries out the commands, transferring the data, and sends an interrupt to the CPU when it is finished or when an error occurs. The CPU then checks the status of the IOP, which is stored in memory.

Because the IOP has its own program, it can convert the code of the data, check the parity of each character and collect characters into blocks before it interrupts the CPU. These tasks would otherwise take much of the time of the CPU. A large computer may have several IOPs, each handling a group of devices, so that many transfers proceed together. In some systems the IOP also handles the interrupts of its devices, and the CPU receives only one interrupt for each completed operation.

Table 4.9: Comparison of DMA and IOP

Feature DMA controller Input-output processor
Intelligence Fixed hardware logic Own instruction set
Programs None Reads command programs
Typical use Simple block transfers Many devices, complex control
CPU load Low Lowest

Example 4.8: Sequence of an IOP operation

Problem: Arrange the steps of printing a file through an IOP in the correct order: IOP interrupts the CPU, CPU starts the IOP, IOP reads commands and sends data, CPU checks the status.

Solution:

  1. The CPU starts the IOP and points it to the command program in memory.
  2. The IOP reads the commands and sends the file data to the printer.
  3. The IOP interrupts the CPU on completion.
  4. The CPU reads the IOP status from memory.

Result: The order is: start the IOP, IOP works, IOP interrupts, CPU checks the status.

Common mistakes

  • Believing that the IOP uses the CPU for each data transfer.
  • Treating the IOP as the same as a DMA controller. The IOP has instructions of its own.
  • Forgetting that the CPU and IOP share the memory.

Key takeaways

  • An IOP is a processor dedicated to input-output.
  • It runs command programs held in memory.
  • It interrupts the CPU when its work is done.
  • It reduces the load of the CPU more than DMA alone.

Practice questions

  1. What is an input-output processor?
  2. What is another name for an IOP?
  3. How does the IOP signal the CPU that it has finished?

Answers to the practice questions

  1. A processor with its own instruction set that controls input-output devices and data transfers.
  2. A channel.
  3. By sending an interrupt.

Sources

  • Official BCA syllabus Computer Architecture, course code 25BCA401DS02, Unit IV