A multi-module redundant configuration system for processors

By introducing a multi-module redundant configuration scheme into the processor system and using the cooperation of counters and watchdogs to automatically load multiple programs from the FLASH memory, the problem that the core processor's program memory is easily damaged in harsh environments has been solved and achieved Stable operation of the system and fault repair.

CN111858121BActive Publication Date: 2024-09-06SHANGHAI AEROSPACE CONTROL TECH INST
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010724781.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-07-24
Publication Date
2024-09-06
Estimated Expiration
2040-07-24

AI Technical Summary

Technical Problem

In harsh electromagnetic and radiation environments, the program memory of the core processor is easily damaged, and existing technology cannot effectively perform multi-mode redundancy configuration, resulting in the failure of the circuit system to recover normally.

Method used

Design a multi-module redundant configuration system that regularly sends dog-feeding signals through the processor, counts counters, resets watchdogs, and loads multiple programs from FLASH memory to realize automatic identification and repair of programs and ensure stable operation of the system.

Benefits of technology

It realizes the automatic identification and repair of the core processor when the program is abnormal, avoids single points of failure, and improves the stability and reliability of the circuit system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111858121B
    Figure CN111858121B
Patent Text Reader

Abstract

The invention discloses a multi-mode redundancy configuration system for a processor, the system comprising: a processor, the processor regularly sends a dog feeding signal to a watchdog during normal operation; a counter, used for counting the number of pulses; a watchdog, the watchdog automatically resets when receiving the dog feeding signal, the watchdog sends a first reset signal to the processor and the counter respectively and automatically resets when failing to receive the dog feeding signal within a set time, the processor automatically resets when receiving the first reset signal, the processor program loaded from a FLASH memory by the processor corresponds to the count value; multi-mode redundancy of a program is performed on a core processor in a circuit system, when part of the data of one of the programs is abnormally damaged and the core processor cannot operate normally, the core processor can automatically identify or reload and operate from other programs under simple external intervention.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of processors, and in particular to a multi-module redundant configuration system for processors. Background Art

[0002] In some industrial applications, especially in the military or aerospace fields, the reliability of electronic products plays a vital role in the execution of the entire mission, and the stability of the core processor in the circuit system is of paramount importance.

[0003] Generally, factors that affect the stable operation of circuits include the reliability of program design, the tolerance of circuit systems to complex electromagnetic environments, the natural life of the circuit structure inside electronic chips, etc. In some special fields, such as in nuclear reaction environments or spacecraft in cosmic environments, the effects of charged particle radiation on electronic chips caused by single particle upsets must also be considered. In order to improve the operational stability of electronic systems, especially those in harsh electromagnetic and radiation environments, some measures to improve system stability are generally added during the circuit design process.

[0004] Generally speaking, in a circuit system that can be controlled by operators at any time, when the staff finds that the circuit system is working abnormally, they can restart the circuit by re-powering it on to restore the normal working state of the circuit.

[0005] In situations where the stability of the circuit system is required to be relatively high, in order to improve the operating stability of the core processor, a watchdog will be configured on the core processor to monitor the operating status of the core processor. When the watchdog detects that the operating status of the core processor is abnormal, the core processor will be reset so that the core processor can reload the program from the memory. However, this reset and restart operation cannot avoid abnormalities caused by information errors inside the program memory. If there are manufacturing defects inside the program memory or the information in the program memory is erroneous due to the natural life of electronic components, the method of restarting the core processor by the watchdog cannot restore the circuit system to normal. Near a nuclear reactor or in space where charged particle radiation also exists, the probability of charged particle radiation causing information bit flipping inside the memory is very high, so finding a way to perform multi-mode redundancy on the program in the program memory of the core processor is of great significance to the stable operation of the circuit system. Summary of the invention

[0006] The object of the present invention is to provide a multi-module redundant configuration system for a processor to overcome the problems existing in the prior art.

[0007] In order to achieve the above object, the technical solution adopted by the present invention is as follows:

[0008] A multi-mode redundant configuration system for a processor, comprising:

[0009] A processor, wherein the processor periodically sends a dog feeding signal to the watchdog during normal operation;

[0010] A counter, used for counting the number of pulses;

[0011] A watchdog, wherein the watchdog automatically resets upon receiving the dog feeding signal, and when the watchdog does not receive the dog feeding signal within a set time, the watchdog sends a first reset signal to the processor and the counter respectively and automatically resets, the processor automatically resets upon receiving the first reset signal, and the counter starts counting upon receiving the first reset signal, and the count value obtained by the counter is the same as the number of the first reset signals;

[0012] FLASH memory, used to store several copies of the processor program;

[0013] The processor program loaded by the processor from the FLASH memory corresponds to the count value.

[0014] Furthermore, the processor is an FPGA processor, a DSP processor or an MCU processor.

[0015] Furthermore, it also includes a first receiving module, which is used to receive manual instructions. After receiving the manual instructions, the processor stops sending the dog feeding signal to the watchdog.

[0016] Furthermore, a first inverter is installed between the watchdog and the counter.

[0017] Furthermore, a first series resistor is installed between the counter and the FLASH memory.

[0018] On the other hand, the present application also provides a multi-mode redundant configuration system for a processor, comprising:

[0019] A processor, wherein the processor periodically sends a dog feeding signal to the watchdog during normal operation;

[0020] A counter, used for counting the number of pulses;

[0021] A watchdog, wherein the watchdog automatically resets upon receiving the dog feeding signal, wherein the watchdog sends a second reset signal to the processor and automatically resets upon not receiving the dog feeding signal within a set time, wherein the processor automatically resets upon receiving the second reset signal, wherein the processor sends a third reset signal to the counter upon automatically resetting, wherein the counter starts counting upon receiving the third reset signal, and wherein the count value obtained by the counter is the same as the number of the third reset signals;

[0022] FLASH memory, used to store several copies of the processor program;

[0023] The processor program loaded by the processor from the FLASH memory corresponds to the count value.

[0024] Furthermore, the processor is an FPGA processor, a DSP processor or an MCU processor.

[0025] Furthermore, it also includes a second receiving module, which is used to receive manual instructions. After receiving the manual instructions, the processor stops sending the dog feeding signal to the watchdog.

[0026] Furthermore, a second inverter is installed between the watchdog and the counter.

[0027] Furthermore, a second series resistor is installed between the counter and the FLASH memory.

[0028] Compared with the prior art, the present invention has at least one of the following advantages:

[0029] This solution can perform multi-mode redundancy of programs for the core processor in the circuit system. When part of the data of one of the programs is abnormally damaged and causes the core processor to fail to operate normally, the core processor can automatically identify or reload and run from other programs under simple external intervention. In the multi-mode redundancy configuration method for processors, when the core processor finds that the program is wrong, it can also perform multi-mode verification on multiple programs in the program memory, so as to repair the damaged program data; in this application, there is no single point for storing programs inside the FLASH, and each program may be used to start the FPGA. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] Figure 1 A logical diagram of a method for configuring multi-module redundancy for a processor that can perform multi-module redundancy on a core processor program provided by an embodiment of the present invention;

[0031] Figure 2 A simplified logic diagram of a multi-module redundancy configuration method for a processor that can perform multi-module redundancy on a core processor program provided by an embodiment of the present invention;

[0032] Figure 3 A logic diagram of a program multi-module redundancy configuration of a core processor with a program loading completion identification signal provided by another embodiment of the present invention;

[0033] Figure 4A logic diagram of a method for configuring multi-mode redundancy for a processor that is an extension of a program multi-mode redundancy configuration for a core processor having a program loading completion identification signal provided in another embodiment of the present invention. DETAILED DESCRIPTION

[0034] The following is combined with Figures 1 to 4 The present invention is further described in detail with specific implementation methods. According to the following description, the advantages and features of the present invention will be clearer. It should be noted that the drawings are in a very simplified form and use non-precise proportions, which are only used to conveniently and clearly assist in explaining the purpose of the implementation methods of the present invention. In order to make the purposes, features and advantages of the present invention more obvious and easy to understand, please refer to the drawings. It should be noted that the structures, proportions, sizes, etc. illustrated in the drawings of this specification are only used to match the contents disclosed in the specification for people familiar with this technology to understand and read, and are not used to limit the limiting conditions for the implementation of the present invention, so they have no technical substantive significance. Any structural modification, change in proportional relationship or adjustment of size, without affecting the effects that the present invention can produce and the purposes that can be achieved, should still fall within the scope of the technical content disclosed by the present invention.

