Question
Consider a computer system with DMA support. The DMA module is transferring one 8-bit character in one CPU cycle from a device to memory through cycle stealing at regular intervals. Consider a 2 MHz processor. If 0.5% processor cycles are used for DMA, the data transfer rate of the device is ______ bits per second.
Official answer and solution
- Official answer
- 80000
- From
- Official GATE 2021 answer key
Solution
Calculate the DMA transfer frequency from processor clock rate and percentage of stolen cycles, then multiply by bits transferred per cycle.
Given parameters:
- Processor clock frequency =
- Processor cycles stolen by DMA =
- Data transferred per stolen cycle = one 8-bit character = 8 bits
Calculate the number of CPU cycles allocated to the DMA controller per second:
Since each cycle transfers 8 bits of data, the data transfer rate is:
80000
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2021 Computer Science and Information Technology - Session 2 (CS2)
- Question
- 30 of 65, printed as CS Q.20
- Section
- Computer Science and Information Technology
Report an error in this question
GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.