JP2015197729A - Microprocessor failure diagnostic method - Google Patents

Microprocessor failure diagnostic method Download PDF

Info

Publication number
JP2015197729A
JP2015197729A JP2014074210A JP2014074210A JP2015197729A JP 2015197729 A JP2015197729 A JP 2015197729A JP 2014074210 A JP2014074210 A JP 2014074210A JP 2014074210 A JP2014074210 A JP 2014074210A JP 2015197729 A JP2015197729 A JP 2015197729A
Authority
JP
Japan
Prior art keywords
circuit
microprocessor
comparator
diagnosis
monitoring circuit
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.)
Granted
Application number
JP2014074210A
Other languages
Japanese (ja)
Other versions
JP6274947B2 (en
Inventor
鈴木 貴人
Takahito Suzuki
貴人 鈴木
小西 泰史
Yasushi Konishi
泰史 小西
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hitachi Astemo Ltd
Original Assignee
Hitachi Automotive Systems Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Hitachi Automotive Systems Ltd filed Critical Hitachi Automotive Systems Ltd
Priority to JP2014074210A priority Critical patent/JP6274947B2/en
Publication of JP2015197729A publication Critical patent/JP2015197729A/en
Application granted granted Critical
Publication of JP6274947B2 publication Critical patent/JP6274947B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

PROBLEM TO BE SOLVED: To reduce the time required for diagnosing a microprocessor.SOLUTION: A microprocessor failure diagnostic method includes: diagnosing comparators 16 by repeating diagnosis a number of times corresponding to the number of comparators 16 included in a comparator group 14, without intervention of a monitoring circuit 32 and a fail-safe circuit 34; and then diagnosing the monitoring circuit 32 and the fail-safe circuit 34. There is no need to repeat diagnosis on the monitoring circuit 32 and the fail-safe circuit 34, thereby reducing the diagnosis time as compared with a conventional microprocessor diagnostic method.

Description

本発明は、マイクロプロセッサの異常診断方法に関するものである。   The present invention relates to a microprocessor abnormality diagnosis method.

一般的に、車載装置に用いられるデュアルコアのマイクロプロセッサは、冗長に駆動させるために、マスタコアとスレーブコアとの双方で同じ演算が行われている。通常時は、ロックステップ処理により、マスタコアで行った演算結果と、スレーブコアで行った演算結果とが、マイクロプロセッサ内のコンパレータで常に比較され、マイクロプロセッサが正常に動作しているか監視される。コンパレータの比較結果は、マイクロプロセッサ外部の監視回路により監視され、比較結果が異なる等の異常を検出した場合には、監視回路からフェールセーフ回路へ指令信号が送信され、フェールセーフ回路によりフェールセーフ処理が行われる。従って、マイクロプロセッサの使用前には、上記の各回路及び各機能が正常に動作していることを確認する必要がある。   In general, in a dual-core microprocessor used in an in-vehicle device, the same calculation is performed in both a master core and a slave core in order to drive redundantly. In normal times, the operation result performed by the master core and the operation result performed by the slave core are always compared by the comparator in the microprocessor by the lock step process, and it is monitored whether the microprocessor is operating normally. The comparison result of the comparator is monitored by a monitoring circuit outside the microprocessor, and if an abnormality such as a difference in the comparison result is detected, a command signal is transmitted from the monitoring circuit to the fail-safe circuit, and the fail-safe process is performed by the fail-safe circuit. Is done. Therefore, before using the microprocessor, it is necessary to confirm that the above circuits and functions are operating normally.

例えば、特許文献1には、マイクロプロセッサの2つのコアに、互いに内容が異なる作業レジスタを設定して、これらの異なる内容をコンパレータに供給したときに、コンパレータによりエラー信号が生成されることを確認する方法が開示されている。
又、図8には、マイクロプロセッサ100内の複数のコンパレータ16と、監視回路32及びフェールセーフ回路34とを診断する、従来の異常診断方法が示されている。従来の異常診断方法では、各コンパレータ16の一方の入力側に、疑似故障発生回路18で発生させた疑似故障信号を入力し、この際のコンパレータ16の比較結果を、出力インタフェース24を介して監視回路32へ出力する。そして、監視回路32からの指令をフェールセーフ回路34により受け、フェールセーフ回路34においてフェールセーフ処理が行われることを示す信号を、入力インタフェース26を介してマイクロプロセッサ100内の故障判定回路28により受信して、故障判定回路28において診断を行う。このような一連の診断処理を、複数のコンパレータ16の数量分だけ、繰り返し行うものである。
For example, in Patent Document 1, it is confirmed that an error signal is generated by a comparator when working registers having different contents are set in two cores of a microprocessor and these different contents are supplied to the comparator. A method is disclosed.
FIG. 8 shows a conventional abnormality diagnosis method for diagnosing the plurality of comparators 16, the monitoring circuit 32, and the fail safe circuit 34 in the microprocessor 100. In the conventional abnormality diagnosis method, a pseudo fault signal generated by the pseudo fault generation circuit 18 is input to one input side of each comparator 16, and the comparison result of the comparator 16 at this time is monitored via the output interface 24. Output to the circuit 32. Then, the fail safe circuit 34 receives a command from the monitoring circuit 32, and a signal indicating that the fail safe process is performed in the fail safe circuit 34 is received by the failure determination circuit 28 in the microprocessor 100 via the input interface 26. Then, the failure determination circuit 28 performs diagnosis. Such a series of diagnostic processing is repeatedly performed by the number of the plurality of comparators 16.

特表2009−516276号公報Special table 2009-516276

しかしながら、図8に示す従来の異常診断方法では、繰り返し行う一連の診断処理S210〜S240に、監視回路32の診断S220やフェールセーフ回路34の診断S230が含まれているため、診断時間が長くなってしまうという課題があった。
本発明は上記課題に鑑みてなされたものであり、その目的とするところは、マイクロプロセッサの診断時間を短縮することにある。
However, in the conventional abnormality diagnosis method shown in FIG. 8, the diagnosis time S2 is prolonged because the diagnosis S220 of the monitoring circuit 32 and the diagnosis S230 of the failsafe circuit 34 are included in a series of repeated diagnosis processes S210 to S240. There was a problem that it would end up.
The present invention has been made in view of the above problems, and an object thereof is to shorten the diagnosis time of the microprocessor.

(発明の態様)
上記課題を解決するための手段として、本発明は、冗長に駆動可能な2つのマイクロプロセッサコアと、該2つのマイクロプロセッサコアの各々に接続される複数のコンパレータと、故障判定回路とを含むマイクロプロセッサの異常診断方法であって、前記マイクロプロセッサコアと前記複数のコンパレータとは、前記複数のコンパレータの演算結果に基づいて、外部の監視回路により動作が監視され、該監視回路は、前記マイクロプロセッサの異常検出時にフェールセーフ回路へフェールセーフ処理を実行させるものであり、前記故障判定回路は、前記複数のコンパレータ毎に疑似故障信号を注入し、前記フェールセーフ回路を介さずに、或いは、前記監視回路及び前記フェールセーフ回路を介さずに、前記複数のコンパレータの各々の診断を行うことを特徴とするものである。
(Aspect of the Invention)
As a means for solving the above-described problems, the present invention provides a microprocessor including two microprocessor cores that can be driven redundantly, a plurality of comparators connected to each of the two microprocessor cores, and a failure determination circuit. An abnormality diagnosis method for a processor, wherein the microprocessor core and the plurality of comparators are monitored for operation by an external monitoring circuit based on a calculation result of the plurality of comparators, and the monitoring circuit is connected to the microprocessor. The failure determination circuit injects a pseudo failure signal for each of the plurality of comparators when the abnormality is detected, and the monitoring is performed without going through the fail safe circuit. Each of the plurality of comparators without going through the circuit and the fail-safe circuit. It is characterized in that to perform.

本発明はこのように構成したので、マイクロプロセッサの診断時間を短縮することが可能となる。   Since the present invention is configured as described above, the diagnosis time of the microprocessor can be shortened.

本発明の第1の実施の形態に係るマイクロプロセッサの異常診断方法を示しており、(a)は信号の流れを概略的に示すブロック図、(b)は処理の流れを示すフローチャートである。1A and 1B show a microprocessor abnormality diagnosis method according to a first embodiment of the present invention, in which FIG. 1A is a block diagram schematically showing a signal flow, and FIG. 2B is a flowchart showing a processing flow; 図1の異常診断方法におけるコンパレータ及び監視回路の診断方法を説明するためのイメージ図である。It is an image figure for demonstrating the diagnostic method of the comparator and monitoring circuit in the abnormality diagnostic method of FIG. 本発明の第2の実施の形態に係るマイクロプロセッサの異常診断方法を示しており、(a)は信号の流れを概略的に示すブロック図、(b)は処理の流れを示すフローチャートである。FIGS. 4A and 4B show a microprocessor abnormality diagnosis method according to a second embodiment of the present invention, in which FIG. 5A is a block diagram schematically showing a signal flow, and FIG. 5B is a flowchart showing a processing flow. 図3の異常診断方法におけるコンパレータの診断方法を説明するためのイメージ図である。It is an image figure for demonstrating the diagnostic method of the comparator in the abnormality diagnostic method of FIG. 図3の異常診断方法における監視回路の診断方法を説明するためのイメージ図である。It is an image figure for demonstrating the diagnostic method of the monitoring circuit in the abnormality diagnostic method of FIG. 第3の実施の形態に係るマイクロプロセッサの異常診断方法の、信号の流れを概略的に示すブロック図である。It is a block diagram which shows roughly the flow of a signal of the abnormality diagnosis method of the microprocessor which concerns on 3rd Embodiment. 図6の異常診断方法におけるコンパレータの診断方法を説明するためのイメージ図である。It is an image figure for demonstrating the diagnostic method of the comparator in the abnormality diagnostic method of FIG. 従来のマイクロプロセッサの異常診断方法を示しており、(a)は信号の流れを概略的に示すブロック図、(b)は処理の流れを示すフローチャートである。2A and 2B show a conventional microprocessor abnormality diagnosis method, in which FIG. 1A is a block diagram schematically showing a signal flow, and FIG. 2B is a flowchart showing a processing flow;

以下、実施の形態を図面に基づき説明する。なお、図1〜図8において、共通する部分については、同一の符号を付している。又、以降の説明において、「通常時」という記載は、マイクロプロセッサの異常診断により正常であると判定された後に、マイクロプロセッサを実際の用途に用いた状態を示している。
図1及び図2は、本発明の第1の実施の形態に係るマイクロプロセッサの異常診断方法を示している。まず、図1(a)及び図2を参照して、本異常診断方法が診断の対象とするマイクロプロセッサ10と、マイクロプロセッサ10が搭載された車載制御装置30との構成について説明する。
Hereinafter, embodiments will be described with reference to the drawings. 1 to 8, common portions are denoted by the same reference numerals. Further, in the following description, the description “normal time” indicates a state in which the microprocessor is actually used after it is determined to be normal by the abnormality diagnosis of the microprocessor.
1 and 2 show a microprocessor abnormality diagnosis method according to the first embodiment of the present invention. First, with reference to FIG. 1A and FIG. 2, the configuration of the microprocessor 10 to be diagnosed by the abnormality diagnosis method and the vehicle-mounted control device 30 on which the microprocessor 10 is mounted will be described.

図1(a)の例において、マイクロプロセッサ10は、例えばエンジン制御ユニット等の車載制御装置30に搭載されており、2つのマイクロプロセッサコア、すなわち、マスタコア12a及びスレーブコア12bを有するデュアルコアのマイクロプロセッサである。更に、マイクロプロセッサ10は、複数のコンパレータ16を含むコンパレータ群14、OR回路22、出力インタフェース24、入力インタフェース26、故障判定回路28を有している。又、車載制御装置30には、マイクロプロセッサ10の他に、監視回路32やフェールセーフ回路34等が搭載されている。   In the example of FIG. 1A, the microprocessor 10 is mounted on an in-vehicle control device 30 such as an engine control unit, for example, and is a dual-core microprocessor having two microprocessor cores, that is, a master core 12a and a slave core 12b. It is a processor. Further, the microprocessor 10 includes a comparator group 14 including a plurality of comparators 16, an OR circuit 22, an output interface 24, an input interface 26, and a failure determination circuit 28. In addition to the microprocessor 10, the in-vehicle control device 30 includes a monitoring circuit 32, a fail safe circuit 34, and the like.

コンパレータ群14は、複数のコンパレータ16と、コンパレータ16毎に設けられた疑似故障発生回路18及び疑似故障切替回路20とで構成されている。コンパレータ16の各々は、図1(a)の例では、一方の入力がマスタコア12aに接続され、もう一方の入力が疑似故障切替回路20に接続されている。各疑似故障切替回路20は、スレーブコア12bに接続されており、コンパレータ16への一方の入力を、スレーブコア12bからの信号と、疑似故障発生回路18により発生する疑似故障信号とに、切替可能なものである。なお、疑似故障発生回路18により発生する疑似故障信号には、マスタコア12aから各コンパレータ16へ入力される信号と比較した際に、必ず不一致となる信号が設定される。   The comparator group 14 includes a plurality of comparators 16, a pseudo fault generation circuit 18 and a pseudo fault switching circuit 20 provided for each comparator 16. In the example of FIG. 1A, each of the comparators 16 has one input connected to the master core 12 a and the other input connected to the pseudo failure switching circuit 20. Each simulated fault switching circuit 20 is connected to the slave core 12b, and one input to the comparator 16 can be switched between a signal from the slave core 12b and a simulated fault signal generated by the simulated fault generating circuit 18. It is a thing. Note that a pseudo-failure signal generated by the pseudo-failure generation circuit 18 is always set to a signal that does not match when compared with a signal input to each comparator 16 from the master core 12a.

OR回路22は、複数のコンパレータ16から入力される比較結果をOR演算するものである。すなわち、複数のコンパレータ16からの入力のうち、1つでも異常を示す比較結果があれば、異常を示す信号を出力する。出力インタフェース24は、マイクロプロセッサ10から信号を出力するためのものであり、図1(a)の例では、OR回路22の演算結果を監視回路32へ出力するために用いている。又、入力インタフェース26は、マイクロプロセッサ10へ信号を入力するためのものであり、図1(a)の例では、監視回路32からの出力信号を、マイクロプロセッサ10内の故障判定回路28へ入力するために用いている。故障判定回路28は、入力された信号から異常の有無を判定するものであり、図1(a)の例では、監視回路32からの信号を受けて、疑似故障信号が入力されているコンパレータ16と監視回路32との、何れか一方又は双方で、異常が発生しているか否かを判定するように構成されている。   The OR circuit 22 performs an OR operation on the comparison results input from the plurality of comparators 16. That is, if at least one of the inputs from the plurality of comparators 16 has a comparison result indicating abnormality, a signal indicating abnormality is output. The output interface 24 is for outputting a signal from the microprocessor 10, and in the example of FIG. 1A, is used for outputting the operation result of the OR circuit 22 to the monitoring circuit 32. The input interface 26 is for inputting a signal to the microprocessor 10. In the example of FIG. 1A, the output signal from the monitoring circuit 32 is input to the failure determination circuit 28 in the microprocessor 10. Used to do. The failure determination circuit 28 determines whether or not there is an abnormality from the input signal. In the example of FIG. 1A, the comparator 16 receives a signal from the monitoring circuit 32 and receives a pseudo failure signal. And / or the monitoring circuit 32 is configured to determine whether or not an abnormality has occurred.

更に、マイクロプロセッサ10は、図1(a)での図示は省略しているが、図2に示すように、OR回路22と出力インタフェース24との間に、ピン機能制御手段50を備えている。このピン機能制御手段50は、例えばPFC(Pin Function Controller)であり、出力インタフェース24の機能を設定可能なものである。図2の例では、ピン機能制御手段50は、出力インタフェース24から出力する信号を、OR回路22を介したコンパレータ16の出力値と、ポート出力用のデータレジスタに設定した値と、任意の他の機能からの出力値との間で、切替可能なものである。   Further, although not shown in FIG. 1A, the microprocessor 10 includes a pin function control means 50 between the OR circuit 22 and the output interface 24 as shown in FIG. . The pin function control means 50 is, for example, a PFC (Pin Function Controller) and can set the function of the output interface 24. In the example of FIG. 2, the pin function control means 50 outputs a signal output from the output interface 24 to the output value of the comparator 16 via the OR circuit 22, the value set in the data register for port output, and any other value. It is possible to switch between output values from these functions.

一方、マイクロプロセッサ10の外部に設けられている監視回路32は、OR回路22及び出力インタフェース24を介して、複数のコンパレータ16による比較結果を受け、マスタコア12aとスレーブコア12bとの演算結果に、相違がないことを監視するものである。そして、監視回路32は、複数のコンパレータ16の比較結果の何れかに、相違があることを検出した場合に、フェールセーフ回路34に対して、フェールセーフ処理を実行させる指令信号を送信する。なお、本実施形態において、監視回路32は、図2に示すように、サブCPU40の内部に設けられている。
又、フェールセーフ回路34は、例えばリレー遮断回路等であり、監視回路32からの指令信号を受けて、フェールセーフ処理を行うものである。なお、図1(a)は、本異常診断方法により、コンパレータ16及び監視回路32の診断を行う際の信号の流れを示しているため、監視回路32がフェールセーフ回路34へ送信する指令信号の流れは図示していない。
On the other hand, the monitoring circuit 32 provided outside the microprocessor 10 receives the comparison results by the plurality of comparators 16 via the OR circuit 22 and the output interface 24, and the operation results of the master core 12a and the slave core 12b are It is to monitor that there is no difference. When the monitoring circuit 32 detects that there is a difference in any of the comparison results of the plurality of comparators 16, the monitoring circuit 32 transmits a command signal that causes the fail safe circuit 34 to execute the fail safe process. In the present embodiment, the monitoring circuit 32 is provided inside the sub CPU 40 as shown in FIG.
The fail safe circuit 34 is, for example, a relay cutoff circuit or the like, and receives a command signal from the monitoring circuit 32 and performs fail safe processing. FIG. 1A shows the flow of signals when the comparator 16 and the monitoring circuit 32 are diagnosed by the abnormality diagnosis method. Therefore, the command signal transmitted from the monitoring circuit 32 to the fail-safe circuit 34 is shown in FIG. The flow is not shown.

次に、図1(b)に示すフローチャートに沿って、図1(a)及び図2を参照しながら、本発明の第1の実施の形態に係るマイクロプロセッサの異常診断方法の各処理工程について説明する。
S10(コンパレータの診断):各コンパレータ16を診断するための処理工程である。具体的には、コンパレータ群14の中で未だ診断を行っていないコンパレータ16の1つを診断対象に設定し、この診断対象のコンパレータ16に対して疑似故障信号を入力(エラー注入)する。すなわち、診断対象のコンパレータ16の一方の入力に接続された疑似故障切替回路20により、コンパレータ16へ入力する信号を、スレーブコア12bの演算結果の信号から、疑似故障発生回路18で発生させる疑似故障信号へと切り替える。この際、診断対象以外のコンパレータ16に対しては、疑似故障信号ではなく、スレーブコア12bの演算結果の信号を入力することとする。
Next, each processing step of the abnormality diagnosis method for the microprocessor according to the first embodiment of the present invention will be described with reference to FIGS. 1A and 2 along the flowchart shown in FIG. explain.
S10 (Diagnosis of comparator): This is a processing step for diagnosing each comparator 16. Specifically, one of the comparators 16 not yet diagnosed in the comparator group 14 is set as a diagnosis target, and a pseudo failure signal is input (error injection) to the diagnosis target comparator 16. That is, the pseudo fault switching circuit 20 connected to one input of the comparator 16 to be diagnosed causes the pseudo fault generating circuit 18 to generate a signal to be input to the comparator 16 from the signal of the operation result of the slave core 12b. Switch to signal. At this time, not the pseudo failure signal but the signal of the operation result of the slave core 12b is input to the comparator 16 other than the diagnosis target.

そして、診断対象のコンパレータ16に、マスタコア12aの演算結果の信号と疑似故障信号とを比較させる。ここで、診断対象のコンパレータ16が正常に動作していると仮定すると、診断対象のコンパレータ16は、入力されたマスタコア12aの演算結果の信号と疑似故障信号とが相違しているため、相違していることを示す比較結果(説明の便宜上「1」とする)をOR回路22へ出力する。又、診断対象以外のコンパレータ16は、マスタコア12aの演算結果の信号とスレーブコア12bの演算結果の信号とを比較して、相違していないことを示す比較結果(説明の便宜上「0」とする)をOR回路22へ出力する。この場合、OR回路22は、診断対象のコンパレータ16からの入力が「1」であり、診断対象以外のコンパレータ16からの入力が「0」であることから、相違があることを示す演算結果「1」を出力する。   Then, the diagnostic target comparator 16 is made to compare the calculation result signal of the master core 12a with the pseudo failure signal. Here, assuming that the comparator 16 to be diagnosed is operating normally, the comparator 16 to be diagnosed is different because the input operation result signal of the master core 12a is different from the pseudo failure signal. A comparison result (for convenience of explanation, “1”) is output to the OR circuit 22. Further, the comparators 16 other than those to be diagnosed compare the calculation result signal of the master core 12a and the calculation result signal of the slave core 12b, and show a comparison result indicating that there is no difference (for convenience of explanation, it is set to “0”). ) Is output to the OR circuit 22. In this case, since the input from the comparator 16 to be diagnosed is “1” and the input from the comparators 16 other than the diagnosis target is “0”, the OR circuit 22 calculates the calculation result “ 1 "is output.

