System-on-chip command response management apparatus and method

By using a command response management device with multi-level command execution nodes, the problem of high resource consumption in the command response management process of SoC systems is solved. It realizes centralized processing and anomaly monitoring of commands and responses, and improves the robustness and resource utilization efficiency of the system.

CN119065815BActive Publication Date: 2026-02-27WUXI STARS MICRO SYSTEM TECHNOLOGIES CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202411206120.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-29
Publication Date
2026-02-27
Estimated Expiration
2044-08-29

AI Technical Summary

Technical Problem

In SoC systems, the resource consumption of command execution nodes gradually increases, and the lack of efficient command response management and anomaly monitoring solutions leads to excessive storage resource consumption.

Method used

The command response management device employs a multi-level command execution node, including a command buffer chain to be executed, a command issuance buffer chain, a response buffer chain, and an exception command buffer chain. It achieves centralized processing and categorized caching of commands and responses through linked list storage, and handles exceptions through a unified exception monitoring mechanism.

Benefits of technology

It achieves standardized management of commands and responses, avoids resource waste, improves system robustness, and handles abnormal commands through a retry mechanism to reduce systemic errors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119065815B_ABST
    Figure CN119065815B_ABST
Patent Text Reader

Abstract

The application provides an on-chip system command response management device and method. The device comprises: a multi-stage command execution node; the command execution node comprises: a command response management mechanism, a command execution mechanism and a command response mechanism; the command response management mechanism comprises: a to-be-executed command buffer chain, an issued command buffer chain, a response buffer chain, an exception command buffer chain and an exception detection unit; the to-be-executed command buffer chain caches to-be-executed commands received from a previous-stage command execution node; the issued command buffer chain caches executed commands; the response buffer chain caches responses received from a lower-stage execution node; the exception command buffer chain caches exception commands; the command execution mechanism executes to-be-executed commands picked from the to-be-executed command buffer chain, issues the executed commands to a lower-stage command execution node and caches the executed commands to the issued command buffer chain; and the exception detection unit performs exception monitoring, picks exception commands from the issued command buffer chain and caches the exception commands to the exception command buffer chain.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application belongs to the technical field of computers, and particularly relates to a system-on-chip command response management device and method. BACKGROUND

[0002] With the increasing size of the SOC system, the order of the command word data level is gradually increasing, and the ordered scheduling, management and life cycle classification monitoring of the command word become more important.

[0003] In the SoC system based on the command and response interaction in the related art, the general command full life stage is completed by multiple command execution nodes. When a certain command execution node obtains the command and executes the command function of the stage, the command is forwarded to the next command execution node, and when the next command execution node receives the lower-level response, the corresponding response is fed back to the current command execution node, forming a command-response closed loop.

[0004] As shown in the figure, the circle command is divided into three life stages, and the command and response are completed by node 0, node 1 and node 4: Figure 1

[0005] Command issuing: node 0->node 1->node 4

[0006] Command execution: node 4

[0007] Command response: node 4->node 1->node 0

[0008] Due to the difference and diversity of the command, if the execution of a certain command execution node cannot be ordered, the response received from the lower-level command execution node cannot be ordered, and therefore the command execution node management and monitoring of the execution state and exception of the executed command are the key points of the command monitoring.

[0009] In the command execution exception monitoring system in the related art, although the command exception alarm means is provided, an efficient and simple solution is often lacking.

[0010] Therefore, the command-response centralized processing and shared cache play a crucial role in the scheduling and management of the command and response of the entire storage system and the performance improvement. The command data is large, and the business types are different, which makes the storage resource consumption more and more large. SUMMARY

[0011] The present application aims to provide a system-on-chip command response management device and method, which aims to solve the technical problem of large storage resource consumption in the command response management process.

[0012] According to a first aspect of the present application, a system-on-chip command response management device is provided, comprising: a plurality of command execution nodes;​

[0013] The command execution node comprises a command response management mechanism, a command execution mechanism and a command response mechanism;

[0014] The command response management mechanism comprises a to-be-executed command buffer chain, an issued command buffer chain, a response buffer chain, an exception command buffer chain and an exception detection unit; wherein,

[0015] The to-be-executed command buffer chain is used to buffer the to-be-executed commands received from the previous command execution node;

