IO Interface: GATE CS Previous Year Questions

IO Interface · Computer Organization and Architecture

14 questions · asked in 10 of 27 years (2000–2026)

MCQ 12 · NAT 21-mark 11 · 2-mark 3

2000Questions per year2026

Questions 6–10 of 14

Q6GATE 20112 marksMCQ−0.67 if wrong
On a non-pipelined sequential processor, a program segment, which is a part of the interrupt service routine, is given to transfer 500 bytes from an I/O device to memory.

Initialize the address register
Initialize the count to 500
LOOP: Load a byte from device
Store in memory at address given by address register
Increment the address register
Decrement the count
If count != 0 go to LOOP

Assume that each statement in this program is equivalent to a machine instruction which takes one clock cycle to execute if it is a non-load/store instruction. The load-store instructions take two clock cycles to execute.

The designer of the system also has an alternate approach of using the DMA controller to implement the same transfer. The DMA controller requires 20 clock cycles for initialization and other overheads. Each DMA transfer cycle takes two clock cycles to transfer one byte of data from the device to the memory.

What is the approximate speedup when the DMA controller based design is used in place of the interrupt driven program based input-output?

Q7GATE 20082 marksMCQ−0.67 if wrong
Which of the following statements about synchronous and asynchronous I/O is NOT true?

Q8GATE 20061 markMCQ−0.33 if wrong
Which of the following DMA transfer modes and interrupt handling mechanisms will enable the highest I/O band-width?

Q9GATE 20051 markMCQ−0.33 if wrong
Consider a disk drive with the following specifications: 16 surfaces, 512 tracks/surface, 512 sectors/track, 1 KB/sector, rotation speed 3000 rpm. The disk is operated in cycle stealing mode whereby whenever one 4 byte word is ready it is sent to memory; similarly, for writing, the disk interface reads a 4 byte word from the memory in each DMA cycle. Memory cycle time is 40 nsec. The maximum percentage of time that the CPU gets blocked during DMA operation is:

Q10GATE 20051 markMCQ−0.33 if wrong
A device with data transfer rate 10 KB/sec is connected to a CPU. Data is transferred byte-wise. Let the interrupt overhead be 4 μ\musec. The byte transfer time between the device interfaces register and CPU or memory is negligible. What is the minimum performance gain of operating the device under interrupt mode over operating it under program-controlled mode?

Keep practising

Topics in Computer Organization and Architecture

All CS topics ›