A storage controller architecture, data processing circuit and data processing method

By embedding a block operation processor in the storage controller, it directly issues read commands and processes data, solving the problem of large command delays in traditional circuit structures, improving data processing efficiency and circuit efficiency, and reducing CPU or DMA overhead. load.

CN114328311BActive Publication Date: 2024-09-06AMICRO SEMICONDUCTOR CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111537979.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-15
Publication Date
2024-09-06
Estimated Expiration
2041-12-15

AI Technical Summary

Technical Problem

When the traditional circuit structure processes block map data, due to the complex bus structure, the command delay is large, affecting the access efficiency of the storage controller, and the CPU or DMA needs to configure instructions to interfere with the storage controller, resulting in long data processing time.

Method used

Design a storage controller architecture, including a block operation processor, a bus interface and a memory interface. The block operation processor generates command words based on the bus interface configuration information and processes the data returned by the memory interface, and directly issues read commands to reduce command delays. time, and realize the communication between the central processor and the memory interface during the command word switching gap.

Benefits of technology

It greatly reduces the data transmission time on the bus, improves the efficiency of reading and processing data, reduces the load on the CPU or DMA, and makes the circuit run more efficiently and consume less power.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114328311B
    Figure CN114328311B
Patent Text Reader

Abstract

The present invention discloses a storage controller architecture, a data processing circuit and a data processing method, wherein the method centrally processes the processing requirements for block data by embedding a block operation processor in the storage controller. The storage controller can directly issue a command to read data, which solves the problem of large command delay in the traditional circuit structure and accelerates the reading speed to the greatest extent; the storage controller can also process the data without the need for the CPU or DMA to process the data from the other end of the bus, which reduces the data transmission time on the bus, improves the efficiency of data processing, and at the same time, reduces the load of the CPU or DMA, and the circuit operation is more efficient and consumes less power.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of electronic circuits, and in particular to a storage controller architecture, a data processing circuit and a data processing method. Background Art

[0002] In SLAM (Simultaneous Localization And Mapping) applications, it is often necessary to search and process large quantities of map data (in a continuous storage space). In the traditional circuit structure, the CPU or DMA is responsible for issuing read and write commands, taking out a large amount of data and then processing it. Since most of the current SOC (System On Chip) adopts the NOC (Network On Chip) design, the bus structure is relatively complex, resulting in a large command delay. In addition, when the CPU or DMA reads and writes map data, the system needs to configure related instructions, and the configuration of these instructions will interfere with the access efficiency of the storage controller. For the above reasons, the traditional circuit structure takes a lot of time to process block map data (i.e., large quantities of continuous maps). Summary of the invention

[0003] To solve the above problems, the present invention provides a storage controller architecture, a data processing circuit and a data processing method, which greatly reduces the transmission time of data on the bus and improves the efficiency of reading and processing data. The specific technical solutions of the present invention are as follows:

[0004] A storage controller architecture includes a block operation processor, a bus interface and a memory interface; wherein the block operation processor is connected to the bus interface and the memory interface respectively, and the block operation processor sends a command word to the memory interface according to the configuration information of the bus interface, and then processes the data returned by the memory interface.

[0005] Furthermore, the block operation processor includes a decoder and a control state machine; wherein the decoder is connected to the bus interface and the control state machine, and is used to generate a command word according to the configuration information of the bus interface or the data returned by the memory interface; the control state machine is connected to the decoder, the bus interface and the memory interface, and is used to read and process the data returned by the memory interface according to the command word.

[0006] A data processing circuit comprises the storage controller architecture, and also comprises a central processing unit and a memory respectively connected to the storage controller architecture.

[0007] Furthermore, the central processing unit is connected to the bus interface and is used to generate configuration information according to the data processing request, and then send it to the block operation processor through the bus interface.

[0008] Furthermore, the central processing unit is connected to the block operation processor, and when the block operation processor completes data processing, the block operation processor sends an interrupt signal to the central processing unit.

[0009] Furthermore, the bus interface is connected to the memory interface, so that during the switching interval of the command words, the central processing unit can communicate with the memory interface through the bus interface.