一方、診断対象のコンパレータ16が正常に動作していないと仮定すると、診断対象のコンパレータ16は、入力されたマスタコア12aの演算結果の信号と疑似故障信号とが相違しているにも関わらず、相違していないことを示す比較結果「0」をOR回路22へ出力する。この場合、OR回路22は、診断対象のコンパレータ16からの入力が「0」であり、診断対象以外のコンパレータ16からの入力も「0」であることから、相違がないことを示す演算結果「0」を出力する。
すなわち、OR回路22は、診断対象のコンパレータ16の比較結果が「1」又は「0」の何れであっても、演算結果として、診断対象のコンパレータ16の比較結果と等しい結果を出力することとなる。
On the other hand, assuming that the comparator 16 to be diagnosed is not operating normally, the comparator 16 to be diagnosed has a difference between the input operation result signal of the master core 12a and the pseudo failure signal. A comparison result “0” indicating that there is no difference is output to the OR circuit 22. In this case, since the input from the diagnosis target comparator 16 is “0” and the input from the comparator 16 other than the diagnosis target is also “0”, the OR circuit 22 has an operation result “ "0" is output.
That is, the OR circuit 22 outputs a result equal to the comparison result of the diagnostic target comparator 16 as a calculation result, regardless of whether the comparison result of the diagnostic target comparator 16 is “1” or “0”. Become.

