Configuration verification method, system, chip and device

By introducing a secure configuration hub into the high-performance computing chip to perform local backup and consistency comparison of configuration information, the problem of critical IP modules being vulnerable to attack and tampering is solved, enabling rapid anomaly detection and response at the hardware level, and ensuring the safe and stable operation of the system.

CN123178237APending Publication Date: 2026-11-27SHANGHAI BIREN TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611496661.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-23
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

In high-performance computing chips, the configuration data of critical IP modules is susceptible to unexpected flips caused by physical attacks such as electromagnetic faults. The system cannot detect and respond in time, leading to system abnormalities.

Method used

A security configuration hub is introduced to perform local backup of configuration information. It sends and receives actual status values ​​through a sideband channel, performs consistency comparison, and outputs alarm signals to quickly locate anomalies at the hardware level.

Benefits of technology

It enables rapid identification and response to configuration anomalies at the hardware level, ensuring the correctness and security of critical IP modules and preventing the system from making decisions based on erroneous states.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123178237A_ABST
    Figure CN123178237A_ABST
Patent Text Reader

Abstract

The present application relates to the field of integrated circuit design and hardware security technology, and provides a configuration verification method, system, chip and device, comprising: receiving configuration information for a target IP module and performing local backup to obtain a reference value; sending the configuration information to the target IP module to enable the target IP module to perform configuration writing based on the configuration information and return an actual state value; performing consistency comparison of the received actual state value and the reference value to obtain a comparison result; in the case that the comparison result represents that the actual state value and the reference value are inconsistent, determining that the target IP module has a configuration anomaly, and outputting an alarm signal. The present application realizes timely perception and rapid alarm of configuration anomaly at the hardware level by performing closed-loop comparison of the reference value locally backed up in the security configuration hub and the actual state value returned by the target IP module, so that fault injection attacks can be effectively resisted, chip physical security can be improved, and system abnormal response delay can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the fields of integrated circuit design and hardware security technology, and in particular to a configuration verification method, system, chip, and device. Background Technology

[0002] Currently, high-performance computing chips such as general-purpose graphics processing units (GPGPUs) and graphics processing units (GPUs) integrate a large number of key intellectual property (IP) modules. The correct configuration of these key IP modules is directly related to the physical security of the chip and the normal operation of the system.

[0003] Currently, IP module configuration distribution mechanisms typically employ a unidirectional open-loop model, where the host directly writes configuration data to the target IP module's configuration register via the system bus. Once the configuration data is transmitted via the bus and written by the target IP module, the system assumes a successful write. However, configuration data is highly vulnerable to physical attacks such as electromagnetic fault injection and laser fault injection during bus transmission or internal writing, leading to unexpected configuration data flips. Because the system lacks a mechanism to collect and verify the actual configuration state of the target IP module, it cannot quickly detect discrepancies between the actual write state and the expected value at the hardware level. If the target IP module makes decisions based on an incorrect configuration state, it can easily trigger system anomalies. Furthermore, when configuration anomalies occur, existing solutions usually require software intervention for polling and troubleshooting. This software-level response has significant latency and can easily miss the optimal opportunity to block destructive behavior. Summary of the Invention

[0004] This invention provides a configuration verification method, system, chip, and device to address the shortcomings of related technologies where configuration data for key IP modules is sent in a one-way open-loop manner, making it vulnerable to attacks and tampering, and preventing the system from detecting and responding quickly in a timely manner.

[0005] This invention provides a configuration verification method applied to a secure configuration hub in a chip, the method comprising: Receive configuration information for the target IP module, and back up the configuration information locally to obtain a baseline value; The configuration information is sent to the target IP module so that the target IP module performs configuration writing based on the configuration information and sends back the actual status value generated by the configuration writing. Receive the actual status value returned by the target IP module, compare the actual status value with the benchmark value to obtain the comparison result; If the comparison result indicates that the actual state value is inconsistent with the benchmark value, it is determined that the target IP module has a configuration abnormality, and an alarm signal is output.

[0006] According to a configuration verification method provided by the present invention, the step of receiving configuration information for a target IP module and backing up the configuration information locally to obtain a baseline value includes: The system receives configuration information for the target IP module from the host via the system bus, and parses the configuration information to obtain the parsed configuration information. The parsed configuration information is written to the local backup register group for storage backup, and the stored backup configuration information is used as the base value.

[0007] According to a configuration verification method provided by the present invention, the step of comparing the actual state value with the baseline value for consistency includes: Perform a bitwise XOR operation between the actual state value and the reference value to obtain the XOR result; If all bits in the XOR result are the first logical value, then the actual state value is determined to be consistent with the reference value, and the configuration information takes effect. If a second logical value exists in the XOR result, then it is determined that the actual state value is inconsistent with the reference value.

[0008] According to a configuration verification method provided by the present invention, there are multiple target IP modules, and the multiple target IP modules are multiple IP modules of the same type that are expected to receive the same configuration information; Sending the configuration information to the target IP module includes: The configuration information is sent to the multicast verification agent, so that the multicast verification agent performs multi-path splitting on the configuration information and distributes it in parallel to each target IP module; The receipt of the actual status value returned by the target IP module includes: The representative value returned by the multicast verification agent is received and used as the actual status value; wherein the representative value is any actual status value extracted by the multicast verification agent from the actual status values ​​returned by each of the target IP modules.

[0009] According to a configuration verification method provided by the present invention, the multicast verification agent is further configured to perform a first-level consistency comparison between the actual status values ​​returned by each of the target IP modules, and output a first-level alarm signal when the result of the first-level consistency comparison indicates that the actual status values ​​returned by each of the target IP modules are inconsistent; the security configuration center performs a consistency comparison between the representative value and the benchmark value as a second-level consistency comparison, and the alarm signal output by the security configuration center is a second-level alarm signal.

[0010] According to a configuration verification method provided by the present invention, the first-level consistency comparison is a bitwise XOR comparison. When the multicast verification agent performs the first-level consistency comparison, it performs a bitwise XOR operation on the actual status values ​​returned by each of the target IP modules to obtain the first-level XOR result. When there are bits indicating inconsistency in the first-level XOR result, it determines that the actual status values ​​returned by each of the target IP modules are inconsistent.

[0011] According to a configuration verification method provided by the present invention, after the step of determining that the target IP module has a configuration anomaly, the method further includes: The generated alarm signals are combined into a multi-bit interrupt signal according to a preset bit order. The alarm signal includes at least one of the first-level alarm signal and the second-level alarm signal. The interrupt signal is sent to the host so that the host can locate one or more target IP modules with configuration abnormalities based on the values ​​of each bit in the interrupt signal, and execute anomaly handling decisions based on the location results.

[0012] According to a configuration verification method provided by the present invention, the transmission of configuration information and the return of actual status values ​​are both implemented in the form of sideband signals, and the transmission of sideband signals adopts an active-ready handshake protocol.

[0013] The present invention also provides a configuration verification system, including a security configuration hub and at least one target IP module; The security configuration hub is used to receive configuration information for the target IP module, back up the configuration information locally to obtain a baseline value, and send the configuration information to the target IP module. The target IP module is used to write configuration based on the received configuration information and send the actual status value generated by the configuration writing back to the security configuration center. The security configuration center is also used to receive the actual status value returned by the target IP module, compare the actual status value with the benchmark value, and determine that the target IP module has a configuration abnormality if the comparison result indicates that the actual status value is inconsistent with the benchmark value, and output an alarm signal.

[0014] According to a configuration verification system provided by the present invention, the security configuration hub receives the configuration information sent by the host through the system bus, and the security configuration hub and the target IP module are connected through a sideband channel independent of the system bus. The transmission of the configuration information and the feedback of the actual status value are both transmitted through the sideband channel.

[0015] According to the configuration verification system provided by the present invention, the security configuration hub includes a bus interface, an information parsing logic circuit, a backup register group, and an information verification logic circuit; The bus interface is used to connect to the system bus to receive the configuration information; The information parsing logic circuit is used to parse the configuration information to obtain the parsed configuration information; The backup register group is used to store the parsed configuration information as the base value; The information verification logic circuit is used to perform a bitwise XOR comparison between the actual state value returned and the reference value, and output the alarm signal when the comparison result is inconsistent.

