Single storage space cache DMA command group structure

By controlling the read and write operations of DMA command groups through the virtual Group configuration module and allocating them reasonably to Group0 and Group1, the problem of wasted storage space caused by the ping-pong buffer is solved, and efficient storage space utilization of DMA command groups is achieved.

CN118964253AActive Publication Date: 2024-11-15CLP KESHENTAI INFORMATION TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411419351.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-12
Publication Date
2024-11-15
Estimated Expiration
2044-10-12

AI Technical Summary

Technical Problem

In hierarchical storage, while the use of ping-pong buffers improves data transfer efficiency, it leads to a waste of storage space. How to save storage space while ensuring the efficiency of DMA command group transfer has become an important issue in optimizing caching strategies.

Method used

A single storage space cache DMA command group structure is adopted. The read and write control of the DMA command group is performed through the virtual Group configuration module, and the command group is reasonably allocated to Group0 and Group1 to optimize the storage space utilization.

Benefits of technology

It improves the storage space utilization of DMA command groups and reduces hardware overhead.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118964253A_ABST
    Figure CN118964253A_ABST
Patent Text Reader

Abstract

The invention discloses a single storage space cache DMA (direct memory access) command group structure, which belongs to the field of direct storage access and comprises a host, a virtual Group configuration module, a DMA command group cache module and a slave. Wherein the input end of the virtual Group configuration module is connected with the output end of the host, and the output end of the virtual Group configuration module is connected with the input end of the DMA command group cache module; the input end of the DMA command group cache module is simultaneously connected with the output end of the host and the output end of the virtual Group configuration module, and the output end of the DMA command group cache module is connected with the input end of the slave. According to the invention, the virtual Group configuration module is used for performing read-write control on the DMA command group cache module, and the command group is allocated to the appropriate virtual Group, so that the utilization rate of the storage space of the DMA command group is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of direct storage access, and in particular to a single storage space cache DMA command group structure. Background Art

[0002] In today's hierarchical storage, DMA (Direct Memory Access) is commonly used to provide high-speed data transmission between peripherals and memory or between memory and memory. Without CPU intervention, data can be quickly transferred through DMA, saving CPU resources. The role of DMA is to realize direct data transmission, eliminating the process of traditional data transmission that requires CPU participation.

[0003] With increasingly complex storage requirements, a DMA command group usually contains multiple DMA commands. In order to improve data transfer efficiency, ping-pong buffers are often used to store DMA commands, that is, when the current buffer executes a DMA command group, another buffer caches the next command group. However, while ping-pong buffers improve efficiency, they also waste storage space. Therefore, while ensuring the transfer efficiency of DMA command groups, effectively saving storage space is an important part of optimizing the cache DMA command group strategy. Summary of the invention

[0004] The object of the present invention is to provide a single storage space cache DMA command group structure to solve the problems in the background technology.

[0005] To solve the above technical problems, the present invention provides a single storage space cache DMA command group structure, including a host, a virtual Group configuration module, a DMA command group cache module and a slave; wherein, The input end of the virtual Group configuration module is connected to the output end of the host, and the output end of the virtual Group configuration module is connected to the input end of the DMA command group cache module; the virtual Group configuration module is used to receive a host status signal, generate a read-write control signal according to the received status signal, and send the read-write control signal to the DMA command group cache module to perform DMA command group cache control; The input end of the DMA command group cache module is connected to the output end of the host and the output end of the virtual Group configuration module at the same time, and the output end of the DMA command group cache module is connected to the input end of the slave; the DMA command group cache module is used to cache the DMA command group, and perform DMA command group cache control according to the read and write control signal sent by the virtual Group configuration module; The DMA command group buffer module receives the DMA command group sent by the host, and completes the transfer of the DMA command according to the read-write enable signal generated by the virtual Group configuration module; the slave receives and executes the DMA command group.