[0016] The issued command buffer chain is used to buffer the executed commands;

[0017] The response buffer chain is used to buffer the responses received from the lower-level execution node;

[0018] The exception command buffer chain is used to buffer the exception commands;

[0019] The command execution mechanism executes the to-be-executed commands after picking them from the to-be-executed command buffer chain, issues the executed commands to the lower-level command execution node, and buffers them in the issued command buffer chain;

[0020] The exception detection unit monitors the issued command buffer chain for exceptions, picks the exception commands from the issued command buffer chain after detecting the exceptions, and buffers them in the exception command buffer chain.

[0021] In an optional embodiment, the command response management mechanism further comprises a response command searching unit, which searches the issued command buffer chain for the commands corresponding to the responses returned by the lower-level command execution node after receiving the responses, and buffers the responses in the response buffer chain if the search is successful.

[0022] In an optional embodiment, the command response management mechanism further comprises a response execution unit, which picks the responses from the response buffer chain, executes the response operations, and returns the responses to the previous command execution node after completing the response operations.

[0023] In an optional embodiment, the system-on-chip command response management device further comprises an exception processing mechanism, which picks the exception commands from the exception command buffer chain, executes the exception commands, and returns the executed exception responses to the response command exception searching unit of the command response management mechanism, and buffers the exception responses in the response buffer chain if the response command exception searching unit searches the exception command buffer chain for the corresponding exception commands.

[0024] In an optional implementation, the to-be-executed command buffer chains and the issued command buffer chains each include a plurality of command buffers, each of which is capable of buffering a plurality of commands; different to-be-executed command buffer chains correspond to different command categories; and different issued command buffer chains also correspond to different command categories.

[0025] In an optional implementation, the command execution mechanism arbitrates the plurality of to-be-executed command buffer chains, and executes a to-be-executed command extracted from the to-be-executed command buffer chain that wins the arbitration.

[0026] According to a second aspect of the present application, a system-on-chip command response management method is provided, including:

[0027] receiving a to-be-executed command issued by a previous command execution node, and storing the to-be-executed command into a to-be-executed command buffer chain of a command response management mechanism;

[0028] a command execution mechanism executing a to-be-executed command extracted from the to-be-executed command buffer chain, and issuing the executed command to a next command execution node, and buffering the executed command into an issued command buffer chain of the command response management mechanism;

[0029] receiving a response returned by the next command execution node;

[0030] a response command searching unit of the command response management mechanism searching the issued command buffer chain for a command corresponding to the response;

[0031] after the searching succeeds, buffering the response into a response buffer chain of the command response management mechanism;

[0032] a response execution mechanism extracting the response from the response buffer chain, and executing a response operation;

[0033] after the response operation is completed, returning the response to the previous command execution node.

[0034] In an optional implementation, the method further includes:

[0035] an exception detection unit of the command response management mechanism monitoring an exception of the issued command buffer chain, extracting an exception command from the issued command buffer chain after the exception is monitored, and buffering the exception command into an exception command buffer chain of the command response management mechanism;

[0036] an exception processing mechanism extracting the exception command from the exception command buffer chain, executing the exception command, and returning an exception response to the command response management mechanism after the execution;

[0037] The exception response buffer chain is cached by the exception command searching unit of the command response management mechanism after searching the corresponding exception command from the exception command buffer chain.

[0038] In an optional embodiment, the to-be-executed command buffer chains and the issued command buffer chains each include a plurality of command buffers, each of which is capable of buffering a plurality of commands; different to-be-executed command buffer chains correspond to different command categories; and different issued command buffer chains also correspond to different command categories.

[0039] In an optional embodiment, the command execution mechanism includes the following steps after extracting a to-be-executed command from the to-be-executed command buffer chain:

[0040] The command execution mechanism arbitrates a plurality of to-be-executed command buffer chains, and executes a to-be-executed command extracted from the to-be-executed command buffer chain that wins the arbitration.

[0041] Compared with the related art, the technical solution of the present application has at least the following advantages:

[0042] The above command response management device and method of the present application can be applied to any command execution node in a command response-based S o C system; the centralized processing and classified caching of command words and response words are realized by the chain table storage mode, the normalized management of commands and responses is realized, all chains share resources when the characteristic information of the commands and responses is consistent, and resource waste is avoided; and the present application can effectively monitor different stages of the life cycle of commands by hanging different command buffer chains to different categories of commands and responses.