[0016] According to a configuration verification system provided by the present invention, a multicast verification proxy is further included. There are multiple target IP modules, and the multiple target IP modules are multiple IP modules of the same type that are expected to receive the same configuration information. The multicast verification proxy includes a multi-path branching logic circuit and a first-level comparison logic circuit. The multi-path branching logic circuit is used to branch the configuration information sent by the security configuration hub through the side channel, and distribute it in parallel to each target IP module through the side channel. The first-level comparison logic circuit is used to perform a first-level consistency comparison on the actual status values ​​returned by each of the target IP modules through the sideband channel, and output a first-level alarm signal when the result of the first-level consistency comparison indicates that the actual status values ​​returned by each of the target IP modules are inconsistent. The multicast verification agent is also used to extract any one actual status value from the actual status values ​​returned by each of the target IP modules as a representative value, and to return the representative value to the security configuration center through the sideband channel, so that the security configuration center can perform a second-level consistency comparison between the representative value and the benchmark value, and output a second-level alarm signal when the comparison result shows inconsistency.

[0017] The present invention also provides a chip including the configuration verification system as described in any of the above.

[0018] The present invention also provides a computer device, including a host and a chip as described above, wherein the host is connected to a security configuration hub in the chip via a system bus, and the host is used to receive interrupt signals reported by the chip and execute exception handling decisions.

[0019] The present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and running on the processor, wherein the processor executes the computer program to implement the configuration verification method as described above.

[0020] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the configuration verification method as described above.

[0021] The present invention also provides a computer program product, including a computer program that, when executed by a processor, implements the configuration verification method as described above.

[0022] The configuration verification method, system, chip, and device provided by this invention establish a baseline value by performing local backup when receiving configuration information for a target IP module through a secure configuration hub. The target IP module is then required to return its actual status value after completing the configuration write, thus constructing a reliable closed-loop verification link at the hardware level. Subsequently, the secure configuration hub compares the returned actual status value with the locally backed-up baseline value. If the comparison result indicates a discrepancy, an alarm signal is immediately generated at the hardware level, indicating a configuration anomaly in the target IP module. This mechanism effectively overcomes the problem in traditional unidirectional open-loop configuration mechanisms where the system cannot detect unexpected data flips caused by physical attacks during transmission or writing, thereby ensuring the correctness and security of critical IP module configurations and preventing the system from making decisions based on erroneous states. Attached Figure Description

[0023] To more clearly illustrate the technical solutions in this invention or related technologies, the accompanying drawings used in the description of the embodiments or related technologies will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of this invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0024] Figure 1 This is a flowchart illustrating the configuration verification method provided by the present invention; Figure 2 This is one of the structural schematic diagrams of the configuration verification system provided by the present invention; Figure 3 This is the second structural schematic diagram of the configuration verification system provided by the present invention; Figure 4 This is the third structural schematic diagram of the configuration verification system provided by the present invention; Figure 5 This is the fourth structural schematic diagram of the configuration verification system provided by the present invention; Figure 6 This is a schematic diagram of the structure of the electronic device provided by the present invention. Detailed Implementation

[0025] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are within the scope of protection of this invention.

[0026] Currently, high-performance computing chip designs such as general-purpose graphics processing units (GPGPUs) and graphics processing units (GPUs) integrate a large number of key intellectual property (IP) modules. The correct configuration of some of these key IP modules directly affects the physical security of the chip and the normal operation of the system.

[0027] Currently, the configuration distribution mechanism for IP modules typically adopts a one-way open-loop mode. This means the host directly writes configuration data to the target IP module's configuration register via the system bus. After the configuration data is transmitted to the target IP module via the bus, the target IP module only performs the write operation, and the system assumes the write was successful, without actively reporting the actual written register status value to the host. Furthermore, for scenarios with multiple similar critical IP modules within a chip, the design typically involves the host independently distributing configurations one by one via the system bus, or using simple broadcast or multicast signals for one-to-many distribution. However, this approach also lacks the collection and consistency verification of the actual configuration status of each IP module after distribution.

[0028] In applications such as GPGPUs, where security and reliability requirements are extremely high, the aforementioned traditional IP module configuration distribution and management schemes have certain shortcomings. Specifically, under the traditional unidirectional open-loop configuration mechanism, configuration data is highly vulnerable to various physical attacks, such as electromagnetic fault injection and laser fault injection, during bus transmission or writing to internal IP module registers. These attacks can cause unexpected flips in configuration data, and the system cannot detect the inconsistency between the actual written value and the expected value. If critical registers are misconfigured, the chip will make decisions based on the erroneous state, which can easily lead to system anomalies or even irreversible physical damage, resulting in serious security risks.

[0029] Secondly, in multi-IP multicast scenarios, while multicast or broadcast configuration methods can improve the efficiency of configuration distribution to some extent, they cannot guarantee the absolute consistency of the actual values ​​written to each target IP module. If multiple IP modules are read back and verified one by one to ensure security, it will consume a large amount of system bus bandwidth and generate significant time overhead, resulting in low system efficiency and difficulty in guaranteeing system scalability.

[0030] Furthermore, when configuration anomalies occur, the relevant technical solutions typically cannot immediately detect and locate the specific IP module malfunctioning at the hardware level. The system often needs to rely on software-level intervention, initiating readback operations for polling and troubleshooting. This software-based response method has significant latency, preventing the system from taking timely emergency measures and causing it to miss the optimal opportunity to block malicious attacks.

[0031] To address this issue, the present invention provides a configuration verification method. This method involves locally backing up configuration information in a security configuration hub to form a baseline value. A sideband channel independent of the system bus is used to send configuration information to the target IP module and receive its returned actual status value. The actual status value is then compared with the baseline value for consistency. Furthermore, for multicast scenarios involving multiple IP modules, a multicast verification proxy is introduced to perform multi-level consistency comparisons. An alarm signal is output when a comparison anomaly occurs, enabling rapid hardware-level location of the issue and overcoming the aforementioned shortcomings. The technical solution provided by this invention will be described in detail below.

[0032] Figure 1 This is a flowchart illustrating the configuration verification method provided by the present invention, as follows: Figure 1 As shown, this method is applied to the security configuration hub in a chip, and the method includes: Step S10: Receive configuration information for the target IP module and back up the configuration information locally to obtain a baseline value.

[0033] It should be noted that the execution entity of the method provided in this embodiment of the invention is the security configuration hub deployed in the chip. In high-performance computing chips such as GPGPUs, which have extremely high requirements for security and reliability, this security configuration hub, as the core security defense and control module that manages the entire system, is directly or indirectly connected to the system host and various underlying hardware nodes inside the chip. Its main responsibility is to receive configuration instructions issued by the host and, during the process of sending configuration data to various underlying hardware nodes, execute closed-loop comparison and security verification logic, thereby building an independent and high-level security defense for the chip.

[0034] Specifically, in integrated circuit design, a target IP module typically refers to various intellectual property modules with specific hardware functions integrated within a chip. In actual chip architectures, this can include, but is not limited to, any critical hardware unit such as a power management module, clock control module, encryption engine module, and memory controller. Configuration information refers to the data that the host system intends to write into the internal control registers of the aforementioned target IP module. The correctness of this data directly affects the chip's physical-level operating mode and security permissions.

[0035] As the system's main control module, the security configuration hub directly communicates with the upper-layer system to receive configuration information for the target IP module. Specifically, the security configuration hub can receive configuration commands issued by the host through the system's communication interface (such as a standard system bus), and perform protocol conversion or data parsing on the received command information when necessary, thereby accurately extracting the configuration data that needs to be sent to the underlying hardware nodes (such as the target IP module).

[0036] After obtaining the specific configuration information for the target IP module, the security configuration hub not only undertakes the task of routing and distributing data downwards, but also simultaneously performs local backup of the configuration information. Specifically, the security configuration hub can use its internal secure storage medium as a local backup carrier. For example, it can directly write the configuration information into the internally integrated backup register set (such as a latch circuit composed of D flip-flops) or other forms of high-speed on-chip memory units for registration and latching, thereby achieving local temporary storage of configuration data on the hardware circuit. It should be understood that the local backup mechanism essentially intercepts the host's initial and absolutely correct distribution intent and temporarily stores it as the baseline value for subsequent closed-loop verification.