S20(監視回路の診断):監視回路32を診断するための処理工程である。具体的には、上記S10において診断対象としたコンパレータ16の比較結果を、OR回路22及び出力インタフェース24を介して、サブCPU40へ出力する。すなわち、本異常診断方法では、図2に示しているように、ピン機能制御手段50を用いて、出力インタフェース24からOR回路22の演算結果が出力されるように設定する。そして、サブCPU40において、マイクロプロセッサ10から出力された診断対象のコンパレータ16の比較結果を、入力インタフェース42を介してポート入力として受信し、監視回路32へ伝達する。   S20 (diagnosis of the monitoring circuit): a processing step for diagnosing the monitoring circuit 32. Specifically, the comparison result of the comparator 16 to be diagnosed in S10 is output to the sub CPU 40 via the OR circuit 22 and the output interface 24. That is, in this abnormality diagnosis method, as shown in FIG. 2, the pin function control means 50 is used so that the calculation result of the OR circuit 22 is output from the output interface 24. In the sub CPU 40, the comparison result of the comparator 16 to be diagnosed output from the microprocessor 10 is received as a port input via the input interface 42 and transmitted to the monitoring circuit 32.

ここで、監視回路32と診断対象のコンパレータ16との双方が正常に動作していると仮定すると、監視回路32は、マイクロプロセッサ10から、相違があることを示す演算結果「1」を受信するため、マイクロプロセッサ10に異常が発生していると判定する。次に、監視回路32による判定結果を示す信号を、サブCPU40の出力インタフェース44、マイクロプロセッサ10の入力インタフェース26を介して、故障判定回路28へ入力する。すると、故障判定回路28は、診断対象のコンパレータ16に対して疑似故障信号が入力された状態で、診断対象のコンパレータ16が相違を示す比較結果を出力し、それを受けた監視回路32が異常発生の判定結果を出力したと判断する。このため、故障判定回路28により、診断対象のコンパレータ16と監視回路32との双方が、正常に動作していると判定される。   Here, assuming that both the monitoring circuit 32 and the comparator 16 to be diagnosed are operating normally, the monitoring circuit 32 receives an operation result “1” indicating that there is a difference from the microprocessor 10. Therefore, it is determined that an abnormality has occurred in the microprocessor 10. Next, a signal indicating a determination result by the monitoring circuit 32 is input to the failure determination circuit 28 via the output interface 44 of the sub CPU 40 and the input interface 26 of the microprocessor 10. Then, the failure determination circuit 28 outputs a comparison result indicating that the diagnosis target comparator 16 is different in a state in which a pseudo failure signal is input to the diagnosis target comparator 16, and the monitoring circuit 32 that receives the comparison results in an abnormality. It is determined that the determination result of occurrence has been output. Therefore, the failure determination circuit 28 determines that both the comparator 16 to be diagnosed and the monitoring circuit 32 are operating normally.

