JP7809934B2 - Processor - Google Patents
ProcessorInfo
- Publication number
- JP7809934B2 JP7809934B2 JP2021149131A JP2021149131A JP7809934B2 JP 7809934 B2 JP7809934 B2 JP 7809934B2 JP 2021149131 A JP2021149131 A JP 2021149131A JP 2021149131 A JP2021149131 A JP 2021149131A JP 7809934 B2 JP7809934 B2 JP 7809934B2
- Authority
- JP
- Japan
- Prior art keywords
- mode
- core
- processor
- fault diagnosis
- dcls
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- Hardware Redundancy (AREA)
- Test And Diagnosis Of Digital Computers (AREA)
Description
本発明は、複数のコアを有するプロセッサに関する。 The present invention relates to a processor having multiple cores.
従来から、故障検出機構(デュアルコアロックステップ)を備えたプロセッサシステムが知られている(特許文献1)。デュアルコアロックステップでは、2つのコアに全く同じ演算を実行させ、出力を比較してプロセッサの故障を検出するため、実際の性能はシングルコアと同等になる。 Processor systems equipped with a fault detection mechanism (dual-core lockstep) have been known for some time (Patent Document 1). In dual-core lockstep, two cores execute the exact same calculations and the outputs are compared to detect processor faults, resulting in actual performance equivalent to that of a single core.
このため、機能安全の要求レベルに応じて、ディアルコアロックステップモードとマルチコアモードとを動的に切り替えられるプロセッサも開発されている。こうしたプロセッサでは、例えば、Automotive Safety Integrity Level(自動車安全水準:以下「ASIL」という。)におけるC、Dなどの厳しい安全要求が求められるアプリケーションの実行時はデュアルコアロックステップモードで動作し、ASIL B以下の安全要求の場合は、マルチコアモードで動作するように制御することができる。 For this reason, processors have been developed that can dynamically switch between dual-core lockstep mode and multi-core mode depending on the required level of functional safety. For example, such processors can be controlled to operate in dual-core lockstep mode when running applications with strict safety requirements such as Automotive Safety Integrity Level (ASIL) C or D, and to operate in multi-core mode for safety requirements of ASIL B or lower.
マルチコアモードの動作時にプロセッサの故障を検出するには、それぞれのプロセッサでソフトウェア診断(プロセッサで診断用の演算を実施する)を行う必要があるが、診断実行時間が増加し、マルチコアモードの恩恵が得られ難いという問題がある。さらに、診断のためには演算結果の期待値データを予めROMやRAMに格納しておく必要があるため、メモリリソースを圧迫するという課題もある。 Detecting processor failures when operating in multi-core mode requires software diagnosis on each processor (performing diagnostic calculations on the processor), but this increases the time required to perform the diagnosis, making it difficult to obtain the benefits of multi-core mode. Furthermore, since expected value data for the calculation results must be stored in ROM or RAM in advance for diagnosis, this also puts a strain on memory resources.
そこで、本発明は、マルチコアモードでの処理を高速化し、性能と機能安全の要求を両立させるプロセッサを提供することを目的とする。 The present invention aims to provide a processor that accelerates processing in multi-core mode and meets both performance and functional safety requirements.
本発明は上記課題を解決するために以下の技術的手段を採用する。
本発明のプロセッサは、デュアルコアロックステップ機構を備えるプロセッサであって、コアの故障診断はデュアルコアロックステップモードで実行し、故障診断以外の機能はマルチコアモードで実行するように切り替える動的切替モードを有する。
The present invention employs the following technical means to solve the above problems.
The processor of the present invention is a processor equipped with a dual-core lockstep mechanism and has a dynamic switching mode that switches so that core fault diagnosis is performed in dual-core lockstep mode and functions other than fault diagnosis are performed in multi-core mode.
また、本発明の他の態様のプロセッサは、複数のコアを備えるプロセッサであって、複数のコアの演算結果を比較する比較器と、コアの故障診断は、複数のコアで同じ演算を実行させてその演算結果を比較し、故障診断以外の機能は、複数のコアで別の演算を並列実行させる制御部とを備える。 In another aspect of the present invention, the processor is a processor with multiple cores, and includes a comparator that compares the calculation results of the multiple cores, and a control unit that diagnoses core faults by having the multiple cores execute the same calculation and compares the results, and that performs functions other than fault diagnosis by having the multiple cores execute different calculations in parallel.
本発明の構成により、コアの故障診断時間を短縮できるので、安全性を確保しつつ、マルチコアでの実行時間を増やすことができる。 The configuration of the present invention reduces the time required for core fault diagnosis, thereby increasing the execution time in multi-core systems while ensuring safety.
以下、本発明の実施の形態のプロセッサについて図面を参照しつつ説明する。
図1は、実施の形態のプロセッサの構成を示す図である。プロセッサは、演算ユニットである第1のコア1および第2のコア2と、第1のコア1と第2のコア2の出力を比較する比較器3と、プロセッサの実行モードを変更するためのマルチプレクサMUX(Multiplexer)4と、ゲート5と、モードの切替えを制御する制御部6とを備えている。第1のコア1と第2のコア2は同じ構成を備えており、同じデータが入力されると同じ演算結果を出力する。プロセッサは、第1のコア1と第2のコア2の演算結果を比較することで、故障を検出するデュアルコアロックステップ機構を有している。
Hereinafter, a processor according to an embodiment of the present invention will be described with reference to the drawings.
1 is a diagram illustrating the configuration of a processor according to an embodiment. The processor includes a first core 1 and a second core 2 as arithmetic units, a comparator 3 that compares the outputs of the first core 1 and the second core 2, a multiplexer MUX 4 for changing the processor's execution mode, a gate 5, and a control unit 6 that controls mode switching. The first core 1 and the second core 2 have the same configuration and output the same arithmetic result when the same data is input. The processor has a dual-core lockstep mechanism that detects faults by comparing the arithmetic results of the first core 1 and the second core 2.
プロセッサは、第1のコア1へのデータを入力する第1のラインL1と、第2のコア2へのデータを入力する第2のラインL2を有している。第1のラインL1は分岐され、一方が第1のコア1に接続され、他方がマルチプレクサ4に接続されている。第2のラインL2はマルチプレクサ4に接続されている。また、プロセッサは、モード切替信号を入力する第3のラインL3を有している。第3のラインL3は、制御部6に接続されている。 The processor has a first line L1 that inputs data to the first core 1 and a second line L2 that inputs data to the second core 2. The first line L1 branches, one connected to the first core 1 and the other connected to the multiplexer 4. The second line L2 is connected to the multiplexer 4. The processor also has a third line L3 that inputs a mode switching signal. The third line L3 is connected to the control unit 6.
制御部6は、モード切替信号に基づいて、プロセッサをデュアルコアロックステップ(以下「DCLS」という)モードで動作させるか、マルチコアモードで動作させるかを切り替える。制御部6は、モード切替信号に基づいて、第1のコア1、第2のコア2、比較器3、マルチプレクサ4及びゲート5を制御する。具体的には、制御部6は、第1のコア1、第2のコア2に対してモード切替時の同期制御を行う。また、制御部6は、DCLSモードのときに比較器3を有効化する制御を行う。 Based on the mode switching signal, the control unit 6 switches whether the processor operates in dual-core lockstep (hereinafter referred to as "DCLS") mode or multi-core mode. Based on the mode switching signal, the control unit 6 controls the first core 1, the second core 2, the comparator 3, the multiplexer 4, and the gate 5. Specifically, the control unit 6 performs synchronization control for the first core 1 and the second core 2 when switching modes. The control unit 6 also controls the activation of the comparator 3 when in DCLS mode.
制御部6は、マルチプレクサ4に対して、第2のコア2への入力データの切替制御を行う。DCLSモードのときには、マルチプレクサ4が第1のラインL1から入力されたデータを第2のコア2へ入力するように制御する。これにより、第1のコアと第2のコアには同じデータが入力され、第1のコア1と第2のコア2は同じ演算を行う。そして、第1のコア1と第2のコア2の出力を比較器3で比較し、両者が一致している場合には異常はないと判定し、出力が一致しない場合には異常ありと判定してエラーを出力する。また、制御部6は、DCLSモードのときには、第2のコア2からの出力を停止するようにゲート5を制御する。 The control unit 6 controls the multiplexer 4 to switch the input data to the second core 2. In DCLS mode, the multiplexer 4 controls the data input from the first line L1 to input to the second core 2. As a result, the same data is input to the first and second cores, and the first core 1 and second core 2 perform the same calculation. The outputs of the first core 1 and second core 2 are then compared by the comparator 3. If the two outputs match, it is determined that there is no abnormality, but if the outputs do not match, it is determined that there is an abnormality and an error is output. Furthermore, in DCLS mode, the control unit 6 controls the gate 5 to stop the output from the second core 2.
モード切替信号がマルチコアモードを指定する信号である場合には、制御部6は、マルチプレクサ4が第2のラインL2から入力されたデータを第2のコア2へ入力するように制御する。これにより、第1のコア1と第2のコア2には異なるデータが入力され、第1のコア1と第2のコア2は独立に演算を行う。この場合、比較器3は比較動作を無効にし、エラー出力を停止する。また、制御部6は、マルチコアモードを指定する信号である場合、第2のコア2からの出力を外部に出力するようにゲート5を制御する。 If the mode switching signal specifies multi-core mode, the control unit 6 controls the multiplexer 4 to input the data input from the second line L2 to the second core 2. As a result, different data is input to the first core 1 and the second core 2, and the first core 1 and the second core 2 perform calculations independently. In this case, the comparator 3 disables its comparison operation and stops outputting an error. Furthermore, if the signal specifies multi-core mode, the control unit 6 controls the gate 5 to output the output from the second core 2 to the outside.
モード切替信号が動的切替モードを指定する信号である場合、制御部6は、コアの故障診断はDCLSモードで実行し、故障診断以外の主機能はマルチコアモードで実行するように切替えを行う。この動作については、図6を参照して後述する。 If the mode switching signal specifies dynamic switching mode, the control unit 6 switches so that core fault diagnosis is performed in DCLS mode and main functions other than fault diagnosis are performed in multi-core mode. This operation will be described later with reference to Figure 6.
以上のように、第2のコア2は、DCLSモードにおいては、比較のために第1のコア1と同じ演算を行うので、第1のコア1は「マスター」、第2のコア2は「チェッカー」と呼ばれることもある。 As described above, in DCLS mode, the second core 2 performs the same calculations as the first core 1 for comparison purposes, so the first core 1 is sometimes called the "master" and the second core 2 is sometimes called the "checker."
ここまでの説明では、制御部6は外部からのモード切替信号に従ってプロセッサのモードを切り替える「外部コントロール型」の例について説明したが、制御部6は、モードの切替を自己完結してもよい。図2(a)は外部コントロール型のプロセッサの例を示す模式図、図2(b)は自己完結型のプロセッサの例を示す模式図である。外部コントロール型では、外部ホストや外部のCPU7からモード切替信号を与えることにより、プロセッサの動作モードを切り替える。これに対し、自己完結型では、制御部6は、マスターコア(第1のコア1)の指示により、DCLSモードとマルチコアモードを切り替える。自己完結型の切替機構は、所定の実行周期の中で、DCLSモードとマルチコアモードの切替えを行う動的切替えに適している。 So far, we have explained an example of an "externally controlled" type in which the control unit 6 switches the processor mode in response to a mode switching signal from the outside, but the control unit 6 may also perform mode switching independently. Figure 2(a) is a schematic diagram showing an example of an externally controlled processor, and Figure 2(b) is a schematic diagram showing an example of a self-contained processor. In the externally controlled type, the processor's operating mode is switched by receiving a mode switching signal from an external host or external CPU 7. In contrast, in the self-contained type, the control unit 6 switches between DCLS mode and multi-core mode in response to instructions from the master core (first core 1). The self-contained switching mechanism is suitable for dynamic switching between DCLS mode and multi-core mode within a specified execution cycle.
次に、第1のコア1および第2のコア2の構成について説明する。図3は、コア1,2の具体例を示す図である。図3に示すように、コア1,2は、CPUは、制御レジスタと、ステータスレジスタと、GPR(General Purpose Register)と、PC(Program Counter)とを備えたCPU(Central Processing Unit)、ALU(Arithmetic and Logic Unit)、FPU(Floating Point Unit)、DSP(Digital Signal Processor)、VPU(Vector Processing Unit)、GPU(Graphics Processing Unit)、AIプロセッサのいずれでもよく、また、これらの構成を備えた複合体としてもよい。なお、図3に示す構成は一例であり、コア1,2は、用途に応じて様々な形態で実装することができる。このようにコア1,2は、CPUに限定されるものではなく、広義の演算器であってよい。 Next, the configuration of the first core 1 and the second core 2 will be described. Figure 3 is a diagram showing a specific example of cores 1 and 2. As shown in Figure 3, cores 1 and 2 may be a CPU (Central Processing Unit) equipped with a control register, a status register, a GPR (General Purpose Register), and a PC (Program Counter), an ALU (Arithmetic and Logic Unit), an FPU (Floating Point Unit), a DSP (Digital Signal Processor), a VPU (Vector Processing Unit), a GPU (Graphics Processing Unit), an AI processor, or a combination of these. Note that the configuration shown in Figure 3 is just one example, and cores 1 and 2 can be implemented in various forms depending on the application. In this way, cores 1 and 2 are not limited to CPUs, but may be arithmetic units in the broad sense.
図4は、実施の形態のプロセッサの実行モードについて説明するための図である。表の右欄はプロセッサが実行可能な3つのモードを記載しており、左欄は当該実行モードが用いられる安全要求レベルの例を示している。 Figure 4 is a diagram explaining the execution modes of the processor in this embodiment. The right column of the table lists the three modes that the processor can execute, and the left column shows examples of safety requirement levels at which the execution modes are used.
プロセッサは、DCLSモードと、動的切替えモードと、マルチコアモードの3つのモードを有している。DCLSモードは、ペアになるコアが常時同じ演算を実行し、出力を比較してプロセッサの故障検出するモードである。DCLSモードは、例えば、ASIL C、Dなどの厳しい安全要求が求められるアプリケーションの実行時に用いられる。 The processor has three modes: DCLS mode, dynamic switching mode, and multi-core mode. In DCLS mode, paired cores always execute the same calculation, and the outputs are compared to detect processor faults. DCLS mode is used, for example, when running applications with strict safety requirements such as ASIL C or D.
マルチコアモードは、2つのコアが別の演算を実行するモードであり、演算結果を比較しての故障検出を行わない。マルチコアモードは、ASILは割り当てられていないが、適切な品質管理の仕組みに基づいた対応を行う必要があるQM(Quality Management)レベルのアプリケーションの実行時に用いられる。 In multi-core mode, two cores perform separate calculations, and failure detection is not performed by comparing the calculation results. Multi-core mode is used when running QM (Quality Management) level applications that do not have an ASIL assigned but require appropriate quality control mechanisms.
動的切替えモードは、コアの故障診断はDCLSモードで実行し、故障診断以外の機能はマルチコアモードで実行するように切り替える。動的切替えモードは、DCLSモードとマルチコアモードの切替えを、所定の実行周期の中で行う。動的切替えモードは、ASIL A、Bなどの安全要求が求められるアプリケーションの実行時に用いられる。 Dynamic switching mode switches so that core fault diagnosis is performed in DCLS mode and functions other than fault diagnosis are performed in multi-core mode. Dynamic switching mode switches between DCLS mode and multi-core mode within a specified execution cycle. Dynamic switching mode is used when running applications that require safety requirements such as ASIL A and B.
図5は、本実施の形態のプロセッサの実行モードの決定の仕方を示すフローチャートである。まず、アプリケーションで求められる安全要求レベルがASIL C以上であるか否かを判定する(S10)。求められる安全要求レベルがASIL C以上の場合(S10でYES)には、DCLSモードを選択する(S12)。ここで選択されるDCLSモードは、常時DCLSモードで実行するモードであり、主機能も故障診断もDCLSモードで実行する。DCLSモードでは、故障診断はハードウェアで行うため、ソフトウェアによる故障診断は必要ない。 Figure 5 is a flowchart showing how the execution mode of the processor in this embodiment is determined. First, it is determined whether the safety requirement level required by the application is ASIL C or higher (S10). If the required safety requirement level is ASIL C or higher (YES in S10), DCLS mode is selected (S12). The DCLS mode selected here is a mode in which the system always runs in DCLS mode, and both the main functions and fault diagnosis are performed in DCLS mode. In DCLS mode, fault diagnosis is performed by hardware, so software-based fault diagnosis is not required.
求められる安全要求レベルがASIL C以上でない場合には(S10でNO)、求められる安全要求レベルがASIL A以上であるか否かを判定する(S11)。求められる安全要求レベルがASIL A以上である場合には(S11でYES)、動的切替えモードを選択する(S13)。求められる安全要求レベルがASIL A以上でない場合には(S11でNO)、マルチコアモードを選択する(S14)。ここで選択されるマルチコアモードは、常時マルチコアモードで実行するモードであり、主機能も故障診断もマルチコアモードで実行する。 If the required safety requirement level is not ASIL C or higher (NO in S10), it is determined whether the required safety requirement level is ASIL A or higher (S11). If the required safety requirement level is ASIL A or higher (YES in S11), dynamic switching mode is selected (S13). If the required safety requirement level is not ASIL A or higher (NO in S11), multi-core mode is selected (S14). The multi-core mode selected here is a mode in which the system is always run in multi-core mode, and both the main function and fault diagnosis are run in multi-core mode.
図6は、動的切替えモードにおけるモードの切替えを示すフローチャートである。プロセッサは、マルチコアモードにて、故障診断以外の主機能を実行する(S20)。プロセッサは、主機能の実行中に診断時刻が到来したか否かを判定する(S21)。診断時刻は、所定の実行周期の中で少なくとも1回到来するように設定されている。 Figure 6 is a flowchart showing mode switching in dynamic switching mode. The processor executes a main function other than fault diagnosis in multi-core mode (S20). The processor determines whether the diagnosis time has arrived while the main function is being executed (S21). The diagnosis time is set to arrive at least once within a predetermined execution cycle.
診断時刻が到来していない場合には(S21でNO)、診断時刻が到来するまで主機能を実行する(S20)。診断時刻が到来した場合には(S21でYES)、プロセッサは、マルチコアモードからDCLSモードへの切替えを行い(S22)、診断対象のプロセッサで診断用コードを実行する(S23)。具体的には、ペアのコアで同じ演算を実行させ、その演算結果が一致しているかどうかで故障が発生しているか否かを判定する(S24)。 If the diagnostic time has not yet arrived (NO in S21), the main function is executed until the diagnostic time arrives (S20). If the diagnostic time arrives (YES in S21), the processor switches from multi-core mode to DCLS mode (S22) and executes diagnostic code in the processor being diagnosed (S23). Specifically, the same calculation is executed in the paired cores, and a determination is made as to whether a fault has occurred based on whether the calculation results match (S24).
故障ありと判定された場合には(S24でYES)、プロセッサはDCLSエラーの故障通知を行い、プロセッサは異常終了する(S27)。故障判定の結果、故障なしと判定された場合には(S24でNO)、正常判定がなされ(S25)、プロセッサはDCLSモードからマルチコアモードへ切替えを行い(S26)、主機能を実行する(S20)。 If it is determined that a fault exists (YES in S24), the processor issues a DCLS error fault notification and terminates abnormally (S27). If the fault determination determines that no fault exists (NO in S24), a normality determination is made (S25), and the processor switches from DCLS mode to multi-core mode (S26) and executes its main function (S20).
以上のように、本実施の形態では、マルチコアモードで主機能を実行しておき、診断時刻が到来したときにDCLSモードに切り替えて故障診断を行うことにより、安全性を確保しつつ、マルチコアでの実行時間を増やすことができる。 As described above, in this embodiment, the main function is executed in multi-core mode, and when the time for diagnosis arrives, the system switches to DCLS mode to perform fault diagnosis, thereby ensuring safety while increasing the execution time in multi-core mode.
図7は、従来の故障診断処理と本実施の形態の故障診断処理の違いを説明する図である。図7(a)は従来の故障診断処理を示し、図7(b)は本実施の形態の故障診断処理を示す。従来は、主機能をマルチコアモードで実行する場合には、故障診断もマルチコアモードで行われていた。図7(a)に示すように、診断用命令を実行し(S30)、診断用命令の実行結果を期待値と比較し(S31)、コアが正常か異常かを判定する(S32)。このため、期待値をメモリに格納しておく必要がある上、比較処理を実行する必要があった。 Figure 7 is a diagram illustrating the differences between conventional fault diagnosis processing and the fault diagnosis processing of this embodiment. Figure 7(a) shows conventional fault diagnosis processing, and Figure 7(b) shows the fault diagnosis processing of this embodiment. Conventionally, when the main function is executed in multi-core mode, fault diagnosis is also performed in multi-core mode. As shown in Figure 7(a), a diagnostic command is executed (S30), the execution result of the diagnostic command is compared with an expected value (S31), and it is determined whether the core is normal or abnormal (S32). For this reason, it is necessary to store the expected value in memory and to perform the comparison process.
本実施の形態では、主機能はマルチコアモードで実行するが、故障診断を行う際には、DCLSモードに切り替え(S40)、2つのコアで同じ診断用命令を実行し(S41)、故障診断を行う。期待値との比較が不要であり、もし異常がある場合にはDCLSで検出できる。このため、メモリリソースが不要で、かつ、診断を高速に行える。 In this embodiment, the main functions are executed in multi-core mode, but when fault diagnosis is performed, the mode is switched to DCLS mode (S40), and the same diagnostic command is executed on two cores (S41) to perform fault diagnosis. Comparison with expected values is not required, and any abnormalities can be detected by DCLS. This means that no memory resources are required and diagnosis can be performed quickly.
図8は、従来技術と本実施の形態の故障診断の処理時間を比較した模式図である。図8に示すように、本実施の形態では、DCLSモードで故障診断を行うことにより、診断時間を短縮し、主機能の実行に割り当てられる時間を増やすことができる。 Figure 8 is a schematic diagram comparing the processing time for fault diagnosis in the conventional technology and this embodiment. As shown in Figure 8, in this embodiment, fault diagnosis is performed in DCLS mode, which shortens the diagnosis time and increases the time allocated to executing the main function.
以上、本発明の実施の形態のプロセッサについて説明したが、本発明のプロセッサは上記した実施の形態に限定されるものではない。上記した実施の形態では、DCLSモードを行う機構を備えたプロセッサを例として説明したが、一般的なホモマルチコア構成にコアの出力を比較するハードウェア比較器を搭載することで、故障診断時間を大幅に短縮することも可能である。 The above describes a processor according to an embodiment of the present invention, but the processor of the present invention is not limited to the above embodiment. In the above embodiment, a processor equipped with a mechanism for performing DCLS mode was described as an example, but by incorporating a hardware comparator that compares the outputs of cores in a general homogeneous multi-core configuration, it is also possible to significantly reduce fault diagnosis time.
図9は、ホモマルチコア構成のFPUを備えたプロセッサの例を示す図である。図9(a)に示すように、通常時は、32bit×4の128bitの演算器として動作し、比較器は無効とされている。故障診断時には、図9(b)に示すように、上位ビットと下位ビットに同じデータを入力する。FPUには32bit×2の同じデータを入力し、64bit演算を行って、上位と下位の演算結果を比較器によって比較し、エラー検出を行う。 Figure 9 shows an example of a processor equipped with an FPU with a homogeneous multi-core configuration. As shown in Figure 9(a), under normal circumstances, it operates as a 128-bit arithmetic unit (32 bits x 4), with the comparator disabled. During fault diagnosis, as shown in Figure 9(b), the same data is input to the upper and lower bits. The same 32-bit x 2 data is input to the FPU, and a 64-bit operation is performed. The upper and lower operation results are compared using a comparator to detect errors.
図10は、2つのAD変換ユニットを備えたプロセッサの例を示す図である。AD変換ユニットとレジスタの組合せがコアを構成している。図10(a)に示すように、通常時は、異なる入力信号が入力され、各AD変換ユニットでAD変換され、変換結果がレジスタに記憶される。比較器は無効とされている。故障診断時には、図10(b)に示すように、2つのAD変換ユニットに同じ入力信号が入力され、各AD変換ユニットでの変換結果がレジスタに記憶される。この場合、比較器が有効とされており、比較器はレジスタのデータを読み出して比較し、エラー検出を行う。 Figure 10 shows an example of a processor with two AD conversion units. The combination of AD conversion units and registers forms the core. As shown in Figure 10(a), under normal circumstances, different input signals are input and AD conversion is performed by each AD conversion unit, with the conversion results stored in the register. The comparator is disabled. During fault diagnosis, as shown in Figure 10(b), the same input signal is input to the two AD conversion units, and the conversion results of each AD conversion unit are stored in the register. In this case, the comparator is enabled, and reads and compares the data in the register to detect errors.
以上に例を示したとおり、本発明のプロセッサは、複数のコアを備えるプロセッサであって、複数のコアの演算結果を比較する比較器と、コアの故障診断は、複数のコアで同じ演算を実行させてその演算結果を比較し、故障診断以外の機能は、複数のコアで別の演算を並列実行させる制御部とを備えてもよい。 As shown in the examples above, the processor of the present invention may be a processor with multiple cores, and may include a comparator that compares the calculation results of the multiple cores, and a control unit that performs core fault diagnosis by having the multiple cores execute the same calculation and compares the results, and that performs functions other than fault diagnosis by having the multiple cores execute different calculations in parallel.
1・・・第1のコア、 2・・・第2のコア、 3・・・比較器、
4・・・マルチプレクサ、 5・・・ゲート、6・・・制御部、
7・・・外部ホストやCPU。
1...first core, 2...second core, 3...comparator,
4: Multiplexer; 5: Gate; 6: Control unit;
7...External host or CPU.
Claims (3)
コアの故障診断はデュアルコアロックステップモードで実行し、故障診断以外の機能はマルチコアモードで実行するように切り替える動的切替モードを有し、
実行するアプリケーションに応じて、常時デュアルコアロックステップモードを実行するモードと、常時マルチコアモードを実行するモードと、前記動的切替モードのうちのいずれかのモードで実行されるプロセッサ。 A processor with a dual-core lockstep mechanism,
A dynamic switching mode is provided in which core fault diagnosis is performed in dual-core lockstep mode and functions other than fault diagnosis are performed in multi-core mode;
A processor that operates in one of a mode that always executes dual-core lockstep mode, a mode that always executes multi-core mode, and the dynamic switching mode, depending on the application being executed.
複数のコアの演算結果を比較する比較器と、
コアの故障診断は、複数のコアで同じ演算を実行させてその演算結果を比較し、故障診断以外の機能は、複数のコアで別の演算を並列実行させる動的切替モードを有する制御部と、
を備え、
実行するアプリケーションに応じて、常時デュアルコアロックステップモードを実行するモードと、常時マルチコアモードを実行するモードと、前記動的切替モードのうちのいずれかのモードで実行されるプロセッサ。 A processor having multiple cores,
a comparator for comparing calculation results of the multiple cores;
a control unit having a dynamic switching mode in which the core fault diagnosis is performed by making the multiple cores execute the same operation and comparing the operation results, and in which the multiple cores execute different operations in parallel for functions other than the fault diagnosis;
Equipped with
A processor that operates in one of a mode that always executes dual-core lockstep mode, a mode that always executes multi-core mode, and the dynamic switching mode, depending on the application being executed.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2021149131A JP7809934B2 (en) | 2021-09-14 | 2021-09-14 | Processor |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2021149131A JP7809934B2 (en) | 2021-09-14 | 2021-09-14 | Processor |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2023042054A JP2023042054A (en) | 2023-03-27 |
| JP7809934B2 true JP7809934B2 (en) | 2026-02-03 |
Family
ID=85717244
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2021149131A Active JP7809934B2 (en) | 2021-09-14 | 2021-09-14 | Processor |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP7809934B2 (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP4542858A1 (en) * | 2023-10-20 | 2025-04-23 | Nxp B.V. | System and method of flexible comparator reconfiguration to improve comparator availability |
| CN120448191B (en) * | 2025-07-11 | 2025-09-19 | 武汉凌久微电子有限公司 | Dual-core lockstep processor fault recovery device and method |
Citations (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2000076089A (en) | 1998-09-01 | 2000-03-14 | Hitachi Ltd | Multiprocessor |
| JP2000076098A (en) | 1998-08-31 | 2000-03-14 | Digital Electronics Corp | Computer with touch screen |
| JP2006302289A (en) | 2005-04-19 | 2006-11-02 | Hewlett-Packard Development Co Lp | Computing with both lock-step and free-step processor modes |
| JP2012068788A (en) | 2010-09-22 | 2012-04-05 | Toyota Motor Corp | Information processing device and failure detection method |
| JP2012103772A (en) | 2010-11-08 | 2012-05-31 | Renesas Electronics Corp | Processor and image processing system using the same |
| JP2014056396A (en) | 2012-09-12 | 2014-03-27 | Denso Corp | Electronic controller |
| JP2015072569A (en) | 2013-10-02 | 2015-04-16 | 株式会社デンソー | Control device |
| JP2018041492A (en) | 2017-11-01 | 2018-03-15 | ルネサスエレクトロニクス株式会社 | Microcomputer |
| JP2019095893A (en) | 2017-11-20 | 2019-06-20 | ルネサスエレクトロニクス株式会社 | Semiconductor device |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP3175896B2 (en) * | 1994-05-06 | 2001-06-11 | 株式会社日立製作所 | Bus collation type processing apparatus and method |
-
2021
- 2021-09-14 JP JP2021149131A patent/JP7809934B2/en active Active
Patent Citations (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2000076098A (en) | 1998-08-31 | 2000-03-14 | Digital Electronics Corp | Computer with touch screen |
| JP2000076089A (en) | 1998-09-01 | 2000-03-14 | Hitachi Ltd | Multiprocessor |
| JP2006302289A (en) | 2005-04-19 | 2006-11-02 | Hewlett-Packard Development Co Lp | Computing with both lock-step and free-step processor modes |
| JP2012068788A (en) | 2010-09-22 | 2012-04-05 | Toyota Motor Corp | Information processing device and failure detection method |
| JP2012103772A (en) | 2010-11-08 | 2012-05-31 | Renesas Electronics Corp | Processor and image processing system using the same |
| JP2014056396A (en) | 2012-09-12 | 2014-03-27 | Denso Corp | Electronic controller |
| JP2015072569A (en) | 2013-10-02 | 2015-04-16 | 株式会社デンソー | Control device |
| JP2018041492A (en) | 2017-11-01 | 2018-03-15 | ルネサスエレクトロニクス株式会社 | Microcomputer |
| JP2019095893A (en) | 2017-11-20 | 2019-06-20 | ルネサスエレクトロニクス株式会社 | Semiconductor device |
Also Published As
| Publication number | Publication date |
|---|---|
| JP2023042054A (en) | 2023-03-27 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US6385755B1 (en) | Information processing system and logic LSI, detecting a fault in the system or the LSI, by using internal data processed in each of them | |
| CN101243407B (en) | Method and apparatus for controlling a computer system | |
| US20060200278A1 (en) | Generic software fault mitigation | |
| JP7809934B2 (en) | Processor | |
| JP6266239B2 (en) | Microcomputer | |
| US9348681B2 (en) | Apparatus and method for detecting fault of processor | |
| WO2014041596A1 (en) | Safety controller | |
| JP2770913B2 (en) | Parity replacement apparatus and method | |
| KR101031181B1 (en) | Methods and apparatus for monitoring the functionality of computer systems | |
| JP5367970B2 (en) | Method for starting / restarting signal processing system and signal processing system | |
| KR20060098372A (en) | Method and apparatus for processing operands in a processor unit | |
| US7421618B2 (en) | Method for processing a diagnosis of a processor, information processing system and a diagnostic processing program | |
| KR20050121729A (en) | Program-controlled unit and method | |
| US5280606A (en) | Fault recovery processing for supercomputer | |
| EP4400970A1 (en) | Central processing unit system and method with improved self-checking | |
| JP6588068B2 (en) | Microcomputer | |
| JP7596638B2 (en) | Processor and error detection method - Patents.com | |
| JP3240660B2 (en) | Data processing device | |
| JPH07230436A (en) | Processor configuration method and information processing apparatus | |
| JP2560098B2 (en) | Clock stop control method by machine check | |
| JPH07271625A (en) | Information processor | |
| JP2002108638A (en) | Error detecting method, error detection circuit of microcomputer and microcomputer system | |
| JP4747028B2 (en) | Microprocessor, information processing method and program using the same | |
| JP2025180480A (en) | Arithmetic device and method for detecting faults therein | |
| JPH11149390A (en) | Data processing apparatus and failure diagnosis method for the same |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A711 | Notification of change in applicant |
Free format text: JAPANESE INTERMEDIATE CODE: A712 Effective date: 20240201 |
|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20240307 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20250108 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20250204 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20250327 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20250729 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20250908 |
|
| TRDD | Decision of grant or rejection written | ||
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20251223 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20260105 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 7809934 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |