SlideShare a Scribd company logo
1 of 11
Computer organization PRA
Direct Memory Access
21P61A1233
D.SAI TEJA IT-A
Introduction of
Direct Memory Access (DMA)
Why is DMA?
 It is wasteful to feed data into a controller register 1 bytes at
a time. (PIO)
 The DMA unit is word.
 In the high loading environment, a system with DMA has
better improvement.
DMA transfer
5. DMA controller transfers bytes
to buffer X, increasing memory
address and decreasing C until C=0
6. when C=0, DMA interrupts CPU
to signal transfer completion
PCI bus
CPU memory bus Memory buffer
DMA/bus/
interrupt
controller
cache
CPU
1. device driver told to transfer disk
data to buffer at address X
2. device driver tells disk controller to
transfer C bytes from disk to buffer at
address X
3. disk controller initiates
DMA transfer
4. disk controller sends each
byte to DMA controller
IDE disk
controller
disk
disk
disk
disk
X
DMA Progress
 To initiate a DMA transfer, the host writes a DMA command
into memory:
 A pointer to the source of a transfer
 A count of the number of bytes to be transferred
 ……..
 The CPU writes the address of the DMA command block to
the DMA controller.
DMA Progress (cont.)
 The DMA controller proceeds to operate the memory bus
directly without CPU help.
 Handshaking exists between DMA controller and device
controller.
 When the entire transfer is finished, the DMA controller will
interrupts the CPU.
Handshaking
 DMA-request and DMA_acknowledge
 When a word of data is available, the device controller places a
signal on the DMA-request wire.
 The signal causes the DMA controller to seize the memory bus,
 To place the desired address on the memory-address wire
 To place a signal on the DMA-acknowledge wire
Handshaking (cont.)
 When the device controller receives the DMA-acknowledge
signal,
 it transfer the word of data to memory
 and remove the DMA_request signal.
THANK YOU

More Related Content

Similar to Direct Memory Access (DMA) PRA.1233.pptx

discuss the drawbacks of programmed and interrupt driven io and des.pdf
discuss the drawbacks of programmed and interrupt driven io and des.pdfdiscuss the drawbacks of programmed and interrupt driven io and des.pdf
discuss the drawbacks of programmed and interrupt driven io and des.pdf
info998421
 
Dma and dma controller 8237
Dma and dma controller 8237Dma and dma controller 8237
Dma and dma controller 8237
Ashwini Awatare
 
Chp3 designing bus system, memory & io copy
Chp3 designing bus system, memory & io   copyChp3 designing bus system, memory & io   copy
Chp3 designing bus system, memory & io copy
mkazree
 
memeoryorganization PPT for organization of memories
memeoryorganization PPT for organization of memoriesmemeoryorganization PPT for organization of memories
memeoryorganization PPT for organization of memories
GauravDaware2
 

Similar to Direct Memory Access (DMA) PRA.1233.pptx (20)

Lecture 39
Lecture 39Lecture 39
Lecture 39
 
DMA_document__1696148675.pdf
DMA_document__1696148675.pdfDMA_document__1696148675.pdf
DMA_document__1696148675.pdf
 
discuss the drawbacks of programmed and interrupt driven io and des.pdf
discuss the drawbacks of programmed and interrupt driven io and des.pdfdiscuss the drawbacks of programmed and interrupt driven io and des.pdf
discuss the drawbacks of programmed and interrupt driven io and des.pdf
 
DMA operation
DMA operationDMA operation
DMA operation
 
Dma and dma controller 8237
Dma and dma controller 8237Dma and dma controller 8237
Dma and dma controller 8237
 
Cpi unit 01
Cpi unit 01Cpi unit 01
Cpi unit 01
 
Dma
DmaDma
Dma
 
Computer architecture
Computer architectureComputer architecture
Computer architecture
 
I/O Management
I/O ManagementI/O Management
I/O Management
 
Direct Memory Access ppt
Direct Memory Access pptDirect Memory Access ppt
Direct Memory Access ppt
 
ch -6 IO.pptx
ch -6 IO.pptxch -6 IO.pptx
ch -6 IO.pptx
 
Direct access memory
Direct access memoryDirect access memory
Direct access memory
 
Direct memory access (dma)
Direct memory access (dma)Direct memory access (dma)
Direct memory access (dma)
 
Itc lec 3 Ip cycle , system unit, interface
Itc lec 3 Ip cycle , system unit, interfaceItc lec 3 Ip cycle , system unit, interface
Itc lec 3 Ip cycle , system unit, interface
 
Chp3 designing bus system, memory & io copy
Chp3 designing bus system, memory & io   copyChp3 designing bus system, memory & io   copy
Chp3 designing bus system, memory & io copy
 
memeoryorganization PPT for organization of memories
memeoryorganization PPT for organization of memoriesmemeoryorganization PPT for organization of memories
memeoryorganization PPT for organization of memories
 