[0037] The data temporarily stored through the aforementioned local backup operation serves as the baseline value. This baseline value represents the standard voltage level that the system expects the target IP module to ultimately exhibit after configuration. This baseline value is unaffected by underlying link interference or external physical attacks, and serves as the sole reference for determining whether the actual write state of the target IP module is correct in the subsequent closed-loop verification process.

[0038] Step S20: Send the configuration information to the target IP module so that the target IP module can perform configuration writing based on the configuration information and send back the actual status value generated by the configuration writing.

[0039] Specifically, while backing up the configuration information locally, the security configuration hub also sends the configuration information to the corresponding target IP module along the hardware transmission path. After receiving the configuration information, the target IP module writes it into its internal configuration register to make the configuration effective.

[0040] To overcome the shortcomings of traditional unidirectional open-loop configuration mechanisms where the system defaults to successful writes and fails to detect underlying anomalies, this invention mandates that the target IP module immediately sample the actual level state of its internal configuration registers after completing the configuration write operation. This involves extracting the actual state value generated by the configuration write operation and transmitting it back to the security configuration center. This actual state value objectively reflects the true, hardware-level data solidification result after data transmission and local writing. Regardless of whether the data is interfered with during link transmission or subjected to bit-flipping tampering caused by physical attacks such as electromagnetic or laser fault injection during register writing, this actual state value accurately reflects the final damaged state.

[0041] Step S30: Receive the actual status value returned by the target IP module, compare the actual status value with the benchmark value to obtain the comparison result.

[0042] Specifically, after receiving the actual status value returned by the target IP module, the security configuration hub uses its internal hardware verification logic to compare it with the locally backed-up baseline value. This consistency comparison logic aims to verify whether the actual hardware state at the lower level (i.e., the actual status value) is completely consistent with the baseline state (i.e., the baseline value) expected to be set at the top level. In the specific hardware implementation, the consistency comparison can employ basic logical operation comparisons, complex hash verification, or other multi-bit data matching strategies. The goal is simply to determine whether the sent and returned data are consistent in content, ultimately outputting a comparison result indicating whether the two are consistent.

[0043] Step S40: If the comparison result indicates that the actual state value is inconsistent with the benchmark value, it is determined that the target IP module has a configuration abnormality and an alarm signal is output.

[0044] Specifically, if the comparison result indicates any slight difference (i.e., inconsistency) between the actual state value and the baseline value, it suggests that the configuration data has been corrupted or unintended tampered with during the distribution process or during the writing phase to the target IP module's internal registers. In this case, the security configuration hub quickly determines at the hardware level that the target IP module has a configuration anomaly and immediately outputs an alarm signal. This alarm signal, as a direct security interruption credential generated by the underlying hardware, can be captured in real time by the upper-layer system or host, thereby guiding the driver to take further security interception and emergency measures such as hardware reset, module isolation, or system-level circuit breaking to block the destructive behavior within the optimal timeframe.

[0045] Accordingly, if the comparison result indicates that the actual state value is completely consistent with the baseline value, it means that no data was lost in the physical link of the configuration data distribution on the bus and the internal writing, and that it was not damaged or tampered with by physical attack methods such as electromagnetic fault injection or laser fault injection. At this time, the system can confirm that the underlying hardware registers of the target IP module have been accurately and correctly fixed to the security state expected by the top layer, that is, the configuration information is effective normally. The security configuration center does not need to trigger any alarm mechanism, the target IP module will execute subsequent business logic based on the correct configuration parameters, and the entire chip system will continue to maintain a safe and stable operating state according to the established expected working mode.

[0046] The method provided in this invention establishes a baseline value by having a secure configuration hub perform local backup upon receiving configuration information for a target IP module. The target IP module is then required to send back its actual status value after completing the configuration write, thus constructing a reliable closed-loop verification link at the hardware level. Subsequently, the secure configuration hub compares the sent-back actual status value with the locally backed-up baseline value. If the comparison indicates a discrepancy, the hardware can immediately determine that the target IP module has a configuration anomaly and output an alarm signal. This mechanism effectively overcomes the problem in traditional unidirectional open-loop configuration mechanisms where the system cannot detect unexpected data flips due to physical attacks during transmission or writing, thereby ensuring the correctness and security of critical IP module configurations and preventing the system from making decisions based on erroneous states.

[0047] Based on the above embodiments, step S10 specifically includes: Step S11: Receive configuration information for the target IP module sent by the host through the system bus, and parse the configuration information to obtain the parsed configuration information; Step S12: Write the parsed configuration information into the local backup register group for storage backup, and use the stored backup configuration information as the base value.

[0048] Specifically, in actual chip architecture, the system bus is the standard communication data link connecting the host and various functional nodes within the chip. When the host attempts to modify the operating state of the underlying IP module, the raw configuration data it sends typically includes additional protocol information such as the bus protocol message header, the destination address field, and control flags.

[0049] The security configuration hub interfaces with the system bus through its configured bus interface. After capturing the original instruction, it uses internally deployed information parsing logic circuitry to parse it. This parsing process essentially converts the bus protocol format into an internal signal format, removes unnecessary protocol overhead, and extracts the pure, valid configuration data used only to change the state of the target IP module's internal registers, thus obtaining the parsed configuration information.

[0050] After extracting the pure configuration information, the security configuration hub directly inputs it into an internally deployed local backup register set for register backup. In the specific hardware implementation, this backup register set can be an array of multiple D flip-flops. The parsed configuration data is input as a level signal to the input terminal (D terminal) of the D flip-flop. When the external clock signal and enable signal are valid, the data is latched inside the flip-flop and continuously output from the output terminal (Q terminal). Through this hardware-level level latching mechanism, the configuration information is stably stored locally in the security configuration hub, forming a data backup that will not be lost due to fluctuations in the external bus state. This data backup serves as the benchmark value for subsequent verification and comparison.

[0051] The method provided in this invention, through hardware-level bus protocol parsing and register local latching mechanisms, can accurately isolate complex system bus protocol interference, thereby providing a stable and reliable reference benchmark that is not subject to potential attacks from external buses for subsequent verification and comparison.

[0052] Based on any of the above embodiments, step S30, which involves comparing the actual state value with the reference value for consistency, includes: Step S31: Perform a bitwise XOR operation between the actual state value and the reference value to obtain the XOR result; Step S32: If each bit in the XOR result is a first logic value, then the actual state value is determined to be consistent with the reference value, and the configuration information takes effect. Step S33: If a second logical value exists in the XOR result, then it is determined that the actual state value is inconsistent with the reference value.

[0053] Specifically, after receiving the actual status value transmitted back from the target IP module, the information verification logic circuit inside the security configuration center performs a bitwise XOR operation by calling the XOR gate array deployed at the chip physical layer. Here, the bitwise XOR operation means performing a sequential XOR operation on each binary bit contained in the transmitted actual status value and the corresponding bit in the locally latched reference value, thereby outputting a new binary sequence as the XOR result.

[0054] In digital circuit logic definitions, the first logic value typically represents a low level (i.e., binary data 0), while the second logic value typically represents a high level (i.e., binary data 1). Based on the physical operation characteristics of a hardware XOR gate, the gate outputs a low level (0) if and only if the two bits involved in the operation are at the same level; as long as there is a difference in the levels of the two bits, the gate outputs a high level (1).

[0055] To illustrate this with a specific example of binary data, suppose the baseline value initially intercepted and backed up by the security configuration center is a multi-bit binary number 1010. Under ideal conditions where the system is functioning normally and unattacked, the actual status value returned by the target IP module is also 1010. After a bitwise XOR operation, the output XOR result is 0000. At this point, since all bits in the result are the first logic value representing a low level (i.e., 0), the security configuration center determines that the data sent has not been tampered with throughout the entire transmission link and writing phase. Therefore, it confirms that the actual status value is completely consistent with the baseline value, and the current configuration information is working correctly.

[0056] Conversely, if a physical fault injection occurs during the configuration data writing phase, causing an unexpected flip of the least significant bit in the target IP module's configuration register, the returned actual status value becomes 1011. In this case, a bitwise XOR operation is performed between the actual status value 1011 and the reference value 1010, resulting in 0001. Since this result sequence captures the second logic value (i.e., 1) representing a high level, the detection circuit inside the security configuration hub immediately determines that there is a difference between these two sets of data at the bit level, ultimately confirming that the actual status value is inconsistent with the reference value.

