Dma
Dma
system memory (RAM) independently of the central processing unit (CPU). This can greatly improve
the efficiency of data transfers and overall system performance.
1. DMA Controller: This is a dedicated hardware component that manages the data transfer
between the I/O device and memory.
2. Memory: The main memory where data is read from or written to.
3. I/O Device: Any device that requires data transfer, such as a disk drive, sound card, or
network card.
4. CPU: The central processing unit that initiates the DMA transfer but is not involved in the
actual data transfer.
1. CPU Initialization: The CPU sets up the DMA controller with the source address, destination
address, and the number of bytes to transfer.
2. DMA Request: The I/O device sends a request to the DMA controller to start the data
transfer.
3. DMA Acknowledgment: The DMA controller acknowledges the request and takes control of
the system bus.
4. Data Transfer: The DMA controller transfers the data directly between the I/O device and
memory without CPU intervention.
5. Completion Signal: Once the transfer is complete, the DMA controller sends an interrupt to
the CPU to signal that the operation is finished.
Advantages of DMA:
• Faster Data Transfers: Data can be transferred in parallel with CPU operations.
• Reduced CPU Load: The CPU does not have to manage every byte transfer.
Disadvantages of DMA:
• Bus Contention: The DMA controller can create contention on the system bus, potentially
slowing down other operations.
DMA is a crucial technique in computer architecture, enabling efficient data handling between
devices and memory without burdening the CPU.