[0043] The present application also realizes the following by a unified exception monitoring mechanism: when a command is abnormal or a lower node cannot respond, the abnormal scene of the target system is preserved, the exception processing mechanism restructures the command by a reliable retry mechanism and delivers it to the command execution mechanism of the lower command execution node for execution, the response of the abnormal command is delivered to the command response management mechanism of the current command execution node after the execution is completed, a part of systematic errors is avoided, the system robustness is improved, and the normalized processing of abnormal commands is realized.

[0044] Other features and advantages of the present application will be set forth in the following description, and in part will become apparent to those skilled in the art by reference to the following description and will be acquired through practice of the present application. The objects and other advantages of the present application will be realized and achieved by the structures and processes indicated in the specification and the accompanying drawings. BRIEF DESCRIPTION OF DRAWINGS

[0045] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related art, the following will briefly introduce the drawings needed to be used in the embodiments or related art description. Obviously, the drawings described below are only some embodiments of the present application, and for those skilled in the art, other drawings can also be obtained without creative labor based on these drawings.

[0046] Figure 1 is a command flow conversion effect diagram according to the related art.

[0047] Figure 2 is an architecture diagram of a command response management device according to an exemplary embodiment of the present application.

[0048] Figure 3 is a flow diagram of a command response management method according to an exemplary embodiment of the present application. DETAILED DESCRIPTION

[0049] In order to make the purposes, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor fall within the scope of protection of the present application.

[0050] The method provided by the present application can be implemented in a terminal environment which can include one or more of the following components: a processor, a memory and a display screen. The memory stores at least one instruction which is loaded and executed by the processor to implement the method described in the following embodiments.

[0051] The processor can include one or more processing cores. The processor connects various parts in the entire terminal through various interfaces and lines, and executes various functions and processes data of the terminal by running or executing instructions, programs, code sets or instruction sets stored in the memory, and calling data stored in the memory.

[0052] The memory can include a random access memory (RAM) and can also include a read-only memory (ROM). The memory can be used to store instructions, programs, codes, code sets or instructions.

[0053] The display screen is used to display the user interface of each application program.

[0054] In addition, those skilled in the art can understand that the structure of the terminal described above does not constitute a limitation on the terminal, and the terminal can include more or fewer components, or combine certain components, or different component arrangements. For example, the terminal also includes radio frequency circuitry, input units, sensors, audio circuitry, power supplies, and the like, which are not described here.

[0055] To solve the technical problem of increasing resource consumption of nodes executing commands in an SOC system in the related art, an on-chip system command response management device is exemplarily provided in the application. Referring to Figure 2 As shown in the figure, the on-chip system command response management device comprises a multi-stage command execution node.

[0056] The command execution node comprises a command response management mechanism, a command execution mechanism, and a command response mechanism.

[0057] The command response management mechanism comprises a to-be-executed command buffer chain, an issued command buffer chain, a response buffer chain, an exception command buffer chain, and an exception detection unit; wherein,

[0058] The to-be-executed command buffer chain is used to cache to-be-executed commands received from a previous-stage command execution node.

[0059] The issued command buffer chain is used to cache executed commands.

[0060] The response buffer chain is used to cache responses received from a lower-stage execution node.

[0061] The exception command buffer chain is used to cache exception commands.

[0062] The command execution mechanism executes the to-be-executed commands after picking them from the to-be-executed command buffer chain, issues the executed commands to a lower-stage command execution node, and caches them in the issued command buffer chain.

[0063] The exception detection unit monitors the issued command buffer chain for exceptions, picks exception commands from the issued command buffer chain after detecting an exception, and caches them in the exception command buffer chain.

[0064] It should be noted that the to-be-executed command buffer chain allows the previous-stage command execution node of the current-stage command execution node to issue a command burst, and caches the command issued by the previous-stage command execution node in the to-be-executed command buffer chain; the current-stage command execution node picks, executes, and issues the commands in the to-be-executed command buffer chain according to execution efficiency, and writes them into the issued command buffer chain.