[0057] The method provided in this invention uses hardware-level comparison of bit-by-bit data by utilizing the underlying hardware XOR logic gate circuit, avoiding the time delay caused by software polling comparison. Furthermore, this mechanism can accurately identify any unexpected register configuration flips at the bit level, achieving rapid anomaly determination and ensuring the sensitivity and accuracy of hardware configuration anomaly detection.

[0058] Based on any of the above embodiments, there are multiple target IP modules, and the multiple target IP modules are multiple IP modules of the same type that are expected to receive the same configuration information.

[0059] Specifically, this embodiment of the invention describes a multicast scenario where multiple identical IP modules within a chip expect to receive the same configuration. Multiple target IP modules refer to multiple identical IP modules expecting to receive the same configuration information. In complex chip architectures such as GPGPUs, to meet the processing demands of large-scale parallel computing, the hardware design typically integrates a large number of underlying hardware units that are physically identical and logically functionally identical, and divides them into specific hardware functional groups. For example, a computing unit group composed of multiple computing cores, or a cache control unit group composed of multiple cache controllers.

[0060] Because IP modules within the same group need to collaboratively execute parallel computing tasks or share memory management operations, the host system needs to send consistent configuration data when setting their operating parameters. In such application scenarios, to avoid the waste of bus bandwidth and system configuration latency caused by the host repeatedly sending the same instructions through the bus addressing process, the hardware architecture groups these IP modules with the same functions and synchronized status settings into the same group. This allows them to function as a unified hardware group, synchronously receiving the same configuration data from the security configuration hub.

[0061] Accordingly, in step S20, sending the configuration information to the target IP module includes: The configuration information is sent to the multicast verification agent, so that the multicast verification agent can perform multi-path splitting on the configuration information and distribute it in parallel to each target IP module.

[0062] Specifically, in the chip's physical topology, the multicast verification proxy is a hardware proxy node deployed close to the target IP module by IP group, and it contains multi-path splitting logic circuitry. After the security configuration hub sends the configuration information to the multicast verification proxy, the proxy internally performs hardware-level signal multi-path splitting (i.e., one-to-many operation) to distribute the same configuration information in parallel to each target IP module (such as IP_0 to IP_n) within the group.

[0063] Accordingly, in step S30, receiving the actual status value returned by the target IP module includes: The representative value returned by the multicast verification agent is received and used as the actual status value; wherein the representative value is any actual status value extracted by the multicast verification agent from the actual status values ​​returned by each of the target IP modules.

[0064] Specifically, after each target IP module completes its configuration writing and transmits its actual status value back to the multicast verification agent, if all the transmission values ​​of all IP modules are transmitted back to the security configuration center over a long distance, a large number of physical connections will need to be laid, which will seriously waste the chip's wiring resources.

[0065] Therefore, in this embodiment of the invention, the multicast verification agent randomly selects one (e.g., only the return value of IP_n) from the multiple actual state values ​​returned from IP_0 to IP_n as a representative value, either randomly or by a fixed hardware port, and transmits only this single representative value upwards to the security configuration center. Upon receiving this representative value, the security configuration center treats it as equivalent to the actual state value of the multicast group and performs subsequent baseline value comparisons.

[0066] The method provided in this invention introduces a multicast verification agent to perform hardware-level parallel forking and single-path representative value extraction of configuration signals. This ensures efficient distribution of multi-IP configurations while saving long-distance signal cabling area and communication bandwidth, achieving a balance between system scalability and hardware resource overhead.

[0067] Based on any of the above embodiments, while the multicast verification agent sends back a representative value to the security configuration center, it also performs a first-level consistency comparison between the actual status values ​​sent back by each target IP module. Specifically, the first-level consistency comparison is a horizontal consistency comparison performed by the multicast verification agent between the actual status values ​​sent back by each target IP module; the multicast verification agent outputs a first-level alarm signal when the result of the first-level consistency comparison indicates inconsistency between the actual status values ​​sent back by each target IP module; the security configuration center performs a second-level consistency comparison by comparing the representative value with the baseline value, and the alarm signal output by the security configuration center is the second-level alarm signal.

[0068] Specifically, after receiving the actual status values ​​returned by each target IP module, the multicast verification agent directly performs a horizontal consistency comparison (i.e., the first-level consistency comparison) on the hardware circuit close to the IP side. The purpose is to verify whether the actual written values ​​are consistent among all IP modules that receive the same configuration.

[0069] The multicast verification agent outputs a first-level alarm signal when the results of the first-level consistency comparison indicate inconsistencies between the actual status values ​​returned by each target IP module. For example, if an IP module in the group suffers a single point of failure injection, causing its returned actual status value to differ from other normal IP modules, the logic gate array within the multicast verification agent will capture this difference and immediately trigger the output of a first-level alarm signal indicating horizontal inconsistency.

[0070] While the multicast verification agent performs the first-level consistency comparison, the extracted representative value is synchronously sent back to the security configuration center. The first-level consistency comparison logic and the return of the representative value are concurrent and independent actions on the hardware path. Regardless of whether the first-level consistency comparison triggers an alarm, the representative value will be sent back to the security configuration center for the second-level consistency comparison.

[0071] After receiving the representative value, the security configuration center performs a second-level consistency comparison by comparing it with the baseline value. This second-level consistency comparison is a vertical consistency comparison, the purpose of which is to verify whether the actual state of the IP group under the multicast verification agent is consistent with the original intent of the host (i.e., the locally backed-up baseline value). If the second-level comparison result is inconsistent, the security configuration center will output a second-level alarm signal.

[0072] The method provided in this invention performs a first-level comparison to check horizontal consistency on the multicast verification agent side and a second-level comparison to check vertical correctness on the central side. These two hardware comparison links are independent of each other, which enables the system to not only detect configuration anomalies in multicast scenarios in real time, but also avoids the bandwidth waste caused by configuring and verifying one by one. This achieves multi-level security verification in multicast scenarios with low hardware overhead.

[0073] Based on any of the above embodiments, the first-level consistency comparison is a bitwise XOR comparison. The multicast verification agent is used to perform a bitwise XOR operation on the actual status values ​​returned by each of the target IP modules to obtain the first-level XOR result. When there are bits indicating inconsistency in the first-level XOR result, it is determined that the actual status values ​​returned by each of the target IP modules are inconsistent.

[0074] Specifically, in the actual hardware implementation, the multicast verification agent internally uses a multi-input XOR gate logic array. When the multicast verification agent receives the actual status values ​​returned by each target IP module within the same group, it performs pairwise XOR operations (or cascaded XOR operations) on the hardware circuit. As long as there are differences in the binary bits of the actual status values ​​returned by these IP modules, one or more bits of the XOR result will definitely be 1 representing a high level (i.e., bits representing inconsistency). The OR gate logic inside the multicast verification agent will capture this and immediately trigger the first-level alarm signal.

[0075] For example, suppose the security configuration hub sends a 4-bit critical configuration to a group containing three target IP modules (e.g., IP_0, IP_1, IP_2), with an expected value of 1010. Under normal conditions, all three IP modules return 1010. The multicast verification agent performs a bitwise XOR operation on this, and the resulting XOR result is all 0000, indicating that the horizontal comparison is consistent. If, during the configuration write phase, IP_2 suffers a laser fault injection, causing its least significant bit to flip unexpectedly, it actually writes and returns 1011, while IP_0 and IP_1 normally return 1010. The multicast verification agent performs a bitwise XOR operation on 1010 and 1011, and the resulting XOR result is 0001. Since this result contains a 1, the agent module immediately determines that there is an IP module configuration anomaly within the group and outputs a first-level alarm signal.

[0076] The method provided in this invention uses logic gate circuits to perform multi-channel cascaded bitwise XOR operations directly at the multicast verification agent hardware layer. This enables real-time comparison of subtle differences in multi-channel parallel data within an extremely short hardware clock cycle, thereby ensuring the horizontal consistency of the configuration status of all underlying IP modules in a multicast scenario with extremely low resource overhead.

[0077] Based on any of the above embodiments, after step S40, the method further includes: Step S50: The generated alarm signals are combined into a multi-bit interrupt signal according to a preset bit order. The alarm signal includes at least one of the first-level alarm signal and the second-level alarm signal. Step S60: The interrupt signal is sent to the host so that the host can locate one or more target IP modules with configuration abnormalities based on the values ​​of each bit in the interrupt signal, and execute anomaly handling decisions based on the location results.

