Multi-core systems
By selecting a processor in a multi-core system and copying its status for comparison, it solves the problem of increased hardware and power consumption during dual-core lockstep inspection, and achieves continuous operation and improved reliability of the processor.
Patent Information
- Application Number
- CN201880095443.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2018-07-18
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2038-07-18
AI Technical Summary
In multi-core microcomputers, when dual-core lock-step is used for inspection, the amount of hardware and power consumption increase, causing the cores to be unable to work continuously.
A multi-core system is adopted in which multiple processors perform different processing. The processor is selected by the selection part and its internal status/data/pipeline status is copied to the checking processor. The comparator compares the external or internal status, and the control part is based on The comparison result is abnormal.
Suppression of hardware and power consumption is achieved, allowing the processor to work continuously without stalling and improving reliability.
Smart Images

Figure CN112424753B
Abstract
Description
Technical Field
[0001] The present invention relates to a multi-core system supporting a self-checking mode of functional safety. Background Art
[0002] The CPU core of microcomputers that require high reliability, such as those for automotive applications, generally adopts the Dual Core Lockstep method. Figure 8 1 is a circuit diagram of a conventional dual-core lockstep. The dual-core lockstep includes a main core 30 that actually executes processing and a check core 40 for checking.
[0003] The delay circuits 31 and 32 delay the address bus, command bus, and write data bus of the main core 30 by, for example, three cycles, and the comparators 34 and 35 compare the address bus, command bus, and write data bus from the delay circuits 31 and 32 with the address bus, command bus, and write data bus from the check core 40 for checking. If the comparison results do not match, it is determined to be abnormal.
[0004] In addition, Patent Document 1 describes a multi-core microprocessor as a method for inspecting multiple CPUs in operation. This method selects an inspection target core in a round-robin manner, moves the context in the inspection target core to another CPU, and then inspects the inspection target core in a self-diagnosis manner using a dedicated self-diagnosis program.
[0005] Prior art literature
[0006] Patent Document 1: Japanese Patent Application Publication No. 2005-129053 Summary of the invention
[0007] Problems to be solved by the invention
[0008] However, in addition to Figure 8 In the case of a microcomputer having a plurality of dedicated cores (DSP) built in addition to the main core 30 shown, if dual-core lock-stepping is adopted for each dedicated core to check the dedicated core in operation, the amount of hardware increases and the power consumption also increases.
[0009] Furthermore, in Patent Document 1, the core to be inspected must be cut off from actual operation, so that the core cannot be operated continuously.
[0010] An object of the present invention is to provide a multi-core system that suppresses hardware and power consumption and enables actual operations of cores to continue without stopping.
[0011] Means for solving problems
[0012] In order to solve the above-mentioned problems, the multi-core system of the present invention has: multiple processors, which perform different processing; a selection unit, which selects any processor among the multiple processors; a unit that copies the internal state / internal data / pipeline state of the processor selected by the selection unit to the inspection processor; a comparator, which compares the external state of the inspection processor with the external state of the processor selected by the selection unit, or compares the internal state of the inspection processor with the internal state of the processor selected by the selection unit; and a control unit, which determines that the selected processor or the inspection processor is abnormal when the external state or the internal state is inconsistent according to the comparison result of the comparator.
[0013] Effects of the Invention
[0014] According to the present invention, a check processor is used, and when a selection unit selects any processor among a plurality of processors, an internal state / internal data / pipeline state is copied from one of the plurality of processors to the check processor, and a comparator compares an external state of the processor selected by the selection unit with an external state of the check processor, or compares an internal state of the processor selected by the selection unit with an internal state of the check processor. When the external state or the internal state is inconsistent according to the comparison result of the comparator, the control unit determines that the selected processor or the check processor is abnormal.
[0015] That is, only one inspection processor is required, so that hardware and power consumption can be suppressed and the actual operation of the processor can be continued without stopping. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 This is a circuit structure diagram of the multi-core system of Example 1.
[0017] Figure 2 This is a timing chart showing the comparison process between each processor and the check processor based on polling in the multi-core system of the first embodiment.
[0018] Figure 3 This is a diagram showing a control unit that compares the address buses and the command buses of each processor of the multi-core system of the first embodiment with the check processor and determines abnormality.
[0019] Figure 4 This is a diagram showing a control unit that compares the write data buses of each processor of the multi-core system of the first embodiment with those of the check processor and determines abnormality.
[0020] Figure 5 This is a diagram showing the connection between each processor of the multi-core system of the first embodiment and a read data bus of the inspection processor.
[0021] Figure 6 This is a diagram showing a control unit that connects each processor of the multi-core system of the first embodiment with an event input of a check processor and compares event outputs of each processor with the check processor to determine abnormality.
[0022] Figure 7 This is a diagram showing a path for copying the internal state / internal data / pipeline state of each processor of the multi-core system of the first embodiment to the check processor.
[0023] Figure 8 This is a circuit diagram of an existing dual-core lock-step method. DETAILED DESCRIPTION
[0024] Hereinafter, embodiments of a multi-core system according to the present invention will be described with reference to the accompanying drawings.
[0025] (Example 1)
[0026] Figure 1 This is a simplified overall circuit structure diagram of a self-check method supporting functional safety of a multi-core system according to Embodiment 1. Figure 1 The multi-core system supporting the self-checking method of functional safety in the first embodiment shown has a first processor 11a, a second processor 11b, a third processor 11c, a multiplexer 12-X (X represents 1 or 2 or 3 or 4. Omitted below), a delay circuit 13-X, a comparator 14-X, a multiplexer 15, a check processor 16, delay circuits 17, 18 and a controller 21.
[0027] exist Figure 1 In FIG. 1 , only three processors are shown as the plurality of processors, but there may be n processors (n ≥ 4) as the plurality of processors. In contrast, there is only one inspection processor.
[0028] Each of the first processor 11 a , the second processor 11 b , and the third processor 11 c is constituted by a CPU core and executes different processes.
[0029] The multiplexer 12-X corresponds to the selection unit of the present invention, and selects each processor among the plurality of processors in a round-robin manner in a time-division manner according to the selection signal from the controller 21. In addition, the multiplexer 12-X may select any processor among the plurality of processors 11a to 11c according to the selection signal from the controller 21. For example, the plurality of processors may be selected arbitrarily, such as the processor 11a, the processor 11c, the processor 11a, and the processor 11b, instead of being selected in a round-robin manner.
[0030] The delay circuit 13-X corresponds to the first delay circuit of the present invention, and delays the content from the processor selected by the multiplexer 12-X by a predetermined delay time and outputs the delayed content to the comparator 14-X.
[0031] The comparator 14-X corresponds to the comparator of the present invention, and is configured to delay the external state of the processor (for example, although not limited to, Figure 3 The address bus, command bus signal values, Figure 4 The signal value on the write data bus is shown, Figure 6 The event output signal value shown, etc.) is compared with the external state of the inspection processor 16, or the internal state of the selected processor is compared with the internal state of the inspection processor 16.
[0032] The controller 21 corresponds to the control unit of the present invention. When the external state or the internal state is inconsistent according to the comparison result of the comparator 14-X, the controller 21 determines that the selected processor or the inspection processor 16 is abnormal. When only the external state is consistent, or only the internal state is consistent, or the external state and the internal state are consistent, the controller 21 determines that the selected processor and the inspection processor 16 are normal.
[0033] The controller 21 outputs a selection signal for selecting a processor to the multiplexer 12 -X, and outputs a control signal for replicating the internal state / internal data / pipeline state of the processor performing the self-check to the multiplexer 15 .
[0034] When starting comparison between the processor selected by the multiplexer 12 -X and the inspection processor 16 , the multiplexer 15 selects the processor selected by the multiplexer 12 -X.
[0035] The controller 21 corresponds to the copy control unit of the present invention. When starting to compare the processor selected by the multiplexer 12-X with the inspection processor 16, the inspection processor 16 copies the internal state (for example, the state of the state machine, the internal register value, the pipeline state) of the processor selected by the multiplexer 12-X via the multiplexer 15.
[0036] The delay circuit 18 corresponds to the second delay circuit of the present invention, and delays the internal state / internal data / pipeline state of the processor selected by the multiplexer 15 by a predetermined delay time and outputs the resultant to the inspection processor 16 .
[0037] Next, refer to Figure 2 The timing diagram shown, Figure 3 to Figure 8 The operation of the multi-core system of Example 1 will be described in detail.
[0038] First, each processor 11a to 11c is independently executing different processes. At time t1, the multiplexer 12-X selects the first processor 11a according to the selection signal from the controller 21. The external state or internal state of the first processor 11a is sent to the comparator 14-X via the multiplexer 12-X and the delay circuit 13-X.
[0039] In addition, if Figure 7 As shown, the first processor 11 a is selected by the multiplexer 15 , and the internal state / internal data / pipeline state of the first processor 11 a is delayed by the delay circuit 18 via the multiplexer 15 and copied to the inspection processor 16 .
[0040] The comparator 14 -X compares the external state of the first processor 11 a from the delay circuit 13 -X with the external state from the inspection processor 16 , or compares the internal state of the first processor 11 a with the internal state from the inspection processor 16 .
[0041] When the external state or the internal state is inconsistent according to the comparison result of the comparator 14-X, the controller 21 determines that the selected processor or the inspection processor 16 is abnormal. When only the external state is consistent, or only the internal state is consistent, or the external state and the internal state are consistent, the controller 21 determines that the selected processor and the inspection processor 16 are normal.
[0042] Next, at time t2, the multiplexer 12-X selects the second processor 11b based on the selection signal from the controller 21. The external state or internal state of the second processor 11b is sent to the comparator 14-X via the multiplexer 12-X and the delay circuit 13-X.
[0043] In addition, if Figure 7 As shown, the second processor 11 b is selected by the multiplexer 15 , and the internal state / internal data / pipeline state of the second processor 11 b is delayed by the delay circuit 18 via the multiplexer 15 and copied to the inspection processor 16 .
[0044] The comparator 14 -X compares the external state of the second processor 11 b from the delay circuit 13 -X with the external state from the inspection processor 16 , or compares the internal state of the second processor 11 b with the internal state from the inspection processor 16 .
[0045] When the external state or the internal state is inconsistent according to the comparison result of the comparator 14-X, the controller 21 determines that the selected processor or the inspection processor 16 is abnormal. When only the external state is consistent, or only the internal state is consistent, or the external state and the internal state are consistent, the controller 21 determines that the selected processor and the inspection processor 16 are normal.
[0046] Similarly, at time t3, the multiplexer 12-X selects the third processor 11c according to the selection signal from the controller 21, and performs the same comparison and determination processing as the comparison and determination processing between the first processor 11a and the inspection processor 16 and the comparison and determination processing between the second processor 11b and the inspection processor 16. Then, when the comparison and determination processing of all processors is completed, the comparison and determination processing between the first processor 11a and the inspection processor 16 is returned to repeat the comparison and determination processing.
[0047] Next, the specific comparison and determination objects (external state or internal state) between the plurality of processors 11a to 11c and the inspection processor 16 will be described. Figure 3 to Figure 6 The comparison of the address bus, command bus, write data bus, and event output is explained in detail.
[0048] In addition, only the case where the first processor 11a is selected by the multiplexer 12-X by the signal of the controller 21 will be described. When other processors are selected, the same processing as the case where the first processor 11a is selected is performed.
[0049] First, if Figure 3 As shown, the address bus and the command bus of the first processor 11a are sent to the comparator 14-1 via the multiplexer 12-1 and the delay circuit 13-1.
[0050] On the other hand, the inspection processor 16 outputs the address bus and the command bus to the comparator 14-1. The comparator 14 compares the address bus and the command bus of the first processor 11a with the output of the address bus of the inspection processor 16, and when the address bus and the command bus do not match, it outputs an abnormality signal to the controller 21. The controller 21 determines that it is abnormal based on the abnormality signal from the comparator 14-1.
[0051] Then, if Figure 4 As shown, the content written into the data bus by the first processor 11a is sent to the comparator 14-2 via the multiplexer 12-2 and the delay circuit 13-2.
[0052] On the other hand, the inspection processor 16 outputs the content of the write data bus to the comparator 14-2. The comparator 14-2 compares the content of the write data bus of the first processor 11a with the content of the write data bus of the inspection processor 16, and when the content of the write data bus is inconsistent, it outputs an abnormality signal to the controller 21. The controller 21 determines that it is abnormal based on the abnormality signal from the comparator 14.
[0053] Figure 5 The connection between the read data bus of each processor, the multiplexer 12 - 3 for selecting the read data bus, the delay circuit 13 - 3 and the read data bus of the inspection processor 16 is shown.
[0054] Figure 6 The abnormality detection of the output for the event input is shown. First, the event input is input to each processor 11 a to 11 c. Furthermore, the event input is delayed by the delay circuit 17 and sent to the inspection processor 16 .
[0055] Next, the event output of the first processor 11a is selected by the multiplexer 12-4 and sent to the comparator 14-4 via the delay circuit 13-4. The inspection processor 16 outputs the event output to the comparator 14-4.
[0056] The comparator 14-4 compares the event output of the first processor 11a with the event output of the inspection processor 16, and when the event outputs do not match, outputs an abnormality signal to the controller 21. The controller 21 determines that an abnormality has occurred based on the abnormality signal from the comparator 14.
[0057] Thus, according to the multi-core system of the first embodiment, one check processor 16 is used, and when the multiplexer 12-X selects any processor among the plurality of processors 11a to 11c, the comparator 14-X compares the external state of the processor selected by the multiplexer 12-X with the external state of the check processor 16, or compares the internal state of the processor selected by the multiplexer 12-X with the internal state of the check processor 16. When the external state or the internal state is inconsistent according to the comparison result of the comparator 14-X, the controller 21 determines that the selected processor or the check processor is abnormal.
[0058] That is, since only one inspection processor 16 is required, it is possible to suppress hardware and power consumption, and to allow the actual operation of the processor to continue without stopping.
[0059] Furthermore, when a processor requiring higher reliability is used according to the performance of each processor 11a to 11c, for example, the comparator 14-X sets a higher frequency of comparison between the processor selected by the multiplexer 12-X and the inspection processor 16. This allows the processor requiring higher reliability to be inspected more frequently.
[0060] Furthermore, the actual operation and operation timing of the processors 11a to 11c can be shifted by using the delay circuits 13-X, 17, and 18, thereby preventing erroneous determination due to power supply noise.
[0061] Industrial Applicability
[0062] The present invention can be applied to microcomputers and the like that are required to be mounted on vehicles and the like and that require high reliability.
[0063] Description of symbols
[0064] 11a: 1st processor;
[0065] 11b: 2nd processor;
[0066] 11c: 3rd processor;
[0067] 12-X, 12-1, 12-2, 12-3, 12-4, 15: multiplexer;
[0068] 13-X, 13-1, 13-2, 13-3, 17, 18, 31, 32, 33, 36: delay circuit;
[0069] 14-X, 14-1, 14-2, 14-3, 14-4, 34, 35: comparators;
[0070] 16: Check the processor;
[0071] 30: main core;
[0072] 40: Check the core.
Claims
1. A multi-core system comprising: multiple processors that perform mutually different processing; A selection unit, which selects any processor among the plurality of processors; Check the processor; a comparator for comparing an external state of the processor selected by the selection unit with an external state of the check processor, and for comparing an internal state of the processor selected by the selection unit with an internal state of the check processor, wherein the external state is at least any one of a signal value on an address bus, a command bus, and a signal value on a write data bus, and the internal state is at least any one of a state of a state machine, an internal register value, and a pipeline state; as well as a control unit that determines that the selected processor or the inspection processor is abnormal when the external state or the internal state is inconsistent according to the comparison result of the comparator, The multi-core system includes a copy control unit that causes the inspection processor to copy the internal state of the processor selected by the selection unit before starting comparison between the external state or internal state of the processor selected by the selection unit and the inspection processor.
2. The multi-core system according to claim 1, wherein: The selection section selects each of the plurality of processors in turn in a time-division manner.
3. The multi-core system according to claim 1, wherein: The comparator sets a higher frequency of comparison between the processor selected by the selection unit and the inspection processor, based on the reliability level required for each processor, when the required reliability level is higher.
4. The multi-core system according to claim 1, wherein: The multi-core system has: a first delay circuit that delays the external state or internal state of the processor selected by the selection unit by a predetermined delay time and outputs the delayed state to the comparator; a second delay circuit for delaying the internal state of the processor selected by the selection unit by the predetermined delay time and outputting the internal state of the processor selected by the selection unit to the inspection processor before starting comparison between the processor selected by the selection unit and the inspection processor; as well as The third delay circuit delays the event input by the predetermined delay time and outputs the event input to the inspection processor.
5. The multi-core system according to any one of claims 1, 3, and 4, wherein: The plurality of processors and the inspection processor are constituted by the same hardware.
