Hardware rapid recovery architecture of dual-core lockstep processor, electronic equipment and method
Through the hardware checkpoint unit of the hardware fast recovery architecture, the pending instructions and register values of the dual-core lock-step processor are cached and restored, which solves the delay problem of the dual-core lock-step processor in detecting and recovering transient faults and improves fault detection. Speed and recovery efficiency reduce energy consumption and storage overhead, and improve the security and reliability of the processor.
Patent Information
- Application Number
- CN202410631124.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-20
- Publication Date
- 2024-10-01
AI Technical Summary
Dual-core lock-step processors have significant delays in detecting and recovering from transient faults, resulting in poor security, limited fault information storage resources, and poor performance.
Adopting a hardware fast recovery architecture, including a hardware checkpoint unit and a redundant control comparison unit, the instructions and register values are stored through the submission buffer and backup logic cache. If the comparison passes, the backup logic is written as a new checkpoint. Flush pipelines and buffers to restore processor state after a failure.
It improves the fault detection speed and recovery speed, saves energy consumption, reduces storage overhead, and improves the reliability and security of the processor.
Smart Images

Figure CN118733352A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of dual-core lock-step processors, and in particular to a hardware fast recovery architecture, electronic equipment and method for a dual-core lock-step processor. Background Art
[0002] Dual-core lockstep processors are widely used in the automotive industry to ensure high reliability and safety of microprocessors. However, among the various levels of dual-core lockstep processors, most manufacturers use lightweight dual-core lockstep processors with redundant external core signals.
[0003] In the prior art, lightweight dual-core lock-step processors detect transient faults by comparing memory access related signals of two identical microprocessors, such as Figure 1 As shown, the signals will be compared in the redundant control comparison unit. If the relevant signals are inconsistent, a warning signal will be issued, and the error controller and interrupt controller will recover from the safe checkpoint stored by the previous software and re-fetch the instruction.
[0004] However, lightweight dual-core lock-step processors have significant delays in detecting and recovering from transient faults, and are usually unable to complete recovery within microseconds. In addition, application programming interfaces that support checkpoints introduce large software and storage overheads in microprocessors with limited storage. For example, the fault recovery time for most applications is 10-50 milliseconds, which is less real-time. Summary of the invention
[0005] The present application provides a hardware fast recovery architecture, electronic device and method for a dual-core lock-step processor to solve the problems in the related art that the dual-core lock-step processor cannot detect and recover transient faults in real time, resulting in poor safety, limited storage resources for fault information, poor performance, etc.
[0006] A first aspect of the present application provides a hardware fast recovery architecture for a dual-core lock-step processor, comprising: a dual-core lock-step processor and a redundant control comparison unit; a hardware checkpoint unit, wherein the hardware checkpoint unit comprises a commit buffer and a backup logic, the commit buffer being used to cache the suspended storage instructions of the dual-core lock-step processor and the register values in the register stack, and if the redundant control comparison unit compares the suspended storage instruction and passes, the register value is written into the backup logic as a new checkpoint; the backup logic is used to store the new checkpoint, and when refreshing the pipeline part and the buffer part of the dual-core lock-step processor after detecting a fault in the dual-core lock-step processor, the pipeline part of the dual-core lock-step processor is restored through the program counter and register value of the new checkpoint stored by the backup logic.
[0007] Optionally, the commit buffer includes a first buffer, a second buffer and a mapping table, wherein the first buffer stores register values in the register stack, the second buffer stores a pointer and a program counter of each suspended storage instruction, and the mapping table stores a mapping relationship between register indexes and the first buffer and the second buffer.
[0008] Optionally, the content of the commit buffer is divided into multiple fragments by the suspended storage instruction, and register values of the same fragment are merged.
[0009] Optionally, if the commit buffer caches a new register value, the new register value of the same register overwrites the old register value in the same segment of the mapping table and the first buffer.
[0010] Optionally, the backup logic modifies a target state bit after storing the new checkpoint.
[0011] Optionally, a single event disturbance in a transient fault of the dual-core lockstep processor flips a single bit in a register file to be detected by the redundant control comparison unit.
[0012] Optionally, if the redundant control comparison unit fails to compare the suspended storage instruction or fails to regularly check the register values in all register files, the pipeline part and the buffer part of the dual-core lockstep processor are refreshed.
[0013] Optionally, the dual-core lockstep processor includes a main core and a check core, and the buffer part includes at least one of a load queue, a store queue and a reorder buffer.
[0014] A second aspect of the present application provides an electronic device, comprising a hardware fast recovery architecture of the dual-core lock-step processor described in the above embodiment.
[0015] A third aspect of the present application provides a method for hardware rapid recovery of a dual-core lock-step processor, wherein the method implements hardware rapid recovery based on the hardware rapid recovery architecture of the dual-core lock-step processor described in the above-mentioned embodiment, wherein the method includes the following steps: obtaining the suspended storage instruction of the dual-core lock-step processor and the register value in the register stack; writing the suspended storage instruction and the register value in the register stack into a commit buffer, and if the suspended storage instruction passes the comparison based on the redundant control comparison unit, writing the register value as a new checkpoint into the backup logic; when refreshing the pipeline part and the buffer part of the dual-core lock-step processor after detecting a fault in the dual-core lock-step processor, restoring the pipeline part of the dual-core lock-step processor through the program counter and register value of the new checkpoint stored by the backup logic.
[0016] Therefore, this application includes the following beneficial effects:
[0017] In the embodiment of the present application, when the redundant control comparison unit compares the suspended storage instruction and passes it, the register value is written into the backup logic as a new checkpoint, the backup logic stores the new checkpoint, and when the pipeline part and the buffer part of the dual-core lock-step processor are refreshed after detecting a dual-core lock-step processor failure, the pipeline part of the dual-core lock-step processor is restored according to the program counter and register value of the new checkpoint. Therefore, the hardware checkpoint unit can significantly improve the fault detection speed and optimize the fault recovery speed of the dual-core lock-step processor, save average energy consumption, reduce storage overhead, and improve the reliability and safety of the processor.
[0018] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
[0020] Figure 1 Schematic diagram of a baseline lightweight dual-core lockstep processor provided for the prior art;
[0021] Figure 2 A block diagram of a hardware fast recovery architecture of a dual-core lockstep processor provided according to an embodiment of the present application;
[0022] Figure 3 A schematic diagram of a hardware checkpoint unit provided according to an embodiment of the present application;
[0023] Figure 4 An overview diagram of a hardware recovery framework provided according to an embodiment of the present application;
[0024] Figure 5 The present invention is a flowchart of a method for fast hardware recovery of a dual-core lockstep processor provided according to an embodiment of the present application. DETAILED DESCRIPTION
[0025] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.
[0026] The following describes the hardware fast recovery architecture, vehicle and method of the dual-core lock-step processor of the embodiment of the present application with reference to the accompanying drawings. In view of the problem that the dual-core lock-step processor in the related art mentioned in the above background technology cannot detect and recover transient faults in real time, resulting in poor user experience, poor security, limited storage resources for fault information, and poor performance, the present application provides a hardware fast recovery architecture of the dual-core lock-step processor, in which when the redundant control comparison unit compares the suspended storage instruction and passes, the register value is written into the backup logic as a new checkpoint, the backup logic stores the new checkpoint, and when the pipeline part and buffer part of the dual-core lock-step processor are refreshed after the dual-core lock-step processor fault is detected, the pipeline part of the dual-core lock-step processor is restored according to the program counter and register value of the new checkpoint, so that the hardware checkpoint unit can show the improvement of the fault detection speed and optimization of the fault recovery speed of the dual-core lock-step processor, save average energy consumption, reduce storage overhead, and improve the reliability and safety of the processor. Therefore, the problem that the dual-core lock-step processor in the related art cannot detect and recover transient faults in real time, resulting in poor user experience, poor security, limited storage resources for fault information, and poor performance is solved.
[0027] Specifically, Figure 2 A block diagram of a hardware fast recovery architecture of a dual-core lockstep processor provided in an embodiment of the present application.
[0028] like Figure 2 As shown, the hardware fast recovery architecture 10 of the dual-core lock-step processor includes: a dual-core lock-step processor 100 , a redundant control comparison unit 200 and a hardware checkpoint unit 300 .
[0029] Among them, the hardware checkpoint unit 300 includes a commit buffer and a backup logic. The commit buffer is used to cache the suspended storage instructions of the dual-core lock-step processor and the register values in the register stack. If the redundant control comparison unit compares the suspended storage instruction and passes, the register value is written into the backup logic as a new checkpoint; the backup logic is used to store the new checkpoint. When refreshing the pipeline part and the buffer part of the dual-core lock-step processor after detecting a dual-core lock-step processor failure, the pipeline part of the dual-core lock-step processor is restored through the program counter and register value of the new checkpoint stored in the backup logic.
[0030] It can be understood that the embodiment of the present application can write the register value as a new checkpoint into the backup logic when the redundant control comparison unit compares the suspended storage instruction, and the backup logic stores the new checkpoint, and when refreshing the pipeline part and the buffer part of the dual-core lock-step processor after detecting the dual-core lock-step processor failure, the pipeline part of the dual-core lock-step processor is restored according to the program counter and register value of the new checkpoint. Therefore, the fault detection speed and fault recovery speed of the dual-core lock-step processor can be improved and optimized through the hardware checkpoint unit, which saves average energy consumption, reduces storage overhead, and improves the reliability and safety of the processor.
[0031] Specifically, the signals will be compared in the redundant control comparison unit. If the relevant signals are inconsistent, a warning signal will be issued, and the error controller and interrupt controller will recover from the safe checkpoint stored in the previous software and re-fetch instructions. Instruction fetch refers to the process by which the processor reads instructions from the memory.
[0032] It should be noted that the hardware checkpoint unit consists of two parts: a commit buffer and backup logic. Since there is a delay between the commit of storage instructions and the confirmation of the cache subsystem, that is, there is a delay between the moment when the storage instruction is committed and the place where the instruction is actually checked and executed, this type of storage instruction is called a suspended storage instruction.
[0033] In an embodiment of the present application, the commit buffer includes a first buffer, a second buffer and a mapping table, wherein the first buffer stores register values in a register stack, the second buffer stores a pointer and a program counter of each suspended storage instruction, and the mapping table stores a mapping relationship between the register index and the first buffer and the second buffer.
[0034] It can be understood that in the embodiment of the present application, the commit buffer is used to store register values in the register stack, store the pointer and program counter of each suspended storage instruction, and the register values and indexes updated according to the mapping relationship between the first buffer and the second buffer, which can realize the temporary storage of the submitted register values and indexes that are newer than the suspended storage instruction, thereby improving the fault detection speed and optimizing the fault recovery speed of the dual-core lock-step processor, saving average energy consumption, reducing storage overhead, and improving the reliability and security of the processor.
[0035] It should be noted that the first buffer zone of this application is located at Figure 3 The middle part of the commit buffer shown is used to store the committed values, that is, to store the register values in the register file. The second buffer is located at Figure 3 The right part of the commit buffer shown is used to record the pointer and program counter of each pending store instruction. The mapping table is located at Figure 3The left part of the commit buffer shown is used for a mapping table indexed by a register and recording the mapping relationship with the first two modules.
[0036] In an embodiment of the present application, the content of the commit buffer is divided into multiple fragments by the pending storage instruction, and the register values of the same fragment are merged.
[0037] It can be understood that in the embodiment of the present application, the content of the commit buffer is divided into multiple fragments by the suspended storage instruction, and the register values of the same fragment are merged, which can reduce the storage overhead and thus improve the speed of fault detection.
[0038] It should be noted that, similar to the generation of a checkpoint when an out-of-order processor encounters a speculative branch execution, the contents of the commit buffer are divided into several fragments by the pending store instructions.
[0039] In the embodiment of the present application, if the commit buffer caches a new register value, the new register value of the same register overwrites the old register value in the same segment of the mapping table and the first buffer.
[0040] It can be understood that in the embodiment of the present application, if a new register value is cached in the submission buffer, the new register value of the same register overwrites the old register value in the same fragment of the mapping table and the first buffer, which can reduce storage overhead while maintaining the reliability of fault recovery and improving the speed of fault detection.
[0041] Specifically, the new register value in the same register and the same fragment can be directly overwritten by the old value in the mapping table and the buffer, where the same fragment means that there is no pending storage request for the new register value and the old register value; if the pending storage instruction is successfully compared by the redundant control comparison unit and stored in the external SRAM (Static Random Access Memory) array, the value in the register file will be written into the backup logic as a new checkpoint. At the same time, the value between the storage instruction and the next pending storage instruction will be submitted to the register file in the core; otherwise, the buffer will be flushed.
[0042] In an embodiment of the present application, the backup logic modifies the target state bit after storing the new checkpoint.
[0043] The entries of the backup logic consist of a value and a status bit.
[0044] It can be understood that the backup logic of the embodiment of the present application modifies the target state bit after storing the new checkpoint, thereby avoiding unnecessary register value copying and reducing power consumption.
[0045] Specifically, the main part of the backup logic is a hardware checkpoint, which is used to save the current register values when the redundant control comparison unit successfully checks the latest storage instruction or when no errors are found in the regular checks.
[0046] Different from regular out-of-order processors that record register alias information, since dual-core lockstep processors are usually sequential cores and lack register renaming, registers directly index hardware checkpoints, and each entry consists of a value and a status bit indicating whether the register is different from the registers in the two cores.
[0047] Once the check is successful, the register value temporarily stored in the submission buffer will be written to the register stack and the backup logic, and the corresponding status in the backup logic will be set to modified; if the redundant control comparison unit or the periodic check finds an error, the register value set to modified in the backup logic (that is, the value modified by the subsequent submission) will be restored in the register stack of the main core and the check core.
[0048] The purpose of using the modified bit is to avoid unnecessary copying of register values, thereby reducing power consumption. After flushing the pipeline and all buffers, such as the load queue, store queue, and reorder buffer, the two cores will restart instruction fetching from the last successful checkpointed store instruction.
[0049] In the embodiment of the present application, a single event disturbance in a transient fault of a dual-core lockstep processor flips a single bit in a register file to be detected by a redundant control comparison unit.
[0050] It can be understood that in the embodiment of the present application, a single event disturbance in a transient fault of the dual-core lock-step processor flips a single bit in the register file to be detected by the redundant control comparison unit, so that the subsequent redundant control comparison unit compares related signals to determine the checkpoint.
[0051] Specifically, the fault model of the present application focuses on single-event disturbances in transient faults, which only flip a single bit in the register file; any transient fault, if not propagated outside the core, will be transmitted to the register file and detected by the redundant control comparison unit, which compares the signals at the off-core level.
[0052] In an embodiment of the present application, if the redundant control comparison unit fails to compare the suspended storage instruction or fails to compare the register values in all register files during periodic checking, the pipeline part and the buffer part of the dual-core lockstep processor are refreshed.
[0053] The dual-core lock-step processor includes a main core and a check core, and the buffer part includes at least one of a load queue, a store queue and a reorder buffer.
[0054] It can be understood that in the embodiment of the present application, if the redundant control comparison unit fails to compare the suspended storage instruction or the periodic check of the register value comparison in all register files fails, the pipeline part and the buffer part of the dual-core lock-step processor are refreshed to shorten the average detection time when a fault occurs, thereby ensuring that the system can quickly recover to a safe state after a fault occurs, reducing storage overhead and improving system energy efficiency.
[0055] It should be noted that the communication and state synchronization between the main core and the check core of the dual-core lock-step processor can ensure that the operations remain synchronized, prevent errors caused by inconsistent data, and ensure the reliability and security of the processor.
[0056] Specifically, if Figure 4 As shown, once the preset cycle is reached, all register file values in the main core and the check core will be compared, a successful check will create a new checkpoint into the backup logic, and a failed check will trigger a global flush and restore the pipeline from the latest checkpoint.
[0057] According to the hardware fast recovery architecture of the dual-core lock-step processor proposed in the embodiment of the present application, when the redundant control comparison unit compares the suspended storage instruction and passes it, the register value is written into the backup logic as a new checkpoint, the backup logic stores the new checkpoint, and when the pipeline part and the buffer part of the dual-core lock-step processor are refreshed after detecting a dual-core lock-step processor failure, the pipeline part of the dual-core lock-step processor is restored according to the program counter and register value of the new checkpoint. Therefore, the fault detection speed and fault recovery speed of the dual-core lock-step processor can be improved and optimized through the hardware checkpoint unit, which saves average energy consumption, reduces storage overhead, and improves the reliability and safety of the processor.
[0058] The following will explain the two parallel mechanisms of the hardware recovery mechanism, as follows:
[0059] 1. Command submission
[0060] 1) When instructions are committed from the top of the reorder buffer, if there is no pending store currently in the commit buffer, and the commit information (i.e. register values and program counter) in these instructions will directly overwrite the register file and set the modified bit of the backup logic, or they need to enter the commit buffer and wait for the confirmation of the most recent pending store.
[0061] 2) If entering the commit buffer, the same register should be checked for merging in the same fragment (i.e. separated by pending stores). If any corresponding register entry in the mapping table is occupied by a previous pending store, the reorder buffer commit will be blocked, waiting for the entry to be released.
[0062] 3) Once the most recent pending store is successfully compared and executed, the value of the register file is updated into the backup logic, and then all fragments of related values are committed to the register file with their modified bits set into the backup logic. If it fails, the commit buffer is flushed and the pipeline is restored from the program counter and register values of the current hardware checkpoint.
[0063] 2. Regular inspection
[0064] Once the preset cycle is reached, all register file values in the main core and the check core will be compared. A successful check will create a new checkpoint into the backup logic, and a failed check will trigger a global flush and restore the pipeline from the latest checkpoint.
[0065] In summary, the present application has the following beneficial effects: (1) The present application aims to significantly reduce the time from fault occurrence to detection through a hardware-assisted fault detection mechanism; (2) The hardware-level rapid recovery process of the present application can ensure that the system can quickly recover to a safe state after a fault occurs; (3) Through the design of the hardware checkpoint unit, the storage overhead is reduced while maintaining the reliability of fault recovery; (4) By optimizing the fault detection and recovery process, energy consumption is reduced, so that the processor has better energy efficiency performance while meeting safety requirements.
[0066] An embodiment of the present application also provides an electronic device including a hardware fast recovery architecture of a dual-core lockstep processor as in the above embodiment.
[0067] Next, a hardware fast recovery method for a dual-core lockstep processor proposed according to an embodiment of the present application is described with reference to the accompanying drawings.
[0068] Figure 5 It is a flowchart of a hardware fast recovery method of a dual-core lockstep processor according to an embodiment of the present application.
[0069] like Figure 5 As shown, the hardware fast recovery method of the dual-core lock-step processor implements hardware fast recovery based on the hardware fast recovery architecture of the dual-core lock-step processor, wherein the method includes the following steps:
[0070] In step S101 , a pending store instruction of a dual-core lockstep processor and a register value in a register file are obtained.
[0071] In step S102, the pending storage instruction and the register value in the register file are written into the commit buffer. If the pending storage instruction passes the comparison based on the redundancy control comparison unit, the register value is written into the backup logic as a new checkpoint.
[0072] In step S103, when refreshing the pipeline part and buffer part of the dual-core lockstep processor after detecting the dual-core lockstep processor failure, the pipeline part of the dual-core lockstep processor is restored by the program counter and register values of the new checkpoint stored by the backup logic.
[0073] It should be noted that the aforementioned explanation of the hardware fast recovery architecture embodiment of the dual-core lock-step processor is also applicable to the hardware fast recovery method of the dual-core lock-step processor of this embodiment, and will not be repeated here.
[0074] According to the hardware fast recovery method of the dual-core lock-step processor proposed in the embodiment of the present application, when the redundant control comparison unit compares the suspended storage instruction and passes it, the register value is written into the backup logic as a new checkpoint, the backup logic stores the new checkpoint, and when the pipeline part and the buffer part of the dual-core lock-step processor are refreshed after the dual-core lock-step processor fault is detected, the pipeline part of the dual-core lock-step processor is restored according to the program counter and register value of the new checkpoint. Therefore, the fault detection speed and fault recovery speed of the dual-core lock-step processor can be improved and optimized through the hardware checkpoint unit, which saves average energy consumption, reduces storage overhead, and improves the reliability and safety of the processor.
[0075] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms are not necessarily directed to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or N embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0076] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of this application, "N" means at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0077] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or N executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.
[0078] It should be understood that the various parts of the present application can be implemented in hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, the steps or methods can be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array, a field programmable gate array, etc.
[0079] A person of ordinary skill in the art may understand that all or part of the steps carried by the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the above-mentioned program may be stored in a computer-readable storage medium, which, when executed, includes one of the steps of the method embodiment or a combination thereof.
[0080] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations on the present application. Ordinary technicians in this field can change, modify, replace and modify the above embodiments within the scope of the present application.
Claims
1. A hardware fast recovery architecture for a dual-core lockstep processor, characterized in that: include: Dual-core lock-step processor and redundant control comparison unit; a hardware checkpoint unit, wherein the hardware checkpoint unit includes a commit buffer and a backup logic, The commit buffer is used to cache the pending storage instruction of the dual-core lockstep processor and the register value in the register file, and if the redundant control comparison unit compares the pending storage instruction and passes, the register value is written into the backup logic as a new checkpoint; The backup logic is used to store the new checkpoint. When refreshing the pipeline part and the buffer part of the dual-core lock-step processor after detecting a failure of the dual-core lock-step processor, the pipeline part of the dual-core lock-step processor is restored by the program counter and register values of the new checkpoint stored by the backup logic.
2. The hardware fast recovery architecture of the dual-core lockstep processor according to claim 1, characterized in that: The commit buffer includes a first buffer, a second buffer and a mapping table, wherein the first buffer stores register values in the register stack, the second buffer stores a pointer and a program counter of each suspended storage instruction, and the mapping table stores a mapping relationship between a register index and the first buffer and the second buffer.
3. The hardware fast recovery architecture of the dual-core lockstep processor according to claim 2, characterized in that: The content of the commit buffer is divided into multiple segments by the pending store instruction, and register values of the same segment are merged.
4. The hardware fast recovery architecture of the dual-core lockstep processor according to claim 3, characterized in that: If the commit buffer caches a new register value, the new register value of the same register overwrites the old register value in the same segment of the mapping table and the first buffer.
5. The hardware fast recovery architecture of the dual-core lockstep processor according to claim 1, characterized in that: The backup logic modifies the target state bits after storing the new checkpoint.
6. The hardware fast recovery architecture of the dual-core lockstep processor according to claim 1, characterized in that: A single event upset in a transient fault of the dual-core lockstep processor flips a single bit in a register file to be detected by the redundant control comparison unit.
7. The hardware fast recovery architecture of the dual-core lockstep processor according to claim 1, characterized in that: If the redundant control comparison unit fails to compare the suspended storage instruction or fails to regularly check the register values in all register files, the pipeline part and the buffer part of the dual-core lockstep processor are refreshed.
8. The hardware fast recovery architecture of the dual-core lockstep processor according to claim 1, characterized in that: The dual-core lock-step processor includes a main core and a check core, and the buffer part includes at least one of a load queue, a store queue and a reorder buffer.
9. An electronic device, characterized in that: A hardware fast recovery architecture comprising the dual-core lockstep processor according to any one of claims 1 to 8.
10. A hardware fast recovery method for a dual-core lockstep processor, characterized in that: The method implements hardware fast recovery based on the hardware fast recovery architecture of the dual-core lockstep processor according to any one of claims 1 to 8, wherein the method comprises the following steps: Get the pending store instructions and register values in the register file of the dual-core lockstep processor; Writing the pending storage instruction and the register value in the register file into the commit buffer, and if the pending storage instruction passes the comparison based on the redundancy control comparison unit, writing the register value as a new checkpoint into the backup logic; When refreshing the pipeline part and the buffer part of the dual-core lock-step processor after detecting the failure of the dual-core lock-step processor, the pipeline part of the dual-core lock-step processor is restored by the program counter and register values of the new checkpoint stored by the backup logic.
Citation Information
Cited By
Microprocessor fault recovery device and method, and chip
CN119248578A
A microprocessor fault recovery device and method, and a chip
CN119248578B
High-reliability processor dual-core lock step control and processing device and method
CN119883747A