[0035] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or field device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or field device. In the absence of further restrictions, the elements defined by the sentence "including one..." do not exclude the existence of other identical elements in the process, method, article or field device including the elements.

[0036] Embodiment 1:

[0037] See also Figure 1 As shown, this embodiment provides a multi-mode redundant configuration system for a processor, including:

[0038] The processor (also called the core processor) interprets computer instructions and processes data in computer software. The processor sends a dog-feeding signal to the watchdog regularly during normal operation. The core processor can be a computing unit such as FPGA, DSP, MCU, etc. The core processor feeds the watchdog regularly according to its own operating status during operation. When the core processor operates normally, the core processor can output the dog-feeding signal normally, and the watchdog is reset regularly. When the core processor operates abnormally, the core processor cannot generate the dog-feeding signal normally, and the watchdog will have a timing overflow and generate a reset signal.

[0039] A counter, used for counting the number of pulses;

[0040] A watchdog, wherein the watchdog automatically resets upon receiving the dog feeding signal, and when the watchdog does not receive the dog feeding signal within a set time, the watchdog sends a first reset signal to the processor and the counter respectively and automatically resets, the processor automatically resets upon receiving the first reset signal, and the counter starts counting upon receiving the first reset signal, and the count value obtained by the counter is the same as the number of the first reset signals;

[0041] The reset signal (first reset signal or second reset signal) of the watchdog controls the reset or program reload control terminal of the core processor on the one hand, so that the core processor reloads the program from FLASH (short for FLASH memory), and controls the count control terminal of the counter on the other hand, so that the counter generates a new count value when the core processor is reset, so that the count value output by the counter points to the next address space of FLASH. In specific operations, it should be ensured that the counter is absolutely stable during the process of the core processor loading the program to avoid the situation of changing the count value during the process of the core processor loading the program. Therefore, the counter can be designed to generate counts when the watchdog starts to give a reset signal, and the counter remains unchanged when the reset signal is released. If the level jump characteristics of the core processor generating the reset signal are consistent with the level jump characteristics of the counter counting logic, the reset signal can be directly connected to the count terminal of the counter. If they are inconsistent, an inverter can be added between the reset signal and the counter to ensure that the reset start signal and the count signal remain simultaneous.

[0042] FLASH memory is used to store several processor programs, corresponding to the count values ​​"1", "2", "3" to "n" respectively. There is no single point for storing programs inside FLASH, and each program may be used as the startup load of the processor; FLASH memory is used to store processor programs; FLASH flash memory The English name of flash memory is "Flash Memory", generally referred to as "FLASH", which is a kind of memory device and a non-volatile memory. The physical characteristics of flash memory are fundamentally different from those of common memory: At present, all kinds of DDR, SDRAM or RDRAM are volatile memories. As long as the current supply is stopped, the data in the memory cannot be retained. Therefore, the data needs to be reloaded into the memory every time the computer is turned on; flash memory can also retain data for a long time without current supply. Its storage characteristics are equivalent to hard disks. This feature is the basis for flash memory to become the storage medium of various portable digital devices.

[0043] The count output value of the counter directly controls the address end of FLASH. Different count values ​​correspond to different address spaces in FLASH. The output bit width of the counter and the capacity of FLASH can be flexibly selected in the design. If the program needs to perform 3-module redundancy, a counter with a two-bit output width can be used to divide the FLASH into 4 segments. If the program needs to perform 5-module or 7-module redundancy, a counter with a 3-bit output width can be used to divide the FLASH into 8 segments, and so on.

[0044] The connection between FLASH and the core processor must comply with the general form of the core processor's requirements for FLASH connection, and its capacity must be selected to meet the needs of multi-mode redundancy for the program.