[0078] Specifically, in the chip hardware topology, the alarm signals output by the security configuration hub and each multicast verification agent after detecting an anomaly are distributed as single hardware lines, each with a voltage level of 0 or 1. For centralized management by the host, the hardware circuit concatenates these scattered alarm lines according to a specified physical connection order (i.e., a preset bit order) and connects them to a vector status register with multiple data bits, thus forming a multi-bit interrupt signal. For example, the alignment error alarm line of an independent IP module is connected to Bit 0 (bit 0) of this register, the first-level alarm line of a multicast verification agent is connected to Bit 3, and the corresponding second-level alarm line is connected to Bit 4.

[0079] Upon receiving the interrupt signal, the host only needs to read the value of the multi-bit register (i.e., the vector status register) once to pinpoint which unicast IP module or multicast IP group in the global system has experienced a configuration anomaly, based on the specific bit where the high level occurs. After quickly locating the anomaly, the host system's underlying driver executes appropriate anomaly handling decisions according to the security level. These decisions may include reconfiguration, isolation and degradation operation, and system-level circuit breaker alarms.

[0080] Reconfiguration refers to initiating a hardware reset on the identified faulty IP module and re-issuing the correct configuration data. Isolation and degraded operation physically isolates the faulty IP module by suspending the operating clock or powering off when retry fails, putting the entire chip into a safe degraded operation mode. System-level fuse alarm triggers a non-maskable interrupt to forcibly terminate all tasks and lock the chip when the faulty IP module involves high security privileges. In addition, for multicast anomalies, the host can suspend the service execution of the entire faulty IP group, and then check the nodes in the group one by one through software to identify and isolate the specific faulty IP module.

[0081] The method provided in this invention splices hardware alarm signals at all levels into multi-bit interrupts according to bit order and reports them uniformly, so that the host can obtain the chip's safety status with a single read. At the same time, in conjunction with abnormal handling decisions such as reset, isolation and fuse, the system's safety performance is guaranteed while maintaining the chip's availability to the greatest extent.

[0082] Based on any of the above embodiments, the transmission of the configuration information and the return of the actual state value are both implemented in the form of sideband signals, and the transmission of the sideband signals adopts the valid-ready handshake protocol.

[0083] Specifically, in the physical architecture design of a chip, sideband refers to a dedicated physical signal communication line deployed independently outside the regular system bus. By laying out this hardware channel, the system restricts the transmission of configuration information and the return of actual status values ​​to a closed loop within a physical connection isolated from the system bus, thus not relying on or occupying the communication channel of the system bus.

[0084] Meanwhile, the transmission of sideband signals employs a valid-ready handshake protocol. In the specific implementation of the chip's underlying register transfer level circuitry, the valid-ready handshake protocol is not purely software logic, but rather constitutes a concrete hardware interface circuit entity deployed at the cross-module communication boundaries, such as the security configuration hub, multicast verification proxy, and target IP module. This entity circuit mainly includes handshake control logic and a data buffer. The handshake control logic, composed of combinational logic gates, is specifically used to detect the level states of the valid and ready pins on the hardware connections. Data transmission is only allowed when both levels are high simultaneously on the same rising edge of the clock. The data buffer typically includes a set of flip-flops or an asynchronous first-in-first-out queue. When the sender's data is valid but the receiver is not ready, this buffer is responsible for temporarily storing the blocking level signal on the physical circuitry.

[0085] The method provided in this embodiment of the invention uses sideband signals and a valid-ready handshake protocol for both the distribution of configuration data and the return of actual status values, thus constructing a dedicated verification channel independent of the system bus. This not only avoids the use of bus resources for return comparison, but also isolates potential attacks and interference on the bus, thereby improving the security and real-time performance of the verification link itself.

[0086] The configuration verification system provided by the present invention is described below. The configuration verification system described below and the configuration verification method described above can be referred to in correspondence.

[0087] Based on any of the above embodiments Figure 2 This is one of the structural diagrams of the configuration verification system provided by the present invention, such as... Figure 2 As shown, the system includes a security configuration hub 210 and at least one target IP module 220; The security configuration hub 210 is used to receive configuration information for the target IP module 220, back up the configuration information locally to obtain a baseline value, and send the configuration information to the target IP module 220. The target IP module 220 is used to write configuration based on the received configuration information and send the actual status value generated by the configuration writing back to the security configuration hub 210. The security configuration hub 210 is also used to receive the actual status value returned by the target IP module 220, compare the actual status value with the benchmark value, and determine that the target IP module 220 has a configuration abnormality if the comparison result indicates that the actual status value is inconsistent with the benchmark value, and output an alarm signal.

[0088] Specifically, in the system's hardware topology architecture, the security configuration hub is the main control hardware module that directly interfaces with the upper-layer system bus. It is responsible for intercepting the initial configuration instructions issued by the host at the top level and establishing a configuration baseline value internally through triggers, which serves as a local verification baseline to prevent tampering. Subsequently, it completes the downward routing and distribution of data to the lower-level modules.

[0089] The target IP module represents a key hardware execution unit within the chip that performs specific business functions. This hardware unit has internal state sampling and feedback logic, which can collect the actual level result of the current register in real time after the configuration write operation is completed in its internal control register, and feed back the actual state value, which represents the physical layer's solidified state, to the upstream node.

[0090] The security configuration hub uses an internally encapsulated logic comparison hardware circuit to compare the collected underlying real state (i.e., the actual state value returned by the target IP module) with its own backup expected state (i.e., the baseline value), and immediately triggers a security interrupt alarm when it detects a difference in the logic level between the two.

[0091] The system provided in this invention, by deploying a secure configuration hub and a target IP module hardware entity with real-time physical status feedback capability, establishes a top-down configuration distribution link and a bottom-up status feedback link at the system hardware architecture level. This changes the traditional one-way open-loop control topology for IP module distribution in chips. This system architecture endows the chip with the ability to resist external physical fault injection attacks from the underlying physical foundation, and realizes closed-loop self-verification of the consistency and correctness of key hardware configurations.

[0092] Based on any of the above embodiments, the security configuration hub 210 receives the configuration information sent by the host through the system bus. The security configuration hub 210 and the target IP module 220 are connected through a sideband channel independent of the system bus. The transmission of the configuration information and the feedback of the actual status value are both transmitted through the sideband channel.

[0093] Specifically, in the chip interconnect architecture, the system bus is the main physical link responsible for data interaction between the host and various functional modules of the chip. To prevent the configuration distribution and verification process from being interfered with by the high-concurrency data flow of the system bus, this embodiment of the invention has specially laid out a sideband channel independent of the system bus on the hardware circuit. This sideband channel is a dedicated communication line with physically independent wiring.

[0094] The security configuration hub acts as an isolation boundary. Its upstream side connects to the system bus via a standard interface (such as a bus interface) to obtain initial host commands, while its downstream side relies on this independent sideband channel to establish data connections with the various target IP modules at the underlying level. Therefore, the entire electrical signal transmission process, from the security configuration hub to the target IP modules, and from the target IP modules returning their actual status values ​​after writing the configuration information, is completed through this dedicated channel (i.e., the sideband channel).

[0095] The system provided in this embodiment of the invention introduces a dedicated sideband channel independent of the system bus in the hardware physical architecture to carry out configuration distribution and status feedback. While ensuring that the closed-loop verification link does not occupy the common bus bandwidth resources, it achieves physical isolation between the verification data stream and the main business data stream, thereby improving the anti-interference capability and physical security of the verification link itself.

[0096] Based on any of the above embodiments Figure 3 This is the second structural schematic diagram of the configuration verification system provided by the present invention, as shown below. Figure 3 As shown, the security configuration hub 210 includes a bus interface 211, an information parsing logic circuit 212, a backup register group 213, and an information verification logic circuit 214; The bus interface 211 is used to connect to the system bus to receive the configuration information; The information parsing logic circuit 212 is used to parse the configuration information to obtain the parsed configuration information; The backup register group 213 is used to store the parsed configuration information as the base value; The information verification logic circuit 214 is used to perform a bitwise XOR comparison between the actual state value returned and the reference value, and output the alarm signal when the comparison result is inconsistent.

