AXI interface control method, device and computer equipment based on SRAM

By adding a fast interface to the SOC chip of the solid-state drive and selecting an appropriate interface for data transmission based on the amount of data, the problem of large AXI interface latency is solved and high-performance and low-latency read and write operations are achieved.

CN113821465BActive Publication Date: 2024-09-24SHENZHEN YILIAN INFORMATION SYST CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111109780.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-18
Publication Date
2024-09-24
Estimated Expiration
2041-09-18

AI Technical Summary

Technical Problem

In the SOC chip of the solid-state drive, the AXI interface has a large delay, which affects the read and write performance, especially in delay-sensitive application scenarios.

Method used

Design a SRAM-based AXI interface control method. By adding a fast interface to the original architecture, the first interface conversion module or the second interface conversion module is selected to be used first according to the amount of data read and write requests, and the second interface conversion module with higher priority is selected. The interface conversion module is used for data transmission through the fast interface. Data with smaller delays is transmitted through the fast interface, and larger amounts of data are transmitted through the AXI interface. It blocks the AXI interface when necessary to ensure that the AXI interface continues to be used after the fast interface transmission is completed.

Benefits of technology

It effectively reduces the access delay to SRAM and improves the read and write performance of solid-state drives, especially in delay-sensitive application scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113821465B
    Figure CN113821465B
Patent Text Reader

Abstract

The present application relates to an AXI interface control method, device, computer equipment and storage medium based on SRAM, wherein the device includes: a first interface conversion module, the first interface conversion module is used to convert the AXI interface to obtain the corresponding SRAM control signal; a second interface conversion module, the second interface conversion module is used to convert the fast interface to obtain the corresponding SRAM control signal; a first cache module, the first cache module is used to cache write data, write address and read address from the AXI interface; a second cache module, the second cache module is used to cache data and write response from SRAM; an interface selection module, the interface selection module is used to select the interface conversion module, and the priority of the second interface conversion module is higher than the first interface conversion module. The present invention adds a fast interface to the application scenario of sensitive delay, and the use of the fast interface can effectively reduce the delay of accessing SRAM.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of solid state hard disks, and in particular to an SRAM-based AXI interface control method, device, computer equipment and storage medium. Background Art

[0002] Computer equipment has become the most productive and practical tool for people today. With the decline in the price of solid-state drives, solid-state drives are becoming more and more popular. NVMe SSD, also known as SSD (Solid State Disk or Solid State Drive), has developed rapidly due to its superior performance. Major computer manufacturers have turned the hard drives in computer equipment into SSDs.

[0003] At present, in order to significantly improve the performance of SOC chips in solid-state drives, multi-core CPUs are generally used. SRAM (Static Random-Access Memory) is shared on the multi-core CPUs, and AXI (Advanced Extensible Interface) is generally used to hang on the system bus to ensure access by multiple masters. The AXI bus structure has strong scalability and flexibility, but the AXI latency is relatively large. For application scenarios that emphasize latency, if the AXI interface is still used, the read and write performance of the solid-state drive will be affected. Summary of the invention

[0004] Based on this, it is necessary to provide an SRAM-based AXI interface control method, device, computer equipment and storage medium to address the above technical problems.

[0005] An AXI interface control device based on SRAM, the device comprising:

[0006] A first interface conversion module, wherein the first interface conversion module is used to convert the AXI interface to obtain a corresponding SRAM control signal;

[0007] A second interface conversion module, the second interface conversion module is used to convert the fast interface to obtain a corresponding SRAM control signal;

[0008] A first cache module, the first cache module is used to cache write data, write address and read address from the AXI interface;

[0009] A second cache module, the second cache module is used to cache data from the SRAM and write responses;

[0010] An interface selection module, wherein the interface selection module is used to select an interface conversion module, wherein the priority of the second interface conversion module is higher than that of the first interface conversion module.

[0011] In one embodiment, the interface selection module is further used to:

[0012] If the amount of data to be transmitted is small, data transmission through the fast interface is preferred. If the amount of data to be transmitted is large, data transmission through the AXI interface is preferred.

[0013] In one embodiment, the interface selection module is further used to:

[0014] When the second interface conversion module is selected, the AXI interface transmission is blocked, and the transmission is continued through the AXI interface after the fast interface transmission is completed.

[0015] In one embodiment, the AXI interface includes: a write data channel, a write address channel, a read address channel, a read data channel, and a write response channel.

[0016] A method for controlling an AXI interface based on SRAM, characterized in that the method is applied to any of the above-mentioned AXI interface control devices based on SRAM, comprising:

