GATE / CS ARCHIVE

SIMILAR QUESTIONS / COMPUTER ORGANIZATION & ARCHITECTURE

Convert stolen CPU cycles to DMA bit rate

2 questions solved the same way, newest first. Back to Computer Organization & Architecture

How these are solved

Multiply CPU cycles/second by stolen fraction and bits transferred per cycle. The first uses one eight-bit character, the second eight bytes; convert bytes to bits before comparing choices.

1 mark · MCQ
Report issue

Asked again GATE 2021 Set 2, Q20 (different numbers)

Convert DMA stolen cycles to bit rate

Input/Output, DMA & Interrupts

Question 11, GATE 2024: A 4 MHz processor gives 1% of its cycles to a cycle-stealing DMA controller. Each stolen cycle transfers 8 bytes to memory. Find the rate in bits/s. A 256000; B 3200; C 2560000; D 32000.
Tap to enlarge
Your answer
Answer & solution

Official answer: C

Approach: Keep the units in each multiplication: cycles/second × stolen fraction × bytes/cycle × bits/byte.

1. Derivation. DMA receives 0.01×4×10⁶=40000 processor cycles per second. Each transfers 8 bytes=64 bits, so the rate is 40000×64=2560000 bits/s, option C. The percentage applies to cycles, and the requested unit is bits rather than bytes.

2. Explanation and checks. One MHz means one million cycles per second, so the available total is 4000000 cycles/s. One percent is 0.01, not 0.1. The DMA transfers 320000 bytes/s; multiplying this intermediate result by eight gives the requested 2560000 bits/s. No additional device or memory bottleneck is specified, so the stipulated eight-byte-per-cycle transfer is used directly rather than introducing an extra latency.

Original paper, page 9 · Answer key

1 mark · NAT
Report issue

Asked again GATE 2024 Set 2, Q11 (different numbers)

Input/Output, DMA & Interrupts

Question 20, GATE 2021: DMA cycle stealing moves one 8-bit character per stolen CPU cycle. CPU is 2MHz and 0.5% of cycles are stolen at regular intervals. Find device data rate in bits/s.
Tap to enlarge
Answer & solution

Official answer: 80000

DMA uses 0.005·2, 000, 000=10, 000 CPU cycles per second. Each transfers 8 bits, giving 80, 000 bits per second.

Convert percentage before multiplication: 0.5%=0.005. A 2MHz clock supplies two million cycles each second, so stolen cycles transfer 10000 characters/s. Multiplying by 8 converts to bits/s; 10000 is the byte rate, not the requested bit rate.

Original paper, page 65 · Answer key