Processor lock step device and related assembly
By using the summary generation module in the processor lock-step device to generate and compare the summary of the processor operating data, the judgment complexity problem caused by the increase in data volume in the prior art is solved, and more efficient processor reliability judgment and System integrity guaranteed.
Patent Information
- Application Number
- CN202410934928.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-12
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-07-12
AI Technical Summary
As the amount of data output by processors increases, it is difficult for existing lock-step technology to effectively determine whether each processor in the system is running reliably, which complicates the judgment process.
A processor lock-step device is provided, which includes a lock-step module and a summary generation module. It generates summary data from the operating data of the processor and compares whether the summary data is consistent to determine whether the processor is working normally, thereby reducing the need for the lock-step process. Amount of data to compare.
On the basis of ensuring the integrity of the processor's operating data, the lock-step process is simplified, the judgment complexity and comparison frequency are reduced, and the reliability and efficiency of the system are improved.
Smart Images

Figure CN118733394A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of processors, and in particular to a processor lockstep device and related components. Background Art
[0002] In systems with high safety requirements such as aircraft and automobiles, multiple processors running the same application are usually set up, that is, processor redundancy technology is used to improve system reliability. In related technologies, lockstep technology is often used to determine whether each processor in the system is operating reliably. Specifically, it is achieved by comparing in real time whether all data output by each processor is consistent. With the advancement of semiconductor technology, the frequency and bus bandwidth of the processor are also increasing, resulting in a gradual increase in the amount of data output by the processor. It is becoming increasingly difficult to use the lockstep technology in related technologies to determine whether each processor in the system is operating reliably. Summary of the invention
[0003] The purpose of the present invention is to provide a processor lock-step device and related components, which can reduce the amount of data required to be compared during the lock-step process on the basis of determining whether each processor is operating normally, while ensuring the integrity of the transmitted operating data of each processor.
[0004] In order to solve the above technical problems, the present invention provides a processor lock-step device, comprising a lock-step module and a summary generation module corresponding to each processor one by one;
[0005] Each of the summary generation modules is electrically connected to each of the processors, and the lock-step module is electrically connected to each of the summary generation modules;
[0006] The summary generation module is used to generate summary data according to the operation data of each processor;
[0007] The lock-step module is used to compare whether the summary data are consistent to determine whether the processors are working normally.
[0008] Optionally, the number of the lockstep modules is consistent with the number of the processors;
[0009] Each of the lock-step modules is used to compare whether each of the summary data is consistent to determine whether each of the processors is operating normally.
[0010] Optionally, each summary generation module is electrically connected to each processor in a one-to-one correspondence via a bus; wherein the data transmitted by the bus is the operating data of each processor electrically connected to each summary generation module.
[0011] Optionally, the summary generation module is specifically used to obtain data transmitted by a bus connected to itself, perform filling processing on the data transmitted by the bus to obtain filled data transmitted by the bus, perform grouping processing on the filled data transmitted by the bus to obtain grouped data transmitted by the bus, perform data expansion on the grouped data transmitted by the bus to obtain expanded data transmitted by the bus, and perform compression processing on the expanded data transmitted by the bus using a compression function to extract the summary data from the data transmitted by the bus; wherein the data transmitted by the bus is the operating data of each processor connected to the input end of each summary generation module.
[0012] Optionally, the summary generation module is specifically used to obtain data transmitted by an advanced scalable bus connected to itself, and extract write address channel data, write data channel data, write response channel data, read address channel data and read data channel data from the data as the summary data through a preset summary extraction algorithm.
[0013] Optionally, the summary generation module is specifically used to obtain data transmitted by a bus connected to itself in real time, and extract the summary data in parallel from the data transmitted by the bus within a preset time period using a preset summary extraction algorithm.
[0014] Optionally, the lock-step module includes a comparison module and a buffer corresponding to each of the summary generation modules one by one;
[0015] The buffer is used to store summary data output by the summary generation module connected to itself;
[0016] The comparison module is used to obtain the summary data stored in each of the buffers and compare whether the summary data in each of the buffers are consistent; when the summary data in each of the buffers are consistent, output a first signal indicating that each of the processors is working normally; when the summary data in each of the buffers are inconsistent, output a second signal indicating that there is a processor with abnormal operation among the processors, and the first signal is different from the second signal.
[0017] Optionally, the lockstep module further includes a register connected to the comparison module;
[0018] The comparison module is further configured to output the summary data in each buffer to the register when the summary data in each buffer is inconsistent, so that the register stores the summary data in each buffer.
[0019] Optionally, the lockstep module further includes:
[0020] The abnormality prompt module is used to generate a lock-step abnormality prompt message when it is detected that the comparison module outputs a second signal indicating that there is a processor with an abnormal operation among the processors.
[0021] In order to solve the above technical problem, the present invention also provides an inter-chip lock-step system, comprising at least two chips, and also comprising any one of the above processor lock-step devices;
[0022] Each summary generation module in the processor lock-step device corresponds one-to-one to the processor in each chip.
[0023] In order to solve the above technical problems, the present invention also provides an on-chip lock-step system, comprising a chip and any one of the above processor lock-step devices;
[0024] Each of the digest generation modules in the processor lock-step device corresponds one-to-one to each of the processors in the chip.
[0025] The beneficial effect of the present invention is to provide a processor lock-step device and related components, including a lock-step module and a summary generation module corresponding to each processor. Each summary generation module generates summary data according to the operation data of each processor. The lock-step module compares whether the summary data are consistent to determine whether each processor is working normally. The summary generation module is used to extract summary data from the operation data of each processor, and the processor lock-step is completed based on the summary data. On the basis of realizing the judgment of whether each processor is working normally, the amount of data that needs to be compared during the lock-step process is reduced, while ensuring the integrity of the operation data of each processor transmitted. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the prior art and the drawings required for use in the embodiments are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0027] Figure 1 A schematic diagram of the structure of a processor lockstep device provided by the present invention;
[0028] Figure 2 A schematic diagram of the structure of an inter-chip lock-step system provided by the present invention;
[0029] Figure 3 A schematic structural diagram of an on-chip lockstep system provided by the present invention. DETAILED DESCRIPTION
[0030] The core of the present invention is to provide a processor lock-step device and related components, which can reduce the amount of data that needs to be compared during the lock-step process on the basis of determining whether each processor is working normally.
[0031] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0032] It is worth noting that the processor lock-step device provided by the present invention can realize the lock-step of processors between multiple chips and the lock-step of multiple processor cores within a chip. The two lock-steps can be realized simultaneously or separately.
[0033] Please refer to Figure 1 , Figure 1 A schematic diagram of the structure of a processor lock-step device provided by the present invention, the processor lock-step device comprises a lock-step module 1 and a digest generation module 2 corresponding to each processor one by one;
[0034] Each summary generation module 2 is electrically connected to each processor in a one-to-one correspondence, and the lock-step module 1 is electrically connected to each summary generation module 2;
[0035] The summary generation module 2 is used to generate summary data according to the operation data of each processor;
[0036] The lock-step module 1 compares the summary data to see if they are consistent to determine whether each processor is operating normally.
[0037] When the lock-step technology is applied in the related art to determine whether each processor in the system is operating reliably, it is necessary to compare in real time whether all the data output by each processor is consistent. As the amount of data output by the processor gradually increases (the bus of a modern processor can transmit several thousand bits of information in parallel), the process of determining whether each processor in the system is operating reliably is becoming more and more complicated. In order to solve the above technical problems, the present invention provides a processor lock-step device, which includes a lock-step module 1 and a summary generation module 2. The summary generation module 2 generates a summary of the processor's operating data, thereby reducing the amount of data and the comparison frequency involved in the comparison process of the lock-step module 1, thereby reducing the difficulty of the lock-step process on the basis of determining whether each processor is operating normally.
[0038] First of all, it should be noted that each processor in the present invention executes the same application program, one of which is used as the main processor and the other processors are used as redundant processors. In the system, each processor works simultaneously, and the instructions output by the peripheral device are sent to the main processor and the redundant processor at the same time. The output data generated by the main processor based on the instruction is then fed back to the peripheral device so that the system can complete normal functions. The redundant processor also generates output data based on the instruction, but does not need to be fed back to the peripheral device. The output data generated by the main processor and the redundant processor are transmitted to the summary generation module 2 through their respective buses so that the lock step module 1 can perform subsequent lock step comparison.
[0039] On this basis, the processor lock-step device provided by the present invention includes a lock-step module 1 and a summary generation module 2 corresponding to each processor. Each summary generation module 2 is electrically connected to each processor through a bus so as to obtain data output by each processor through the bus, that is, the data transmitted by the bus is the operation data of each processor electrically connected to each summary generation module. After obtaining the data transmitted on the bus connected to itself, the summary generation module 2 extracts summary data from the data transmitted by the bus through a preset summary extraction algorithm for integrity measurement, so that the subsequent lock-step module 1 can perform lock-step comparison. Specifically, the summary generation module 2 is specifically used to obtain the data transmitted by the bus connected to itself, fill the bus transmitted data to obtain the filled bus transmitted data (wherein, there is no limitation on the length of the filling, such as the length of the bus transmitted data after filling is a multiple of 512 bits), group the filled bus transmitted data to obtain grouped bus transmitted data (wherein, there is no limitation on the grouping situation, such as the length of each group of bus transmitted data after grouping is 512 bits), expand the grouped bus transmitted data to obtain expanded bus transmitted data (such as 132 words are generated after expansion), and compress the expanded bus transmitted data using a compression function to extract summary data from the bus transmitted data (such as ultimately extracting 256 bits of summary data from the bus transmitted data).
[0040] It should be noted that, in the manner in which each summary generation module 2 is electrically connected to each processor via a bus, the input end of each summary generation module 2 may be electrically connected to the output end of each processor via the bus, wherein this embodiment does not limit whether the input end of the summary generation module 2 and the output end of each processor are electrically connected via a single pin of both parties or via all pins of both parties, as long as each summary generation module 2 and each processor can communicate with each other.
[0041] It should be noted that, compared with the previous direct comparison of bus data of all processors (i.e., comparison of original data), where the comparison data includes information such as data bus and interface input and output, the number of buses that need to be compared is around hundreds or thousands. The method provided in the present invention compares summary information, which greatly reduces the amount of data to be compared compared to comparing original data, and has better adaptability and is not restricted by bus type.
[0042] In order to further reduce the comparison frequency and the amount of data compared between each two processors, the present invention collects the output data of each processor within a period of time (the period of time can be determined according to the current lock-step safety level requirements), performs continuous abstract processing, and then performs a comparison. Compared with the method of setting the comparison frequency to be compared for each cycle, the present invention extracts the abstract of the bus transmission information continuously and performs a comparison, which can greatly reduce the amount of data compared and the frequency of comparison.
[0043] In addition, the present invention sets a summary generation module 2 corresponding to each processor in the processor lock-step device, which can reduce the amount of data that each summary generation module 2 needs to process, and reduce the complexity of the lock-step processing to a certain extent. It should also be noted that when the preset summary extraction algorithm is used to extract summary data from the data transmitted by the bus, not only can the amount of data required for the lock-step comparison be reduced, but also the integrity of the processor execution transaction can be ensured. The preset summary extraction algorithm in the present invention includes but is not limited to the cryptographic hash algorithm, i.e., the SM3 algorithm, Sha1, Sha256, Sha512 and other algorithms. Among them, the cryptographic hash algorithm can ensure that when there is a slight change in the data output by the processor through the bus, the summary data extracted by the summary generation module 2 from the data output by the bus will definitely change accordingly. Therefore, using the cryptographic hash algorithm as the preset summary extraction algorithm can improve the reliability of the lock-step comparison to a certain extent. For example, the SM3 algorithm as the preset summary extraction algorithm can reduce the number of interconnects for lock-step comparison (from thousands to 256), and the algorithm also ensures that any difference in any one of the thousands of roots will inevitably cause the difference in the output of the 256 roots, that is, a slight change in the input information will inevitably lead to a change in the output summary, ensuring the integrity and security of the data in the lock-step process.
[0044] Furthermore, the lock-step module 1 in the processor lock-step device compares whether each summary data is consistent, so as to determine whether each processor in the system is working properly. It should be noted that the lock-step module 1 obtains the summary data output by each summary generation module 2, and then compares whether each summary data is consistent, and the number of lock-step modules 1 in the processor lock-step device can be one or more. In particular, the number of lock-step modules 1 can also be consistent with the number of processors, and each lock-step module 1 is used to obtain the summary data output by each summary generation module 2, and compare whether each summary data is consistent to determine whether each processor is working properly. By setting up redundant lock-step modules 1, the problem of being unable to detect whether each processor is working properly when a single lock-step module 1 fails can be avoided, thereby improving the reliability of the processor lock-step device.
[0045] In summary, the present invention provides a processor lock-step device, including a lock-step module 1 and a summary generation module 2 corresponding to each processor. Each summary generation module 2 generates summary data according to the operation data of each processor. The lock-step module 1 compares whether the summary data are consistent to determine whether each processor is working normally. The summary generation module 2 is used to extract summary data from the operation data of each processor, and the processor lock-step is completed based on the summary data. On the basis of realizing the judgment of whether each processor is working normally, the amount of data that needs to be compared in the lock-step process is reduced, and the integrity of the operation data of each processor transmitted is ensured.
[0046] Based on the above embodiments:
[0047] As an optional embodiment, the summary generation module 2 is specifically used to obtain data transmitted by the advanced scalable bus connected to itself, and extract write address channel data, write data channel data, write response channel data, read address channel data, and read data channel data from the data as summary data through a preset summary extraction algorithm. In addition, the summary generation module 2 can also be specifically used to obtain data transmitted by the advanced scalable bus connected to itself, and selectively extract data from the data transmitted by the advanced scalable bus connected to itself as summary data.
[0048] Considering that the external interface of modern processors is often a high-concurrency bus, such as an AXI (Advanced eXtensibleInterface) bus. Therefore, this embodiment specifically provides the type of summary data extracted by the summary generation module 2 when the processor transmits data through the AXI bus. Specifically, the AXI bus includes five channels: a write address channel, a write data channel, a write response channel, a read address channel, and a read data channel. The bus information of the AW channel (i.e., the write address channel) includes AWID, AWADDR, AWLEN, AWSIZE, AWBURST, AWLOCK, AWCACHE, AWPROT, AWUSER, AWVALID, AWREADY, etc.; the bus information of the AR (i.e., the read address channel) includes ARID, ARADDR, ARLEN, ARSIZE, ARBURST, ARLOCK, ARCACHE, ARPROT, ARUSER, ARVALID, ARREADY, etc.; the specific information of the write data channel data, the write response channel data, and the read data channel data is not described in detail in this embodiment. The total number of signal lines of the AXI bus is about 2000. In this embodiment, the extraction method can be to perform parallel summary extraction on these 2000 signal lines to obtain their 256-bit summary data.
[0049] In summary, this embodiment, by setting a summary generation module 2 in the processor lock-step device, can extract write address channel data, write data channel data, write response channel data, read address channel data and read data channel data from the AXI bus as summary data, greatly reducing the amount of data that the lock-step module 1 needs to compare, reducing the complexity of the lock-step comparison, and improving the efficiency of judging whether each processor is working normally.
[0050] As an optional embodiment, the summary generation module 2 is specifically used to obtain data transmitted by the bus connected to itself in real time, and extract summary data in parallel from the data transmitted by the bus within a preset time period using a preset summary extraction algorithm.
[0051] In this embodiment, the summary generation module 2 collects the data transmitted by the bus in real time, and continuously extracts summary data from the multi-shot data (that is, the data transmitted by the bus within a preset time period). Then, the lock-step module 1 performs a lock-step comparison on the summary data with the summary data with corresponding timing output by other summary generation modules 2, which can greatly reduce the amount of data involved in the lock-step comparison.
[0052] As an optional embodiment, the lock-step module 1 includes a comparison module 12 and a buffer 11 corresponding to each summary generation module 2 one by one;
[0053] The buffer 11 is used to store the summary data output by the summary generation module 2 connected to itself;
[0054] The comparison module 12 is used to obtain the summary data stored in each cache 11, and compare whether the summary data in each cache 11 are consistent; when the summary data in each cache 11 are consistent, a first signal is output to indicate that each processor is working normally; when the summary data in each cache 11 are inconsistent, a second signal is output to indicate that there is a processor with abnormal operation among the processors, and the first signal is different from the second signal.
[0055] Please refer to Figure 1 The lock-step module 1 in the processor lock-step device includes a comparison module 12 and a buffer 11 corresponding to each summary generation module 2. The buffer 11 stores the summary data output by the summary generation module 2 corresponding to itself, and can reduce the pressure of data storage to a certain extent while preventing abnormalities caused by the loss of summary data and the like. The buffer 11 stores the summary data output by the summary generation module 2, and the comparison module 12 obtains the summary data stored in each buffer 11. When the summary data in each buffer 11 is consistent, the comparison module 12 outputs a first signal indicating that each processor is working normally; when the summary data in each buffer 11 is inconsistent, the comparison module 12 outputs a second signal indicating that there is a processor with abnormal operation in each processor. For example, when there are two processors, the comparison module 12 is a dual-input comparator. When the summary data corresponding to the two processors are consistent, the comparison module 12 outputs a high level, and when the summary data corresponding to the two processors are inconsistent, the comparison module 12 outputs a low level.
[0056] In addition, a register 13 may be set in the lock-step module 1. The register 13 is connected to the comparison module 12. When the summary data in each buffer 11 are inconsistent, the comparison module 12 outputs the summary data in each buffer 11 to the register 13, so that the register 13 stores the summary data in each buffer 11, which is convenient for locking the abnormal processor based on the data in the register 13. On this basis, an abnormal prompt module may be set in the lock-step module 1; the abnormal prompt module is used to generate a lock-step abnormal prompt information when it is detected that the comparison module 12 outputs a second signal indicating that there is a processor with abnormal operation in each processor, so that the operation and maintenance personnel can handle the abnormality in time after receiving the prompt information to ensure the reliable operation of the system.
[0057] Please refer to Figure 2 , Figure 2 A schematic diagram of the structure of an inter-chip lock step system provided by the present invention. The inter-chip lock step system includes at least two chips and any one of the processor lock step devices described above;
[0058] Each summary generation module 2 in the processor lock-step device corresponds one-to-one to the processor in each chip.
[0059] The inter-chip lockstep system provided in this embodiment includes at least two chips ( Figure 2 Taking the inter-chip lock-step system including chip 1 and chip 2 as an example, each chip is provided with a processor, and the processor of each chip corresponds one-to-one to each summary generation module 2 in the processor lock-step device.
[0060] Figure 2 The inter-chip lockstep system shown consists of 3 parts:
[0061] 1) Chip 1: A complete chip that executes the lockstep application, which contains a processor, a bus, and a summary generation module 2 that extracts information on the processor bus and sends it through the lockstep IO;
[0062] 2) Chip 2: Another complete chip that executes the lockstep application, which contains a processor, a bus, and a summary generation module 2 that extracts information on the processor bus and sends it through the lockstep IO;
[0063] 3) Locking module 1: Receives bus summary information extracted by the summary generation module 2 of the two locking chips executing the same application, and compares the two pieces of information to determine whether the system is locked and working properly. The summary generation module 2 in the processor locking device can reduce the amount of data and the comparison frequency during the lock comparison.
[0064] For a detailed introduction to an inter-chip lock-step system provided by the present invention, please refer to the above-mentioned embodiment of the processor lock-step device, and the present invention will not be elaborated here.
[0065] Please refer to Figure 3 , Figure 3 A schematic diagram of the structure of an on-chip lock-step system provided by the present invention, wherein the on-chip lock-step system comprises a chip and any one of the above-mentioned processor lock-step devices;
[0066] Each summary generation module 2 in the processor lock-step device corresponds one-to-one to each processor in the chip.
[0067] The on-chip lockstep system provided in this embodiment includes a chip having multiple processors ( Figure 3 Taking the chip including processor 1 and processor 2 as an example), each processor in the chip corresponds one-to-one to each summary generation module 2 in the processor lock-step device.
[0068] Specifically, Figure 3 The structure of the lock-step system in the mid-chip consists of six parts:
[0069] 1) Processor 1 + Bus 1: Complete one-way functionality for executing lock-step applications;
[0070] 2) Summary generation module 2 connected to bus 1: extracts summary of information sent by processor 1 to bus 1;
[0071] 3) Processor 2 + Bus 2: Complete one-way functionality for executing lock-step applications;
[0072] 4) Summary generation module 2 connected to bus 2: extracts summary of information sent by processor 2 to bus 2;
[0073] 5) Lock-step module 1: compares the bus 1 summary information extracted by processor 1 executing the lock-step application through summary generation module 2 with the bus 2 summary information extracted by processor 2 through summary generation module 2 to determine whether the system is working normally in lock-step;
[0074] 6) Lock-step module 2: compares the bus 2 summary information extracted by processor 2 executing the lock-step application through summary generation module 2 with the bus 1 summary information extracted by processor 1 through summary generation module 2 to determine whether the system is working normally in lock-step.
[0075] By utilizing the summary generation module 2 in the processor lock-step device, the connections between processors in the chip during lock-step comparison can be reduced, the difficulty of back-end wiring can be reduced, and the main frequency bottleneck problem of the on-chip lock-step system can be solved to a certain extent.
[0076] It is worth noting that due to the current status of chip packaging technology, the number of interconnection lines that can support inter-chip lock-step is limited. Currently, the number of inter-chip lock-step lines seen is generally around a few hundred. If the method of extracting summaries proposed by the present invention is not adopted, but the thousands of lines of the intra-chip bus are directly compared for lock-step, it may be difficult to achieve lock-step between chips, and only the lock-step of two channels within the chip can be adopted (the number of intra-chip interconnection lines is relatively not limited by implementation). The inter-chip lock-step adopted by this solution uses the summary algorithm to extract, and the number of buses required for inter-chip lock-step is fixed to 256, which can achieve inter-chip lock-step from the perspective of chip packaging.
[0077] In addition, when using the inter-chip lock-step solution, the signal needs to be transmitted on the printed circuit board (PCB). Due to the different performance of the PCB process and the silicon process inside the chip, the data line frequency on the PCB is lower than the data line frequency inside the chip.
[0078] For a detailed introduction to the on-chip lock-step system provided by the present invention, please refer to the above-mentioned embodiments of the processor lock-step device, and the present invention will not be elaborated here.
[0079] It can be seen that the present invention proposes to use a digest algorithm commonly used in cryptography to extract messages of execution transactions between processors on an inter-chip or intra-chip basis for inter-chip lock-step and intra-chip lock-step, measure the information for lock-step with a smaller message digest data volume, and directly compare the digests during lock-step to complete the lock-step. This can reduce the lock-step comparison information to an acceptable range, ensure data integrity, and thus achieve real-time comparison of system lock-step.
[0080] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same and similar parts between the embodiments can be referred to each other. It should also be noted that in this specification, 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 that there is 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 the process, method, article or equipment including a series of elements includes not only those elements, but also other elements that are not explicitly listed, or also include elements inherent to such process, method, article or equipment. In the absence of more restrictions, the elements defined by the sentence "including one..." do not exclude the existence of other identical elements in the process, method, article or equipment including the elements.
[0081] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A processor lockstep device, characterized in that: It includes a lock-step module and a summary generation module corresponding to each processor one by one; Each of the summary generation modules is electrically connected to each of the processors, and the lock-step module is electrically connected to each of the summary generation modules; The summary generation module is used to generate summary data according to the operation data of each processor; The lock-step module is used to compare whether the summary data are consistent to determine whether the processors are operating normally.
2. The processor lockstep device according to claim 1, characterized in that: The number of the lockstep modules is consistent with the number of the processors; Each of the lock-step modules is used to compare whether each of the summary data is consistent to determine whether each of the processors is operating normally.
3. The processor lockstep device according to claim 1, characterized in that: Each of the summary generation modules is electrically connected to each of the processors in a one-to-one correspondence via a bus; wherein the data transmitted by the bus is the operating data of each of the processors electrically connected to each of the summary generation modules.
4. The processor lockstep device according to claim 3, characterized in that: The summary generation module is specifically used to obtain data transmitted by a bus connected to itself, fill the data transmitted by the bus to obtain filled data transmitted by the bus, group the filled data transmitted by the bus to obtain grouped data transmitted by the bus, expand the grouped data transmitted by the bus to obtain expanded data transmitted by the bus, and compress the expanded data transmitted by the bus using a compression function to extract the summary data from the data transmitted by the bus.
5. The processor lockstep device according to claim 3, characterized in that: The summary generation module is specifically used to obtain data transmitted by the advanced scalable bus connected to itself, and extract write address channel data, write data channel data, write response channel data, read address channel data and read data channel data from the data as the summary data through a preset summary extraction algorithm.
6. The processor lockstep device according to claim 3, characterized in that: The summary generation module is specifically used to obtain data transmitted by a bus connected to itself in real time, and to extract the summary data in parallel from the data transmitted by the bus within a preset time period using a preset summary extraction algorithm.
7. The processor lockstep device according to any one of claims 1 to 6, characterized in that: The lock-step module includes a comparison module and a buffer corresponding to each of the summary generation modules one by one; The buffer is used to store summary data output by the summary generation module connected to itself; The comparison module is used to obtain the summary data stored in each of the buffers and compare whether the summary data in each of the buffers are consistent; when the summary data in each of the buffers are consistent, output a first signal indicating that each of the processors is working normally; when the summary data in each of the buffers are inconsistent, output a second signal indicating that there is a processor with abnormal operation among the processors, and the first signal is different from the second signal.
8. The processor lockstep device according to claim 7, wherein: The lockstep module also includes a register connected to the comparison module; The comparison module is further configured to output the summary data in each buffer to the register when the summary data in each buffer is inconsistent, so that the register stores the summary data in each buffer.
9. The processor lockstep device according to claim 7, wherein: The lockstep module further includes: The abnormality prompt module is used to generate a lock-step abnormality prompt message when it is detected that the comparison module outputs a second signal indicating that there is a processor with an abnormal operation among the processors.
10. An inter-chip lockstep system, characterized in that: comprising at least two chips, and further comprising a processor lockstep device as claimed in any one of claims 1 to 9; Each summary generation module in the processor lock-step device corresponds one-to-one to the processor in each chip.
11. An on-chip lockstep system, characterized in that: comprising a chip, and further comprising a processor lockstep device as claimed in any one of claims 1 to 9; Each of the digest generation modules in the processor lock-step device corresponds one-to-one to each of the processors in the chip.
Citation Information
Patent Citations
System and method for lockstep synchronization
CN102939591A
Processor transient fault detection method for fault tolerant system
CN103092714A
Lockstep processor bus monitoring method and computer
CN103544087A
Microprocessor architecture and microprocessor fault detection method
CN114416435A
Lock step control device and method for processor
CN116821038A
