Direct Memory Access DMA - PowerPoint PPT Presentation

1 / 11
About This Presentation
Title:

Direct Memory Access DMA

Description:

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL. Direct Memory Access (DMA) ... Burst DMA controller cycle steals, takes a cycle at end of every CPU instruction ... – PowerPoint PPT presentation

Number of Views:231
Avg rating:3.0/5.0
Slides: 12
Provided by: anselmo9
Category:
Tags: dma | access | direct | memory | steals

less

Transcript and Presenter's Notes

Title: Direct Memory Access DMA


1
Direct Memory Access(DMA)
  • Anselmo Lastra

2
Thursday
  • Review
  • Cover all semester topics

3
Direct Memory Access (DMA)
  • Programmed I/O is when CPU reads/writes every
    word
  • Problem overhead is high nothing else getting
    done on CPU
  • Especially for mass-storage devices like disk
  • DMA Let device controller read/write directly
    to memory

4
Procedure
  • DMA device takes over main bus
  • Becomes bus master
  • Asserts addresses
  • Basically interfaces to memory or memory
    controller

5
How?
  • DMA device requests bus (assert BR)
  • CPU grants request (assert BG)
  • CPU takes its signals to Hi-Z

6
Transfers
  • Continuous DMA controller transfers all data
    (say a disk sector) at once
  • As many memory cycles as data
  • Burst DMA controller cycle steals, takes a
    cycle at end of every CPU instruction

7
End of DMA
  • Controller needs to inform CPU
  • De-assert BR
  • Then CPU lowers BG and proceeds

8
DMA Controller
  • Needs typical I/O signals
  • Interrupt request
  • Status of device
  • Also needs controls for DMA transfer
  • Memory address
  • Word count

9
Block Diagram
10
Typical Driver Interface
  • Set the memory address
  • Set word count
  • Assert GO (usually bit in control word)
  • DMA controller requests interrupt when transfer
    complete

11
I/O Processors
  • Some machines have even more complex controllers
  • I/O processors can be programmable
  • Now embedded processors are in many I/O devices
Write a Comment
User Comments (0)
About PowerShow.com