[0017] Get the data read and write request sent by the host;

[0018] The corresponding interface conversion module is selected according to the data amount of the data read / write request, and the priority of the second interface conversion module is higher than that of the first interface conversion module; wherein the first interface conversion module is used to convert the AXI interface to obtain the corresponding SRAM control signal; and the second interface conversion module is used to convert the fast interface to obtain the corresponding SRAM control signal;

[0019] Cache the write data, write address and read address from the AXI interface through the first cache module;

[0020] The second cache module is used to cache data from the SRAM and write responses.

[0021] In one embodiment, the step of selecting a corresponding interface conversion module according to the data amount of the data read / write request, wherein the priority of the second interface conversion module is higher than that of the first interface conversion module, further comprises:

[0022] If the amount of data to be transmitted is small, data transmission through the fast interface is preferred. If the amount of data to be transmitted is large, data transmission through the AXI interface is preferred.

[0023] In one embodiment, the method further comprises:

[0024] When the second interface conversion module is selected, the AXI interface transmission is blocked, and the transmission is continued through the AXI interface after the fast interface transmission is completed.

[0025] In one embodiment, the AXI interface includes: a write data channel, a write address channel, a read address channel, a read data channel, and a write response channel.

[0026] A computer device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of any one of the above methods when executing the computer program.

[0027] A computer-readable storage medium stores a computer program, wherein the computer program implements the steps of any one of the above methods when executed by a processor.

[0028] In the above-mentioned SRAM-based AXI interface control method, device, computer equipment and storage medium, the corresponding interface conversion module is selected according to the data size of the data read and write request, and the priority of the second interface conversion module is higher than the first interface conversion module; the first interface conversion module is used to convert the AXI interface to obtain the corresponding SRAM control signal; the second interface conversion module is used to convert the fast interface to obtain the corresponding SRAM control signal. The present invention adds a fast interface to the original architecture for delay-sensitive application scenarios, and achieves high performance and low latency through the design of two interfaces. For delay-sensitive application scenarios, the use of a fast interface can effectively reduce the delay in accessing SRAM. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] Figure 1 is a structural block diagram of an AXI interface control device based on SRAM in one embodiment;

[0030] Figure 2 A schematic diagram of transmission of an AXI interface control signal based on SRAM in one embodiment;

[0031] Figure 3 1 is a flow chart of an AXI interface control method based on SRAM in one embodiment;

[0032] Figure 4 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0033] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0034] In the SOC chip of the solid-state drive, in order to significantly improve the performance, a multi-core CPU is generally used. The SRAM (Static Random-Access Memory) is shared on the multi-core CPU, and the AXI (Advanced extensible Interface) is generally used to hang on the system bus to ensure access by multiple masters. The AXI bus structure has strong scalability and flexibility, but the AXI latency is relatively large. For application scenarios that emphasize latency, if the AXI interface is still used, the read and write performance of the solid-state drive will be affected.

[0035] Based on this, the present invention provides an AXI interface control method based on SRAM, which aims at the disadvantage of long access delay of AXI SRAM and adds a fast interface in the application scenario with sensitive delay. Such an SRAM design will include two interfaces, AXI and a simple fast interface to achieve high performance and low delay. For the application scenario with sensitive delay, the delay of accessing SRAM can be reduced by adopting a fast interface.

[0036] In one embodiment, Figure 1 As shown, a SRAM-based AXI interface control device is provided, the device comprising:

[0037] A first interface conversion module 101, the first interface conversion module is used to convert the AXI interface to obtain a corresponding SRAM control signal;

[0038] A second interface conversion module 102, the second interface conversion module is used to convert the fast interface to obtain a corresponding SRAM control signal;

[0039] A first cache module 103, the first cache module is used to cache write data, write addresses and read addresses from the AXI interface;

[0040] A second cache module 104, the second cache module is used to cache data and write responses from the SRAM;

[0041] The interface selection module 105 is used to select an interface conversion module, wherein the priority of the second interface conversion module is higher than that of the first interface conversion module.

[0042] Specifically, refer to Figure 2 The transmission diagram of the AXI interface control signal based on SRAM is shown in the figure. This solution adds a fast_to_user_logic module based on the traditional design. Through this module, the fast interface is converted to obtain the control signal of SRAM. Figure 2 The various modules and signals shown are described as follows:

[0043] In one embodiment, the AXI interface includes: a write data channel, a write address channel, a read address channel, a read data channel, and a write response channel.