一方、監視回路32が正常に動作し、診断対象のコンパレータ16が正常に動作していないと仮定すると、監視回路32は、マイクロプロセッサ10から、相違がないことを示す演算結果「0」を受信するため、マイクロプロセッサ10に異常が発生していないと判定し、この判定結果を示す信号を、故障判定回路28へ出力する。又、診断対象のコンパレータ16が正常に動作し、監視回路32が正常に動作していないと仮定すると、監視回路32は、マイクロプロセッサ10から、相違があることを示す演算結果「1」を受信するにも関わらず、マイクロプロセッサ10に異常が発生していないと判定し、この判定結果を示す信号を、故障判定回路28へ出力する。上述した何れの場合においても、診断対象のコンパレータ16に対して疑似故障信号が入力されているにも関わらず、マイクロプロセッサ10に異常が発生していないことを示す信号を受信するため、故障判定回路28は、診断対象のコンパレータ16又は監視回路32が、正常に動作していないと判定する。   On the other hand, assuming that the monitoring circuit 32 operates normally and the comparator 16 to be diagnosed does not operate normally, the monitoring circuit 32 receives an operation result “0” indicating that there is no difference from the microprocessor 10. Therefore, it is determined that no abnormality has occurred in the microprocessor 10, and a signal indicating the determination result is output to the failure determination circuit 28. Further, assuming that the comparator 16 to be diagnosed operates normally and the monitoring circuit 32 does not operate normally, the monitoring circuit 32 receives an operation result “1” indicating that there is a difference from the microprocessor 10. Nevertheless, it is determined that no abnormality has occurred in the microprocessor 10, and a signal indicating the determination result is output to the failure determination circuit 28. In any of the above-described cases, since a signal indicating that no abnormality has occurred in the microprocessor 10 is received even though a pseudo failure signal is input to the comparator 16 to be diagnosed, failure determination is performed. The circuit 28 determines that the comparator 16 or the monitoring circuit 32 to be diagnosed is not operating normally.

以上のように、本実施形態では、上記S10及びS20の処理工程を組み合わせて、診断対象のコンパレータ16及び監視回路32の診断を行う。
なお、上述した監視回路32から故障判定回路28への入力は、マイクロプロセッサ10とサブCPU40との間のCPU間通信のラインにより行えばよい。
As described above, in the present embodiment, the diagnosis of the diagnosis target comparator 16 and the monitoring circuit 32 is performed by combining the processing steps of S10 and S20.
Note that the input from the monitoring circuit 32 to the failure determination circuit 28 described above may be performed via a communication line between CPUs between the microprocessor 10 and the sub CPU 40.

S30(診断回数加算):上記S10及びS20の処理工程を実施した後に、診断回数を1加算する。   S30 (diagnosis count addition): After performing the processing steps of S10 and S20, the diagnosis count is incremented by one.

S40(診断回数判定):診断回数と、コンパレータ群14が有する複数のコンパレータ16の数量とを比較する。そして、診断回数がコンパレータ16の数量に満たない場合(NO)は、S10へ復帰し、診断回数がコンパレータ16の数量に達した場合(YES)は、S50へ移行する。すなわち、コンパレータ群14が有する全てのコンパレータ16を診断するまで、S10〜S30の処理工程を繰り返し行う。   S40 (diagnosis count determination): The diagnosis count is compared with the quantity of the plurality of comparators 16 included in the comparator group 14. If the number of diagnoses is less than the quantity of the comparator 16 (NO), the process returns to S10, and if the number of diagnoses reaches the quantity of the comparator 16 (YES), the process proceeds to S50. That is, the processing steps S10 to S30 are repeated until all the comparators 16 included in the comparator group 14 are diagnosed.

S50(フェールセーフ回路の診断):フェールセーフ回路34を診断するための処理工程である。具体的には、例えば、図8(a)に示した従来のマイクロプロセッサの異常診断方法の信号の流れのように、監視回路32から出力される信号をフェールセーフ回路34へ入力し、この入力を受けてフェールセーフ回路34から出力される信号を、マイクロプロセッサ10の故障判定回路28へ入力する。すなわち、上記S10、S20の処理工程において正常に動作していると判定された何れかのコンパレータ16に対して、疑似故障発生回路18から疑似故障信号を入力し、このコンパレータ16の比較結果を、OR回路22及び出力インタフェース24を介して、監視回路32へ入力する。この際、コンパレータ16は正常に動作しているため、監視回路32には、相違があることを示す演算結果「1」が入力される。この入力を受けて、監視回路32は、正常に動作している状態で、コンパレータ16に異常があることを検出する。この際に監視回路32から出力される、フェールセーフ処理を実行させるための指令信号を、フェールセーフ回路34へ入力する。そして、フェールセーフ処理の実行の有無を示す信号を、フェールセーフ回路34から、入力インタフェース26を介して故障判定回路28へ入力する。   S50 (diagnosis of fail-safe circuit): This is a processing step for diagnosing the fail-safe circuit 34. Specifically, for example, the signal output from the monitoring circuit 32 is input to the fail-safe circuit 34 as in the signal flow of the conventional microprocessor abnormality diagnosis method shown in FIG. In response, the signal output from the fail-safe circuit 34 is input to the failure determination circuit 28 of the microprocessor 10. That is, a pseudo failure signal is input from the pseudo failure generation circuit 18 to any of the comparators 16 determined to be operating normally in the processing steps of S10 and S20, and the comparison result of the comparator 16 is The data is input to the monitoring circuit 32 via the OR circuit 22 and the output interface 24. At this time, since the comparator 16 is operating normally, the calculation result “1” indicating that there is a difference is input to the monitoring circuit 32. Upon receiving this input, the monitoring circuit 32 detects that the comparator 16 is abnormal while operating normally. At this time, a command signal for executing fail-safe processing, which is output from the monitoring circuit 32, is input to the fail-safe circuit 34. Then, a signal indicating whether or not the fail safe process is executed is input from the fail safe circuit 34 to the failure determination circuit 28 via the input interface 26.

