DMA controller and data transmission method thereof
A DMA controller and data technology, applied in the direction of electrical digital data processing, instruments, etc., can solve problems such as data loss, data and Cache data inconsistency, reduce DMA transmission performance, etc., and achieve the effect of improving performance
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0030] figure 1 It is a schematic diagram of the structure of the data transmission system between the DMA controller and the CPU. Such as figure 1 As shown, the present invention provides a direct memory access DMA controller, and the DMA controller includes:
[0031] Detecting the descriptor state unit, for when the DMA controller transmits data to the CPU or receives data from the CPU, detects the value of the state indicator bit Done of the descriptor corresponding to the data, and the DMA controller is based on the detection result to The data is processed; wherein, the value of the status indication bit Done is 0 or 1, Done=1 indicates that the descriptor is valid, and Done=0 indicates that the descriptor is idle.
[0032]The DMA controller also includes a read-write main memory data unit. When the DMA controller transmits data to the CPU, the DMA controller judges whether there is a descriptor with a status indication bit Done=0, if not, Then terminate the data trans...
Embodiment 2
[0043] Figure 4 It is a flow chart of the method when the DMA controller performs data transmission. exist Figure 4 In, when the DMA controller transmits data to the CPU or receives data from the CPU, the detection descriptor state unit in the DMA controller detects the value of the state indication bit Done of the descriptor corresponding to the data, and the DMA controller The data is processed based on the detection result; wherein, the value of the status indication bit Done is 0 or 1, Done=1 indicates that the descriptor is valid, and Done=0 indicates that the descriptor is idle.
[0044] Preferably, when the DMA controller transmits data to the CPU, the DMA controller judges whether there is a descriptor with a status indicating bit Done=0, if not, then terminates the data transmission; if it exists, then the The read-write main memory data unit in the DMA controller writes data to the data address of the main memory corresponding to the descriptor through the contro...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