[0045] like Figure 2 In an extended configuration method of the core processor program for multi-mode redundancy configuration shown in the figure, a resistor can be connected in series on the connection line between the counter and FLASH to reduce the counter's driving ability for FLASH. At the same time, the core processor uses its own I / O pins to directly connect to the address signal of FLASH. In this way, the core processor can be set in the hardware design so that the I / O remains in a high-impedance state when loading the program, so as to ensure that the address space of LFASH is specified by the count value of the counter when the core processor is reset and reloaded. When a FLASH program error is detected and the FLASH program data needs to be corrected, the core processor can directly access the global address space of FLASH, thereby performing multi-mode verification and repair of the program data, or even updating or upgrading the FLASH program as a whole.

[0046] The processor program loaded by the processor from the FLASH memory corresponds to the count value. When the count value is 1, the processor program loaded by the processor is the processor program corresponding to "1", and so on.

[0047] Furthermore, the processor is an FPGA processor, a DSP processor or an MCU processor; the processor is an FPGA processor, a DSP processor or an MCU processor.

[0048] FPGA (Field-Programmable Gate Array), that is, field programmable gate array; Digital Signal Processing, in English: Digital Signal Processing, abbreviated as DSP; Microcontroller Unit (MCU), also known as Single Chip Microcomputer or single-chip microcomputer, is a chip-level computer that appropriately reduces the frequency and specifications of the central processing unit (CPU), and integrates peripheral interfaces such as memory, timer, USB, A / D conversion, UART, PLC, DMA, and even LCD drive circuits on a single chip to form a chip-level computer, which can perform different combination controls for different application scenarios.

[0049] In this embodiment, it also includes a first receiving module, which is used to receive manual instructions. After receiving the manual instructions, the processor stops sending dog feeding signals to the watchdog. When it is found that the program is running abnormally under the monitoring of the operator, the core processor is instructed to stop the dog feeding action through instructions, and the watchdog will have a timing overflow and generate a reset signal.

[0050] In this embodiment, a first inverter is installed between the watchdog and the counter.

[0051] In this embodiment, a first series resistor is installed between the counter and the FLASH memory.

[0052] Embodiment 2:

[0053] This embodiment is basically the same as the first embodiment. This embodiment provides a multi-mode redundant configuration system for a processor, including:

[0054] A processor, wherein the processor periodically sends a dog feeding signal to the watchdog during normal operation;

[0055] A counter, used for counting the number of pulses;

[0056] A watchdog, wherein the watchdog automatically resets upon receiving the dog feeding signal, wherein the watchdog sends a second reset signal to the processor and automatically resets upon not receiving the dog feeding signal within a set time, wherein the processor automatically resets upon receiving the second reset signal, wherein the processor sends a third reset signal to the counter upon automatically resetting, wherein the counter starts counting upon receiving the third reset signal, and wherein the count value obtained by the counter is the same as the number of the third reset signals;

[0057] FLASH memory, used to store several copies of the processor program;

[0058] The processor program loaded by the processor from the FLASH memory corresponds to the count value.

[0059] In this embodiment, the processor is an FPGA processor, a DSP processor or an MCU processor.

[0060] In this embodiment, a second receiving module is further included, and the second receiving module is used to receive a manual instruction. After receiving the manual instruction, the processor stops sending the dog feeding signal to the watchdog.

[0061] In this embodiment, a second inverter is installed between the watchdog and the counter.

[0062] In this embodiment, a second series resistor is installed between the counter and the FLASH memory.

[0063] For core processors such as FPGA, they generally have their own indication signal pins to mark the completion of program loading (such as the DONE signal of Xilinx FPGA). The counting clock of the counter is driven by these signals to achieve the same effect as the above configuration method.

[0064] like Figure 4 The corresponding extended configuration method of the core processor with the indication signal of completion of loading the program shown can also realize the functions that can be realized by the extended configuration method of the multi-module redundancy configuration method for the core processor program mentioned above.

[0065] Although the content of the present invention has been described in detail through the above preferred embodiments, it should be appreciated that the above description should not be considered as a limitation of the present invention. After reading the above content, it will be apparent to those skilled in the art that various modifications and substitutions of the present invention will occur. Therefore, the protection scope of the present invention should be limited by the appended claims.

Claims