ここで、フェールセーフ回路34が正常に動作していると仮定すると、フェールセーフ回路34は、監視回路32からの指令信号を受けて、フェールセーフ処理を実行する状態となるため、フェールセーフ回路34から故障判定回路28へ、フェールセーフ処理が実行されることを示す信号が入力される。この際、故障判定回路28は、コンパレータ16の1つに疑似故障信号が入力されているため、フェールセーフ回路34がフェールセーフ処理を実行するものと判断する。このため、故障判定回路28により、フェールセーフ回路34が正常に動作していると判定される。   Here, assuming that the fail-safe circuit 34 is operating normally, the fail-safe circuit 34 receives the command signal from the monitoring circuit 32 and enters a state in which the fail-safe process is executed. A signal indicating that the fail-safe process is executed is input to the failure determination circuit 28. At this time, the failure determination circuit 28 determines that the fail-safe circuit 34 performs the fail-safe process because the pseudo-failure signal is input to one of the comparators 16. Therefore, it is determined by the failure determination circuit 28 that the fail safe circuit 34 is operating normally.

一方、フェールセーフ回路34が正常に動作していないと仮定すると、フェールセーフ回路34は、監視回路32からの指令信号を受けても、フェールセーフ処理を実行する状態とならないため、フェールセーフ回路34から故障判定回路28へ、フェールセーフ処理が実行されることを示す信号が入力されない。この際、故障判定回路28は、コンパレータ16の1つに疑似故障信号が入力されているにも関わらず、フェールセーフ回路34がフェールセーフ処理を実行しないと判断する。このため、故障判定回路28により、フェールセーフ回路34が正常に動作していないと判定される。   On the other hand, assuming that the fail-safe circuit 34 is not operating normally, the fail-safe circuit 34 does not enter a state in which fail-safe processing is executed even if it receives a command signal from the monitoring circuit 32. No signal indicating that the fail-safe process is executed is not input to the failure determination circuit 28. At this time, the failure determination circuit 28 determines that the fail-safe circuit 34 does not execute the fail-safe process even though the pseudo failure signal is input to one of the comparators 16. Therefore, the failure determination circuit 28 determines that the fail safe circuit 34 is not operating normally.

以上説明したように、本発明の第1の実施の形態に係るマイクロプロセッサの異常診断方法は、図1に示すように、複数のコンパレータ16の各々の診断を、フェールセーフ回路34を介さずに行う、言い換えれば、複数のコンパレータ16の各々の診断のための信号を監視回路32から出力して故障判定回路28が入力するようにしたものである。すなわち、コンパレータ16及び監視回路32の一連の診断(S10及びS20)を、コンパレータ群14に含まれるコンパレータ16の数量分だけ繰り返し行った(S40)後に、フェールセーフ回路34の診断(S50)を行う。これに対し、図8に示した従来のマイクロプロセッサの異常診断方法は、コンパレータ16、監視回路32、フェールセーフ回路34の一連の診断(S210〜S230)を、コンパレータ群14に含まれるコンパレータ16の数量分だけ繰り返し行う(S250)ものである。従って、本発明の第1の実施の形態に係るマイクロプロセッサの異常診断方法は、従来のマイクロプロセッサの異常診断方法と比較すると、フェールセーフ回路34の診断を繰り返し行う必要がないため、診断時間を短縮することができる。   As described above, the abnormality diagnosis method for the microprocessor according to the first embodiment of the present invention performs diagnosis of each of the plurality of comparators 16 without using the fail-safe circuit 34, as shown in FIG. In other words, a signal for diagnosis of each of the plurality of comparators 16 is output from the monitoring circuit 32 and input to the failure determination circuit 28. That is, after a series of diagnosis (S10 and S20) of the comparator 16 and the monitoring circuit 32 is repeated by the number of the comparators 16 included in the comparator group 14 (S40), the diagnosis of the failsafe circuit 34 (S50) is performed. . On the other hand, in the conventional microprocessor abnormality diagnosis method shown in FIG. 8, a series of diagnosis (S210 to S230) of the comparator 16, the monitoring circuit 32, and the fail-safe circuit 34 is performed by the comparator 16 included in the comparator group 14. This is repeated for the quantity (S250). Therefore, the microprocessor abnormality diagnosis method according to the first embodiment of the present invention does not require repeated diagnosis of the failsafe circuit 34 as compared with the conventional microprocessor abnormality diagnosis method. It can be shortened.

更に、本発明の第1の実施の形態に係るマイクロプロセッサの異常診断方法は、フェールセーフ回路34の診断工程(S50)において、疑似故障信号を入力するコンパレータ16として、最後に実施したコンパレータ16の診断工程(S10)で疑似故障信号を入力して、正常に動作していると判定されたコンパレータ16を、続けて利用することとすれば、疑似故障信号を入力するコンパレータ16の設定や疑似故障信号の入力を、改めて行う必要が無くなるため、更に診断時間を短縮することができる。
又、本発明の第1の実施の形態に係るマイクロプロセッサの異常診断方法は、複数のコンパレータ16と監視回路32との診断を、フェールセーフ回路34を介さずに行うことから、従来のマイクロプロセッサの異常診断方法と比較して、異常発生箇所の切り分けが容易になる。
Furthermore, in the microprocessor abnormality diagnosis method according to the first embodiment of the present invention, in the diagnosis step (S50) of the fail-safe circuit 34, the comparator 16 that is implemented last is used as the comparator 16 that inputs a pseudo failure signal. If the comparator 16 determined to be operating normally by inputting a pseudo failure signal in the diagnosis step (S10) is used continuously, the setting of the comparator 16 for inputting the pseudo failure signal or the pseudo failure Since it is not necessary to input a signal again, the diagnosis time can be further shortened.
The microprocessor abnormality diagnosis method according to the first embodiment of the present invention performs diagnosis of the plurality of comparators 16 and the monitoring circuit 32 without using the fail-safe circuit 34, so that a conventional microprocessor is used. Compared with the abnormality diagnosis method, the location of the abnormality can be easily identified.

次に、図3〜図5を参照して、本発明の第2の実施の形態に係るマイクロプロセッサの異常診断方法について説明する。なお、本発明の第2の実施の形態に係るマイクロプロセッサの異常診断方法は、図1及び図2に示した本発明の第1の実施の形態に係るマイクロプロセッサの異常診断方法との比較において、信号の流れの一部や処理の流れの一部を除き、同様の構成のものである。このため、本発明の第1の実施の形態に係るマイクロプロセッサの異常診断方法と、同様の部分の構成や処理については、説明を省略する。   Next, a microprocessor abnormality diagnosis method according to the second embodiment of the present invention will be described with reference to FIGS. The microprocessor abnormality diagnosis method according to the second embodiment of the present invention is compared with the microprocessor abnormality diagnosis method according to the first embodiment of the present invention shown in FIGS. The configuration is the same except for part of the signal flow and part of the processing flow. Therefore, the description of the configuration and processing of the same parts as those of the microprocessor abnormality diagnosis method according to the first embodiment of the present invention will be omitted.