[0044] Specifically, the AXI interface has a total of 5 channels: wdata (write data channel), awaddr (write address channel), araddr (read address channel), rddata (read data channel), and bresp (write response channel).

[0045] The axi_to_user_logic module is used to convert the axi interface to obtain the SRAM control signal.

[0046] The fast_to_user_logic module is used to convert the fast interface to obtain the control signal of SRAM.

[0047] The cmd fifo module is used to cache write data / write address, or read address from AXI.

[0048] The resp fifo module is used to cache data from SRAM and write responses.

[0049] real SRAM: real SRAM.

[0050] In one embodiment, the interface selection module is further used to: if the amount of data to be transmitted is small, preferentially select the fast interface for data transmission; if the amount of data to be transmitted is large, select the AXI interface for data transmission.

[0051] In one embodiment, the interface selection module is further used to: block the AXI interface transmission when the second interface conversion module is selected, and continue the transmission through the AXI interface after the fast interface transmission is completed.

[0052] For reference Figure 2 The arbit module shown in the figure, specifically, the arbit module selects AXI or fast interface. Note that the fast interface has the highest priority, blocking the AXI transmission. After the fast interface transmission is completed, AXI continues to complete the transmission. Because the fast interface is generally used for low latency and small data volume transmission, if the data volume is large, AXI transmission is used.

[0053] Further, Figure 2 The signals in are described as follows:

[0054] AXI connects to SRAM signal m* (the signal with "up" is the accelerated signal).

[0055] mdata / mdata_up: write data; mstrb: write selection signal; maddr: write address; msize: write data valid bit width.

[0056] mburst / mburst_up: whether to write continuously; mlen: continuous writing length.

[0057] svalid / sdata / sresp / svalid_up / sdata_up / sresp_up: data returned from SRAM and valid signal.

[0058] fast_ram*: Control signals for the fast interface.

[0059] f_ram*: After receiving the control signal returned by the arbit module, it generates related read and write SRAM signals.

[0060] f_control_right: The fast interface gets access to SRAM.

[0061] a_control_right: The AXI interface obtains permission to access SRAM.

[0062] abt_ram*: cmd or write data after passing through the arbit module, and read data from SRAM.

[0063] In the above embodiment, by selecting the corresponding interface conversion module according to the data size of the data read and write request, the priority of the second interface conversion module is higher than that of the first interface conversion module; the first interface conversion module is used to convert the AXI interface to obtain the corresponding SRAM control signal; the second interface conversion module is used to convert the fast interface to obtain the corresponding SRAM control signal. The above scheme adds a fast interface to the original architecture for delay-sensitive application scenarios. Through the design of two interfaces, high performance and low latency are achieved. For delay-sensitive application scenarios, the use of a fast interface can effectively reduce the delay in accessing SRAM.

[0064] In one embodiment, Figure 3 As shown, a SRAM-based AXI interface control method is provided, which can be applied to the above-mentioned SRAM-based AXI interface control device, including:

[0065] Step 302, obtaining a data read / write request sent by the host;

[0066] Step 304, selecting a corresponding interface conversion module according to the data volume of the data read / write request, the second interface conversion module has a higher priority than the first interface conversion module;

[0067] Step 306: The first interface conversion module is used to convert the AXI interface to obtain a corresponding SRAM control signal;

[0068] Step 308, the second interface conversion module is used to convert the fast interface to obtain a corresponding SRAM control signal;

[0069] Step 310, caching write data, write address and read address from the AXI interface through a first cache module;

[0070] Step 312: Cache the data and write response from the SRAM using a second cache module.

[0071] In one embodiment, the AXI interface includes: a write data channel, a write address channel, a read address channel, a read data channel, and a write response channel.

[0072] In one embodiment, the corresponding interface conversion module is selected according to the data volume of the data read and write request, and the step in which the second interface conversion module has a higher priority than the first interface conversion module also includes: if the amount of data to be transmitted is small, data transmission is preferentially performed through the fast interface; if the amount of data to be transmitted is large, data transmission is performed through the AXI interface.

[0073] In one embodiment, the method further includes: blocking the AXI interface transmission when the second interface conversion module is selected, and continuing the transmission through the AXI interface after the fast interface transmission is completed.

[0074] Specifically, combined Figure 2 The transmission diagram of the AXI interface control signal based on SRAM is shown, and the reading and writing processes in different situations are explained as follows:

[0075] The first one is when there is only AXI reading and writing (operation permissions are always obtained):