[0010] A data processing method is implemented by the data processing circuit, and the method includes: according to the data processing request, the central processing unit generates configuration information and sends it to the block operation processor, so that the block operation processor generates a command word and sends it to the memory interface to read the data to be processed, and then processes the data to be processed according to the configuration information, and finally returns the processing result to the central processing unit.

[0011] Furthermore, the configuration information includes: a reading mode, including a normal mode and a linked list mode; wherein the normal mode indicates that the data is read only once, and the linked list mode indicates that the data read next time is related to the last data currently read; wherein the last data currently read has a specific meaning; a starting address, indicating the starting position of the data to be processed in the memory; a data length, indicating the size of the data to be processed; an operation mode, indicating the data operation method performed on the data to be processed; a timeout limit, indicating the time limit for the block operation processor to process data, and forcibly ending the current operation after the timeout.

[0012] Furthermore, the block operation processor generates the next command word according to the specific meaning of the last data in the data to be processed; wherein the command word includes any one of a reading mode, a starting address, a data length, an operation mode and a timeout limit.

[0013] Furthermore, after the block operation processor completes processing of the data to be processed, it stores the processing result in a register of the bus interface and then sends an interrupt message to the central processing unit.

[0014] Furthermore, the method further includes: during the switching interval of the command words, the central processing unit communicates with the memory interface through the bus interface to meet the operation requirements of the data processing circuit.

[0015] The beneficial effects of the present invention are as follows: compared with the prior art, the method described in the present invention centrally processes the processing requirements for block data by embedding a block operation processor in the storage controller. The storage controller can directly issue a command to read data, which solves the problem of large command delay in the traditional circuit structure and accelerates the reading speed to the greatest extent; the storage controller can also process the data without the need for the CPU or DMA to process the data from the other end of the bus, which reduces the data transmission time on the bus, improves the efficiency of data processing, and at the same time, reduces the load of the CPU or DMA, and the circuit operation is more efficient and consumes less power. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 A schematic diagram of a data processing circuit according to an embodiment of the present invention. DETAILED DESCRIPTION

[0017] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0018] It should be understood that when used in this application, the term "comprising" indicates the presence of the described features, integral bodies, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integral bodies, steps, operations, elements, components and / or their collections. It should also be understood that the term "and / or" used in this application refers to any combination of one or more of the associated listed items and all possible combinations, and includes these combinations.

[0019] As used in this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.

[0020] In addition, references to "one embodiment" or "some embodiments" etc. described in the specification of the present application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0021] In SLAM applications, it is often necessary to search for large amounts of map data. Searching for map data takes a lot of CPU time because the map data is updated in real time and the data volume is large and cannot be accelerated by the cache (cache memory). The map search function becomes a bottleneck in SLAM applications.

[0022] Therefore, an embodiment of the present invention provides a storage controller architecture, which includes a block operation processor, a bus interface and a memory interface; wherein the block operation processor is connected to the bus interface and the memory interface respectively, and the block operation processor sends a command word to the memory interface according to the configuration information of the bus interface, and then processes the data returned by the memory interface. The storage controller architecture embeds a block operation processor inside the traditional storage controller, so that the processing requirements of the system for block data can be centralized. Specifically, the block operation processor includes a decoder and a control state machine. wherein the decoder is connected to the bus interface and the control state machine, and is used to generate a command word according to the configuration information of the bus interface or the data returned by the memory interface; the control state machine is connected to the decoder, the bus interface and the memory interface, and is used to read and process the data returned by the memory interface according to the command word. In the storage controller architecture, it is no longer the CPU or DMA that is responsible for issuing data read and write commands, but the storage controller itself, which greatly reduces the transmission delay of the read and write commands, improves the response efficiency of the storage controller, and accelerates the data reading speed to the greatest extent. At the same time, the storage controller can also implement data processing operations without the need for the CPU or DMA to process data from the other end of the bus, reducing the data transmission time on the bus and improving the efficiency of data processing. At the same time, it also reduces the load on the CPU or DMA, making the circuit operation more efficient and consuming less power.

