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

Multi-channel DMA interactive design method based on PCIe bus

An interactive design, multi-channel technology, applied in the field of data transmission, can solve problems such as inflexibility, avoid stalls or crashes, and improve the efficiency of bus transmission

Pending Publication Date: 2022-01-18
THE 724TH RES INST OF CHINA SHIPBUILDING IND
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The purpose of the present invention is to provide a multi-channel DMA interactive design method based on the PCIe bus, to solve the problem of DMA transfer efficiency caused by CPU initiation and frequent interruptions for each DMA transfer, and to solve the problem that the length of each DMA transfer is a fixed value or inflexibility that needs to be set in advance by the CPU

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
  • Multi-channel DMA interactive design method based on PCIe bus
  • Multi-channel DMA interactive design method based on PCIe bus
  • Multi-channel DMA interactive design method based on PCIe bus

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0024] In order to make the purpose, technical solution and advantages of the present invention clearer, the specific implementation manners of the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments.

[0025] like figure 2 As shown, the main idea of ​​the present invention is to allocate N1 memory blocks of 4MB size in the memory for use in turn as DMA memory space, and allocate one memory block of 4MB size as the report memory space for the interaction of DMA packet information, and report N1 small block spaces are sequentially divided in the memory space as reporting memory spaces corresponding to the N1 DMA memory spaces. The number N1 of the DMA memory space is set by the application software to the driver software, and the value of N1 is written into the corresponding register of the FPGA. During specific implementation, N1 can be set to 128 at most. After a DMA transfer is completed, the FPGA repor...

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 belongs to the field of data transmission, and provides a multichannel DMA interactive design method based on a PCIe bus. Data transmission is carried out through the PCIe bus on the basis of an FPGA + CPU framework, the mode that the FPGA initiates and ends the DMA reading process actively is adopted, the flexible and controllable function of the DMA packet length is achieved, and the bus utilization rate during DMA transmission is increased; by adopting a mode of reporting DMA packet information instead of interruption, the reporting of DMA transmission completion information is realized, and the adverse effects of jamming or crash and the like which may be brought to an operating system by too frequent interruption are avoided; and by adopting a mode of distributing multiple groups of DMA memories and reporting memories for alternate use during DMA transmission, the functions of simultaneous transmission and data caching of multi-channel DMA are realized. The design of the invention is more suitable for the application occasion that the DMA length continuously changes and the CPU cannot know the DMA length in advance.

Description

technical field [0001] The invention belongs to the technical field of data transmission. Background technique [0002] Direct memory access (Direct Memory Access, DMA) is a common method of data transmission between FPGA and CPU. It means that data transmission does not require CPU intervention, and a large amount of data is exchanged directly between IO devices (such as FPGA) and memory. the transmission method. [0003] figure 1 It is a common single-channel DMA interaction method when the FPGA and the CPU communicate through the PCIe bus. Generally, the CPU first allocates the DMA memory space, and then writes the first address of the DMA memory space and the DMA length to the FPGA through the registers R1 and R2 of the BAR space. , and then write the "DMA start" command (register R3) to the FPGA, and the FPGA starts a DMA data transmission after receiving the DMA start command. After the transmission is completed, the FPGA initiates a DMA completion interrupt to the C...

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
IPC IPC(8): G06F13/28G06F13/40
CPCG06F13/28G06F13/4022Y02D10/00
Inventor 沈洋李靖舒周骏夏东方
Owner THE 724TH RES INST OF CHINA SHIPBUILDING IND
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