Direct Memory Access (DMA) is an important concept in Computer Organization. Questions often test your understanding of different DMA modes.
In this post, weβll:
- Understand DMA basics
- Learn all DMA transfer modes
- Solve an exam-level MCQ
π΅ What is DMA (Direct Memory Access)?
DMA allows devices to transfer data directly to/from memory without continuous CPU involvement.
π This improves system performance by reducing CPU workload.
π΄ Types of DMA Transfer Modes
β 1. Burst Mode (Block Transfer Mode)
π§ Key Idea:
- Entire block of data is transferred at once
- CPU is stopped (put on hold)
β Features:
- Fastest transfer
- CPU remains idle during transfer
- DMA gets full control of system bus
π Used when large data blocks need to be transferred quickly
β 2. Cycle Stealing Mode
π§ Key Idea:
- DMA transfers one word (or byte) at a time
- CPU is paused briefly
β Features:
- CPU and DMA share system bus
- After each transfer, CPU gets control back
π βStealingβ cycles from CPU β hence the name
β 3. Transparent Mode
π§ Key Idea:
- DMA transfers data only when CPU is idle
β Features:
- CPU is never stopped
- Slowest data transfer
- Most efficient for overall system performance
π₯ Given MCQ
Statements:
(i) In burst mode DMA, CPU can be put on hold and full block is transferred
(ii) In transparent mode, DMA transfers only when CPU is not using system bus
(iii) In cycle stealing mode, only one word is transferred per request
π§ Step-by-Step Evaluation
β Statement (i): Burst Mode
β TRUE
- CPU is completely halted
- Full block transfer happens
β Statement (ii): Transparent Mode
β TRUE
- DMA uses bus only when CPU is idle
β Statement (iii): Cycle Stealing
β TRUE
- One word/byte per request
- Then CPU regains control
π― Final Answer
π All are TRUE
β‘ Exam Tricks to Remember
- Burst Mode β CPU stopped, fastest
- Cycle Stealing β One word at a time
- Transparent Mode β CPU never disturbed
π§ Quick Comparison Table
| Mode | CPU Status | Speed | Data Transfer |
|---|---|---|---|
| Burst Mode | Stopped | Fastest | Block transfer |
| Cycle Stealing | Partially stopped | Medium | One word at a time |
| Transparent Mode | Not stopped | Slowest | Only when CPU idle |
π― Conclusion
DMA modes are frequently asked in exams. Understanding how CPU and DMA share the system bus is key to solving such questions quickly.