[0023] Reference Figure 1The present invention also provides a data processing circuit, which includes the storage controller architecture described above, and also includes a central processing unit and a memory respectively connected to the storage controller architecture. The central processing unit is connected to the bus interface, and is used to generate configuration information according to the data processing request, and then send it to the block operation processor through the bus interface. The data processing request includes a map data search request of the system, and the central processing unit automatically generates the configuration information of the block operation processor according to the request. Then, after the block operation processor receives the configuration information, it will read and process the data instead of the central processing unit, which greatly reduces the transmission time of the data on the bus and improves the efficiency of reading and processing data. The central processing unit is also connected to the control state machine of the block operation processor. When the control state machine completes the data processing, it stores the processing result in the register of the bus interface, and then sends an interrupt signal to the central processing unit, so that the central processing unit can obtain the processing result from the bus interface at any time.

[0024] As one of the implementation modes, the bus interface is connected to the memory interface so that in the switching gap of the command word, the central processing unit can communicate with the memory interface through the bus interface. When the memory interface is continuously read, the interface is continuously occupied, but the system still needs to run. At this time, through the normal read / write channel between the bus interface and the memory interface, in the switching gap of the command word, the central processing unit can directly read the required data from the memory, so that while ensuring the efficiency of block data reading, the system is also avoided from stopping. It should be noted that the memory interface includes but is not limited to SPI, Flash, DRAM and AMBA. There are two types of data reading modes: single (single memory access mode) and burst (continuous memory access mode). In the reading process, the gap between reading and reading will cause the data channel efficiency to decrease, so the fewer the gaps, the better. Therefore, the mode adopted in this embodiment is burst to improve the data reading efficiency. At the same time, the longer the data length supported by this mode, the higher the transmission efficiency.

[0025] The present invention also provides a data processing method, which is implemented by the data processing circuit. The method includes: according to the data processing request, the central processing unit generates configuration information and sends it to the block operation processor, so that the block operation processor generates a command word and sends it to the memory interface to read the data to be processed, and then processes the data to be processed according to the configuration information, and finally returns the processing result to the central processing unit.

[0026] As one of the implementation modes, after receiving the map data search request from the system, the central processing unit generates relevant configuration information and sends it to the block operation processor. The configuration information includes: reading mode, including normal mode and linked list mode; wherein the normal mode means that the data is read only once, and the linked list mode means that the data read next time is related to the last data currently read; wherein the last data currently read has a specific meaning. For example, if 0xA is read at the last word of the continuously read data, then 0xA will be given a specific meaning, indicating how to read the data next time (such as reading from the next word of 0xA); if 0xB is read at the end, and 0xB is defined as the end of reading, then the entire read operation is terminated. The starting address indicates the starting position of the data to be processed in the memory, that is, the first data to be read. The data length indicates the size of the data to be processed. The operation mode indicates the data operation method to be performed on the data to be processed, including but not limited to comparison, summation, maximum value and average. The timeout limit indicates the time limit for the block operation processor to process data. After the timeout, the current operation is forced to end, such as 2 seconds or 1 minute, to prevent the operation from being stuck.

[0027] It should be noted that the command word includes any one of a read mode, a start address, a data length, an operation mode, and a timeout period. When the read mode is set to a linked list mode, the block operation processor generates the next command word according to the specific meaning of the last data in the data to be processed. Specifically, the control state machine sends the command address contained in the last data in the data to be processed to the decoder, and the decoder generates the next command word. According to the command word, the memory interface returns the corresponding data from the memory to the block operation processor for processing.

[0028] Furthermore, after the block operation processor completes the processing of the data to be processed, the processing result is stored in the register of the bus interface, and then an interrupt message is sent to the central processing unit immediately or after all data processing is completed to notify the central processing unit to read the processing result. Alternatively, the bus interface is released to change the bus from busy to idle. It can be seen that the central processing unit does not participate in the process of data reading and processing except sending configuration information to the block operation processor, and all operations are completed by the storage controller. The storage controller directly issues a command to read data, which solves the problem of large command delay in the traditional circuit structure and accelerates the reading speed to the greatest extent; at the same time, the data is also processed, and the central processing unit does not need to process the data from the other end of the bus, which reduces the data transmission time on the bus and improves the efficiency of data processing. At the same time, it also reduces the load of the central processing unit, and the circuit operation is more efficient and consumes less power.