[0006] In one embodiment, the virtual Group configuration module adds a command enable signal Enable after a single command in the DMA command group, and uses it as an enable signal for writing to the DMA command group cache module; the virtual Group configuration module adds a command group enable signal Launch after the DMA command group ends, and uses it as an enable signal for reading from the DMA command group cache module.

[0007] In one embodiment, the virtual Group configuration module includes two groups of virtual Groups, namely Group0 and Group1, which are executed sequentially. After the Launch signal enables the current Group, the current Group is put into a busy state until the current DMA command group is fully executed and the busy state of the current Group ends. During this period, the next command group enables another Group.

[0008] In one embodiment, there are 7 states of Group0 and Group1 in the virtual Group configuration module, namely, "Group0 idle / Group1 idle", "Group0 cache / Group1 idle", "Group0 busy / Group1 idle", "Group0 busy / Group1 cache", "Group0 idle / Group1 cache", "Group0 idle / Group1 busy", and "Group0 cache / Group1 busy"; In the "Group0 Idle / Group1 Idle" state, Group0 has a higher priority than Group1 by default; In the "Group0 Idle / Group1 Idle" state, if Enable is enabled, the state jumps to "Group0 Cache / Group1 Idle"; In the "Group0 Cache / Group1 Idle" state, if Launch is enabled, the state jumps to "Group0 Busy / Group1 Idle"; In the "Group0 Busy / Group1 Idle" state, if there is no Enable, the state jumps to "Group0 Idle / Group1 Idle", and the execution of this DMA command group is completed; if there is Enable, the state jumps to "Group0 Busy / Group1 Cache"; In the "Group0 Busy / Group1 Cache" state, if the current DMA command group is executed and Launch is not enabled, the state jumps to "Group0 Idle / Group1 Cache"; if the current DMA command group is executed and Launch is enabled, the state jumps to "Group0 Idle / Group1 Busy"; In the "Group0 Idle / Group1 Cache" state, if Launch is enabled, the state jumps to "Group0 Idle / Group1 Busy"; In the "Group0 Idle / Group1 Busy" state, if there is no Enable, the state jumps to "Group0 Idle / Group1 Idle", and the execution of this DMA command group is completed; if there is Enable, the state jumps to "Group0 Cache / Group1 Busy"; In the "Group0 Cache / Group1 Busy" state, if the current DMA command group is executed and Launch is not enabled, the state jumps to "Group0 Cache / Group1 Idle"; if the current DMA command group is executed and Launch is enabled, the state jumps to "Group0 Busy / Group1 Idle".

[0009] The present invention provides a single storage space cache DMA command group structure, which controls the read and write of the DMA command group cache module through a virtual group configuration module, and allocates the command group to a suitable virtual group, thereby improving the storage space utilization of the DMA command group. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] Figure 1 It is a structural block diagram of the present invention.

[0011] Figure 2 This is a state transition diagram of the virtual Group configuration module of the present invention. DETAILED DESCRIPTION

[0012] The following is a further detailed description of a single storage space cache DMA command group structure proposed by the present invention in conjunction with the accompanying drawings and specific embodiments. The advantages and features of the present invention will become clearer based on the following description. It should be noted that the accompanying drawings are all in a very simplified form and are not in precise proportions, and are only used to conveniently and clearly assist in explaining the purpose of the embodiments of the present invention.

[0013] In order to optimize the cache DMA command group strategy, the present invention provides a single storage space cache DMA command group structure, which can effectively improve the DMA storage space utilization and reduce hardware overhead.

[0014] The structural block diagram of the present invention is as follows: Figure 1As shown, it includes a host 101, a virtual group configuration module 102, a DMA command group cache module 103, and a slave 104.

[0015] The host 101 sends a DMA command group, and the virtual group configuration module 102 is used to receive a status signal of the host 101 and send a read and write control signal of the DMA command group buffer module 103 .