[0097] Specifically, in actual hardware implementation, the bus interface of the security configuration hub is responsible for handshaking and communicating with the host using the standard bus protocol, and is the physical entry point for intercepting configuration commands sent to the underlying critical IP modules.

[0098] After receiving the original message from the bus interface, the information parsing logic circuit performs protocol parsing operations through hardware circuitry, converting the bus protocol format into the system's internal sideband signal format, removing non-control data such as message headers and check bits, and thus obtaining pure configuration data for writing to the target IP module register.

[0099] The backup register set typically consists of an array of D flip-flops with data input, clock, and enable inputs. The parsed configuration data is input to the flip-flops as a level signal. Under the combined action of the rising edge of the clock and the enable signal being valid, the data is securely latched within the register set and continuously output, forming a tamper-proof local hardware reference value.

[0100] The information verification logic circuit spans the sideband backhaul link and the backup link, and its core entity is a hardware XOR gate array. When the actual status value is received from the target IP module via the sideband channel, this XOR gate directly performs a logical comparison at the physical layer between each bit of the actual status value and the corresponding bit of the reference value output by the backup register group. If any corresponding bit level differs, the corresponding XOR gate outputs a high level, directly driving the connected hardware alarm line to output an alarm signal.

[0101] The method provided in this invention modularly decomposes the security configuration hub into specific pure hardware logic circuit units such as bus interface, information parsing, local backup register, and verification comparison. This all-hardware circuit processing mechanism eliminates the dependence on underlying software polling, ensuring not only highly reliable latching of configuration baseline values, but also completing anomaly comparison and alarm triggering within extremely low hardware clock cycles.

[0102] Based on any of the above embodiments Figure 4 This is the third structural schematic diagram of the configuration verification system provided by the present invention, as shown below. Figure 4 As shown, the system also includes a multicast verification agent 230. There are multiple target IP modules 220, and the multiple target IP modules 220 are multiple IP modules of the same type that expect to receive the same configuration information. The multicast verification agent 230 includes a multi-path branching logic circuit 231 and a first-level comparison logic circuit 232. The multi-path branching logic circuit 231 is used to branch the configuration information sent by the security configuration hub 210 through the side channel, and distribute it in parallel to each of the target IP modules 220 through the side channel. The first-level comparison logic circuit 232 is used to perform a first-level consistency comparison on the actual status values ​​returned by each of the target IP modules 220 through the sideband channel, and output a first-level alarm signal when the result of the first-level consistency comparison indicates that the actual status values ​​returned by each of the target IP modules 220 are inconsistent. The multicast verification agent 230 is also used to extract any one actual status value from the actual status values ​​returned by each of the target IP modules 220 as a representative value, and to return the representative value to the security configuration center 210 through the sideband channel, so that the security configuration center 210 performs a second-level consistency comparison between the representative value and the benchmark value, and outputs a second-level alarm signal when the comparison result shows inconsistency.

[0103] Specifically, when there are multiple target IP modules, and these multiple target IP modules are multiple IP modules of the same type that expect to receive the same configuration information, the system deploys a multicast verification agent in the physical area close to the group of IP modules. The multicast verification agent specifically includes a multi-path branching logic circuit and a first-level comparison logic circuit.

[0104] In terms of hardware circuitry, the multi-branch logic circuit manifests as a parallel fan-out topology with one input and multiple outputs. After receiving a single sideband configuration signal from the security configuration hub, it replicates it into multiple identical configuration signals within the proxy node and distributes them in parallel to each target IP module within the group through multiple short-distance sideband connections, thereby achieving hardware-level multicast distribution.

[0105] The first-level comparison logic circuit consists of a multi-input XOR logic gate array, responsible for performing intra-group lateral consistency checks. When all target IP modules in the group have completed writing and are transmitting their actual status values ​​back to the proxy node via the sideband channel, this circuit directly performs pairwise or cascaded bitwise XOR operations on these parallel-arriving data. If any IP module experiences a physical attack that causes its transmitted level to differ from other modules, this logic circuit immediately captures the abnormal level and outputs a first-level alarm signal indicating inconsistency in the status of nodes within the group.

[0106] Meanwhile, since the first-level comparison logic circuit has already checked the consistency of the group's state, it is not necessary to pull all the backhaul connections of the target IP modules back to the main control area over long distances. The multicast verification agent only extracts any one actual state value from a fixed hardware port as a representative value, which effectively reflects the current overall configuration state of the IP group. This representative value is transmitted back to the security configuration center via a single line, and the security configuration center performs a second-level consistency comparison (i.e., longitudinal correctness verification) with the locally backed-up baseline value. If the comparison result indicates that the representative value is inconsistent with the original sending intention, the security configuration center outputs a second-level alarm signal.

[0107] The system provided in this invention introduces a multicast verification agent that includes multi-path branching and first-level comparison logic, and constructs a two-layer verification matrix on the hardware topology, which includes bottom-level horizontal consistency verification and top-level vertical correctness verification. This architecture not only realizes comprehensive verification of the configuration status of multiple IP groups, but also reduces the wiring area and communication bandwidth consumption of long-distance sideband signals through the single-path extraction and backhaul mechanism of representative values.

[0108] Based on any of the above embodiments Figure 5 This is the fourth structural diagram of the configuration verification system provided by the present invention, as shown below. Figure 5 As shown, the system includes a security configuration hub and a multicast verification agent module. The security configuration hub, as the main control module of the system, directly interfaces with the upper-layer system bus. It is responsible for receiving host configurations, performing local backups, and performing closed-loop comparison logic.

[0109] The security configuration hub includes a bus interface, information parsing logic, a backup register set, and information reception and verification logic. The bus interface is responsible for communication with the host using standard protocols and intercepting configuration commands destined for critical IP modules. The information parsing logic converts the bus protocol into an internal sideband signal format, extracting the pure configuration data. The backup register set (i.e....) Figure 5 The system uses an array of D flip-flops (with D, Q, and EN terminals). Configuration data is input to the D terminal. When the clock signal (the triangle symbol in the D flip-flop) and the enable signal EN are valid, the data is latched internally and continuously output from the Q terminal as a local reference value to prevent system tampering. The information reception verification logic is an XOR logic gate comparator in the hardware circuit (i.e.,...). Figure 5 The two shield-shaped symbols in the central security configuration area output a low level 0 when all the bits at the input are exactly the same, and a high level 1 when there are any differences.

