The utility model discloses a dual-core
lockstep processor hardware
error detection and correction system, which relates to the technical field of processors and comprises a
master processor, a slave processor, an error monitoring module, a
backtracking address generation module and an instruction flushing
backtracking control module. The error monitoring module is used for comparing and monitoring the main processor and the slave processor, and when the output data of the main processor and the slave processor are different, a dual-core lock step
error signal is triggered; the instruction flushing
backtracking control module is used for sending an
assembly line emptying
signal and an instruction backtracking
signal when receiving the
error signal; the backtracking address generation module is used for generating a backtracking instruction address when receiving the
error signal; and when receiving the
assembly line emptying
signal and the instruction backtracking signal, the main processor and the slave processor are used for emptying the instruction operated by the current
assembly line and then obtaining the instruction again according to the address of the backtracking instruction to realize error correction. The scheme does not depend on
software, hardware self-inspection and self-correction can be completed, and the
recovery time required for detecting and recovering the transient fault is greatly shortened.