図3(a)及び図4の例において、出力インタフェース24は、OR回路22の演算結果を、一端マイクロプロセッサ10’の外部へ出力するために用いられ、又、入力インタフェース26は、マイクロプロセッサ10’の外部へ出力したOR回路22の演算結果を、マイクロプロセッサ10’内の故障判定回路28へ入力するために用いられる。すなわち、OR回路22の演算結果は、出力インタフェース24を介してマイクロプロセッサ10’の外部に出力された後、入力インタフェース26を介して再びマイクロプロセッサ10’の内部に入力される。又、故障判定回路28は、OR回路22からの演算結果を受けて、疑似故障信号が入力されているコンパレータ16で、異常が発生しているか否かを判定するように構成されている。   3A and 4, the output interface 24 is used to output the operation result of the OR circuit 22 to the outside of the microprocessor 10 ′, and the input interface 26 is used for the microprocessor 10. The operation result of the OR circuit 22 output to the outside of 'is used to input to the failure determination circuit 28 in the microprocessor 10'. That is, the operation result of the OR circuit 22 is output to the outside of the microprocessor 10 ′ through the output interface 24, and then input to the inside of the microprocessor 10 ′ again through the input interface 26. The failure determination circuit 28 is configured to receive the calculation result from the OR circuit 22 and determine whether or not an abnormality has occurred in the comparator 16 to which a pseudo failure signal is input.

監視回路32は、通常時は、複数のコンパレータ16による比較結果を受け、マスタコア12aとスレーブコア12bとの演算結果に、相違がないことを監視する。フェールセーフ回路34は、監視回路32からの指令信号を受けた場合に、フェールセーフ処理を行う。なお、図3(a)は、本異常診断方法により、コンパレータ16の診断を行う際の信号の流れを示しているため、通常時に、マイクロプロセッサ10’から監視回路32へ入力される信号や、監視回路32からフェールセーフ回路34へ送信する指令信号の流れは、図示していない。   The monitoring circuit 32 normally receives the comparison results from the plurality of comparators 16 and monitors that there is no difference in the calculation results between the master core 12a and the slave core 12b. The fail safe circuit 34 performs fail safe processing when receiving a command signal from the monitoring circuit 32. 3A shows the flow of signals when the comparator 16 is diagnosed by this abnormality diagnosis method, so that signals input from the microprocessor 10 ′ to the monitoring circuit 32 at normal times, The flow of the command signal transmitted from the monitoring circuit 32 to the fail safe circuit 34 is not shown.

続いて、図3(b)に示すフローチャートに沿って、図3(a)、図4、図5を参照しながら、本発明の第2の実施の形態に係るマイクロプロセッサの異常診断方法の各処理工程について説明する。
S110(コンパレータの診断):図1(b)のS10と同様の処理を実行する。その後、OR回路22の演算結果を、出力インタフェース24及び入力インタフェース26を介して、故障判定回路28へ入力する。すなわち、本処理工程では、図4に示しているように、ピン機能制御手段50を用いて、出力インタフェース24からOR回路22の演算結果が出力されるように設定する。
Subsequently, according to the flowchart shown in FIG. 3 (b), referring to FIGS. 3 (a), 4 and 5, each of the microprocessor abnormality diagnosis method according to the second embodiment of the invention is described. Processing steps will be described.
S110 (Diagnosis of comparator): The same processing as S10 in FIG. Thereafter, the operation result of the OR circuit 22 is input to the failure determination circuit 28 via the output interface 24 and the input interface 26. That is, in this processing step, as shown in FIG. 4, setting is made so that the operation result of the OR circuit 22 is output from the output interface 24 using the pin function control means 50.

ここで、診断対象のコンパレータ16が正常に動作していると仮定すると、故障判定回路28は、OR回路22から、相違があることを示す演算結果「1」を受信する。すると、故障判定回路28は、診断対象のコンパレータ16に対して疑似故障信号が入力されているため、診断対象のコンパレータ16が相違を示す比較結果を出力したと判断する。このため、故障判定回路28により、診断対象のコンパレータ16が正常に動作していると判定される。   Here, assuming that the comparator 16 to be diagnosed is operating normally, the failure determination circuit 28 receives an operation result “1” indicating that there is a difference from the OR circuit 22. Then, the failure determination circuit 28 determines that the diagnosis target comparator 16 has output a comparison result indicating a difference because the pseudo failure signal is input to the diagnosis target comparator 16. Therefore, the failure determination circuit 28 determines that the comparator 16 to be diagnosed is operating normally.

一方、診断対象のコンパレータ16が正常に動作していないと仮定すると、故障判定回路28は、OR回路22から、相違がないことを示す演算結果「0」を受信する。すると、故障判定回路28は、診断対象のコンパレータ16に対して疑似故障信号が入力されているにも関わらず、診断対象のコンパレータ16が、相違がないことを示す比較結果を出力したと判断する。このため、故障判定回路28により、診断対象のコンパレータ16が正常に動作していないと判定される。   On the other hand, assuming that the diagnostic target comparator 16 is not operating normally, the failure determination circuit 28 receives from the OR circuit 22 the operation result “0” indicating that there is no difference. Then, the failure determination circuit 28 determines that the diagnosis target comparator 16 has output a comparison result indicating that there is no difference, even though a pseudo failure signal is input to the diagnosis target comparator 16. . For this reason, the failure determination circuit 28 determines that the diagnostic target comparator 16 is not operating normally.

S120(診断回数加算):上記S110の処理工程を実施した後に、診断回数を1加算する。
S130(診断回数判定):診断回数と、コンパレータ群14が有する複数のコンパレータ16の数量とを比較する。そして、診断回数がコンパレータ16の数量に満たない場合(NO)は、S110へ復帰し、診断回数がコンパレータ16の数量に達した場合(YES)は、S140へ移行する。すなわち、コンパレータ群14が有する全てのコンパレータ16を診断するまで、S110及びS120の処理工程を繰り返し行う。
S120 (Diagnosis count addition): After performing the processing step of S110, the diagnosis count is incremented by one.
S130 (diagnosis count determination): The diagnosis count and the quantity of the plurality of comparators 16 included in the comparator group 14 are compared. If the number of diagnoses is less than the quantity of the comparator 16 (NO), the process returns to S110, and if the number of diagnoses reaches the quantity of the comparator 16 (YES), the process proceeds to S140. In other words, the processing steps S110 and S120 are repeated until all the comparators 16 included in the comparator group 14 are diagnosed.

S140(監視回路の診断):図5に示すように、ピン機能制御手段50を用いて、出力インタフェース24から、ポート出力用のデータレジスタの設定値が出力されるように設定する。この際、ポート出力用のデータレジスタには、コンパレータ16が相違を示す際に出力する値と同じ値を設定する。そして、データレジスタの設定値を、出力インタフェース24及びサブCPU40の入力インタフェース42を介して、監視回路32へ入力する。   S140 (diagnosis of the monitoring circuit): As shown in FIG. 5, using the pin function control means 50, the output interface 24 is set so that the set value of the data register for port output is output. At this time, the same value as the value output when the comparator 16 indicates a difference is set in the data register for port output. Then, the set value of the data register is input to the monitoring circuit 32 via the output interface 24 and the input interface 42 of the sub CPU 40.

ここで、監視回路32が正常に動作していると仮定すると、監視回路32は、マイクロプロセッサ10’から、相違があることを示す信号を受信するため、マイクロプロセッサ10’に異常があると判定する。次に、監視回路32による判定結果を示す信号を、サブCPU40の出力インタフェース44、マイクロプロセッサ10’の入力インタフェース26を介して、故障判定回路28へ入力する。すると、故障判定回路28は、コンパレータ16が相違を示す際に出力する値と同じ値を設定した、ポート出力用のデータレジスタの設定値を受けて、監視回路32が異常発生の判定結果を出力したと判断する。このため、故障判定回路28により、監視回路32が正常に動作していると判定される。   Here, assuming that the monitoring circuit 32 is operating normally, the monitoring circuit 32 receives a signal indicating that there is a difference from the microprocessor 10 ′, and therefore determines that there is an abnormality in the microprocessor 10 ′. To do. Next, a signal indicating the determination result by the monitoring circuit 32 is input to the failure determination circuit 28 via the output interface 44 of the sub CPU 40 and the input interface 26 of the microprocessor 10 ′. Then, the failure determination circuit 28 receives the set value of the data register for port output in which the same value as the value output when the comparator 16 indicates a difference is received, and the monitoring circuit 32 outputs the determination result of occurrence of abnormality. Judge that For this reason, it is determined by the failure determination circuit 28 that the monitoring circuit 32 is operating normally.

