Direct Memory Access (DMA) in
COA
Computer Organization and
Architecture
Introduction to DMA
• • Direct Memory Access (DMA) allows devices
to transfer data directly to/from memory.
• • Reduces CPU involvement for data transfer.
• • Improves system performance by enabling
parallel processing.
How DMA Works
• 1. CPU initializes the DMA controller.
• 2. DMA controller handles data transfer
between memory and I/O devices.
• 3. Once completed, the DMA controller
interrupts the CPU.
Components of DMA
• • DMA Controller: Manages data transfers.
• • Memory: Stores data to be transferred.
• • I/O Device: Source or destination of data
transfer.
• • Interrupt: Signals CPU after transfer
completion.
Types of DMA Transfer
• • Burst Mode: Transfers a block of data
continuously.
• • Cycle Stealing Mode: DMA controller pauses
CPU periodically.
• • Transparent Mode: DMA works only when
the CPU is idle.
Advantages and Disadvantages
• Advantages:
• • Reduces CPU load.
• • Enables faster data transfer.
• Disadvantages:
• • Increases hardware complexity.
• • Requires careful synchronization.