[0065] The command issuing buffer chain is used to temporarily store the commands issued to the subordinate command execution node, and when the subordinate command execution node responds, the command to be responded is searched and extracted from the command issuing buffer chain, and the corresponding response is written into the response buffer chain.

[0066] The command response management mechanism further includes a response command searching unit, which searches the command corresponding to the response from the command issuing buffer chain after receiving the response returned by the subordinate command execution node, and if the search is successful, the response is cached to the response buffer chain.

[0067] After the current command execution node receives the to-be-executed command issued by the previous command execution node, the to-be-executed command is stored into the to-be-executed command buffer chain, the command execution mechanism extracts the to-be-executed command from the to-be-executed command buffer chain to execute, issues the executed command to the subordinate command execution node, and caches the executed command to the command issuing buffer chain.

[0068] After the subordinate command execution node executes the above-mentioned command received from the current command execution node, the response is returned to the current command execution node, the response command searching unit searches the command corresponding to the response from the command issuing buffer chain, and if the search is successful, the response is cached to the response buffer chain.

[0069] The command response management mechanism further includes a response execution unit, which extracts the response from the response buffer chain, executes the response operation, and returns the response to the previous command execution node after the response operation is completed.

[0070] After the current command execution node receives the to-be-executed command issued by the previous command execution node, the to-be-executed command is stored into the to-be-executed command buffer chain, the command execution mechanism extracts the to-be-executed command from the to-be-executed command buffer chain to execute, issues the executed command to the subordinate command execution node, and caches the executed command to the command issuing buffer chain.

[0071] After the subordinate command execution node executes the above-mentioned command received from the current command execution node, the response is returned to the current command execution node, the response is cached to the response buffer chain, the response execution mechanism extracts the response from the response buffer chain, and executes the response operation, and after the response operation is completed, the response is returned to the previous command execution node.

[0072] It can be understood that the response buffer chain allows the subordinate command execution node to respond to the burst return, the current command execution node extracts and processes the response received from the subordinate command execution node according to the execution efficiency, and returns the currently processed response to the upper command execution node, and the command is processed in the current command execution node.

[0073] Exemplarily, the on-chip system command response management device further comprises an exception handling mechanism, which executes an exception command from the exception command buffer chain and returns an exception response after execution to a response command exception searching unit of the command response management mechanism, and if the response command exception searching unit searches for a corresponding exception command from the exception command buffer chain, the exception response is cached to the response buffer chain.

[0074] The command execution mechanism of each level of command execution node executes a to-be-executed command from the respective to-be-executed command buffer chain and issues the executed command to a lower level of command execution node while caching to a issued command buffer chain; the exception detection unit monitors the issued command buffer chain for exceptions, and after detecting an exception, extracts the exception command from the issued command buffer chain and caches it to the exception command buffer chain.

[0075] The exception handling mechanism can extract an exception command from the exception command buffer chain of each level of command execution node, execute it, and return an exception response after execution to a response command exception searching unit of the command response management mechanism of the corresponding command execution node, and if the response command exception searching unit searches for a corresponding exception command from the exception command buffer chain, the exception response is cached to the response buffer chain. In some embodiments, the exception handling mechanism can poll the exception command buffer chain of each level of command execution node.

[0076] It can be understood that the exception command buffer chain provides an exception interaction interface, allowing the exception handling mechanism to read the exception command, process the exception command, and end the processing of the exception command by the current level of command execution node.

[0077] Exemplarily, the to-be-executed command buffer chain and the issued command buffer chain each comprise a plurality of buffer chains, each of which can cache a plurality of commands; different to-be-executed command buffer chains correspond to different command categories; and different issued command buffer chains also correspond to different command categories.

[0078] For each level of command execution node, a plurality of to-be-executed command buffer chains and a plurality of issued command buffer chains can be set, each to-be-executed command buffer chain can cache a plurality of commands of the same type, and different to-be-executed command buffer chains can cache to-be-executed commands of different types, and similarly, each issued command buffer chain can cache a plurality of issued commands of the same type, and different to-be-executed command buffer chains can cache issued commands of different types.

[0079] Exemplarily, the number of to-be-executed command buffer chains can be flexibly set according to the specific business category of the issued command of the previous level of command execution node, and a to-be-executed command buffer chain can be hung according to the category of the to-be-executed command issued by the previous level of command execution node, and a plurality of to-be-executed commands of the same type can be cached on each to-be-executed command buffer chain.

