GATE / CS ARCHIVE

GATE CSE 2021 SET 2 / QUESTION 20

GATE CSE 2021 Set 2 Q20

Computer Organization & Architecture · Input/Output, DMA & Interrupts · Full GATE CSE 2021 Set 2 paper

GATE 2021 Set 2, Q20 1 mark · NAT
Report issue

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