ppppptttt.pdf
ppppptttt.pdfppppptttt.pdf
ppppptttt.pdf
 
PCT SLIDE3
PCT SLIDE3PCT SLIDE3
PCT SLIDE3
 
A+ certification (Core hardware) Pc Maintenance
 A+ certification (Core hardware) Pc Maintenance  A+ certification (Core hardware) Pc Maintenance
A+ certification (Core hardware) Pc Maintenance
 
Power point presentation3
Power point presentation3Power point presentation3
Power point presentation3
 

Recently uploaded

Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
Neometrix_Engineering_Pvt_Ltd
 
Digital Communication Essentials: DPCM, DM, and ADM .pptx
Digital Communication Essentials: DPCM, DM, and ADM .pptxDigital Communication Essentials: DPCM, DM, and ADM .pptx
Digital Communication Essentials: DPCM, DM, and ADM .pptx
pritamlangde
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Kandungan 087776558899
 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power Play
Epec Engineered Technologies
 

Recently uploaded (20)

Computer Graphics Introduction To Curves
Computer Graphics Introduction To CurvesComputer Graphics Introduction To Curves
Computer Graphics Introduction To Curves
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
 
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptxHOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
 
Introduction to Data Visualization,Matplotlib.pdf
Introduction to Data Visualization,Matplotlib.pdfIntroduction to Data Visualization,Matplotlib.pdf
Introduction to Data Visualization,Matplotlib.pdf
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the start
 
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
 
Digital Communication Essentials: DPCM, DM, and ADM .pptx
Digital Communication Essentials: DPCM, DM, and ADM .pptxDigital Communication Essentials: DPCM, DM, and ADM .pptx
Digital Communication Essentials: DPCM, DM, and ADM .pptx
 
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
COST-EFFETIVE  and Energy Efficient BUILDINGS ptxCOST-EFFETIVE  and Energy Efficient BUILDINGS ptx
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
 
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
Basic Electronics for diploma students as per technical education Kerala Syll...
Basic Electronics for diploma students as per technical education Kerala Syll...Basic Electronics for diploma students as per technical education Kerala Syll...
Basic Electronics for diploma students as per technical education Kerala Syll...
 
💚Trustworthy Call Girls Pune Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top...
💚Trustworthy Call Girls Pune Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top...💚Trustworthy Call Girls Pune Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top...
💚Trustworthy Call Girls Pune Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top...
 
DC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationDC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equation
 
Linux Systems Programming: Inter Process Communication (IPC) using Pipes
Linux Systems Programming: Inter Process Communication (IPC) using PipesLinux Systems Programming: Inter Process Communication (IPC) using Pipes
Linux Systems Programming: Inter Process Communication (IPC) using Pipes
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
 
Introduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaIntroduction to Serverless with AWS Lambda
Introduction to Serverless with AWS Lambda
 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power Play
 
School management system project Report.pdf
School management system project Report.pdfSchool management system project Report.pdf
School management system project Report.pdf
 
AIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech studentsAIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech students
 

Direct Memory Access (DMA) PRA.1233.pptx

  • 1. Computer organization PRA Direct Memory Access 21P61A1233 D.SAI TEJA IT-A
  • 3. Why is DMA?  It is wasteful to feed data into a controller register 1 bytes at a time. (PIO)  The DMA unit is word.  In the high loading environment, a system with DMA has better improvement.
  • 4. DMA transfer 5. DMA controller transfers bytes to buffer X, increasing memory address and decreasing C until C=0 6. when C=0, DMA interrupts CPU to signal transfer completion PCI bus CPU memory bus Memory buffer DMA/bus/ interrupt controller cache CPU 1. device driver told to transfer disk data to buffer at address X 2. device driver tells disk controller to transfer C bytes from disk to buffer at address X 3. disk controller initiates DMA transfer 4. disk controller sends each byte to DMA controller IDE disk controller disk disk disk disk X
  • 5.
  • 6. DMA Progress  To initiate a DMA transfer, the host writes a DMA command into memory:  A pointer to the source of a transfer  A count of the number of bytes to be transferred  ……..  The CPU writes the address of the DMA command block to the DMA controller.
  • 7. DMA Progress (cont.)  The DMA controller proceeds to operate the memory bus directly without CPU help.  Handshaking exists between DMA controller and device controller.  When the entire transfer is finished, the DMA controller will interrupts the CPU.
  • 8.
  • 9. Handshaking  DMA-request and DMA_acknowledge  When a word of data is available, the device controller places a signal on the DMA-request wire.  The signal causes the DMA controller to seize the memory bus,  To place the desired address on the memory-address wire  To place a signal on the DMA-acknowledge wire
  • 10. Handshaking (cont.)  When the device controller receives the DMA-acknowledge signal,  it transfer the word of data to memory  and remove the DMA_request signal.