[0080] The number of the command issuing buffer chains can be flexibly set according to the specific service classification of the commands issued by the current command execution node to the lower command execution node, and each command issuing buffer chain can buffer multiple commands of the same type according to the classification of the issued commands.

[0081] The service classification and the number of classifications of the commands can be determined in advance, and each command execution node can set a corresponding number of to-be-executed command buffer chains according to the service classification and the number of classifications. The commands issued by the previous command execution node can carry the corresponding service classification, and the current command execution node can be connected to the corresponding to-be-executed command buffer chain according to the service classification of the received commands.

[0082] Similarly, the current command execution node can set a corresponding number of command issuing buffer chains according to the service classification and the number of classifications of the commands issued to the lower command execution node. The commands issued to the lower command execution node can be connected to the corresponding command issuing buffer chain according to the service classification, and the commands in the command issuing buffer chain can carry the corresponding service classification when issued to the lower command execution node.

[0083] In the embodiments of the present application, the to-be-executed command buffer chain, the command issuing buffer chain, the response buffer chain, and the exception command buffer chain can be used to complete the unified management and monitoring of the command execution, issuing, response, and exception of the current node.

[0084] Exemplarily, the command execution mechanism arbitrates the plurality of to-be-executed command buffer chains and executes a to-be-executed command picked from the to-be-executed command buffer chain that obtains the arbitration right.

[0085] When there are multiple to-be-executed command buffer chains, the command execution mechanism can use a pre-set arbitration mechanism to arbitrate the plurality of to-be-executed command buffer chains. The arbitration result is that one to-be-executed command buffer chain is selected, that is, the selected to-be-executed command buffer chain obtains the arbitration right, and the command execution mechanism executes a to-be-executed command picked from the to-be-executed command buffer chain that obtains the arbitration right. Then, the command execution mechanism arbitrates the plurality of to-be-executed command buffer chains again and executes a to-be-executed command picked from the to-be-executed command buffer chain that obtains the arbitration right, and so on.

[0086] Exemplarily, the arbitration mechanism can be a polling mechanism, that is, the to-be-executed command buffer chain with the highest ranking is selected first to obtain the arbitration right according to a pre-set order, and so on, until the to-be-executed command buffer chain with the lowest ranking obtains the arbitration right. In the next round of arbitration, the to-be-executed command buffer chain with the highest ranking is selected again, and this process continues until all to-be-executed commands in all to-be-executed command buffer chains are executed.

[0087] Accordingly, the present application exemplarily proposes a system-on-chip command response management method, which comprises:

[0088] receiving a to-be-executed command issued by a previous command execution node, and storing the to-be-executed command in a to-be-executed command buffer chain of a command response management mechanism;

[0089] executing the to-be-executed command by the command execution mechanism after picking up the to-be-executed command from the to-be-executed command buffer chain, issuing the executed command to a next command execution node, and caching the executed command in an issued command buffer chain of the command response management mechanism;

[0090] receiving a response returned by the next command execution node;

[0091] searching for a command corresponding to the response from the issued command buffer chain by a response command searching unit of the command response management mechanism;

[0092] caching the response in a response buffer chain of the command response management mechanism after the searching is successful;

[0093] picking up the response from the response buffer chain by a response execution mechanism and executing the response operation;

[0094] returning the response to the previous command execution node after the response operation is completed.

[0095] Exemplarily, the method further comprises:

[0096] monitoring the issued command buffer chain for an exception by an exception detection unit of the command response management mechanism, picking up an exception command from the issued command buffer chain and caching the exception command in an exception command buffer chain of the command response management mechanism after an exception is monitored;

[0097] executing the exception command from the exception command buffer chain by an exception processing mechanism and returning an exception response to the command response management mechanism after the execution;

[0098] caching the exception response in the response buffer chain by a response command exception searching unit of the command response management mechanism after the corresponding exception command is searched from the exception command buffer chain.

[0099] Exemplarily, the to-be-executed command buffer chain and the issued command buffer chain each comprise a plurality of buffer chains, each of which is capable of caching a plurality of commands; different to-be-executed command buffer chains correspond to different command classifications; and different issued command buffer chains also correspond to different command classifications.

