Notes
Direct Memory Access (DMA)
Content of the notes (1)
Page 1
The CPU can request data from an I/O controller one byte at a time, but doing so wastes the CPU's time.
We assume that the CPU accesses all devices and memory via a single system bus that connects the CPU, the memory, and the I/O devices.
The DMA controller has access to the system bus independent of the CPU.
It contains several registers that can be written and read by the CPU. These include memory address register, a byte count register, and one or more control registers.
Control register specify the I/O port to use, the direction of the transform (read or write), the transfer unit (byte or word) and the number of bytes to transfer in one burst.
Many buses can operate in two modes;
word-at-a-time
block
Cycle stealing : In the former mode, the operation is: the DMA controller requests the transfer of one word and gets it. If the CPU also wants the bus, it has to wait.
Burst mode : In block mode, the DMA controller tells the device to acquire the bus, issue a series of transfers, then release the bus.
Information
- Description
- 0 Operating Systems (Input/Output) Note on Direct Memory Access (DMA), created by Ahmad Abdelwahed on 27/06/2015.
- Created by
- Ahmad Abdelwahed · Jun 2015
- Updated
- Feb 19, 2016
- Views
- 26
- Tags
- Rating