[0016] The virtual Group configuration module 102 adds a command enable signal Enable after a single command in the DMA command group, and uses it as an enable signal for writing to the DMA command group cache module 103; the virtual Group configuration module 102 adds a command group enable signal Launch after the DMA command group ends (i.e., after the last Enable of this DMA command group), and uses it as an enable signal for reading from the DMA command group cache module 103.

[0017] The virtual group configuration module 102 includes two virtual groups, namely Group0 and Group1, which are executed sequentially. After the Launch signal enables the current group, the current group is in a busy state until the current DMA command group is fully executed and the current group busy state ends. During this period, the next command group enables another group.

[0018] The status jumps of Group0 and Group1 in the virtual Group configuration module 102 are as follows: Figure 2 As shown, there are 7 states, namely "Group0 Idle / Group1 Idle", "Group0 Cache / Group1 Idle", "Group0 Busy / Group1 Idle", "Group0 Busy / Group1 Cache", "Group0 Idle / Group1 Cache", "Group0 Idle / Group1 Cache", "Group0 Idle / Group1 Busy", and "Group0 Cache / Group1 Busy".

[0019] In the "Group0 Idle / Group1 Idle" state, Group0 has a higher priority than Group1 by default.

[0020] In the "Group0 Idle / Group1 Idle" state, if Enable is enabled (DMA command group is written into DMA command group cache module 103), the state jumps to "Group0 Cache / Group1 Idle".

[0021] In the "Group0 Cache / Group1 Idle" state, if Launch is enabled (the DMA command group is read from the DMA command group cache module 103 and executed), the state jumps to "Group0 Busy / Group1 Idle".

[0022] In the "Group0 busy / Group1 idle" state, if there is no Enable (DMA command group is written into the DMA command group cache module 103), the state jumps into "Group0 idle / Group1 idle", and the execution of this DMA command group is completed; if there is Enable (DMA command group is written into the DMA command group cache module 103), the state jumps into "Group0 busy / Group1 cache".

[0023] In the "Group0 Busy / Group1 Cache" state, if the current DMA command group is executed and Launch is not enabled (the DMA command group is read from the DMA command group cache module 103 and executed), the state jumps to "Group0 Idle / Group1 Cache"; if the current DMA command group is executed and Launch is enabled (the DMA command group is read from the DMA command group cache module 103 and executed), the state jumps to "Group0 Idle / Group1 Busy".

[0024] In the "Group0 Idle / Group1 Cache" state, if Launch is enabled (the DMA command group is read from the DMA command group cache module 103 and executed), the state jumps to "Group0 Idle / Group1 Busy".

[0025] In the "Group0 Idle / Group1 Busy" state, if there is no Enable (DMA command group is written into the DMA command group cache module 103), the state jumps to "Group0 Idle / Group1 Idle", and the execution of this DMA command group is completed; if there is Enable, the state jumps to "Group0 Cache / Group1 Busy".

[0026] In the "Group0 Cache / Group1 Busy" state, if the current DMA command group is executed and there is no Launch enable (the DMA command group is read from the DMA command group cache module 103 and executed), the state jumps to "Group0 Cache / Group1 Idle"; if the current DMA command group is executed and there is Launch enable (the DMA command group is read from the DMA command group cache module 103 and executed), the state jumps to "Group0 Busy / Group1 Idle".

[0027] The DMA command group buffer module 103 receives the DMA command group sent by the host 101 , and completes the transfer of the DMA command according to the read / write enable signal generated by the virtual group configuration module 102 .

[0028] The slave 104 receives and executes the DMA command group.

[0029] The above description is only a description of the preferred embodiments of the present invention, and is not intended to limit the scope of the present invention. Any changes or modifications made by a person skilled in the art in the field of the present invention based on the above disclosure shall fall within the scope of protection of the claims.

Claims