[0100] Exemplarily, the execution of the to-be-executed command by the command execution mechanism after picking up the to-be-executed command from the to-be-executed command buffer chain comprises:

[0101] The command execution mechanism arbitrates among the multiple command execution buffer chains, and executes the command taken from the command execution buffer chain that has won the arbitration.

[0102] As shown in Figure 3 An optional embodiment, the command response management method comprises the steps of: Figure 3 As shown in

[0103] Step 1: The previous command execution node issues a command.

[0104] Step 2: The command enters the command response management mechanism of the current command execution node, and is hung on the command execution buffer chain of the current command execution node as a command to be executed by the current command execution node, waiting for execution by the current command execution node.

[0105] Step 3: The command execution mechanism of the current command execution node arbitrates among the multiple command execution buffer chains, and executes the command taken from the command execution buffer chain that has won the arbitration.

[0106] Step 4: After the command execution mechanism of the current command execution node executes the taken command, the command is issued to the next command execution node.

[0107] Step 5: The command execution mechanism of the current command execution node issues the command while hanging the command on the issued command buffer chain of the command response management mechanism, waiting for the response from the next command execution node.

[0108] Step 6: After the next command execution node executes the command, the response is returned to the current command execution node, and the response enters the command response management mechanism.

[0109] Step 7: The response command searching unit of the command response management mechanism searches the corresponding issued command from the issued command buffer chain based on the response.

[0110] Step 8: If the search is successful, the returned response is hung on the response buffer chain of the command response management mechanism, waiting for the current command execution node to perform the response operation.

[0111] Step 9: The exception detection unit of the command response management mechanism also monitors the issued command buffer chain for exceptions.

[0112] Step 10: If the exception detection unit detects an exception, the exception command is taken from the issued command buffer chain and hung on the exception command buffer chain, and the exception processing mechanism is notified through the corresponding interface.

[0113] Step 11: The exception processing mechanism takes the exception command from the exception command buffer chain for execution.

[0114] Step 12: the exception handling mechanism returns an exception response to the command response management mechanism of the current command execution node;

[0115] Step 13: after the command response management mechanism of the current command execution node receives the response of the exception command, the response command exception searching unit searches the corresponding exception command in the exception command buffer chain;

[0116] Step 14: if the search is successful, the exception response is hung in the response buffer chain, waiting for the current command execution node to perform the response operation;

[0117] Step 15: the response execution mechanism of the current command execution node extracts the response from the response buffer chain and performs the response operation;

[0118] Step 16: the response execution mechanism of the current command execution node returns the response to the previous command execution node, and the command response management mechanism completes the entire processing.

[0119] The SoC command response management method in the embodiment is executed on the SoC command response management device described in the above embodiment, and specific details can be referred to the description of the SoC command response management device in the above, which will not be described here.

[0120] The SoC command response management device and method proposed in the application have the following beneficial effects:

[0121] The command response management device and method can be applied to any command execution node in a SoC system based on command response; the centralized processing and classified caching of command words and response words are realized through the link list storage mode, the normalized management of commands and responses is realized; when the characteristic information of the command and the response is consistent, all links share resources, which avoids resource waste; the application also hangs different buffer chains through different classifications of commands and responses, which can effectively monitor different stages of the life cycle of the command.

[0122] The application also realizes the following through a unified exception monitoring mechanism: when the command is abnormal and the lower node cannot respond, the target system exception scene is preserved, the exception handling mechanism restructures the command through a reliable retry mechanism and delivers it to the command execution mechanism of the lower command execution node for execution, and after the execution is completed, the response of the exception command is delivered to the command response management mechanism of the current command execution node, which avoids part of the system error, improves the system robustness, and realizes the normalized processing of the exception command.

[0123] It can be understood that the circuit structure, name and parameter described in the above embodiment are only examples. Those skilled in the art can also easily combine and adjust the structural features of the above multiple embodiments according to the use needs, and the concept of the application should not be limited to the specific details of the above examples.

[0124] Although the present application has been described in detail with reference to the foregoing embodiments, it should be understood that modifications can be made to the foregoing embodiments, or additional implementations can be implemented, without departing from the spirit and scope of the inventive subject matter. Accordingly, the present application is not limited to the implementations described herein, but is intended to cover all modifications and equivalents falling within the spirit and scope of the inventive subject matter.

