Skip to main content

GATE CSE 2024CO & Architecture › I/O Handling, Interrupts & DMAVerified

GATE CSE 2024 PYQ: ​​​Consider a computer with a 4 M H z 4 \mathrm{MHz} 4 MHz processor. Its DMA \text{DMA} DMA controller can…

​​​Consider a computer with a 4MHz4 \mathrm{MHz} processor. Its DMA\text{DMA} controller can transfer 8 bytes in 1 cycle from a device to main memory through cycle stealing at regular intervals. Which one of the following is the data transfer rate (in bits per second) of the DMA\text{DMA} controller if 1%1 \% of the processor cycles are used for DMA\text{DMA}?

  1. A
    2,56,000
  2. B
    3,200
  3. C
    25,60,000
    Correct answer
  4. D
    32,000

Answer

(C) 25 , 60 , 000 25,60,000 25 , 60 , 000

Approach

The DMA controller steals 1% of the processor's clock cycles, and each stolen cycle moves 8 bytes. Compute the number of cycles stolen per second from the 4 MHz clock, multiply by 8 bytes per cycle to get bytes per second, then convert to bits per second.

The DMA steals 1% of 4 MHz cycles, i.e., 40,000 cycles/s. Each cycle transfers 8 bytes, giving 320,000 bytes/s. Converting to bits per second yields 2,560,000 bits/s, which is option C.

Reviewed by GateIQ Editorial Team: IIT & IISc Alumni.