1. A single storage space cache DMA command group structure, characterized in that: It includes a host, a virtual Group configuration module, a DMA command group cache module and a slave; among which, The input end of the virtual Group configuration module is connected to the output end of the host, and the output end of the virtual Group configuration module is connected to the input end of the DMA command group cache module; the virtual Group configuration module is used to receive a host status signal, generate a read-write control signal according to the received status signal, and send the read-write control signal to the DMA command group cache module to perform DMA command group cache control; The input end of the DMA command group cache module is connected to the output end of the host and the output end of the virtual Group configuration module at the same time, and the output end of the DMA command group cache module is connected to the input end of the slave; the DMA command group cache module is used to cache the DMA command group, and perform DMA command group cache control according to the read and write control signal sent by the virtual Group configuration module; The DMA command group buffer module receives the DMA command group sent by the host, and completes the transfer of the DMA command according to the read-write enable signal generated by the virtual Group configuration module; the slave receives and executes the DMA command group.

2. The single storage space cache DMA command group structure as claimed in claim 1, characterized in that: The virtual Group configuration module adds a command enable signal Enable after a single command in the DMA command group and uses it as an enable signal for writing into the DMA command group cache module; the virtual Group configuration module adds a command group enable signal Launch after the DMA command group ends and uses it as an enable signal for reading from the DMA command group cache module.

3. The single storage space cache DMA command group structure as claimed in claim 2, characterized in that: The virtual Group configuration module includes two groups of virtual Groups, namely Group0 and Group1, which are executed sequentially. After the Launch signal enables the current Group, the current Group is in a busy state until the current DMA command group is fully executed and the current Group's busy state ends. During this period, the next command group enables another Group.

4. The single storage space cache DMA command group structure as claimed in claim 1, characterized in that: There are 7 states of Group0 and Group1 in the virtual Group configuration module, namely "Group0 idle / Group1 idle", "Group0 cache / Group1 idle", "Group0 busy / Group1 idle", "Group0 busy / Group1 cache", "Group0 idle / Group1 cache", "Group0 idle / Group1 busy", "Group0 cache / Group1 busy"; In the "Group0 Idle / Group1 Idle" state, Group0 has a higher priority than Group1 by default; In the "Group0 Idle / Group1 Idle" state, if Enable is enabled, the state jumps to "Group0 Cache / Group1 Idle"; In the "Group0 Cache / Group1 Idle" state, if Launch is enabled, the state jumps to "Group0 Busy / Group1 Idle"; In the "Group0 Busy / Group1 Idle" state, if there is no Enable, the state jumps to "Group0 Idle / Group1 Idle", and the execution of this DMA command group is completed; if there is Enable, the state jumps to "Group0 Busy / Group1 Cache"; In the "Group0 Busy / Group1 Cache" state, if the current DMA command group is executed and Launch is not enabled, the state jumps to "Group0 Idle / Group1 Cache"; if the current DMA command group is executed and Launch is enabled, the state jumps to "Group0 Idle / Group1 Busy"; In the "Group0 Idle / Group1 Cache" state, if Launch is enabled, the state jumps to "Group0 Idle / Group1 Busy"; In the "Group0 Idle / Group1 Busy" state, if there is no Enable, the state jumps to "Group0 Idle / Group1 Idle", and the execution of this DMA command group is completed; if there is Enable, the state jumps to "Group0 Cache / Group1 Busy"; In the "Group0 Cache / Group1 Busy" state, if the current DMA command group is executed and Launch is not enabled, the state jumps to "Group0 Cache / Group1 Idle"; if the current DMA command group is executed and Launch is enabled, the state jumps to "Group0 Busy / Group1 Idle".

Citation Information

Patent Citations

  • Host command processing method and device based on variable cache management mechanism

    CN110058819A

  • FPGA-based interface conversion system and method from SDRAM to MRAM

    CN113220616A

  • Method for controlling data to be read to host, and controller

    CN113515234A

  • Consistent access to persistent storage area range

    CN114968855A

  • Multi-Host Configuration for Virtual Machine Caching

    US20170004090A1