Claims

1. A system-on-a-chip command response management device, characterized in that, include: Multi-level command execution nodes; The command execution node includes: a command response management organization, a command execution organization, and a command response organization; The command response management mechanism includes: a pending command buffer chain, a command issuance buffer chain, a response buffer chain, an abnormal command buffer chain, and an abnormality detection unit; wherein... The command buffer chain is used to cache commands to be executed received from the preceding command execution node; The command buffer chain is used to cache commands that have already been executed; The response buffer chain is used to cache responses received from lower-level execution nodes; The exception command buffer chain is used to cache exception commands; The command execution mechanism retrieves the command to be executed from the command buffer chain, executes it, and sends the executed command to the next-level command execution node, while caching it in the command sending buffer chain. The anomaly detection unit performs anomaly monitoring on the command issuance buffer chain. Upon detecting an anomaly, it retrieves the abnormal command from the command issuance buffer chain and caches it in the abnormal command buffer chain. The on-chip system command response management device further includes an exception handling mechanism, which retrieves an exception command from the exception command buffer chain, executes it, and returns the executed exception response to the response command exception search unit of the command response management mechanism. If the response command exception search unit finds a corresponding exception command from the exception command buffer chain, it caches the exception response in the response buffer chain.

2. The on-chip system command response management device according to claim 1, characterized in that, The command response management mechanism also includes a response command search unit, which, after receiving a response returned by a lower-level command execution node, searches for a command corresponding to the response from the command issuance buffer chain. If the search is successful, the response is cached in the response buffer chain.

3. The on-chip system command response management device according to claim 1, characterized in that, The command response management mechanism also includes a response execution unit, which is used to retrieve responses from the response buffer chain, perform response operations, and return the responses to the preceding command execution node after the response operations are completed.

4. The on-chip system command response management device according to any one of claims 1-3, characterized in that, The pending command buffer chain and the issued command buffer chain each include multiple chains, each capable of caching multiple commands; different pending command buffer chains correspond to different command categories; different issued command buffer chains also correspond to different command categories.

5. The on-chip system command response management device according to claim 4, characterized in that, The command execution mechanism arbitrates multiple command buffer chains and extracts a command from the command buffer chain that has obtained the right of arbitration before executing it.

6. A command response management method for an on-chip system, characterized in that, include: Receive the command to be executed issued by the previous command execution node, and store the command to be executed in the command to be executed buffer chain of the command response management organization; The command execution mechanism retrieves the command to be executed from the command buffer chain and executes it. It then sends the executed command to the next-level command execution node and caches the executed command in the command response management mechanism's command buffer chain. Receive the response returned by the lower-level command execution node; The command response search unit of the command response management organization searches for the command corresponding to the response from the issued command buffer chain; After a successful search, the response is cached in the response buffer chain of the command response management organization; The response execution mechanism retrieves a response from the response buffer chain and performs the response operation; After completing the response operation, the response is returned to the preceding command execution node; The method further includes: The anomaly detection unit of the command response management organization performs anomaly monitoring on the command issuance buffer chain. After detecting an anomaly, it retrieves the abnormal command from the command issuance buffer chain and caches it in the abnormal command buffer chain of the command response management organization. The exception handling mechanism retrieves the exception command from the exception command buffer chain, executes it, and returns the exception response after execution to the command response management mechanism. After the command response management unit finds the corresponding abnormal command in the abnormal command buffer chain, it caches the abnormal response in the response buffer chain.

7. The on-chip system command response management method according to claim 6, characterized in that, The pending command buffer chain and the issued command buffer chain each include multiple chains, each capable of caching multiple commands; different pending command buffer chains correspond to different command categories; different issued command buffer chains also correspond to different command categories.

8. The on-chip system command response management method according to claim 7, characterized in that, The command executor retrieves commands to be executed from the command buffer chain and executes them, including: The command execution mechanism arbitrates multiple command buffer chains and extracts a command from the command buffer chain that has obtained the right of arbitration before executing it.

Citation Information

Patent Citations

  • I / O control method of storage device

    CN114691049A