一方、監視回路32が正常に動作していないと仮定すると、監視回路32は、マイクロプロセッサ10’から、相違があることを示す比較結果を受信するにも関わらず、マイクロプロセッサ10’に異常があると判定しない。このため、この判定結果を示す信号を故障判定回路28に入力すると、故障判定回路28は、コンパレータ16が相違を示す際に出力する値と同じ値を設定した、ポート出力用のデータレジスタの設定値を出力しているにも関わらず、監視回路32が、異常があることを示す信号を出力していないと判断し、監視回路32が正常に動作していないと判定する。
なお、上述した監視回路32から故障判定回路28への入力は、マイクロプロセッサ10’とサブCPU40との間のCPU間通信のラインにより行えばよい。
On the other hand, assuming that the monitoring circuit 32 is not operating normally, the monitoring circuit 32 receives a comparison result indicating that there is a difference from the microprocessor 10 ′, but the microprocessor 10 ′ has an abnormality. Not determined to be. For this reason, when a signal indicating this determination result is input to the failure determination circuit 28, the failure determination circuit 28 sets the same value as the value output when the comparator 16 indicates a difference, and sets the data register for port output. Although the value is output, the monitoring circuit 32 determines that the signal indicating that there is an abnormality is not output, and determines that the monitoring circuit 32 is not operating normally.
Note that the input from the monitoring circuit 32 to the failure determination circuit 28 described above may be performed via a communication line between CPUs between the microprocessor 10 ′ and the sub CPU 40.

S150(フェールセーフ回路の診断):図1(b)のS50と同様の処理を実行する。この際、出力インタフェース24から出力する信号を、ピン機能制御手段50を用いて、コンパレータ16が相違を示す際に出力する値と同じ値を設定したポート出力用のデータレジスタの設定値へ切り替えて、フェールセーフ回路34の診断を行ってもよい。   S150 (fail-safe circuit diagnosis): A process similar to S50 of FIG. 1B is executed. At this time, the signal output from the output interface 24 is switched using the pin function control means 50 to the set value of the data register for port output in which the same value as that output when the comparator 16 indicates a difference is set. The fail safe circuit 34 may be diagnosed.

以上説明したように、本発明の第2の実施の形態に係るマイクロプロセッサの異常診断方法は、図3に示すように、複数のコンパレータ16の各々の診断を、監視回路32及びフェールセーフ回路34を介さずに行うものである。すなわち、コンパレータ16の診断(S110)を、コンパレータ群14に含まれるコンパレータ16の数量分だけ繰り返し行った(S130)後に、監視回路32の診断(S140)及びフェールセーフ回路34の診断(S150)を行うものである。従って、本発明の第2の実施の形態に係るマイクロプロセッサの異常診断方法は、監視回路32の診断を繰り返し行う必要がないため、本発明の第1の実施の形態に係るマイクロプロセッサの異常診断方法よりも更に、診断時間を短縮することができる。   As described above, in the microprocessor abnormality diagnosis method according to the second embodiment of the present invention, as shown in FIG. 3, each of the plurality of comparators 16 is diagnosed by the monitoring circuit 32 and the fail-safe circuit 34. This is done without intervention. That is, after the diagnosis of the comparator 16 (S110) is repeated by the number of the comparators 16 included in the comparator group 14 (S130), the diagnosis of the monitoring circuit 32 (S140) and the diagnosis of the failsafe circuit 34 (S150) are performed. Is what you do. Therefore, the microprocessor abnormality diagnosis method according to the second embodiment of the present invention does not require repeated diagnosis of the monitoring circuit 32, and therefore the microprocessor abnormality diagnosis according to the first embodiment of the present invention. The diagnosis time can be further shortened than the method.

更に、本発明の第2の実施の形態に係るマイクロプロセッサの異常診断方法は、複数のコンパレータ16の診断を、監視回路32及びフェールセーフ回路34を介さずに行う、言い換えれば、複数のコンパレータ16の各々の診断のためにマイクロプロセッサから出力した信号を故障判定回路28が入力するようにしたものである。このため、各コンパレータ16と監視回路32とフェールセーフ回路34との間で、異常発生箇所を切り分けることができる。   Furthermore, in the microprocessor abnormality diagnosis method according to the second embodiment of the present invention, the diagnosis of the plurality of comparators 16 is performed without going through the monitoring circuit 32 and the fail-safe circuit 34. In other words, the plurality of comparators 16 The failure determination circuit 28 inputs a signal output from the microprocessor for each diagnosis. For this reason, an abnormality occurrence location can be separated among the comparators 16, the monitoring circuit 32, and the fail safe circuit 34.

次に、図6及び図7を参照して、第3の実施の形態に係るマイクロプロセッサの異常診断方法について説明する。なお、第3の実施の形態に係るマイクロプロセッサの異常診断方法は、図3〜図5に示した本発明の第2の実施の形態に係るマイクロプロセッサの異常診断方法との比較において、OR回路22からの出力をマイクロプロセッサ10”の外部に出力しない点を除き、同様の構成のものである。このため、本発明の第2の実施の形態に係るマイクロプロセッサの異常診断方法と、同様の部分の構成や処理については、説明を省略する。   Next, a microprocessor abnormality diagnosis method according to the third embodiment will be described with reference to FIGS. The microprocessor abnormality diagnosis method according to the third embodiment is different from the microprocessor abnormality diagnosis method according to the second embodiment of the present invention shown in FIGS. 22 except that the output from 22 is not output to the outside of the microprocessor 10 ″. For this reason, the microprocessor abnormality diagnosis method according to the second embodiment of the present invention is similar. The description of the configuration and processing of the parts is omitted.

図6及び図7の例において、マイクロプロセッサ10”は、出力インタフェース24の状態をマイクロプロセッサ10”の内部で参照可能なものである。このため、マイクロプロセッサ10”の故障判定回路28は、OR回路22の演算結果等を、出力インタフェース24から参照できる。又、出力インタフェース24は、通常時や監視回路32及びフェールセーフ回路34の診断時に、OR回路22の演算結果やポート出力用のレジスタの設定値を、マイクロプロセッサ10”から監視回路32へ出力するために用いられる。   6 and 7, the microprocessor 10 ″ can refer to the state of the output interface 24 inside the microprocessor 10 ″. Therefore, the failure determination circuit 28 of the microprocessor 10 ″ can refer to the operation result of the OR circuit 22 and the like from the output interface 24. The output interface 24 is used for diagnosis of the monitoring circuit 32 and the failsafe circuit 34 at normal times. At times, the calculation result of the OR circuit 22 and the set value of the register for port output are used to output from the microprocessor 10 ″ to the monitoring circuit 32.

第3の実施の形態に係るマイクロプロセッサの異常診断方法の処理の流れは、図3(b)に示した本発明の第2の実施の形態に係るマイクロプロセッサの異常診断方法の処理の流れと同様である。但し、コンパレータの診断(S110)では、故障判定回路28が、OR回路22の演算結果を、マイクロプロセッサ10”の外部を介することなく、出力インタフェース24から直接参照する。   The processing flow of the microprocessor abnormality diagnosis method according to the third embodiment is the same as the processing flow of the microprocessor abnormality diagnosis method according to the second embodiment of the present invention shown in FIG. It is the same. However, in the comparator diagnosis (S110), the failure determination circuit 28 refers directly to the calculation result of the OR circuit 22 from the output interface 24 without going outside the microprocessor 10 ″.