[0076] Write: After passing through the axi_to_user_logic module, the data and commands are merged and sent to the cmd fifo module (while writing the write OK to the resp fifo), and then passed through the arbit module and written to the real SRAM.

[0077] Read: After passing through the axi_to_user_logic module, the read command goes through the cmd fifo module, and then passes through the arbit module, the read command is sent to the real SRAM, the read data is output, and then passes through the arbit module, written to the resp fifo module, and finally output through the AXI read data path.

[0078] The second type is when only fast interface reading and writing are available (operation permissions are always obtained):

[0079] Write: After the fast_to_user_logic module, the write command and write data pass through the arbit module and are written to the real SRAM.

[0080] Read: After passing through the axi_to_user_logic module, the read command passes through the arbit module, the read command is given to the real SRAM, the read data is output, and then passes through the arbit module and is output through the fast read data path.

[0081] The third one is in the case of AXI / Fast interface mixing:

[0082] The fast interface has the highest priority and blocks the AXI transmission. After the fast interface transmission is completed, AXI continues to complete the transmission. Among them, the fast interface is generally used for low-latency and small data transmission. If the data volume is large, AXI transmission is used.

[0083] It should be understood that although Figure 1-3 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 1-3 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.

[0084] In one embodiment, a computer device is provided, whose internal structure diagram can be as follows: Figure 4 As shown. The computer device includes a processor, a memory and a network interface connected through a device bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating device, a computer program and a database. The internal memory provides an environment for the operation of the operating device and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, an AXI interface control method based on SRAM is implemented.

[0085] Those skilled in the art will understand that Figure 4The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0086] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the steps in the above method embodiments when executing the computer program.

[0087] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above method embodiments are implemented.

[0088] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0089] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0090] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. An AXI interface control device based on SRAM, characterized in that: The device comprises: A first interface conversion module, wherein the first interface conversion module is used to convert the AXI interface to obtain a corresponding SRAM control signal; A second interface conversion module, the second interface conversion module is used to convert the fast interface to obtain a corresponding SRAM control signal; A first cache module, the first cache module is used to cache write data, write address and read address from the AXI interface; A second cache module, the second cache module is used to cache data from the SRAM and write responses; An interface selection module, wherein the interface selection module is used to select an interface conversion module, wherein the priority of the second interface conversion module is higher than that of the first interface conversion module.

2. The SRAM-based AXI interface control device according to claim 1, characterized in that: The interface selection module is also used for: If the amount of data to be transmitted is small, data transmission through the fast interface is preferred. If the amount of data to be transmitted is large, data transmission through the AXI interface is preferred.

3. The SRAM-based AXI interface control device according to claim 2, characterized in that: The interface selection module is also used for: When the second interface conversion module is selected, the AXI interface transmission is blocked, and the transmission is continued through the AXI interface after the fast interface transmission is completed.

4. The SRAM-based AXI interface control device according to claim 1, characterized in that: The AXI interface includes: a write data channel, a write address channel, a read address channel, a read data channel and a write response channel.

5. A SRAM-based AXI interface control method, characterized in that: The method is applied to the SRAM-based AXI interface control device as described in any one of claims 1 to 4, comprising: Get the data read and write request sent by the host; The corresponding interface conversion module is selected according to the data amount of the data read / write request, and the priority of the second interface conversion module is higher than that of the first interface conversion module; wherein the first interface conversion module is used to convert the AXI interface to obtain the corresponding SRAM control signal; and the second interface conversion module is used to convert the fast interface to obtain the corresponding SRAM control signal; Cache the write data, write address and read address from the AXI interface through the first cache module; The second cache module is used to cache data from the SRAM and write responses.

6. The SRAM-based AXI interface control method according to claim 5, characterized in that: The step of selecting a corresponding interface conversion module according to the data amount of the data read / write request, wherein the priority of the second interface conversion module is higher than that of the first interface conversion module, further comprises: If the amount of data to be transmitted is small, data transmission through the fast interface is preferred. If the amount of data to be transmitted is large, data transmission through the AXI interface is preferred.

7. The SRAM-based AXI interface control method according to claim 6, characterized in that: The method further comprises: When the second interface conversion module is selected, the AXI interface transmission is blocked, and the transmission is continued through the AXI interface after the fast interface transmission is completed.

8. The SRAM-based AXI interface control method according to claim 5, characterized in that: The AXI interface includes: a write data channel, a write address channel, a read address channel, a read data channel and a write response channel.

9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 5 to 8 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 5 to 8 are implemented.