DOC PREVIEW
SJSU CS 147 - Direct Memory Access

This preview shows page 1-2-24-25 out of 25 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 25 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 25 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 25 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 25 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 25 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

DIRECT MEMORY ACCESSOVERVIEWDirect Memory AccessComputer System with DMAPowerPoint PresentationSlide 6Implementing DMA in a Computer SystemData Transfer using DMA ControllerInternal ConfigurationInternal Configuration of DMA ControllerProcess of DMA TransferSlide 13DMA Transfer ModesSlide 15Slide 16Slide 17Slide 18Modification of the CPU to work with DMAHardare Implementation of BGSlide 21Modified State Diagram To Accommodate BR and BGSlide 23Slide 24SummaryDIRECT MEMORY DIRECT MEMORY ACCESSACCESSCS 147CS 147Thursday July 5,2001Thursday July 5,2001SEEMA RAISEEMA RAIOVERVIEW OVERVIEW IntroductionIntroductionImplementing DMA in a computer systemImplementing DMA in a computer systemData transfer using DMA controllerData transfer using DMA controllerInternal configuration of a DMA controllerInternal configuration of a DMA controllerProcess of DMA transferProcess of DMA transferDMA transfer modesDMA transfer modesModification of the CPU to work with DMAModification of the CPU to work with DMASummarySummaryDirect Memory AccessDirect Memory AccessIntroductionIntroductionAn important aspect governing the An important aspect governing the Computer System performance is the Computer System performance is the transfer of data between memory and I/O transfer of data between memory and I/O devices.devices.The operation involves loading programs or The operation involves loading programs or data files from disk into memory, saving file data files from disk into memory, saving file on disk, and accessing virtual memory on disk, and accessing virtual memory pages on any secondary storage medium.pages on any secondary storage medium.contcontComputer System with Computer System with DMADMAConsider a typical system consisting of a CPU Consider a typical system consisting of a CPU ,memory and one or more input/output ,memory and one or more input/output devices as shown in fig. Assume one of the devices as shown in fig. Assume one of the I/O devices is a disk drive and that the I/O devices is a disk drive and that the computer must load a program from this computer must load a program from this drive into memory.drive into memory.The CPU would read the first byte of the The CPU would read the first byte of the program and then write that byte to memory. program and then write that byte to memory. Then it would do the same for the second Then it would do the same for the second byte, until it had loaded the entire program byte, until it had loaded the entire program into memory. into memory. contcontThis process proves to be inefficient. This process proves to be inefficient. Loading data into, and then writing data out Loading data into, and then writing data out of the CPU significantly slows down the of the CPU significantly slows down the transfer. The CPU does not modify the data transfer. The CPU does not modify the data at all, so it only serves as an additional stop at all, so it only serves as an additional stop for data on the way to it’s final destinaion.for data on the way to it’s final destinaion.The process would be much quicker if we The process would be much quicker if we could bypass the CPU & transfer data could bypass the CPU & transfer data directly from the I/O device to memory.directly from the I/O device to memory.Direct Memory Access does exactly that.Direct Memory Access does exactly that.Implementing DMA in a Implementing DMA in a Computer SystemComputer SystemA DMA controller implements direct memory A DMA controller implements direct memory access in a computer system.access in a computer system.It connects directly to the I/O device at one It connects directly to the I/O device at one end and to the system buses at the other end and to the system buses at the other end. It also interacts with the CPU, both via end. It also interacts with the CPU, both via the system buses and two new direct the system buses and two new direct connections.connections. It is sometimes referred to as a channel. In It is sometimes referred to as a channel. In an alternate configuration, the DMA an alternate configuration, the DMA controller may be incorporated directly into controller may be incorporated directly into the I/O device.the I/O device.Data Transfer using DMA Data Transfer using DMA ControllerControllerTo transfer data from an I/O device to To transfer data from an I/O device to memory, the DMA controller first sends a Bus memory, the DMA controller first sends a Bus Request to the CPU by setting BR to 1. When Request to the CPU by setting BR to 1. When it is ready to grant this request, the CPU sets it is ready to grant this request, the CPU sets it’s Bus grant signal, BG to 1.it’s Bus grant signal, BG to 1.The CPU also tri-states it’s address,data, and The CPU also tri-states it’s address,data, and control lines thus truly granting control of the control lines thus truly granting control of the system buses to the DMA controller.system buses to the DMA controller.The CPU will continue to tri-state it’s outputs The CPU will continue to tri-state it’s outputs as long as BR is asserted. as long as BR is asserted. contcontInternal Internal ConfigurationConfigurationThe DMA controller includes several registers :-The DMA controller includes several registers :-•The DMA Address Register contains the memory The DMA Address Register contains the memory address to be used in the data transfer. The CPU address to be used in the data transfer. The CPU treats this signal as one or more output ports.treats this signal as one or more output ports.•The DMA Count Register, also called Word Count The DMA Count Register, also called Word Count Register, contains the no. of bytes of data to be Register, contains the no. of bytes of data to be transferred. Like the DMA address register, it too is transferred. Like the DMA address register, it too is treated as an O/P port (with a diff. Address) by the treated as an O/P port (with a diff. Address) by the CPU.CPU.•The DMA Control Register accepts commands from The DMA Control Register accepts commands from the CPU. It is also treated as an O/P port by the CPU.the CPU. It is also treated as an O/P port by the CPU.contcontAlthough not shown in this fig., Although not shown in this fig., most DMA controllers also have a most DMA controllers also have a Status Register. This


View Full Document

SJSU CS 147 - Direct Memory Access

Documents in this Course
Cache

Cache

24 pages

Memory

Memory

54 pages

Memory

Memory

70 pages

Lecture 1

Lecture 1

53 pages

Cisc

Cisc

18 pages

Quiz 1

Quiz 1

4 pages

LECTURE 2

LECTURE 2

66 pages

RISC

RISC

40 pages

LECTURE 2

LECTURE 2

66 pages

Lecture 2

Lecture 2

67 pages

Lecture1

Lecture1

53 pages

Chapter 5

Chapter 5

14 pages

Memory

Memory

27 pages

Counters

Counters

62 pages

Load more
Download Direct Memory Access
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Direct Memory Access and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Direct Memory Access 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?