Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method for controlling discontinuous physical addresses of DMA access and DMA controller

A DMA controller and physical address technology, applied in the field of communication, can solve problems such as DMA controller read and write failures, achieve the effect of increasing flexibility and reliability, and avoiding read and write failures

Active Publication Date: 2011-04-13
NEW H3C TECH CO LTD
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0010] The invention provides a method and a DMA controller for controlling DMA to access discontinuous physical addresses, so as to solve the problem that in a system with continuous virtual addresses and discontinuous physical memory addresses, DMA moves data across physical storage block boundaries, causing the DMA controller to read and write failure problem

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for controlling discontinuous physical addresses of DMA access and DMA controller
  • Method for controlling discontinuous physical addresses of DMA access and DMA controller
  • Method for controlling discontinuous physical addresses of DMA access and DMA controller

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0037] The core idea of ​​the present invention is: by setting the physical storage block boundary register and the comparison module, the DMA controller judges whether the physical storage block exceeds the boundary after each data transmission, and if so, selects other physical storage blocks for data transmission. Therefore, the present invention avoids reading and writing failures caused by the DMA controller accessing a physical address without a physical storage block when the physical addresses of the memory are discontinuous.

[0038] The following description is for the case where the storage is a physical memory, and it is also applicable to other storages with virtual addresses and physical addresses.

[0039] The present invention provides a method for controlling DMA access to discontinuous physical addresses, such as image 3 shown, including the following steps:

[0040] Step 301, configure physical address boundary registers for two adjacent physical storage b...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a method for controlling discontinuous physical addresses of DMA access. The method comprises the following steps that: physical address boundary registers are configured for two adjacent physical memory blocks, wherein each physical address boundary register corresponds to a hole between the two adjacent physical memory blocks, and is stored with an end physical address of the previous physical memory block and a start physical address of the next physical memory block respectively; and the DMA controller updates the memory address thereof according to the accessed physical address, and compares the updated memory address with the end physical address of the physical memory block, if the updated memory address and the end physical address of the physical memory block are same, the updated memory address is transmitted to the previous physical memory block boundary, the memory address in the DMA controller is updated into the start physical address of the next physical memory block, and data is continuously transmitted and compared until data transmission is completed. Therefore, the method avoids reading failures generated when the DMA controller accesses the physical address without the physical memory block under a condition that the memory physical address is not continuous.

Description

technical field [0001] The invention relates to the field of communication technology, in particular to a method for controlling DMA access to discontinuous physical addresses and a DMA controller. Background technique [0002] In order to increase the rate of data transmission, it is proposed to use DMA (Direct Memory Address, direct memory address) for data access transmission, that is, within a certain period of time, DMAC (DMA controller) replaces CPU (Centre Processor Unit, The central processing unit) obtains the control right of the bus, and realizes the rapid transmission of a large amount of data between the memory and peripherals or different areas of the memory. DMA transfers include byte transfers and block transfers. [0003] figure 1 It is a schematic diagram of a typical DMAC. The DMA controller, CPU, memory, data port and status / control port are all connected by the bus. When transferring data from a peripheral device to the memory, the data from the input...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F13/28G06F12/06
Inventor 高瑞昌
Owner NEW H3C TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products