[0110] The multicast verification proxy is a hardware proxy node deployed close to the underlying IP side. It is used to solve the cabling congestion and bandwidth problems caused by multi-IP multicast. It includes multi-path branching logic and a first-level XOR comparison logic gate (i.e. Figure 5 The shield-shaped symbol with multiple input terminals is located within the multicast verification agent area.

[0111] Target IP module (i.e.) Figure 5 IP_0 to IP_n and IP_n+1 shown are protected key hardware units, where IP_0 to IP_n form a multicast group (expecting to receive the same configuration); the rightmost IP_n+1 represents an independent unicast node.

[0112] Valid-ready handshake protocol interface (i.e.) Figure 5The green flat rectangles shown are deployed at all physical boundary ports of cross-module communication. They represent the actual hardware interface logic circuits and are responsible for detecting the valid and ready pin states to ensure the isolation and synchronization of cross-module transmissions and prevent the loss of sideband transmission data under asynchronous or high load conditions.

[0113] Figure 5 The diagram uses three colored lines to illustrate the flow of hardware signals. The blue line corresponds to the configuration information distribution link, indicating that configuration information flows out from the information parsing logic and is divided into multiple paths. The right path directly sends the information to the unicast IP_n+1 module; the left path sends it to the multicast verification agent, which internally branches it into multiple paths and distributes it in parallel to IP_0 to IP_n. Simultaneously, the blue line also branches into the D port of the D flip-flop for local backup. The yellow line corresponds to the status value feedback link, representing the original path of the actual status value feedback. The yellow line of the unicast node IP_n+1 on the right directly pulls back to the XOR gate in the security configuration center; the yellow line of the multicast group on the left first converges to the multicast verification agent, is sent to a multi-input XOR gate, and the agent simultaneously extracts one yellow line (representing the value), passes it through the agent boundary, and sends it upwards to the XOR gate within the security configuration center. The red line corresponds to the interrupt alarm link. The outputs of all XOR gates are connected to the red line, all pointing to the interrupt port on the left. These red lines are ultimately concatenated in hardware into a multi-bit interrupt status register and reported to the host.

[0114] The following is combined Figure 5 The system architecture shown provides a detailed explanation of its working principle. When the host sends configuration information to the target IP module via the system bus, the security configuration hub receives the configuration information, parses it, and writes it into its internal backup register group for local backup, using this as the baseline value for subsequent verification.

[0115] For unicast configuration scenarios involving a single IP module (taking IP_n+1 as an example), the security configuration hub implements a closed-loop verification mechanism. The specific configuration distribution and comparison process is as follows: Step A1: The security configuration center sends the parsed configuration information to the target IP module (i.e., IP_n+1) in the form of a sideband signal, and simultaneously writes it into the corresponding backup register group for latching as a baseline value; In step A2, after receiving the configuration information, IP_n+1 writes it into the corresponding internal configuration register and immediately transmits the actual level state value (i.e., actual state value) of the internal configuration register back to the security configuration center via the sideband signal. In step A3, the security configuration center performs a bitwise XOR operation on the received feedback value and the base value in the backup register group. If the XOR result is all 0, the verification is successful and the configuration takes effect. If the XOR result contains 1, it is determined that the configuration information has been tampered with or the writing has failed. The security configuration center immediately outputs a high level to drive the red alarm line to generate a unicast abnormal alarm signal.

[0116] For multicast scenarios where multiple IP modules of the same type expect to receive the same configuration (taking IP_0 to IP_n as an example), a multicast verification proxy is introduced to improve system scalability. The specific multicast distribution and two-level verification process is as follows: Step B1: The security configuration center sends the parsed configuration information to the multicast verification agent in the form of a sideband signal, and at the same time performs local backup. Step B2: After the multicast verification agent internally performs signal splitting, it distributes the same configuration information in parallel to IP_0 to IP_n in the form of sideband signals. In step B3, after IP_0 to IP_n receive the configuration information and write it into their respective internal configuration registers, they respectively transmit the actual status value of their configuration registers back to the multicast verification agent via sideband signals. Step B4: The multi-input XOR gate in the multicast verification agent performs the first-level XOR comparison verification, that is, the received return values ​​from IP_0 to IP_n are XORed bitwise. If the XOR result contains 1, it is determined that there is an IP configuration abnormality, and the multicast verification agent immediately outputs the first-level alarm signal. In step B5, the multicast verification agent simultaneously extracts any one set (e.g., the return value of IP_n) from the return values ​​from IP_0 to IP_n as a representative value and continues to return it to the security configuration center. Step B6: The security configuration center performs a second-level XOR comparison verification. It performs a bitwise XOR operation on the representative value returned by the multicast verification agent and the base value in the local backup register group. If the XOR result contains 1, it is determined that there is an IP configuration abnormality and a second-level alarm signal is immediately output.

[0117] The generated alarm signals (including alarm signals generated in unicast scenarios and / or alarm signals generated in multicast scenarios) are composed into a multi-bit interrupt signal and sent to the host so that the host can quickly locate which IP module(s) have a configuration anomaly and then take the next step.

[0118] It should be noted that the two-level comparison architecture in multicast scenarios is complementary in terms of spatial location and verification purpose. Even if the first-level comparison verification fails, the execution of the second-level comparison still has important positioning and qualitative value. The system can make accurate joint judgments through different abnormal triggering situations.

[0119] For example, in a multicast scenario, suppose an individual IP module is attacked, with the expected value being 1010. IP_0 normally sends back 1010, while IP_n suffers a single point of failure injection and sends back 1011. The first-level comparison detects a horizontal inconsistency and triggers a first-level alarm. In the second-level comparison, if the representative value happens to be the compromised 1011, a second-level alarm is triggered simultaneously; if the normal 1010 is extracted, no second-level alarm is triggered. Regardless of whether a second-level alarm is triggered, the first-level alarm is sufficient for the system to determine that there is an IP configuration anomaly within the group.

[0120] For example, suppose the multicast distribution backbone is attacked, such as the link from the security configuration center to the multicast verification agent module, and the data mutates to 1110. All IPs are incorrectly written with 1110 and transmitted back. At this time, the horizontal comparison is consistent, and the first level does not alarm; however, after the representative value 1110 is transmitted back to the center, the center finds that it is different from the local baseline 1010, triggering the second level alarm.

[0121] For example, suppose the chip is subjected to strong interference, and the values ​​returned between IPs are inconsistent horizontally and also inconsistent with the reference value vertically. If both levels of hardware logic gates output 1, the system will receive alarms from both levels simultaneously.

[0122] In multicast scenarios, the first-level consistency comparison and the second-level consistency comparison are independent links on the hardware path that do not depend on each other's judgment results. The host can ultimately make a comprehensive judgment on the type, scope and location of the attack currently being suffered by the chip by collecting the alarm signals generated by these two levels.

[0123] Based on any of the above embodiments, this invention provides a chip that includes the configuration verification system as described in any of the above embodiments.

[0124] Specifically, the chip can be a general-purpose graphics processing unit (GPGPU), a graphics processing unit (GPU), or other high-performance heterogeneous computing chip integrating a large number of key IP modules. During the register-transfer level design and physical tape-out manufacturing stages of the chip, the security configuration hub, multicast verification proxy, target IP modules, and sideband channels and XOR logic gate arrays connecting the various modules, as described in the above embodiments, are all directly embedded as hardware entities on the chip's silicon circuitry. These physical circuit entities collectively construct a hardware-level closed-loop verification architecture within the chip, which operates independently of the chip's main data processing pipeline, continuously monitoring and verifying the consistency of the configuration register states of key execution units such as power management, clock control, and encryption engines within the chip.

[0125] This invention integrates a hardware-level closed-loop configuration verification system within the chip, enabling the chip to possess hardware defense capabilities against physical attacks such as electromagnetic fault injection and laser fault injection. This prevents system crashes caused by abnormal configuration of critical IPs and improves the overall reliability and security of the chip in complex and high-security environments.

[0126] Based on any of the above embodiments, this invention provides a computer device, including a host and a chip as described in the above embodiments. The host is connected to a security configuration hub in the chip via a system bus. The host is used to receive interrupt signals reported by the chip and execute exception handling decisions.

[0127] Specifically, computer equipment can be a high-performance server or a high-level security control device with an independent main processor and heterogeneous accelerators. The main unit is usually a central processing unit (CPU), which establishes data interaction with chips (such as GPGPU chips) that act as coprocessors through system buses such as PCIe (Peripheral Component Interconnect Express).

[0128] When the chip's underlying security configuration center detects a configuration anomaly in any unicast or multicast IP module, it sends a multi-bit interrupt signal to the host's interrupt controller. Upon receiving this interrupt signal, the host quickly identifies the specific target IP module or group with the configuration anomaly by reading the physical mapping relationship of each high-level bit in the interrupt register, and executes corresponding anomaly handling decisions based on the location results.

[0129] In this process, anomaly handling decisions can specifically be a series of emergency response operations based on software and hardware collaboration. For example, for a specific abnormal IP module, the host can first initiate a reconfiguration operation, that is, apply a hardware reset signal to the IP module and resend the correct configuration information; if multiple retries fail, it indicates that the chip has suffered a continuous attack or irreversible physical damage, and the host will perform isolation and degradation operation, physically isolating the abnormal IP module from the system through clock gating or direct power-off, thereby keeping the entire chip in a degradation operation mode. If the abnormal IP module involves extremely critical security permissions, the host can directly trigger a high-level non-maskable interrupt, forcibly suspending all current computing tasks and performing system-level lockout to prevent confidential data leakage. In addition, if the interrupt signal points to an anomaly in a multicast group containing multiple target IP modules, the host can suspend the overall service execution of the group and perform software intervention to read back and check one by one, reading back the status of each IP module in the group through the system bus, thereby locating the specific IP module that has failed and isolating it.

[0130] Figure 6 This is a schematic diagram of the structure of the electronic device provided by the present invention, such as... Figure 6 As shown, the electronic device may include a processor 610, a communication interface 620, a memory 630, and a communication bus 640, wherein the processor 610, the communication interface 620, and the memory 630 communicate with each other through the communication bus 640. The processor 610 can call logical instructions in the memory 630 to execute a configuration verification method applied to the security configuration hub in the chip. The method includes: receiving configuration information for a target IP module and backing up the configuration information locally to obtain a baseline value; sending the configuration information to the target IP module so that the target IP module performs configuration writing based on the configuration information and returns the actual status value generated by the configuration writing; receiving the actual status value returned by the target IP module, comparing the actual status value with the baseline value to obtain a comparison result; if the comparison result indicates that the actual status value is inconsistent with the baseline value, determining that the target IP module has a configuration anomaly, and outputting an alarm signal.

[0131] Furthermore, the logical instructions in the aforementioned memory 630 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to related technologies, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0132] On the other hand, the present invention also provides a computer program product, which includes a computer program that can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the configuration verification method provided by the above methods, applied to the security configuration hub in the chip. The method includes: receiving configuration information for a target IP module and backing up the configuration information locally to obtain a baseline value; sending the configuration information to the target IP module so that the target IP module performs configuration writing based on the configuration information and returns the actual status value generated by the configuration writing; receiving the actual status value returned by the target IP module, comparing the actual status value with the baseline value to obtain a comparison result; and determining that the target IP module has a configuration anomaly when the comparison result indicates that the actual status value is inconsistent with the baseline value, and outputting an alarm signal.