[0029] It should be noted that when the memory interface is continuously read, the interface is continuously occupied, but the system still needs to run. As a better solution, the central processing unit directly reads the required data from the memory through the normal read / write channel between the bus interface and the memory interface during the switching interval of the command word, so that while ensuring the efficiency of block data reading, the system is also avoided from stopping. In another embodiment, the normal read / write channel between the bus interface and the memory interface is set to a higher priority, and the command word is run when the memory interface is idle, which has little impact on the performance of the system, but will increase the running time of the command word. In another embodiment, the system runs the servo program in other memories, which does not affect the operation of block data.

[0030] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.

[0031] In addition, the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Furthermore, the functional units in the various embodiments of the present application may be integrated together to form an independent part, or each unit may exist separately, or two or more units may be integrated to form an independent part.

[0032] It will be understood by those skilled in the art that all or part of the processes in the above-mentioned embodiment methods can be implemented 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, the references 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 may include read-only memory ROM, programmable memory PROM, electrically programmable memory DPROM, electrically erasable programmable memory DDPROM or flash memory. Volatile memory may include random access memory RAM or external cache memory.

[0033] The technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of 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.

[0034] The above embodiments only express several embodiments of the present invention, 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 ordinary technicians in this field, 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.

Claims

1. A storage controller architecture, characterized in that: The architecture includes a block operation processor, a bus interface and a memory interface; wherein the block operation processor is connected to the bus interface and the memory interface respectively, and the block operation processor sends a command word to the memory interface according to the configuration information of the bus interface, and then processes the data returned by the memory interface; The bus interface is connected to the memory interface, so that the bus interface can directly communicate with the memory interface during the switching interval of the command word.

2. A storage controller architecture according to claim 1, characterized in that: The block operation processor includes a decoder and a control state machine; wherein, A decoder, connected to the bus interface and the control state machine, for generating a command word according to the configuration information of the bus interface or the data returned by the memory interface; The control state machine is connected with the decoder, the bus interface and the memory interface, and is used for reading and processing the data returned by the memory interface according to the command word.

3. A data processing circuit, characterized in that: The circuit includes a storage controller architecture as described in any one of claims 1 to 2, and also includes a central processing unit and a memory respectively connected to the storage controller architecture; wherein the bus interface is connected to the memory interface so that during the switching interval of the command word, the central processing unit can communicate with the memory interface through the bus interface.

4. A data processing circuit according to claim 3, characterized in that: The central processing unit is connected to the bus interface and is used to generate configuration information according to the data processing request, and then send it to the block operation processor through the bus interface.

5. A data processing circuit according to claim 3, characterized in that: The central processing unit is connected to the block operation processor. When the block operation processor completes data processing, the block operation processor sends an interrupt signal to the central processing unit.

6. A data processing method, characterized in that: The method is implemented by the data processing circuit according to any one of claims 3 to 5, and the method comprises: According to the data processing request, the central processing unit generates configuration information and sends it to the block operation processor, so that the block operation processor generates a command word and sends it to the memory interface to read the data to be processed, and then processes the data to be processed according to the configuration information, and finally returns the processing result to the central processing unit; in the switching interval of the command word, the central processing unit communicates with the memory interface through the bus interface to meet the operation requirements of the data processing circuit.

7. A data processing method according to claim 6, characterized in that: The configuration information includes: Reading mode, including normal mode and linked list mode; wherein the normal mode means that data is read only once, and the linked list mode means that the data to be read next time is related to the last data currently read; wherein the last data currently read has a specific meaning; The starting address indicates the starting position of the data to be processed in the memory; Data length, indicating the size of the data to be processed; Operation mode, which indicates the data operation method to be performed on the data to be processed; The timeout limit indicates the time limit for the block operation processor to process data. After the timeout, the current operation will be forced to end.

8. A data processing method according to claim 7, characterized in that: The block operation processor generates the next command word according to the specific meaning of the last data in the data to be processed; wherein the command word includes any one of a reading mode, a starting address, a data length, an operation mode and a timeout limit.

9. A data processing method according to claim 6, characterized in that: After the block operation processor completes the processing of the data to be processed, it stores the processing result in the register of the bus interface and then sends an interrupt message to the central processing unit.