1. A multi-module redundant configuration system for a processor, It is characterized in that include: A processor, wherein the processor periodically sends a dog feeding signal to the watchdog during normal operation; A counter, used for counting the number of pulses; A watchdog, wherein the watchdog automatically resets upon receiving the dog feeding signal, and when the watchdog does not receive the dog feeding signal within a set time, the watchdog sends a first reset signal to the processor and the counter respectively and automatically resets, the processor automatically resets upon receiving the first reset signal, and the counter starts counting upon receiving the first reset signal, and the count value obtained by the counter is the same as the number of the first reset signals; FLASH memory, used to store several copies of the processor program; The processor program loaded by the processor from the FLASH memory corresponds to the count value. The first reset signal of the watchdog controls the reset or program reload control terminal of the core processor on the one hand, so that the core processor reloads the program from the FLASH memory, and on the other hand, controls the count control terminal of the counter at the same time, so that the counter generates a new count value when the core processor is reset, so that the count value output by the counter points to the next address space of the FLASH memory. When the first reset signal is released, the counter remains unchanged. If the level jump characteristics of the core processor that generates the first reset signal are consistent with the level jump characteristics of the counter counting logic, the first reset signal is directly connected to the counting end of the counter. If they are inconsistent, an inverter is added between the first reset signal and the counter to ensure that the reset start signal and the counting signal remain simultaneous.

2. The multi-module redundant configuration system for a processor as claimed in claim 1, It is characterized in that The processor is an FPGA processor, a DSP processor or an MCU processor.

3. The multi-module redundant configuration system for a processor as claimed in claim 1, It is characterized in that It also includes a first receiving module, which is used to receive manual instructions. After receiving the manual instructions, the processor stops sending a dog feeding signal to the watchdog.

4. The multi-module redundant configuration system for a processor as claimed in claim 1, It is characterized in that A first inverter is installed between the watchdog and the counter.

5. The multi-module redundant configuration system for a processor as claimed in claim 1, It is characterized in that A first series resistor is installed between the counter and the FLASH memory.

6. A multi-module redundant configuration system for a processor, It is characterized in that include: A processor, wherein the processor periodically sends a dog feeding signal to the watchdog during normal operation; A counter, used for counting the number of pulses; A watchdog, wherein the watchdog automatically resets upon receiving the dog feeding signal, wherein the watchdog sends a second reset signal to the processor and automatically resets upon not receiving the dog feeding signal within a set time, wherein the processor automatically resets upon receiving the second reset signal, wherein the processor sends a third reset signal to the counter upon automatically resetting, wherein the counter starts counting upon receiving the third reset signal, and wherein the count value obtained by the counter is the same as the number of the third reset signals; FLASH memory, used to store several copies of the processor program; The processor program loaded by the processor from the FLASH memory corresponds to the count value. The second reset signal of the watchdog controls the reset or program reload control terminal of the core processor on the one hand, so that the core processor reloads the program from the FLASH memory, and on the other hand, controls the count control terminal of the counter at the same time, so that the counter generates a new count value when the core processor is reset, so that the count value output by the counter points to the next address space of the FLASH memory. When the second reset signal is released, the counter remains unchanged. If the level jump characteristics of the core processor that generates the second reset signal are consistent with the level jump characteristics of the counter counting logic, the second reset signal is directly connected to the counting end of the counter. If they are inconsistent, an inverter is added between the second reset signal and the counter to ensure that the reset start signal and the counting signal remain simultaneous.

7. The multi-mode redundant configuration system for a processor as claimed in claim 6, It is characterized in that The processor is an FPGA processor, a DSP processor or an MCU processor.

8. The multi-module redundant configuration system for a processor as claimed in claim 6, It is characterized in that It also includes a second receiving module, which is used to receive manual instructions. After receiving the manual instructions, the processor stops sending the dog feeding signal to the watchdog.

9. The multi-module redundant configuration system for a processor as claimed in claim 6, It is characterized in that A second inverter is installed between the watchdog and the counter.

10. The multi-module redundant configuration system for a processor as claimed in claim 6, It is characterized in that A second series resistor is installed between the counter and the FLASH memory.