System-on-chip command response management device and method
By designing a command response management device for multi-level command execution nodes and linked list storage in the SoC system, the problem of high resource consumption of command execution nodes is solved, normalized management of commands and responses and exception handling are realized, and system robustness is improved .
Patent Information
- Application Number
- CN202411206120.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-29
- Publication Date
- 2024-12-03
- Estimated Expiration
- 2044-08-29
AI Technical Summary
In SoC systems, command differences and diversity make command execution nodes unable to maintain order execution, resulting in excessive storage resources consumed during command response management, and lack of efficient exception monitoring and processing solutions.
A system-on-chip command response management device is designed, including a multi-level command execution node, a command response management mechanism, a command execution mechanism and an exception detection unit. It realizes centralized processing and classification cache of command words and response words through linked list storage, and adopts a unified The exception monitoring mechanism and the retry mechanism handle exception commands.
It realizes normalized management of commands and responses, avoids resource waste, improves system robustness, and ensures normalized processing of exception commands and system performance.
Smart Images

Figure CN119065815A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of computer technology, and in particular, relates to a system-on-chip command response management device and method. Background Art
[0002] As the scale of SOC systems becomes larger and larger, the data volume of command words is gradually increasing. The orderly scheduling, management and classified monitoring of the life cycle of command words are becoming more important.
[0003] In the SoC system based on command and response interaction of related technologies, all life stages of a general command are completed by multiple command execution nodes. When a command execution node obtains a command and executes the command function of this stage, it forwards the command to the next command execution node, and expects the next command execution node to feedback the corresponding response to the command execution node at this level when it receives the response from the lower level, forming a command-response closed loop.
[0004] like Figure 1 As shown, the circle command is divided into three life stages, and the command and response are completed by nodes 0, 1, and 4:
[0005] Command sent: Node 0->Node 1->Node 4
[0006] Command execution: Node 4
[0007] Command response: Node 4->Node 1->Node 0
[0008] Due to the differences and diversity of commands, if a command execution node cannot maintain the order of command execution, the responses received from the subordinate command execution nodes often cannot maintain the order. Therefore, command execution node management and monitoring of the execution status and exceptions of the executed commands are the focus of command monitoring.
[0009] In the command execution exception monitoring system of the related technology, although a command exception alarm means is provided, it often lacks an efficient and concise response solution.
[0010] Therefore, centralized processing of commands and responses and shared cache play a vital role in the scheduling, management and performance improvement of commands and responses of the entire storage system. The huge amount of command data and different types of services have led to an increasing consumption of storage resources. Summary of the invention
[0011] The purpose of the present application is to provide a system-on-chip command response management device and method, aiming 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, there is provided a system-on-chip command response management device, comprising: a multi-level command execution node;
[0013] The command execution node includes: a command response management mechanism, a command execution mechanism and a command response mechanism;
[0014] The command response management mechanism includes: a buffer chain of pending commands, a buffer chain of issued commands, a response buffer chain, an abnormal command buffer chain and an abnormality detection unit; wherein,
[0015] The to-be-executed command buffer chain is used to cache the to-be-executed commands received from the previous-level command execution node;
[0016] The command buffer chain is used to cache executed commands;
[0017] The response buffer chain is used to cache responses received from lower-level execution nodes;
[0018] The abnormal command buffer chain is used to cache abnormal commands;
[0019] The command execution mechanism extracts the to-be-executed command from the to-be-executed command buffer chain and executes it, and sends the executed command to the lower-level command execution node, and caches it in the sent command buffer chain;
[0020] The exception detection unit performs exception monitoring on the issued command buffer chain, and after detecting an exception, extracts an abnormal command from the issued command buffer chain and caches the command in the abnormal command buffer chain.
[0021] In an optional embodiment, the command response management mechanism also includes a response command search unit, which is used to search for a command corresponding to the response from the issued command buffer chain after receiving the response returned by the lower-level command execution node. If the search is successful, the response is cached in the response buffer chain.
[0022] In an optional embodiment, the command response management mechanism further includes a response execution unit, which is used to extract the response from the response buffer chain, perform a response operation, and return the response to the previous command execution node after the response operation is completed.
[0023] In an optional embodiment, the on-chip system command response management device also includes: an exception handling mechanism, which extracts exception commands from the exception command buffer chain for execution, 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 searches for the corresponding exception command from the exception command buffer chain, the exception response is cached in the response buffer chain.
[0024] In an optional embodiment, the to-be-executed command buffer chain and the to-be-issued command buffer chain each include a plurality of chains, each capable of caching a plurality of commands; different to-be-executed command buffer chains correspond to different command categories; and different to-be-issued command buffer chains also correspond to different command categories.
[0025] In an optional implementation, the command execution mechanism arbitrates a plurality of the to-be-executed command buffer chains, and extracts and executes the to-be-executed commands from the to-be-executed command buffer chains that have obtained arbitration rights.
[0026] According to a second aspect of the present application, a system on chip command response management method is provided, comprising:
[0027] Receive the to-be-executed command issued by the previous command execution node, and store the to-be-executed command in the to-be-executed command buffer chain of the command response management agency;
[0028] The command execution mechanism extracts the to-be-executed commands from the to-be-executed command buffer chain and executes them, and sends the executed commands to the subordinate command execution nodes, and at the same time caches the executed commands to the command buffer chain sent by the command response management mechanism;
[0029] Receiving a response returned by the subordinate command execution node;
[0030] The reply command search unit of the command reply management mechanism searches for the command corresponding to the reply from the issued command buffer chain;
[0031] After the search is successful, the response is cached in the response buffer chain of the command response management agency;
[0032] The response execution mechanism extracts the response from the response buffer chain and executes the response operation;
[0033] After the response operation is completed, the response is returned to the previous command execution node.
[0034] In an optional embodiment, the method further comprises:
[0035] The abnormality detection unit of the command response management mechanism performs abnormality monitoring on the issued command buffer chain, and after detecting the abnormality, extracts the abnormal command from the issued command buffer chain and caches it in the abnormal command buffer chain of the command response management mechanism;
[0036] The exception handling mechanism extracts the exception command from the exception command buffer chain for execution, and returns the exception response after execution to the command response management mechanism;
[0037] After searching for the corresponding abnormal command from the abnormal command buffer chain, the abnormal response command search unit of the command response management mechanism caches the abnormal response to the response buffer chain.
[0038] In an optional embodiment, the to-be-executed command buffer chain and the to-be-issued command buffer chain each include a plurality of chains, each capable of caching a plurality of commands; different to-be-executed command buffer chains correspond to different command categories; and different to-be-issued command buffer chains also correspond to different command categories.
[0039] In an optional implementation manner, the command execution mechanism extracts the to-be-executed command from the to-be-executed command buffer chain and then executes it, including:
[0040] The command execution mechanism arbitrates the plurality of command buffer chains to be executed, and extracts and executes commands to be executed from the command buffer chains to be executed that have obtained arbitration rights.
[0041] Compared with the related art, the technical solution of the present application has at least the following advantages:
[0042] The command response management device and method of the present application can be applied to S based on command response. o C system; it realizes centralized processing and classified caching of command words and response words through linked list storage, and realizes normalized management of commands and responses; when the characteristic information of commands and responses is consistent, all chains share resources to avoid waste of resources; the present application also effectively monitors different stages of the life cycle of commands by hanging different classifications of commands and responses to different buffer chains.
[0043] The present application also uses a unified exception monitoring mechanism to retain the abnormal scene of the target system when the command is abnormal and the lower-level node cannot respond. The exception handling mechanism reconstructs the command through a reliable retry mechanism and delivers it to the command execution mechanism of the lower-level command execution node for execution. After the execution is completed, the response to the abnormal command is delivered to the command response management mechanism of the command execution node at this level, avoiding some systematic errors, improving the robustness of the system, and realizing the normalized processing of abnormal commands.
[0044] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or be understood by practicing the present application. The purpose and other advantages of the present application can be realized and obtained through the structures and processes indicated in the description and the drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. It is obvious that the drawings described below are certain embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0046] Figure 1 It is a schematic diagram of command flow effect according to related technology.
[0047] Figure 2 4 is an architectural diagram of a command response management device according to an exemplary embodiment of the present application.
[0048] Figure 3 It is a flowchart of a command response management method according to an exemplary embodiment of the present application. DETAILED DESCRIPTION
[0049] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution 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 part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0050] The method provided in the present application can be implemented in the following terminal environment, and the terminal may include one or more of the following components: a processor, a memory, and a display screen. The memory stores at least one instruction, and the instruction is loaded and executed by the processor to implement the method described in the following embodiments.
[0051] The processor may include one or more processing cores. The processor uses various interfaces and lines to connect various parts of the entire terminal, and executes various functions of the terminal and processes data 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 may include random access memory (RAM) or read-only memory (ROM). The memory may 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.
[0054] In addition, those skilled in the art can understand that the structure of the above terminal does not constitute a limitation on the terminal, and the terminal may include more or fewer components, or combine certain components, or arrange the components differently. For example, the terminal also includes components such as a radio frequency circuit, an input unit, a sensor, an audio circuit, and a power supply, which will not be described in detail here.
[0055] In order to solve the technical problem of increasing resource consumption of nodes executing commands in the SOC system in the related art, the present application exemplarily proposes a system on chip command response management device. Figure 2 As shown, the system-on-chip command response management device includes: a multi-level command execution node;
[0056] The command execution node includes: a command response management mechanism, a command execution mechanism and a command response mechanism;
[0057] The command response management mechanism includes: a buffer chain of pending commands, a buffer chain of issued commands, a response buffer chain, an abnormal command buffer chain and an abnormality detection unit; wherein,
[0058] The to-be-executed command buffer chain is used to cache the to-be-executed commands received from the previous-level command execution node;
[0059] The command buffer chain is used to cache executed commands;
[0060] The response buffer chain is used to cache responses received from lower-level execution nodes;
[0061] The abnormal command buffer chain is used to cache abnormal commands;
[0062] The command execution mechanism extracts the to-be-executed command from the to-be-executed command buffer chain and executes it, and sends the executed command to the lower-level command execution node, and caches it in the sent command buffer chain;
[0063] The exception detection unit performs exception monitoring on the issued command buffer chain, and after detecting an exception, extracts an abnormal command from the issued command buffer chain and caches the command in the abnormal command buffer chain.
[0064] It should be noted that the pending command buffer chain allows the previous-level command execution node of the command execution node at this level to burst issue commands, and caches the commands issued by the previous-level command execution node in the pending command buffer chain; the command execution node at this level extracts, executes, and issues commands in the pending command buffer chain based on the execution efficiency, and writes them into the issuing command buffer chain.
[0065] The command buffer chain is used to temporarily store commands sent to the subordinate command execution node. When the subordinate command execution node responds, it searches and extracts the command to be responded from the command buffer chain, and writes the corresponding response into the response buffer chain.
[0066] Exemplarily, the command response management mechanism also includes a response command search unit, which is used to search for a command corresponding to the response from the issued command buffer chain after receiving the response returned by the lower-level command execution node. If the search is successful, the response is cached in the response buffer chain.
[0067] After the command execution node at this level receives the pending command issued by the previous level command execution node, it stores the pending command in the pending command buffer chain. The command execution mechanism extracts the pending command from the pending command buffer chain and executes it, and sends the executed command to the lower-level command execution node, and at the same time caches the executed command in the sent command buffer chain.
[0068] After the lower-level command execution node executes the above command received from the current-level command execution node, it returns a response to the current-level command execution node. The response command search unit searches for the command corresponding to the response from the sent command buffer chain. If the search is successful, the response is cached in the response buffer chain.
[0069] Exemplarily, the command response management mechanism further includes a response execution unit, which is used to extract the response from the response buffer chain, execute a response operation, and return the response to the previous command execution node after the response operation is completed.
[0070] After the command execution node at this level receives the pending command issued by the previous level command execution node, it stores the pending command in the pending command buffer chain. The command execution mechanism extracts the pending command from the pending command buffer chain and executes it, and sends the executed command to the lower-level command execution node, and at the same time caches the executed command in the sent command buffer chain.
[0071] After the lower-level command execution node executes the above command received from the current-level command execution node, it returns a response to the current-level command execution node. After the response is cached in the response buffer chain, the response execution mechanism extracts the response from the response buffer chain and performs a response operation. After completing the response operation, the response is returned to the previous-level command execution node.
[0072] It can be understood that the response buffer chain allows the lower-level command execution node to return a response burst. The command execution node at this level extracts and processes the responses received from the lower-level command execution node based on the execution efficiency, and returns the currently processed responses to the upper-level command execution node. From then on, the command is processed at the command execution node at this level.
[0073] Exemplarily, the on-chip system command response management device also includes: an exception handling mechanism, which extracts exception commands from the exception command buffer chain for execution, 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 searches for the corresponding exception command from the exception command buffer chain, the exception response is cached in the response buffer chain.
[0074] The command execution mechanism of each level of the command execution node extracts the pending commands from their respective pending command buffer chains and executes them, and sends the executed commands to the lower-level command execution nodes, and caches them in the sent command buffer chain; the exception detection unit monitors the sent command buffer chain for exceptions, and after detecting the exception, extracts the abnormal commands from the sent command buffer chain and caches them in the said abnormal command buffer chain.
[0075] The exception handling mechanism can extract the abnormal command execution from the abnormal command buffer chain of each level of command execution node, and return the abnormal response after execution to the response command abnormal search unit of the command response management mechanism of the corresponding command execution node. The response command abnormal search unit searches for the corresponding abnormal command from the abnormal command buffer chain, and then caches the abnormal response to the response buffer chain. In some embodiments, the exception handling mechanism can poll the abnormal 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 and process the exception command, from which the exception command is processed at the command execution node at this level.
[0077] Exemplarily, the to-be-executed command buffer chain and the to-be-issued command buffer chain respectively include a plurality of chains, each capable of caching a plurality of commands; different to-be-executed command buffer chains correspond to different command categories; and different to-be-issued command buffer chains also correspond to different command categories.
[0078] For each level of command execution node, multiple pending command buffer chains and multiple issued command buffer chains can be set at the same time. Each pending command buffer chain can cache multiple commands of the same type, and different pending command buffer chains can cache different types of pending commands. Similarly, each issued command buffer chain can cache multiple issued commands of the same type, and different pending command buffer chains can cache different types of issued commands.
[0079] Exemplarily, the number of pending command buffer chains can be flexibly set according to the specific business classification corresponding to the command issued by the previous command execution node. The pending commands issued by the previous command execution node can be hung on different pending command buffer chains according to the classification of the pending commands issued by the previous command execution node. Each pending command buffer chain can cache multiple pending commands of the same type.
[0080] The number of command buffer chains can be flexibly set according to the specific business classification of the commands sent by the command execution node at this level to the lower-level command execution node. The commands can be attached to different command buffer chains according to their classification. Each command buffer chain can cache multiple commands of the same type.
[0081] The business classification and number of categories of the command can be determined in advance. Each level of command execution node can set a corresponding number of command buffer chains to be executed according to the business classification and number of categories. The command issued by the previous level command execution node can carry its corresponding business classification. After receiving the command, the command execution node at this level will be attached to the corresponding command buffer chain to be executed according to its business classification.
[0082] Similarly, the command execution node at this level can set a corresponding number of command buffer chains according to the business classification and number of classifications sent to the lower-level command execution node. The commands sent to the lower-level command execution node can be hung in the corresponding command buffer chain according to their business classification, and the commands in the command buffer chain can carry the corresponding business classification when sent to the lower-level command execution node.
[0083] In the embodiment of the present application, unified management and monitoring of command execution, issuance, response and exception of nodes at this level can be achieved through the pending command buffer chain, the issuing command buffer chain, the response buffer chain and the exception command buffer chain.
[0084] Exemplarily, the command execution mechanism arbitrates the plurality of command buffer chains to be executed, and extracts and executes commands to be executed from the command buffer chains to be executed that have obtained arbitration rights.
[0085] When there are multiple pending command buffer chains, the command execution agency can use a pre-set arbitration mechanism to arbitrate the multiple pending command buffer chains. The result of the arbitration is that one of the pending command buffer chains is selected, that is, the selected pending command buffer chain obtains the arbitration right, and the command execution agency picks one of the pending commands from the pending command buffer chain that obtains the arbitration right to execute; thereafter, the command execution agency arbitrates the multiple pending command buffer chains again, and picks one of the pending commands from the pending command buffer chain that obtains the arbitration right to execute, and so on.
[0086] Exemplarily, the arbitration mechanism may be a polling mechanism, that is, in accordance with a preset order, the first-ranked pending command buffer chain is selected first to obtain the arbitration right, and so on, until the last-ranked pending command buffer chain obtains the arbitration right. In the next round of arbitration, the first-ranked pending command buffer chain is selected again, until all pending commands in all pending command buffer chains are executed.
[0087] Accordingly, the present application exemplarily proposes a system on chip command response management method, the method comprising:
[0088] Receive the to-be-executed command issued by the previous command execution node, and store the to-be-executed command in the to-be-executed command buffer chain of the command response management agency;
[0089] The command execution mechanism extracts the to-be-executed commands from the to-be-executed command buffer chain and executes them, and sends the executed commands to the subordinate command execution nodes, and at the same time caches the executed commands to the command buffer chain sent by the command response management mechanism;
[0090] Receiving a response returned by the subordinate command execution node;
[0091] The reply command search unit of the command reply management mechanism searches for the command corresponding to the reply from the issued command buffer chain;
[0092] After the search is successful, the response is cached in the response buffer chain of the command response management agency;
[0093] The response execution mechanism extracts the response from the response buffer chain and executes the response operation;
[0094] After the response operation is completed, the response is returned to the previous command execution node.
[0095] Exemplarily, the method further includes:
[0096] The abnormality detection unit of the command response management mechanism performs abnormality monitoring on the issued command buffer chain, and after detecting the abnormality, extracts the abnormal command from the issued command buffer chain and caches it in the abnormal command buffer chain of the command response management mechanism;
[0097] The exception handling mechanism extracts the exception command from the exception command buffer chain for execution, and returns the exception response after execution to the command response management mechanism;
[0098] After searching for the corresponding abnormal command from the abnormal command buffer chain, the abnormal response command search unit of the command response management mechanism caches the abnormal response to the response buffer chain.
[0099] Exemplarily, the to-be-executed command buffer chain and the to-be-issued command buffer chain respectively include a plurality of chains, each capable of caching a plurality of commands; different to-be-executed command buffer chains correspond to different command categories; and different to-be-issued command buffer chains also correspond to different command categories.
[0100] Exemplarily, the command execution mechanism extracts the to-be-executed command from the to-be-executed command buffer chain and then executes it, including:
[0101] The command execution mechanism arbitrates the plurality of command buffer chains to be executed, and extracts and executes commands to be executed from the command buffer chains to be executed that have obtained arbitration rights.
[0102] like Figure 3 As shown, in an optional embodiment, the command response management method is as follows Figure 3 Implementation steps 1-16 shown:
[0103] Step 1: The previous command execution node issues a command;
[0104] Step 2: The command enters the command response management mechanism of the command execution node at this level, and is hung on the command buffer chain of the command execution node at this level as a pending command of the command execution node at this level, waiting to be executed by the command execution node at this level;
[0105] Step 3: The command execution mechanism of the command execution node at this level arbitrates multiple pending command buffer chains, and extracts pending commands from the pending command buffer chain that has obtained arbitration rights and executes them;
[0106] Step 4: After the command execution mechanism of the command execution node at this level executes the extracted command, it sends the command to the command execution node at the lower level;
[0107] Step 5: When the command execution mechanism of the command execution node at this level issues the command, it hangs the command to the command buffer chain of the command response management mechanism at this level, and waits for the response of the lower-level command execution node to return;
[0108] Step 6: After executing the command, the lower-level command execution node returns a response to the command execution node at the same level, and the response enters the command response management mechanism;
[0109] Step 7: The response command search unit of the command response management mechanism searches for the corresponding command issued from the issued command buffer chain based on the response;
[0110] Step 8: If the search is successful, the returned response is attached to the response buffer chain of the command response management agency, waiting for the command execution node at this level to perform the response operation;
[0111] Step 9: The abnormality detection unit of the command response management agency also monitors the abnormality of the issued command buffer chain;
[0112] Step 10: If the abnormality detection unit detects an abnormality, it removes the abnormal command from the issuing command buffer chain, attaches it to the abnormal command buffer chain, and notifies the abnormality handling mechanism through the corresponding interface;
[0113] Step 11: The exception handling mechanism extracts 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 command execution node at this level;
[0115] Step 13: After the command response management agency of the command execution node at this level receives the response to the abnormal command, the response command abnormal search unit searches for the corresponding abnormal command in the abnormal command buffer chain;
[0116] Step 14: If the search is successful, the abnormal response is hung in the response buffer chain, waiting for the command execution node at this level to perform the response operation;
[0117] Step 15: The response execution mechanism of the command execution node at this level extracts the response from the response buffer chain and executes the response operation;
[0118] Step 16: The response execution mechanism of the command execution node at this level returns a response to the command execution node at the previous level, and the command response management mechanism completes all processing.
[0119] The system-on-chip command response management method in this embodiment is executed on the system-on-chip command response management device described in the above embodiment. For specific details, please refer to the description of the system-on-chip command response management device above, which will not be repeated here.
[0120] The beneficial effects of the above-mentioned system-on-chip command response management device and method proposed in this application are as follows:
[0121] The above-mentioned command response management device and method of the present application can be applied to any command execution node in a SoC system based on command response; it realizes centralized processing and classified caching of command words and response words through linked list storage, and realizes normalized management of commands and responses; when the characteristic information of commands and responses is consistent, all chains share resources to avoid resource waste; the present application can also effectively monitor different stages of the command life cycle by hanging different buffer chains according to different classifications of commands and responses.
[0122] The present application also uses a unified exception monitoring mechanism to retain the abnormal scene of the target system when the command is abnormal and the lower-level node cannot respond. The exception handling mechanism reconstructs the command through a reliable retry mechanism and delivers it to the command execution mechanism of the lower-level command execution node for execution. After the execution is completed, the response to the abnormal command is delivered to the command response management mechanism of the command execution node at this level, avoiding some systematic errors, improving the robustness of the system, and realizing the normalized processing of abnormal commands.
[0123] It is understood that the circuit structures, names and parameters described in the above embodiments are only examples. Those skilled in the art can also easily combine and adjust the structural features of the above embodiments according to the use requirements, and should not limit the concept of the present application to the specific details of the above examples.
[0124] Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that he or she may still modify the technical solutions described in the aforementioned embodiments, or make equivalent substitutions for some of the technical features therein; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A system on chip command response management device, characterized in that: include: Multi-level command execution nodes; The command execution node includes: a command response management mechanism, a command execution mechanism and a command response mechanism; The command response management mechanism includes: a buffer chain of pending commands, a buffer chain of issued commands, a response buffer chain, an abnormal command buffer chain and an abnormality detection unit; wherein, The to-be-executed command buffer chain is used to cache the to-be-executed commands received from the previous-level command execution node; The command buffer chain is used to cache executed commands; The response buffer chain is used to cache responses received from lower-level execution nodes; The abnormal command buffer chain is used to cache abnormal commands; The command execution mechanism extracts the to-be-executed command from the to-be-executed command buffer chain and executes it, and sends the executed command to the lower-level command execution node, and caches it in the sent command buffer chain; The exception detection unit performs exception monitoring on the issued command buffer chain, and after detecting an exception, extracts an abnormal command from the issued command buffer chain and caches the command in the abnormal command buffer chain.
2. The system on chip command response management device according to claim 1, characterized in that: The command response management mechanism also includes a response command search unit, which is used to search the command corresponding to the response from the issued command buffer chain after receiving the response returned by the lower-level command execution node, and cache the response to the response buffer chain if the search is successful.
3. The system on chip 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 extract the response from the response buffer chain, execute the response operation, and return the response to the previous command execution node after the response operation is completed.
4. The system on chip command response management device according to claim 1, characterized in that: The on-chip system command response management device also includes: an exception handling mechanism, which extracts exception commands from the exception command buffer chain for execution, 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 searches for the corresponding exception command from the exception command buffer chain, the exception response is cached in the response buffer chain.
5. The system on chip command response management device according to any one of claims 1 to 4, characterized in that: The to-be-executed command buffer chain and the to-be-issued command buffer chain respectively include a plurality of chains, each of which can cache a plurality of commands; different to-be-executed command buffer chains correspond to different command categories; and different to-be-issued command buffer chains also correspond to different command categories.
6. The system on chip command response management device according to claim 5, characterized in that: The command execution mechanism arbitrates the plurality of command buffer chains to be executed, and extracts and executes commands to be executed from the command buffer chains to be executed that have obtained arbitration rights.
7. A system on chip command response management method, characterized in that: include: Receive the to-be-executed command issued by the previous command execution node, and store the to-be-executed command in the to-be-executed command buffer chain of the command response management agency; The command execution mechanism extracts the to-be-executed commands from the to-be-executed command buffer chain and executes them, and sends the executed commands to the subordinate command execution nodes, and at the same time caches the executed commands to the command buffer chain sent by the command response management mechanism; Receiving a response returned by the subordinate command execution node; The reply command search unit of the command reply management mechanism searches for the command corresponding to the reply from the issued command buffer chain; After the search is successful, the response is cached in the response buffer chain of the command response management agency; The response execution mechanism extracts the response from the response buffer chain and executes the response operation; After the response operation is completed, the response is returned to the previous command execution node.
8. The system on chip command response management method according to claim 7, characterized in that: The method further comprises: The abnormality detection unit of the command response management mechanism performs abnormality monitoring on the issued command buffer chain, and after detecting the abnormality, extracts the abnormal command from the issued command buffer chain and caches it in the abnormal command buffer chain of the command response management mechanism; The exception handling mechanism extracts the exception command from the exception command buffer chain for execution, and returns the exception response after execution to the command response management mechanism; After searching for the corresponding abnormal command from the abnormal command buffer chain, the abnormal response command search unit of the command response management mechanism caches the abnormal response to the response buffer chain.
9. The system on chip command response management method according to claim 7 or 8, characterized in that: The to-be-executed command buffer chain and the to-be-issued command buffer chain respectively include a plurality of chains, each of which can cache a plurality of commands; different to-be-executed command buffer chains correspond to different command categories; and different to-be-issued command buffer chains also correspond to different command categories.
10. The system on chip command response management method according to claim 9, characterized in that: The command execution mechanism extracts the to-be-executed command from the to-be-executed command buffer chain and executes it, including: The command execution mechanism arbitrates the plurality of command buffer chains to be executed, and extracts and executes commands to be executed from the command buffer chains to be executed that have obtained arbitration rights.
Citation Information
Patent Citations
Proxy layer response method for communication devices
CN101145961A
A command response processing system and method in agent layer of the communication system device
CN101193030A
Command-based write cache management method and device, computer equipment and storage medium
CN114253483A
I / O control method of storage device
CN114691049A
Data pre-caching method and device, equipment and medium
CN116561080A
