The size of the data count register of a DMA controller is 16 bits. The processor needs to transfer a file of 29,154 kilobytes from disk to main memory. The memory is byte addressable. The minimum number of times the DMA controller needs to get the control of the system bus from the processor to transfer the file from the disk to main memory is ________.
A 16-bit count register lets the controller move at most $2^{16} = 65536$ bytes, which is 64 KB, each time it takes the bus. The file has $29154$ KB, so it needs $\frac{29154}{64} = 455.5$ transfers, which rounds up to 456.
More I/O Interface: Interrupt and DMA questions
GATE 2011 CS Q21– A computer receives interrupts from CPU overtemperature, mouse movement/button events,…
GATE 2011 CS Q38– An interrupt routine on a sequential nonpipelined processor initializes an address…
GATE 2015 CS (CS2) Q42– A disk rotates at 15000 RPM and transfers 50106 bytes/s. Average seek time is twice…
GATE 2021 CS (CS2) Q30– A 2 MHz processor supports cycle-stealing DMA. The DMA transfers one 8-bit character in…
GATE 2009 CS Q8– A CPU generally handles an interrupt by executing an interrupt service routine
GATE 2008 CS Q34– Which must be true for RFE (return from exception) on a general-purpose processor? I. It…