[0133] In another aspect, the present invention also provides a non-transitory computer-readable storage medium storing a computer program thereon. When executed by a processor, the computer program implements the configuration verification method provided by the above methods, applied to a secure configuration hub in a chip. The method includes: receiving configuration information for a target IP module and backing up the configuration information locally to obtain a baseline value; sending the configuration information to the target IP module so that the target IP module performs configuration writing based on the configuration information and returns the actual state value generated by the configuration writing; receiving the actual state value returned by the target IP module, comparing the actual state value with the baseline value to obtain a comparison result; and determining that the target IP module has a configuration anomaly when the comparison result indicates that the actual state value is inconsistent with the baseline value, and outputting an alarm signal.

[0134] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.

[0135] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the parts that contribute to the related technology, can be embodied in the form of software products. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.

[0136] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; 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 invention.

Claims

1. A configuration verification method, characterized in that, The method, applied to a security configuration hub in a chip, includes: Receive configuration information for the target IP module, and back up the configuration information locally to obtain a baseline value; The configuration information is sent to the target IP module so that the target IP module performs configuration writing based on the configuration information and sends back the actual status value generated by the configuration writing. Receive the actual status value returned by the target IP module, compare the actual status value with the benchmark value to obtain the comparison result; If the comparison result indicates that the actual state value is inconsistent with the benchmark value, it is determined that the target IP module has a configuration abnormality, and an alarm signal is output.

2. The configuration verification method according to claim 1, characterized in that, The step of receiving configuration information for the target IP module and backing up the configuration information locally to obtain a baseline value includes: The system receives configuration information for the target IP module from the host via the system bus, and parses the configuration information to obtain the parsed configuration information. The parsed configuration information is written to the local backup register group for storage backup, and the stored backup configuration information is used as the base value.

3. The configuration verification method according to claim 1, characterized in that, The step of comparing the actual state value with the benchmark value for consistency includes: Perform a bitwise XOR operation between the actual state value and the reference value to obtain the XOR result; If all bits in the XOR result are the first logical value, then the actual state value is determined to be consistent with the reference value, and the configuration information takes effect. If a second logical value exists in the XOR result, then it is determined that the actual state value is inconsistent with the reference value.

4. The configuration verification method according to claim 1, characterized in that, There are multiple target IP modules, and the multiple target IP modules are multiple IP modules of the same type that expect to receive the same configuration information; Sending the configuration information to the target IP module includes: The configuration information is sent to the multicast verification agent, so that the multicast verification agent performs multi-path splitting on the configuration information and distributes it in parallel to each target IP module; The receipt of the actual status value returned by the target IP module includes: The representative value returned by the multicast verification agent is received and used as the actual status value; wherein the representative value is any actual status value extracted by the multicast verification agent from the actual status values ​​returned by each of the target IP modules.

5. The configuration verification method according to claim 4, characterized in that, The multicast verification agent is also used to perform a first-level consistency comparison between the actual status values ​​returned by each of the target IP modules, and output a first-level alarm signal when the result of the first-level consistency comparison indicates that the actual status values ​​returned by each of the target IP modules are inconsistent; the security configuration center performs a consistency comparison between the representative value and the benchmark value as a second-level consistency comparison, and the alarm signal output by the security configuration center is a second-level alarm signal.

6. The configuration verification method according to claim 5, characterized in that, The first-level consistency comparison is a bitwise XOR comparison. When the multicast verification agent performs the first-level consistency comparison, it performs a bitwise XOR operation on the actual status values ​​returned by each of the target IP modules to obtain the first-level XOR result. If there are bits indicating inconsistency in the first-level XOR result, it determines that the actual status values ​​returned by each of the target IP modules are inconsistent.

7. The configuration verification method according to claim 5, characterized in that, After determining that the target IP module has a configuration anomaly, the method further includes: The generated alarm signals are combined into a multi-bit interrupt signal according to a preset bit order. The alarm signal includes at least one of the first-level alarm signal and the second-level alarm signal. The interrupt signal is sent to the host so that the host can locate one or more target IP modules with configuration abnormalities based on the values ​​of each bit in the interrupt signal, and execute anomaly handling decisions based on the location results.

8. The configuration verification method according to any one of claims 1 to 7, characterized in that, The transmission of the configuration information and the return of the actual status value are both implemented in the form of sideband signals, and the transmission of the sideband signals adopts the valid-ready handshake protocol.

9. A configuration verification system, characterized in that, Includes a security configuration hub and at least one target IP module; The security configuration hub is used to receive configuration information for the target IP module, back up the configuration information locally to obtain a baseline value, and send the configuration information to the target IP module. The target IP module is used to write configuration based on the received configuration information and send the actual status value generated by the configuration writing back to the security configuration center. The security configuration center is also used to receive the actual status value returned by the target IP module, compare the actual status value with the benchmark value, and determine that the target IP module has a configuration abnormality if the comparison result indicates that the actual status value is inconsistent with the benchmark value, and output an alarm signal.

10. The configuration verification system according to claim 9, characterized in that, The security configuration hub receives the configuration information sent by the host through the system bus. The security configuration hub and the target IP module are connected through a sideband channel independent of the system bus. The transmission of the configuration information and the feedback of the actual status value are both transmitted through the sideband channel.

11. The configuration verification system according to claim 10, characterized in that, The security configuration hub includes a bus interface, information parsing logic circuitry, backup register group, and information verification logic circuitry. The bus interface is used to connect to the system bus to receive the configuration information; The information parsing logic circuit is used to parse the configuration information to obtain the parsed configuration information; The backup register group is used to store the parsed configuration information as the base value; The information verification logic circuit is used to perform a bitwise XOR comparison between the actual state value returned and the reference value, and output the alarm signal when the comparison result is inconsistent.

12. The configuration verification system according to claim 10 or 11, characterized in that, It also includes a multicast verification proxy, wherein there are multiple target IP modules, and the multiple target IP modules are multiple IP modules of the same type that expect to receive the same configuration information. The multicast verification proxy includes a multi-path branching logic circuit and a first-level comparison logic circuit. The multi-path branching logic circuit is used to branch the configuration information sent by the security configuration hub through the side channel, and distribute it in parallel to each target IP module through the side channel. The first-level comparison logic circuit is used to perform a first-level consistency comparison on the actual status values ​​returned by each of the target IP modules through the sideband channel, and output a first-level alarm signal when the result of the first-level consistency comparison indicates that the actual status values ​​returned by each of the target IP modules are inconsistent. The multicast verification agent is also used to extract any one actual status value from the actual status values ​​returned by each of the target IP modules as a representative value, and to return the representative value to the security configuration center through the sideband channel, so that the security configuration center can perform a second-level consistency comparison between the representative value and the benchmark value, and output a second-level alarm signal when the comparison result shows inconsistency.

13. A chip, characterized in that, Includes the configuration verification system as described in any one of claims 9 to 12.

14. A computer device, characterized in that, The system includes a host and the chip as described in claim 13, wherein the host is connected to the security configuration hub in the chip via a system bus, and the host is used to receive interrupt signals reported by the chip and execute exception handling decisions.

15. An electronic device comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that, When the processor executes the computer program, it implements the configuration verification method as described in any one of claims 1 to 8.