以上の如く、第3の実施の形態に係るマイクロプロセッサの異常診断方法は、図6及び図7に示すように、マイクロプロセッサ10”の内部において、OR回路22の演算結果、すなわち、診断対象のコンパレータ16の比較結果を、故障判定回路28により出力インタフェース24から直接参照して、診断対象のコンパレータ16を診断するものである。従って、第3の実施の形態に係るマイクロプロセッサの異常診断方法は、本発明の第2の実施の形態に係るマイクロプロセッサの異常診断方法と比較すると、診断対象のコンパレータ16の比較結果を、一端マイクロプロセッサ10”の外部に出力した後に、再度マイクロプロセッサ10”の内部に入力する必要がないため、診断時間を更に短縮することが可能である。   As described above, in the microprocessor abnormality diagnosis method according to the third embodiment, as shown in FIGS. 6 and 7, the calculation result of the OR circuit 22, that is, the diagnosis target, is provided inside the microprocessor 10 ″. The comparison result of the comparator 16 is directly referred to from the output interface 24 by the failure determination circuit 28 to diagnose the comparator 16 to be diagnosed.Therefore, the abnormality diagnosis method for the microprocessor according to the third embodiment is as follows. Compared with the microprocessor abnormality diagnosis method according to the second embodiment of the present invention, the comparison result of the comparator 16 to be diagnosed is output to the outside of the microprocessor 10 ″, and then the microprocessor 10 ″ again. Since it is not necessary to input inside, it is possible to further shorten the diagnosis time.

なお、上記説明中の「入力インタフェース」という表現は、マイクロプロセッサやサブCPUに信号を入力するための機能的な意味で用いている。従って、図示されている入力インタフェースの数が1つであっても、物理的には複数のピンを使用している場合があり、更に、同一の符号で示されている入力インタフェースであっても、物理的には別のピンを使用している場合もある。これは、上記説明中の「出力インタフェース」という表現についても同様である。   Note that the expression “input interface” in the above description is used in a functional sense for inputting a signal to a microprocessor or a sub CPU. Therefore, even if the number of input interfaces shown in the figure is one, there may be a case where a plurality of pins are physically used, and even input interfaces indicated by the same reference numerals may be used. In some cases, physically different pins are used. The same applies to the expression “output interface” in the above description.

10、10’、10”:マイクロプロセッサ、12a:マスタコア、12b:スレーブコア、16:コンパレータ、32:監視回路、34:フェールセーフ回路   10, 10 ', 10 ": Microprocessor, 12a: Master core, 12b: Slave core, 16: Comparator, 32: Monitoring circuit, 34: Fail-safe circuit

Claims (1)

冗長に駆動可能な2つのマイクロプロセッサコアと、該2つのマイクロプロセッサコアの各々に接続される複数のコンパレータと、故障判定回路とを含むマイクロプロセッサの異常診断方法であって、
前記マイクロプロセッサコアと前記複数のコンパレータとは、前記複数のコンパレータの演算結果に基づいて、外部の監視回路により動作が監視され、該監視回路は、前記マイクロプロセッサの異常検出時にフェールセーフ回路へフェールセーフ処理を実行させるものであり、
前記故障判定回路は、前記複数のコンパレータ毎に疑似故障信号を注入し、前記フェールセーフ回路を介さずに、或いは、前記監視回路及び前記フェールセーフ回路を介さずに、前記複数のコンパレータの各々の診断を行うことを特徴とするマイクロプロセッサの異常診断方法。
A microprocessor abnormality diagnosis method including two microprocessor cores that can be driven redundantly, a plurality of comparators connected to each of the two microprocessor cores, and a failure determination circuit,
The microprocessor core and the plurality of comparators are monitored for operation by an external monitoring circuit based on the calculation results of the plurality of comparators, and the monitoring circuit fails to detect a failure in the microprocessor. To perform safe processing,
The failure determination circuit injects a pseudo failure signal for each of the plurality of comparators, without passing through the fail-safe circuit, or without passing through the monitoring circuit and the fail-safe circuit. A method for diagnosing an abnormality in a microprocessor, comprising performing a diagnosis.
JP2014074210A 2014-03-31 2014-03-31 Abnormality diagnosis method for microprocessor of in-vehicle control device Active JP6274947B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2014074210A JP6274947B2 (en) 2014-03-31 2014-03-31 Abnormality diagnosis method for microprocessor of in-vehicle control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2014074210A JP6274947B2 (en) 2014-03-31 2014-03-31 Abnormality diagnosis method for microprocessor of in-vehicle control device

Publications (2)

Publication Number Publication Date
JP2015197729A true JP2015197729A (en) 2015-11-09
JP6274947B2 JP6274947B2 (en) 2018-02-07

Family

ID=54547388

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2014074210A Active JP6274947B2 (en) 2014-03-31 2014-03-31 Abnormality diagnosis method for microprocessor of in-vehicle control device

Country Status (1)

Country Link
JP (1) JP6274947B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11125824B2 (en) 2017-07-25 2021-09-21 Lg Chem, Ltd. Master battery management unit using power from battery module

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000259444A (en) * 1999-03-10 2000-09-22 Nec Ibaraki Ltd Data processor and its testing method
JP2006319055A (en) * 2005-05-11 2006-11-24 Seiko Epson Corp Semiconductor integrated circuit
JP2009516276A (en) * 2005-11-16 2009-04-16 ローベルト ボッシュ ゲゼルシャフト ミット ベシュレンクテル ハフツング Proplum control type unit and driving method thereof
JP2012160149A (en) * 2011-02-03 2012-08-23 Toshiba Corp Duplex circuit, semiconductor device and test method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000259444A (en) * 1999-03-10 2000-09-22 Nec Ibaraki Ltd Data processor and its testing method
JP2006319055A (en) * 2005-05-11 2006-11-24 Seiko Epson Corp Semiconductor integrated circuit
JP2009516276A (en) * 2005-11-16 2009-04-16 ローベルト ボッシュ ゲゼルシャフト ミット ベシュレンクテル ハフツング Proplum control type unit and driving method thereof
JP2012160149A (en) * 2011-02-03 2012-08-23 Toshiba Corp Duplex circuit, semiconductor device and test method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11125824B2 (en) 2017-07-25 2021-09-21 Lg Chem, Ltd. Master battery management unit using power from battery module

Also Published As

Publication number Publication date
JP6274947B2 (en) 2018-02-07

Similar Documents

Publication Publication Date Title
JP5739290B2 (en) Electronic control unit
JP6266239B2 (en) Microcomputer
JP6166473B2 (en) Motor control device
JP6133622B2 (en) Vehicle control device
JPWO2016203505A1 (en) Semiconductor device and diagnostic test method
JP2015118687A (en) Multiple micro cores monitoring device and method
CN109558277A (en) Microcontroller and its control method
JP2015103052A (en) On-vehicle electronic control device
JP6358107B2 (en) Power monitoring circuit
JP6274947B2 (en) Abnormality diagnosis method for microprocessor of in-vehicle control device
JP2018136937A (en) Alarm processing circuit and alarm processing method
JP2016192158A (en) Abnormality determination device, abnormality determination method, and abnormality determination program
JP2012150661A (en) Processor operation inspection system and its inspection method
JP2007293678A (en) Apparatus for diagnosing common bus connection
JP2006285734A (en) Method for diagnosing controller
JP2011126327A (en) On-vehicle controller
JP6710142B2 (en) Control system
JP2012160149A (en) Duplex circuit, semiconductor device and test method
JPWO2016084539A1 (en) In-vehicle transmission control device
JP4613019B2 (en) Computer system
JP2019158761A (en) Semiconductor device and trouble diagnosis method
JP5511475B2 (en) Signal processing system and signal source unit and signal processing unit used therefor
JP6660818B2 (en) Control device
JP6457149B2 (en) Electronic control unit
JP2020046979A (en) In-vehicle electronic control device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20160927

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20170802

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20170925

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: 20171213

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20180109

R150 Certificate of patent or registration of utility model

Ref document number: 6274947

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250