Digital chip with hardware fault processing function
By designing two identical logic control units and confirmation units in the digital chip, the reliability and availability of the Error PIN and LO/L1 Reset outputs are ensured, and the problem that the output of the fault processing unit of the dual-core lock-step architecture is only determined by a single unit is solved. Implemented high reliability and high availability fault handling.
Patent Information
- Application Number
- CN202410916571.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-09
- Publication Date
- 2024-10-15
AI Technical Summary
The output of the fault processing unit of the existing dual-core lock-step architecture is only determined by processing unit A. There is no way to ensure that the Error Report output is not a hardware error in the comparator of the fault processing unit itself, which reduces the availability of the chip.
Design a digital chip with built-in hardware fault handling, including two identical logic control units A and B, an Error PIN output confirmation unit, an LO/L1 Reset output confirmation unit and a fault interrupt output unit. It is ensured through hardware logic gate design. The Error PIN and LO/L1 Reset outputs are only output when both units have no errors, and include a temporary failure shielding module and a fault level configuration module to improve the reliability and availability of fault handling.
It provides high-reliability and high-availability fault handling to ensure that the Error PIN output will not lose error information, avoid unnecessary L0/L1 Reset, and shield temporary failures, improving the security and availability of the chip.
Smart Images

Figure CN118779187A_ABST
Abstract
Description
[Technical field]
[0001] The invention relates to the technical field of automobile electronics, and in particular to a digital chip with built-in hardware fault processing. [Background technology]
[0002] The safety of automobiles cannot be ignored. Random hardware failures cannot be avoided due to reasons such as aging of chip hardware over time and temperature. Reasonable monitoring of faults and correct handling of faults are essential.
[0003] Figure 1 is a schematic diagram of the dual-core lock-step architecture. Figure 1 As shown, for safety reasons, to avoid random hardware failures, the general fault handling unit inside the chip will use the DCLS method to identify random hardware failures (DCLS fault handling unit, used to collect hardware fault information inside the chip). The dual-core lock-step architecture (DCLS, Dual Core Lock Step) is an on-chip redundant integrated circuit architecture; the processor of the dual-core lock-step architecture generally has the following characteristics: Target: Detect hardware failures in microcontrollers; Both cores are implemented on the same silicon wafer (chip), which is an on-chip redundant architecture; The same software runs in synchronous mode on the two cores; A comparison unit is configured at the output end of the two cores, and the outputs of the two cores are compared in the comparison unit. If a difference is detected, an error signal (Error Report) is issued. However, for the processor chip of the dual-core lock-step architecture fault handling unit, there are the following defects in ensuring the safety of the hardware unit: 1. The output of the fault handling unit is only determined by the processing unit A; 2. In addition, there is no other fault handling unit to handle the Error Report. If the ErrorReport directly drives the Error PIN, it may be just the hardware error of the comparator of the fault handling unit itself, which reduces the availability of the chip.
[0004] The present invention aims at the technical problem that the output of the fault processing unit of the existing dual-core lock-step architecture is only determined by the processing unit A and cannot ensure that the Error Report output is not a fault of the comparator of the fault processing unit itself, and makes technical improvements to the digital chip fault processing unit. [Summary of the invention]
[0005] The purpose of the present invention is to provide a digital chip with high reliability status output, fault information collection and high availability fault processing.
[0006] To achieve the above-mentioned purpose, the technical solution adopted by the present invention is a digital chip with built-in hardware fault processing, including several digital processing units, a CPU interrupt unit for digital chip interrupt processing and an L0 / L1 Reset unit for digital chip reset; and also including a fault processing unit, the fault processing unit including two completely identical logic control units A and control unit B, an Error PIN output confirmation unit, a LO / L1 Reset output confirmation unit, and a fault interrupt output unit; the several digital processing units output faults to control unit A and control unit B through a dual-core lock-step architecture, the control unit A and control unit B output a fault processing request Error signal to the Error PIN output confirmation unit according to the control logic, and output a fault level to the LO / L1 Reset output confirmation unit and the fault interrupt output unit; the fault processing unit is designed based on hardware logic gates, the fault interrupt output unit outputs a fault interrupt signal to the CPU interrupt unit, the Error PIN output confirmation unit outputs an Error PIN as no error only when the Error signal outputs of the control unit A and the control unit B are both no error, and the LO / L1 Reset output confirmation unit outputs an L0 / L1 Reset signal only when the control unit A and the control unit B both output L0 / L1 Reset signals. Reset signal to the L0 / L1 Reset unit. The LO / L1 Reset output confirmation unit outputs the LO / L1 Reset clear processing interrupt signal to the CPU interrupt unit when one of the control unit A or control unit B outputs the L0 / L1 Reset signal. The LO / L1 Reset signal is output to the L0 / L1 Reset unit only when the CPU interrupt unit fails to clear the interrupt signal after processing timeout.
[0007] Preferably, the control unit A or the control unit B includes a temporary failure shielding module, and the temporary failure shielding module includes a Reg_Shielding_Enable register and a Reg_Shielding_time register; when the Reg_Shielding_Enable is 0, the control unit A or the control unit B does not shield, and the Error signal is output to the Error PIN output confirmation unit; when the Reg_Shielding_Enable is 1, if only one Error occurs within the time set by the register Reg_Shielding_time, the control unit A or the control unit B shields, and the Error signal is not output to the Error PIN output confirmation unit; if more than one Error occurs within the time set by the register Reg_Shielding_time, the control unit A or the control unit B does not shield, and the Error signal is output to the Error PIN output confirmation unit.
[0008] Preferably, the control unit A or the control unit B further comprises a fault level configuration module, and the fault level configuration module is used to set the fault to four fault levels, namely, INT_H, INT_L, L0 Reset and L1 Reset.
[0009] Preferably, the Error PIN output confirmation unit always outputs Error PIN as 1, i.e., error state, and only outputs Error PIN as 0, i.e., no error state, when the Error signal outputs of control unit A and control unit B are both error-free.
[0010] Preferably, the LO / L1 Reset output confirmation unit comprises a timeout register T for calculating whether the CPU interrupt unit times out to clear the LO / L1 Reset signal.
[0011] Preferably, when the fault level configuration module of the control unit A or the control unit B outputs a fault level signal, the fault interrupt output unit will output a fault interrupt signal to the CPU interrupt unit.
[0012] The digital chip with built-in hardware fault processing of the present invention has the following beneficial effects: 1. Providing a high-reliability chip status output to the outside. For the chip fault processing unit to output the Error PIN to the outside, it is necessary to ensure that the external error information will not be lost. Only when both the A and B modules are not faulty, the Error PIN will display that there is no fault to the outside; 2. Providing a high-reliability fault information collection. When any module of the A module and the B module outputs an error signal, the fault output unit will output the fault information to the CPU interrupt; 3. Providing a high-availability chip fault processing. For L0 / L1Reset, since it will be felt by the user, unnecessary L0 / L1 Reset is avoided as much as possible, but at the same time, it is ensured that L0 / L1 Reset will not be lost; temporary failures can be shielded. For some hardware functional circuits, temporary failures will not affect the safety goals.
Brief Description of the Drawings
[0013] Figure 1 It is a schematic diagram of the dual-core lock-step architecture.
[0014] Figure 2 It is a digital chip architecture diagram with built-in hardware fault handling.
[0015] Figure 3 It is a structural diagram of temporary failure shielding module 01. [Specific implementation method]
[0016] The features and exemplary embodiments of various aspects of the present invention will be described in detail below. In the detailed description below, many specific details are proposed to provide a comprehensive understanding of the present invention. But it is obvious to those skilled in the art that the present invention can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present invention by illustrating examples of the present invention. The present invention is by no means limited to any specific configuration and algorithm proposed below, but covers any modification, replacement and improvement of elements, parts and algorithms without departing from the concept of the present invention. In the accompanying drawings and the following description, known structures and technologies are not shown to avoid unnecessary ambiguity to the present invention.
[0017] Example
[0018] This embodiment implements a digital chip with built-in hardware fault processing.
[0019] This embodiment relates to the field of automotive electronic chip technology, and supports the hardware design of a main control chip in a high-reliability intelligent driving controller. The hardware design is achieved through logic module design, using a hardware development language, and ultimately implementing chip hardware fault handling of a digital chip through hardware logic gates.
[0020] For the above purpose, the digital chip fault processing unit of this embodiment is composed of two identical logic control units A and B designed by DCLS. The comparison part is no longer a simple comparison of whether the outputs are the same, but a judgment is made according to the following optimal logic:
[0021] Logic 1: For the external output of Error PIN, it will be set to no error only when the outputs of control unit A and control unit B are both no error;
[0022] Logic 2: For hardware L0 / L1 reset, since it will be felt by users, try to avoid unnecessary L0 / L1 reset.
[0023] The following are the conditions for actually executing L0 / L1reset:
[0024] Only when the outputs of both control unit A and control unit B indicate that L0 / L1 reset is required, the L0 / L1 reset instruction will be output;
[0025] When one of the outputs of unit A or unit B requires L0 Reset, an interrupt is generated to the GIC (General Interrupt Controller). If the L0 Reset request of unit A or unit B is not processed for more than 1ms, L0 Reset is executed.
[0026] Figure 2It is a digital chip architecture diagram with built-in hardware fault handling. Figure 2 The figure shows a fault handling unit inside a chip:
[0027] Units 1, 2, 3, etc. are other units in the chip, and their faults are output to the fault processing unit;
[0028] The fault processing unit includes a unit A and a unit B, wherein the unit A and the unit B are completely identical fault processing units; an Error PIN output confirmation unit, a LO / L1 Reset output confirmation unit, and a fault interrupt output unit;
[0029] Unit A and unit B collect the fault information of each unit 1, 2, 3, etc., and each collected fault can be configured to determine the fault level according to the severity of the fault through software configuration;
[0030] Unit A and unit B include a temporary failure masking module 01 and a fault level configuration module 02 .
[0031] Temporary failure shielding module 01, Description: For errors identified by DCLS in units 1, 2, and 3, any temporary failure will cause an error, reducing the efficiency of software fault handling.
[0032] Figure 3 This is a functional structure diagram of the temporary failure shielding module 01. Figure 3 As shown, in this embodiment, unit 1 recognizes random hardware failure of unit 1 through DCLS, temporarily fails to shield module 01, and sets register Reg_Shield_Enable:
[0033] If it is 0, it is not blocked and any Error will be passed down;
[0034] If it is 1, the register Reg_shield_time will be masked. If only one Error occurs within the time set by Time, it is considered a temporary failure. After the Time time, the Counter of this Error is cleared; if the Counter is greater than 2 within the Time time, it is considered that the hardware fault is serious and needs to be processed by software and passed down.
[0035] Fault level configuration module 02 can configure different fault signals through software configuration registers;
[0036] All faults can be set to 4 levels, INT_H, INT_L, L0 Reset, L1 Reset.
[0037] Error PIN output confirmation unit, such as Figure 2 As shown in (a):
[0038] The Error PIN always outputs the state of 1 (i.e. error state);
[0039] Only when both unit A module and unit B module output to the Error PIN output confirmation unit and there is no fault, will the ERROR PIN output to the outside as 0 (i.e. no fault status);
[0040] The Error PIN can be a two-wire protocol, with only one state being the correct state;
[0041] For example, when Error PIN0 of the dual-line is 0 and Error PIN1 is 1, there is no fault status.
[0042] L0 / L1 Reset output confirmation unit, such as Figure 2 As shown in (b):
[0043] Only when the outputs of both control unit A and control unit B indicate that L0 / L1 reset is required, the L0 / L1 reset instruction will be output;
[0044] When one of the outputs of unit A or unit B requires L0 Reset, an interrupt is generated to GIC. If the L0 Reset request of unit A or unit B is not processed for more than T time, L0 Reset is executed;
[0045] The T mentioned above is a configurable register, 0x0: 1.3ms, 0x1: 2.6ms, 0x2: 5.2ms, 0x3: 5.2ms, 0x4: 10.4ms, 0x5: 21ms, 0x6: 42ms, 0x7: 83.1ms, 0x8: 167.8ms.
[0046] Fault interrupt output unit, such as Figure 2 As shown in (c):
[0047] When any module of module A or module B outputs an error signal, the fault output unit will output fault information to the CPU interrupt.
[0048] Beneficial effects of the digital chip of this embodiment:
[0049] 1. Provide a highly reliable chip status output
[0050] For the fault handling unit of the chip to output the Error PIN, it is necessary to ensure that the external error information will not be lost. The Error PIN will show that there is no fault only when both the A and B modules are not faulty.
[0051] 2. Provide a high reliability fault information collection
[0052] When any module of module A or module B outputs an error signal, the fault output unit will output fault information to the CPU interrupt.
[0053] 3. Provide a high availability chip fault handling
[0054] Availability is reflected in 1:
[0055] As for L0 / L1 reset, since it will be felt by users, try to avoid unnecessary L0 / L1 reset;
[0056] But at the same time, it is also necessary to ensure that L0 / L1 RESET is not lost;
[0057] Availability is reflected in 2:
[0058] Temporary failures can be shielded, and for some hardware functional circuits, temporary failures will not affect safety goals.
[0059] Those skilled in the art will appreciate that all or part of the steps to implement the above embodiments may be accomplished by hardware, or may be accomplished by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, wherein the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.
[0060] The above is only a preferred embodiment of the present invention. It should be pointed out that ordinary technicians in this technical field can make several improvements and supplements without departing from the principle of the present invention. These improvements and supplements should also be regarded as the scope of protection of the present invention.
Claims
1. A digital chip with built-in hardware fault processing, comprising a plurality of digital processing units, a CPU interrupt unit for digital chip interrupt processing and an L0 / L1 Reset unit for digital chip reset; characterized in that: It also includes a fault processing unit, which includes two completely identical logic control units A and control unit B, an Error PIN output confirmation unit, a LO / L1 Reset output confirmation unit, and a fault interrupt output unit; the plurality of digital processing units output faults to the control unit A and the control unit B through a dual-core lock-step architecture, and the control unit A and the control unit B output a fault processing request Error signal to the Error PIN output confirmation unit according to the control logic, and output a fault level to the LO / L1 Reset output confirmation unit and the fault interrupt output unit; The fault processing unit is designed based on hardware logic gates, the fault interrupt output unit outputs a fault interrupt signal to the CPU interrupt unit, the Error PIN output confirmation unit outputs an Error PIN as no error only when the Error signal outputs of control unit A and control unit B are both no error, the LO / L1 Reset output confirmation unit outputs an L0 / L1 Reset signal to the L0 / L1 Reset unit only when control unit A and control unit B both output an L0 / L1 Reset signal, and the LO / L1 Reset output confirmation unit outputs an LO / L1 Reset clear processing interrupt signal to the CPU interrupt unit when one of control unit A or control unit B outputs an L0 / L1 Reset signal, and outputs an LO / L1 Reset signal to the L0 / L1 Reset unit only when the CPU interrupt unit cannot clear the interrupt after processing by timeout.
2. A digital chip for implementing hardware fault processing based on hardware logic gates according to claim 1, characterized in that: The control unit A or the control unit B includes a temporary failure shielding module, which includes a Reg_Shielding_Enable register and a Reg_Shielding_time register; when the Reg_Shielding_Enable is 0, the control unit A or the control unit B is not shielded, and the Error signal is output to the Error PIN output confirmation unit; when the Reg_Shielding_Enable is 1, if only one Error occurs within the time set by the register Reg_Shielding_time, the control unit A or the control unit B is shielded, and the Error signal is not output to the Error PIN output confirmation unit; if more than one Error occurs within the time set by the register Reg_Shielding_time, the control unit A or the control unit B is not shielded, and the Error signal is output to the Error PIN output confirmation unit.
3. A digital chip for implementing hardware fault processing based on hardware logic gates according to claim 2, characterized in that: The control unit A or the control unit B further includes a fault level configuration module, and the fault level configuration module is used to set the fault to four fault levels, INT_H, INT_L, L0Reset and L1 Reset.
4. A digital chip for implementing hardware fault processing based on hardware logic gates according to claim 3, characterized in that: The Error PIN output confirmation unit always outputs Error PIN as 1, ie, error state, and only outputs Error PIN as 0, ie, no error state, when the Error signal outputs of control unit A and control unit B are both no error.
5. A digital chip for implementing hardware fault processing based on hardware logic gates according to claim 4, characterized in that: The LO / L1 Reset output confirmation unit includes a timeout register T for calculating whether the CPU interrupt unit clears the LO / L1 Reset signal by timeout.
6. A digital chip for implementing hardware fault processing based on hardware logic gates according to claim 5, characterized in that: When the fault level configuration module of the control unit A or the control unit B outputs a fault level signal, the fault interrupt output unit will output a fault interrupt signal to the CPU interrupt unit.
