[go: up one dir, main page]

JP2009282849A - Microcomputer - Google Patents

Microcomputer Download PDF

Info

Publication number
JP2009282849A
JP2009282849A JP2008135750A JP2008135750A JP2009282849A JP 2009282849 A JP2009282849 A JP 2009282849A JP 2008135750 A JP2008135750 A JP 2008135750A JP 2008135750 A JP2008135750 A JP 2008135750A JP 2009282849 A JP2009282849 A JP 2009282849A
Authority
JP
Japan
Prior art keywords
data
ecc
error
circuit
memory
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.)
Withdrawn
Application number
JP2008135750A
Other languages
Japanese (ja)
Inventor
Manabu Yoshida
学 吉田
Hiroyuki Matsuda
祐幸 松田
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.)
Renesas Technology Corp
Original Assignee
Renesas Technology Corp
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 Renesas Technology Corp filed Critical Renesas Technology Corp
Priority to JP2008135750A priority Critical patent/JP2009282849A/en
Publication of JP2009282849A publication Critical patent/JP2009282849A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)
  • For Increasing The Reliability Of Semiconductor Memories (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To determine which of duplicated ECC circuits is wrong. <P>SOLUTION: Every time data are read from a memory (10), a first CPU (21) determines whether or not non-correspondence is detected from the result of comparison in a first comparison circuit (51), prescribed data for generating an ECC error are written to the memory on the basis of the determination, and processing to determine the failure of a first ECC circuit (41) from the failure of a second ECC circuit (42) is performed. According to the processing, the failure of the first ECC circuit and the failure of the second ECC circuit are discriminated, so that it can be determined which of the duplicated ECC circuits (41, 42) is wrong. <P>COPYRIGHT: (C)2010,JPO&INPIT

Description

本発明は、ECC(Error Correction Code)による誤り訂正機能を備えたマイクロコンピュータ、さらにはそれにおけるECC機能の診断技術に関するものである。   The present invention relates to a microcomputer having an error correction function based on ECC (Error Correction Code), and further relates to a diagnostic technique for the ECC function in the microcomputer.

ECCは、記憶装置などからデータを読み出す際、データの誤りを訂正するために本来のデータとは別に付加される冗長なデータを指しており、ECCによる誤り訂正機能は、コンピュータや通信の分野で持ち入れられているエラー訂正技術である。ある一定の情報をメモリから読み出したとき、あるいは受信したときに、その情報のエラーを検出し、最小単位の1ビットを自動的に訂正することができる。マイクロコンピュータにおいて、メモリから読み出されたデータの信頼性を向上させるには、プログラムなどのデータにECCを付加して記録し、読み出されたデータについてECCを用いて誤り訂正を行うことが有効とされる。ECC機能を実現するためのハードウェアは、ECC回路と称される。このECC回路では、ECC付き読み出しデータにエラーチェック処理を施し、読み出しデータに誤りがある場合には、その誤り訂正が行われる。そして誤り訂正が完了すると、ECCは不要であるので削除される。   ECC refers to redundant data that is added separately from the original data to correct data errors when data is read from a storage device or the like. The error correction function by ECC is used in the field of computers and communications. It is an error correction technology that has been introduced. When certain information is read from the memory or received, an error in the information can be detected and one bit of the minimum unit can be automatically corrected. In order to improve the reliability of the data read from the memory in a microcomputer, it is effective to add ECC to data such as a program and record it, and to perform error correction using the ECC for the read data It is said. Hardware for realizing the ECC function is referred to as an ECC circuit. In this ECC circuit, error check processing is performed on read data with ECC, and if there is an error in the read data, the error is corrected. When the error correction is completed, the ECC is unnecessary and is deleted.

例えば自動車の制御系などに使用されるマイクロコンピュータは、制御プログラムによって重要な制御を行っている。この制御プログラムを格納するプログラム格納用メモリの記憶内容が何らかの原因で変化した場合には、マイクロコンピュータは正しい制御を行うことができないので、危険な状態を招きかねない。従って自動車の制御系などに用いられるマイクロコンピュータのECC誤り訂正機能には高い信頼性が要求され、ECC回路自体の診断も必要とされる。   For example, a microcomputer used in an automobile control system performs important control by a control program. If the stored contents of the program storage memory for storing the control program change for some reason, the microcomputer cannot perform correct control, which may lead to a dangerous state. Accordingly, high reliability is required for the ECC error correction function of the microcomputer used in the control system of the automobile, and the ECC circuit itself needs to be diagnosed.

しかしながら、ECC回路を診断するためには、ECC回路を介して読み出したデータと期待値との比較が必要、かつECC回路を構成する論理式に基づきデータを導く必要があり、論理設計に起因するいろいろな組合せを考慮しなければならず、ソフトウェアが複雑化する。ソフトウェアが複雑化すると新たな不具合を発生させる原因になる。そこで、ECC回路を二重化し、二つのECC回路の出力信号が一致するか否かをコンパレータなどの比較器で検出することが考えられる(例えば特許文献1参照)。   However, in order to diagnose the ECC circuit, it is necessary to compare the data read through the ECC circuit with the expected value, and to derive the data based on the logical expression constituting the ECC circuit. Various combinations must be considered, and the software becomes complicated. If the software becomes complicated, it may cause new problems. Therefore, it is conceivable to duplicate the ECC circuit and detect whether or not the output signals of the two ECC circuits match with a comparator such as a comparator (for example, see Patent Document 1).

特開平4−153838号公報Japanese Patent Laid-Open No. 4-153838

しかしながら、ECC回路を二重化し、二つのECC回路の出力信号が一致するか否かをコンパレータなどの比較器で検出する構成においては、上記比較器によって二つのECC回路の出力信号の不一致は検出できても、二重化されたECC回路の何れが故障しているのかの判定はできない。また、上記比較器で不一致が検出された場合の処理として強制的にリセットすることが考えられるが、例えば自動車の制御系などに使用されるマイクロコンピュータの場合には、リセットによって周辺回路およびマイクロコンピュータの外部に接続される各種周辺回路での処理が不所望に中断され、それによって制御対象が暴走した場合には危険な状態を招きかねない。   However, in the configuration in which the ECC circuit is duplicated and the comparator or the like detects whether or not the output signals of the two ECC circuits match, the above comparator cannot detect the mismatch of the output signals of the two ECC circuits. However, it cannot be determined which of the duplicated ECC circuits is faulty. Further, it is conceivable to forcibly reset as a process when a mismatch is detected by the comparator. For example, in the case of a microcomputer used in a control system of an automobile, the peripheral circuit and the microcomputer are reset. If the processing in various peripheral circuits connected to the outside of the device is undesirably interrupted and the control target runs away, a dangerous state may be caused.

本発明の目的は、二重化されたECC回路の何れが故障しているかの判定を可能とする技術を提供することにある。   An object of the present invention is to provide a technique that makes it possible to determine which of the duplicated ECC circuits has failed.

また本発明の別の目的は、二重化されたECC回路の何れが故障しているかを判定し、その判定結果に基づいてマイクロコンピュータの信頼性を向上させるための技術を提供することにある。   Another object of the present invention is to provide a technique for determining which of the duplicated ECC circuits has failed and improving the reliability of the microcomputer based on the determination result.

本発明の前記並びにその他の目的と新規な特徴は本明細書の記述及び添付図面から明らかになるであろう。   The above and other objects and novel features of the present invention will be apparent from the description of this specification and the accompanying drawings.

本願において開示される発明のうち代表的なものについて簡単に説明すれば下記のとおりである。   A representative one of the inventions disclosed in the present application will be briefly described as follows.

すなわち、メモリからデータ読み出しが行われる毎に、第1CPUは、第1比較回路での比較結果から不一致を検出したか否かを判定し、それに基づいて上記メモリにECCエラーを発生させるための所定データを書き込み、第1ECC回路の故障と第2ECC回路の故障とを判別する処理を実行する。上記処理により、上記第1ECC回路の故障と上記第2ECC回路の故障との判別が行われ、このことが、二重化されたECC回路の何れが故障しているかの判定を可能とする。   That is, every time data is read from the memory, the first CPU determines whether or not a mismatch has been detected from the comparison result in the first comparison circuit, and based on this, a predetermined error for generating an ECC error in the memory is determined. Data is written, and processing for discriminating between the failure of the first ECC circuit and the failure of the second ECC circuit is executed. By the above processing, the failure of the first ECC circuit and the failure of the second ECC circuit are discriminated, and this makes it possible to determine which of the duplicated ECC circuits has failed.

本願において開示される発明のうち代表的なものによって得られる効果を簡単に説明すれば下記の通りである。   The effects obtained by the representative ones of the inventions disclosed in the present application will be briefly described as follows.

すなわち、二重化されたECC回路の何れが故障しているかの判定が可能とされる。また。二重化されたECC回路の何れが故障しているかを判定し、その判定結果に基づいてマイクロコンピュータの信頼性を向上させることができる。   That is, it is possible to determine which of the duplicated ECC circuits has failed. Also. It is possible to determine which of the duplicated ECC circuits has failed, and to improve the reliability of the microcomputer based on the determination result.

1.代表的な実施の形態
先ず、本願において開示される発明の代表的な実施の形態について概要を説明する。代表的な実施の形態についての概要説明で括弧を付して参照する図面の参照符号はそれが付された構成要素の概念に含まれるものを例示するに過ぎない。
1. Representative Embodiment First, an outline of a typical embodiment of the invention disclosed in the present application will be described. The reference numerals in the drawings referred to with parentheses in the outline description of the representative embodiments merely exemplify what are included in the concept of the components to which the reference numerals are attached.

〔1〕本発明の代表的な実施の形態に係るマイクロコンピュータ(1)は、データマットとECCマットとを含むメモリ(10)と、上記メモリのデータマットとECCマットのそれぞれにデータを書き込みおよび読み出し可能なメモリインタフェース(31、32)と、上記メモリから読み出されたデータのエラーチェックを行い、読み出しデータに誤りがある場合には当該データの誤り訂正を行う第1ECC回路(41)とが含まれる。また、上記メモリから読み出されたデータのエラーチェックを行い、読み出しデータに誤りがある場合には当該データの誤り訂正を行う第2ECC回路(42)と、上記第1ECC回路を内蔵する上記第1メモリインタフェース(31)を介して得られたデータを伝達可能な第1バス(61)と、上記第2ECC回路を内蔵する第2メモリインタフェース(32)を介して得られたデータを伝達可能な第2バス(62)とが含まれる。さらに、上記第1バスに結合され、上記第1バスを介して取り込まれたデータを処理可能な第1CPU(21)と、上記第2バスに結合され、上記第2バスを介して取り込まれたデータを処理可能な第2CPU(22)と、上記第1ECC回路の出力情報と上記第2ECC回路の出力情報とが一致するか否かの比較を可能とする第1比較回路(51)とが含まれる。そして、上記メモリからデータ読み出しが行われる毎に、上記第1CPUは、上記第1比較回路での比較結果に基づいて不一致を検出したか否かを判断し、不一致を検出した場合には、上記メモリのデータマットとECCマットのそれぞれにECCエラーを発生させるための所定データを書き込んだ後にそれを読み出し、上記第1ECC回路の故障と上記第2ECC回路の故障との判別を可能とする故障診断処理(S209〜S222)を実行する。   [1] A microcomputer (1) according to a typical embodiment of the present invention includes a memory (10) including a data mat and an ECC mat, and writes data to each of the data mat and the ECC mat of the memory. A readable memory interface (31, 32) and a first ECC circuit (41) that performs error check of data read from the memory and corrects the error of the read data when there is an error. included. Further, an error check of the data read from the memory is performed, and if there is an error in the read data, a second ECC circuit (42) for correcting the error of the data and the first ECC incorporating the first ECC circuit. A first bus (61) capable of transmitting data obtained via the memory interface (31) and a second bus capable of transmitting data obtained via the second memory interface (32) incorporating the second ECC circuit. 2 buses (62). Further, the first CPU (21) coupled to the first bus and capable of processing the data captured via the first bus, and the second CPU coupled to the second bus and captured via the second bus. A second CPU (22) capable of processing data, and a first comparison circuit (51) capable of comparing whether or not the output information of the first ECC circuit matches the output information of the second ECC circuit. It is. Each time data is read from the memory, the first CPU determines whether or not a mismatch is detected based on the comparison result in the first comparison circuit. Failure diagnosis processing for writing predetermined data for generating an ECC error in each of the data mat and the ECC mat of the memory and then reading the data so as to distinguish between the failure of the first ECC circuit and the failure of the second ECC circuit (S209 to S222) are executed.

上記メモリからデータ読み出しが行われる毎に、上記第1CPUは、上記第1比較回路での比較結果に基づいて不一致を検出したか否かを判断し、不一致を検出した場合には、上記故障診断処理故障診断処理(S209〜S222)により、上記第1ECC回路の故障と上記第2ECC回路の故障との判別が行われる。このことが、二重化されたECC回路の何れが故障しているかの判定を可能とする。   Each time data is read from the memory, the first CPU determines whether or not a mismatch has been detected based on the comparison result of the first comparison circuit. If a mismatch is detected, the failure diagnosis is performed. By the processing failure diagnosis processing (S209 to S222), the failure of the first ECC circuit and the failure of the second ECC circuit are determined. This makes it possible to determine which of the duplicated ECC circuits has failed.

〔2〕上記〔1〕において、上記第1CPUによる故障診断処理は、上記第1比較回路での比較結果に基づいて不一致検出を把握した場合、ECCエラーを発生させるための所定データを上記メモリのデータマットとECCマットのそれぞれに書き込んだ後にそれを読み出し、上記第1ECC回路及び上記第1バスを介して伝達された上記所定データを、上記所定データの誤り訂正後の期待値と比較し、その比較結果に基づいて、上記第1ECC回路の故障と上記第2ECC回路の故障との判別を可能とする処理を含めることができる。   [2] In the above [1], when the failure diagnosis processing by the first CPU grasps the mismatch detection based on the comparison result in the first comparison circuit, predetermined data for generating an ECC error is stored in the memory. After writing to each of the data mat and the ECC mat, the data mat is read out, and the predetermined data transmitted through the first ECC circuit and the first bus is compared with an expected value after error correction of the predetermined data. Based on the comparison result, it is possible to include a process that makes it possible to discriminate between the failure of the first ECC circuit and the failure of the second ECC circuit.

〔3〕上記〔1〕において、上記メモリから読み出され、上記第1ECC回路及び上記第1バスを介して伝達された第1読み出しデータと、上記メモリから読み出され、上記第2ECC回路及び上記第2バスを介して伝達された第2読み出しデータとが一致するか否かの比較を可能とする第2比較回路(52)を含めることができる。その場合において、上記第1CPUによる故障診断処理には、上記第1比較回路での比較結果に基づいて不一致検出を把握した場合、ECCエラーを発生させるための所定データを上記メモリのデータマットとECCマットのそれぞれに書き込んだ後にそれを読み出し、上記第1ECC回路及び上記第1バスを介して伝達された上記所定データを、上記所定データの誤り訂正後の期待値と比較し、その比較結果と、上記第1比較回路での比較結果と、上記第2比較回路での比較結果とに基づいて、上記第1ECC回路の故障と上記第2ECC回路の故障との判別を可能とする処理を含めることができる。   [3] In [1], the first read data read from the memory and transmitted via the first ECC circuit and the first bus, and read from the memory, the second ECC circuit, and the A second comparison circuit (52) that can compare whether the second read data transmitted through the second bus matches or not can be included. In that case, in the failure diagnosis processing by the first CPU, when the mismatch detection is grasped based on the comparison result in the first comparison circuit, the predetermined data for generating the ECC error is set as the data mat of the memory and the ECC. After writing to each of the mats, reading it, comparing the predetermined data transmitted via the first ECC circuit and the first bus with the expected value after error correction of the predetermined data, and the comparison result; Including a process that makes it possible to discriminate between the failure of the first ECC circuit and the failure of the second ECC circuit based on the comparison result of the first comparison circuit and the comparison result of the second comparison circuit. it can.

〔4〕上記〔3〕において、上記故障診断処理は、上記所定データと上記所定データの誤り訂正後の期待値とが一致せず、且つ、上記第1読み出しデータと上記第2読み出しデータとが一致しない場合には、上記第1ECC回路の故障と判断する第1処理(S219)と、上記所定データと上記所定データの誤り訂正後の期待値とが一致し、且つ、上記第1ECC回路でのエラーチェック結果と上記第2ECC回路でのエラーチェック結果とが一致しない場合には、上記第2ECC回路の故障と判断する第2処理(S215)とを含めることができる。   [4] In the above [3], in the failure diagnosis process, the predetermined data does not match an expected value after error correction of the predetermined data, and the first read data and the second read data are If they do not match, the first process (S219) for determining that the first ECC circuit has failed, the predetermined data and the expected value after error correction of the predetermined data match, and the first ECC circuit If the error check result does not match the error check result in the second ECC circuit, a second process (S215) for determining that the second ECC circuit has failed can be included.

〔5〕上記〔4〕において、上記第1CPU(21)は、上記故障診断処理において上記第2ECC回路の故障と判断した場合、リセットしても安全な状態へ遷移するためのシステム停止処理を実行し(S216)、その後、リセット処理に遷移する(S219)ように構成することができる。   [5] In [4], when the first CPU (21) determines that the second ECC circuit has failed in the failure diagnosis process, the first CPU (21) executes a system stop process for transitioning to a safe state even if reset. (S216), and thereafter, it can be configured to shift to a reset process (S219).

このようにリセット前の安全なシステム停止処理を実行し、その処理が完了した後にリセット処理に遷移されることにより、システム全体としての信頼性をさらに向上させることができる。   Thus, by executing the safe system stop process before resetting and shifting to the reset process after the process is completed, the reliability of the entire system can be further improved.

〔6〕上記〔4〕において、上記第1CPUは、上記故障診断処理において上記第1ECC回路の故障と判断した場合、速やかにリセット処理に遷移するように構成することができる。   [6] In the above [4], the first CPU can be configured to promptly transition to a reset process when it is determined in the fault diagnosis process that the first ECC circuit has failed.

〔7〕また、別の観点によれば、本発明の代表的な実施の形態に係る別のマイクロコンピュータ(1)において、第1CPUは、ECCエラーを発生させるための所定データを上記メモリのデータマットとECCマットのそれぞれに書き込んだ後にそれを読み出し、上記第1ECC回路及び上記第1バスを介して伝達された上記所定データを、上記所定データの誤り訂正後の期待値と比較し、その比較結果に基づいて、上記第1ECC回路の故障と上記第2ECC回路の故障との判別を可能とするエラーインジェクション処理(S202,S310〜S320)を実行するように構成することができる。   [7] According to another aspect, in another microcomputer (1) according to a representative embodiment of the present invention, the first CPU uses predetermined data for generating an ECC error as data in the memory. After writing to each of the mat and the ECC mat, it is read, and the predetermined data transmitted through the first ECC circuit and the first bus is compared with an expected value after error correction of the predetermined data, and the comparison Based on the result, it is possible to perform an error injection process (S202, S310 to S320) that makes it possible to distinguish between the failure of the first ECC circuit and the failure of the second ECC circuit.

〔8〕上記〔7〕において、上記エラーインジェクション処理は、所定の時間間隔で定期的に実行されるように構成することができる。   [8] In the above [7], the error injection processing can be configured to be periodically executed at predetermined time intervals.

〔9〕上記〔7〕において、上記エラーインジェクション処理は、上記マイクロコンピュータへの通電開始によるパワーオンリセットに起因して実行されるように構成することができる。   [9] In the above [7], the error injection process may be executed due to a power-on reset due to the start of energization of the microcomputer.

〔10〕上記〔7〕において、上記エラーインジェクション処理は、上記マイクロコンピュータのリセットに起因して実行されるように構成することができる。   [10] In the above [7], the error injection process may be executed due to resetting of the microcomputer.

2.実施の形態の説明
次に、実施の形態について更に詳述する。
2. Next, the embodiment will be described in more detail.

図4には、本発明にかかるマイクロコンピュータ(マイクロコントローラ又はマイクロプロセッサなどと称されることもある)が示される。図4に示されるマイクロコンピュータ1は、特に制限されないが、自動車の制御系システムに搭載されるもので、公知の半導体集積回路製造技術により単結晶シリコン基板などの一つの半導体基板に形成される。上記マイクロコンピュータ1は、特に制限されないが、第1割り込みコントローラ11、第2割り込みコントローラ12、メモリ10、第1CPU(中央処理装置)21、第2CPU22、第1メモリインタフェース31、第2メモリインタフェース32、第1比較回路51、第2比較回路52、PWMタイマ54、SCI(Serial Communication Interface)55、CAN(Controller Area Network)56、及びAD変換器57とを含む。   FIG. 4 shows a microcomputer according to the present invention (sometimes referred to as a microcontroller or a microprocessor). The microcomputer 1 shown in FIG. 4 is not particularly limited, but is mounted on a control system of an automobile, and is formed on one semiconductor substrate such as a single crystal silicon substrate by a known semiconductor integrated circuit manufacturing technique. The microcomputer 1 is not particularly limited, but includes a first interrupt controller 11, a second interrupt controller 12, a memory 10, a first CPU (central processing unit) 21, a second CPU 22, a first memory interface 31, a second memory interface 32, A first comparison circuit 51, a second comparison circuit 52, a PWM timer 54, an SCI (Serial Communication Interface) 55, a CAN (Controller Area Network) 56, and an AD converter 57 are included.

第1CPU21、第2CPU22は、それぞれメモリ10にロードされたプログラムに従って所定の演算処理を実行する。第1CPU21がメインCPUとされるとき、第2CPU22はサブCPUとされる。上記第1割り込みコントローラ11は、上記第1CPU21に対する割り込み処理を行い、上記第2割り込みコントローラ12は、上記第2CPU22に対する割り込み処理を行う。上記第1CPU21は、第1CPUバス61に結合され、この第1CPUバス61を介して各種データやアドレス信号及びコントロール信号のやり取りを可能とする。上記第2CPU21は、第2CPUバス62に結合され、この第2CPUバス62を介して各種データやアドレス信号及びコントロール信号のやり取りを可能とする。上記メモリ10は、ランダムアクセス可能なRAM(ランダム・アクセス・メモリ)とされ、上記第1CPU21や上記第2CPU22で実行されるプログラムや、そのプログラム実行に必要とされる各種データなどが格納される。上記メモリ10は、上記第1メモリインタフェース31を介して第1CPUバス61に結合される。また、上記メモリ10は、上記第2メモリインタフェース32を介して第2CPUバス62に結合される。上記第1メモリインタフェース31及び上記第2メモリインタフェース32には、ECC(Error Correction Code)回路が内蔵され、上記メモリから読み出されたデータのエラーチェックが行われ、読み出しデータに誤りがある場合には当該データの誤り訂正が行われるようになっている。また、上記第1メモリインタフェース31は、上記メモリ10のデータマット10AとECCマット10Bのそれぞれにデータを書き込む機能を有する。上記第1比較回路51は、上記第1メモリインタフェース31でのエラーチェック結果と、上記第2メモリインタフェース32でのエラーチェック結果とが一致するか否かを比較する。上記第2比較回路52は、第1メモリインタフェース31を介して上記第1CPUバス61に出力された読み出しデータと、第2メモリインタフェース32を介して第2CPUバス62に出力された読み出しデータとを比較する。上記第1CPUバス61には、バスブリッジ53を介して周辺バス63が結合される。この周辺バス57には、PWMタイマ54、SCI55、CAN56、及びAD変換器57が結合される。PWMタイマ54はPWMパルスを生成し、このPWMパルスのデューティ比を変化させる。上記PWMタイマ54は、上記PWMパルスのデューティ値パターンをセット可能なRAMと、PWMパルスの生成を可能とするPWMコントローラとを含む。上記PWMコントローラは、PWMカウンタを含み、上記PWMパルスの単位波形は、上記RAM内のデューティ値と上記PWMカウンタの出力値とのコンペアマッチにより生成され、上記コンペアマッチ毎に次のデューティ値が上記CPUの介在無しに上記RAMからロードされることで、上記PWMパルスのデューティ値の時系列変化が可能にされる。上記SCI55は、外部との間でシリアル通信を可能とする。上記CAN56は、所定のポートを介してコントロールエリアネットワークにおける各種情報のやり取りを可能とする。上記AD変換器57は、センサーなどから伝達されたアナログ信号をマイクロコンピュータ1での処理可能なディジタル信号に変換する。   Each of the first CPU 21 and the second CPU 22 executes predetermined arithmetic processing according to a program loaded in the memory 10. When the first CPU 21 is a main CPU, the second CPU 22 is a sub CPU. The first interrupt controller 11 performs an interrupt process for the first CPU 21, and the second interrupt controller 12 performs an interrupt process for the second CPU 22. The first CPU 21 is coupled to the first CPU bus 61, and enables various data, address signals, and control signals to be exchanged via the first CPU bus 61. The second CPU 21 is coupled to the second CPU bus 62, and allows various data, address signals, and control signals to be exchanged via the second CPU bus 62. The memory 10 is a random accessible RAM (random access memory), and stores programs executed by the first CPU 21 and the second CPU 22 and various data necessary for executing the programs. The memory 10 is coupled to the first CPU bus 61 via the first memory interface 31. The memory 10 is coupled to the second CPU bus 62 via the second memory interface 32. The first memory interface 31 and the second memory interface 32 have an ECC (Error Correction Code) circuit built therein, and an error check is performed on the data read from the memory, and there is an error in the read data. The error correction of the data is performed. The first memory interface 31 has a function of writing data to each of the data mat 10A and the ECC mat 10B of the memory 10. The first comparison circuit 51 compares whether or not the error check result in the first memory interface 31 matches the error check result in the second memory interface 32. The second comparison circuit 52 compares the read data output to the first CPU bus 61 via the first memory interface 31 and the read data output to the second CPU bus 62 via the second memory interface 32. To do. A peripheral bus 63 is coupled to the first CPU bus 61 via a bus bridge 53. A PWM timer 54, SCI 55, CAN 56, and AD converter 57 are coupled to the peripheral bus 57. The PWM timer 54 generates a PWM pulse and changes the duty ratio of the PWM pulse. The PWM timer 54 includes a RAM capable of setting the duty value pattern of the PWM pulse and a PWM controller capable of generating a PWM pulse. The PWM controller includes a PWM counter, and the unit waveform of the PWM pulse is generated by a compare match between the duty value in the RAM and the output value of the PWM counter, and the next duty value is set for each compare match. By loading from the RAM without CPU intervention, the duty value of the PWM pulse can be changed over time. The SCI 55 enables serial communication with the outside. The CAN 56 allows various information to be exchanged in the control area network via a predetermined port. The AD converter 57 converts an analog signal transmitted from a sensor or the like into a digital signal that can be processed by the microcomputer 1.

図1には、図4に示されるマイクロコンピュータにおける主要部の詳細な構成例が示される。   FIG. 1 shows a detailed configuration example of a main part of the microcomputer shown in FIG.

上記メモリ10は、データを格納するためのデータマット10Aと、このデータマット10Aに格納されたデータに対応するECCが格納されるECCマット10Bとが設けられている。上記データマット10Aからデータが読み出される場合には、それに対応するECCがECCマット10Bから読み出されるようになっている。上記第1メモリインタフェース31は上記データマット10Aと上記ECCマット10Bのそれぞれに所定データの書き込みを可能とする機能を有する。   The memory 10 is provided with a data mat 10A for storing data and an ECC mat 10B for storing ECC corresponding to the data stored in the data mat 10A. When data is read from the data mat 10A, the corresponding ECC is read from the ECC mat 10B. The first memory interface 31 has a function of allowing predetermined data to be written in each of the data mat 10A and the ECC mat 10B.

上記第1メモリインタフェース31は、上記メモリ10から読み出されたデータを、それに対応するECCに基づいてエラーチェックを行い、ECCエラーを生じた場合には、最小単位の1ビットを自動的に訂正するための第1ECC回路41と、ECCエラーを生じた場合に、そのエラーにかかるデータが格納されていたメモリ10におけるアドレス(「エラーアドレス」という)を一時的に保持するための第1エラーアドレスレジスタ71とを含む。上記エラーチェックの結果は、ECCエラー情報に反映される。このECCエラー情報は、1ビットのフラグ情報とされ、第1メモリインタフェース31内の適宜のレジスタに保持される。このECCエラー情報は、特に制限されないが、ECCエラーを生じた場合には論理値“1”とされ、ECCエラーを生じていない場合には論理値“0”とされる。上記第1エラーアドレスレジスタ71の保持情報(エラーアドレス)は第1CPUバス61を介して第1CPU21に出力される。上記メモリ10からの読み出しデータ(ECCエラーを生じた場合にはエラー訂正されたデータ)は、第1CPUバス61及び第1比較回路51に出力される。また、ECCエラーの有無を示すECCエラー情報は第1比較回路51及び割り込みコントローラ11,12に出力される。そして、上記メモリ10への書き込みデータ(ECC付データ)は、第1CPUバス61から上記第1メモリインタフェース31を介して上記メモリ10のデータマット10AとECCマット10Bへ伝達される。   The first memory interface 31 performs an error check on the data read from the memory 10 based on the corresponding ECC, and automatically corrects one bit of the minimum unit when an ECC error occurs. The first ECC circuit 41 for performing the error and the first error address for temporarily holding an address (referred to as an “error address”) in the memory 10 in which the data related to the error is stored when an ECC error occurs Register 71. The result of the error check is reflected in the ECC error information. This ECC error information is 1-bit flag information and is held in an appropriate register in the first memory interface 31. The ECC error information is not particularly limited, but has a logical value “1” when an ECC error has occurred, and has a logical value “0” when no ECC error has occurred. Information held in the first error address register 71 (error address) is output to the first CPU 21 via the first CPU bus 61. The read data from the memory 10 (data corrected when an ECC error occurs) is output to the first CPU bus 61 and the first comparison circuit 51. Also, ECC error information indicating the presence or absence of an ECC error is output to the first comparison circuit 51 and the interrupt controllers 11 and 12. Write data (data with ECC) to the memory 10 is transmitted from the first CPU bus 61 to the data mat 10A and the ECC mat 10B of the memory 10 via the first memory interface 31.

上記第2メモリインタフェース32は、上記メモリ10から読み出され、上記第1メモリインタフェース31に供給されるのと同一のデータ及びECCに基づいてエラーチェックを行い、ECCエラーを生じた場合には、最小単位の1ビットを自動的に訂正するための第2ECC回路42と、ECCエラーを生じた場合に、そのエラーにかかるデータが格納されていたメモリ10におけるアドレス(「エラーアドレス」という)を一時的に保持するための第2エラーアドレスレジスタ72とを含む。また、上記エラーチェックの結果は、ECCエラー情報に反映される。このECCエラー情報は、1ビットのフラグ情報とされ、第1メモリインタフェース31内の適宜のレジスタに保持される。このECCエラー情報は、特に制限されないが、ECCエラーを生じた場合には論理値“1”とされ、ECCエラーを生じていない場合には論理値“0”とされる。上記第2エラーアドレスレジスタ72の保持情報(エラーアドレス)は第2CPUバス62を介して第2CPU22に出力される。上記メモリ10からの読み出しデータ(ECCエラーを生じた場合にはエラー訂正されたデータ)は、第2CPUバス62及び第2比較回路52に出力される。また、ECCエラーの有無を示すECCエラー情報は第2比較回路52に出力される。このECCエラー情報も、特に制限されないが、上記第1メモリインタフェース31から出力されるのと同様に、ECCエラーを生じた場合には論理値“1”とされ、ECCエラーを生じていない場合には論理値“0”とされる。 上記第1比較回路51は、上記第1メモリインタフェース31から出力された読み出しデータと、上記第2メモリインタフェース32から出力された読み出しデータとを比較するためのコンパレータ511と、上記第1メモリインタフェース31から出力されたECCエラー情報と、上記第2メモリインタフェース32から出力されたECCエラー情報とを比較するためのコンパレータ512と、上記コンパレータ511,512の出力信号の論理和を得る論理和ゲート513とを含む。上記第1ECC回路41及び上記第2ECC回路42が正常に動作されている場合、上記第1メモリインタフェース31から出力された読み出しデータと、上記第2メモリインタフェース32から出力された読み出しデータとが一致し、上記第1メモリインタフェース31から出力されたECCエラー情報と、上記第2メモリインタフェース32から出力されたECCエラー情報とが一致する。この場合、上記コンパレータ511,512の出力信号は双方とも論理値“0”となり、論理和ゲート513の出力も論理値“0”となる。これに対して、上記第1メモリインタフェース31から出力された読み出しデータと、上記第2メモリインタフェース32から出力された読み出しデータとが不一致の場合、コンパレータ511の出力信号は論理値“1”となり、上記第1メモリインタフェース31から出力されたECCエラー情報と、上記第2メモリインタフェース32から出力されたECCエラー情報とが不一致の場合、コンパレータ512の出力信号は論理値“1”となる。従って、論理和ゲート513の出力信号が論理値“0”の場合には、第1ECC回路41及び第2ECC回路42は双方とも正常に動作しており、論理和ゲート513の出力信号(第1比較回路51の出力信号)が論理値“1”の場合には、第1ECC回路41又は第2ECC回路42が故障しているおそれがある。このような論理和ゲート513の出力信号は不一致検出信号として第1割り込みコントローラ11及び第2割り込みコントローラ12の双方に伝達される。   The second memory interface 32 performs an error check based on the same data and ECC read from the memory 10 and supplied to the first memory interface 31, and when an ECC error occurs, A second ECC circuit 42 for automatically correcting one bit of the minimum unit, and when an ECC error occurs, an address (referred to as an “error address”) in the memory 10 in which data relating to the error is stored is temporarily stored. And a second error address register 72 for holding the data. The result of the error check is reflected in the ECC error information. This ECC error information is 1-bit flag information and is held in an appropriate register in the first memory interface 31. The ECC error information is not particularly limited, but has a logical value “1” when an ECC error has occurred, and has a logical value “0” when no ECC error has occurred. Information held in the second error address register 72 (error address) is output to the second CPU 22 via the second CPU bus 62. Data read from the memory 10 (data corrected in the case of an ECC error) is output to the second CPU bus 62 and the second comparison circuit 52. Also, ECC error information indicating the presence or absence of an ECC error is output to the second comparison circuit 52. The ECC error information is not particularly limited, but is output as a logical value “1” when an ECC error occurs as in the case of the output from the first memory interface 31, and when no ECC error occurs. Is a logical value “0”. The first comparison circuit 51 includes a comparator 511 for comparing the read data output from the first memory interface 31 with the read data output from the second memory interface 32, and the first memory interface 31. A comparator 512 for comparing the ECC error information output from the second memory interface 32 with the ECC error information output from the second memory interface 32, and an OR gate 513 for obtaining a logical sum of the output signals of the comparators 511 and 512. including. When the first ECC circuit 41 and the second ECC circuit 42 are operating normally, the read data output from the first memory interface 31 and the read data output from the second memory interface 32 match. The ECC error information output from the first memory interface 31 matches the ECC error information output from the second memory interface 32. In this case, the output signals of the comparators 511 and 512 both have a logical value “0”, and the output of the OR gate 513 also has a logical value “0”. On the other hand, when the read data output from the first memory interface 31 and the read data output from the second memory interface 32 do not match, the output signal of the comparator 511 has a logical value “1”. When the ECC error information output from the first memory interface 31 and the ECC error information output from the second memory interface 32 do not match, the output signal of the comparator 512 has a logical value “1”. Therefore, when the output signal of the logical sum gate 513 is a logical value “0”, both the first ECC circuit 41 and the second ECC circuit 42 are operating normally, and the output signal of the logical sum gate 513 (first comparison) If the output signal of the circuit 51 is a logical value “1”, the first ECC circuit 41 or the second ECC circuit 42 may be broken. The output signal of the OR gate 513 is transmitted to both the first interrupt controller 11 and the second interrupt controller 12 as a mismatch detection signal.

上記第2比較回路52は、上記第1メモリインタフェース31及び上記第1CPUバス61を介して伝達された読み出しデータと、上記第2メモリインタフェース32及び上記第2CPUバス62を介して伝達された読み出しデータとを比較するためのコンパレータ521を含む。上記両データが一致すればコンパレータ521の出力信号は論理値“0”となり、上記両データが不一致の場合にはコンパレータ521の出力信号は論理値“1”となる。このようなコンパレータ521の出力信号は、不一致検出信号として第1割り込みコントローラ11及び第2割り込みコントローラ12の双方に伝達される。   The second comparison circuit 52 includes read data transmitted via the first memory interface 31 and the first CPU bus 61, and read data transmitted via the second memory interface 32 and the second CPU bus 62. Is included. If the two data match, the output signal of the comparator 521 has a logical value “0”. If the two data do not match, the output signal of the comparator 521 has a logical value “1”. The output signal of the comparator 521 is transmitted to both the first interrupt controller 11 and the second interrupt controller 12 as a mismatch detection signal.

上記第1割り込みコントローラ11は、上記第1メモリインタフェース31からのECCエラー情報や、上記第1比較回路51からの不一致検出結果、上記第2比較回路52からの不一致検出結果を取り込み、所定の優先順位に従って上記第1CPU21に対する割り込み制御を行う。   The first interrupt controller 11 takes in ECC error information from the first memory interface 31, a mismatch detection result from the first comparison circuit 51, and a mismatch detection result from the second comparison circuit 52, and has a predetermined priority. Interrupt control for the first CPU 21 is performed according to the order.

上記第2割り込みコントローラ12は、上記第2メモリインタフェース32からのECCエラー情報や、上記第1比較回路51からの不一致検出結果、上記第2比較回路52からの不一致検出結果を取り込み、所定の優先順位に従って上記第2CPU22に対する割り込み制御を行う。   The second interrupt controller 12 takes in ECC error information from the second memory interface 32, a mismatch detection result from the first comparison circuit 51, and a mismatch detection result from the second comparison circuit 52, and has a predetermined priority. Interrupt control for the second CPU 22 is performed according to the order.

上記第1CPU21は、上記第1CPUバス61を介して上記メモリ10からの読み出しデータ(命令を含む)を取得して所定の演算処理を実行する。また、上記第1CPUバス61を介して上記第1メモリインタフェース31に対して上記メモリ10への書き込みデータを出力する。そして、上記第1CPU21は、上記第1割り込みコントローラ11からの割り込み要求に応じて、所定の割り込み処理を実行する。   The first CPU 21 acquires read data (including instructions) from the memory 10 via the first CPU bus 61 and executes predetermined arithmetic processing. Also, write data to the memory 10 is output to the first memory interface 31 via the first CPU bus 61. The first CPU 21 executes predetermined interrupt processing in response to an interrupt request from the first interrupt controller 11.

上記第2CPU22は、上記第2CPUバス62を介して上記メモリ10からの読み出しデータ(命令を含む)を取得して所定の演算処理を実行する。また、上記第2CPUバス62を介して上記第2メモリインタフェース32に対して上記メモリ10への書き込みデータを出力する。そして、上記第2CPU22は、上記第2割り込みコントローラ12からの割り込み要求に応じて、所定の割り込み処理を実行する。   The second CPU 22 acquires read data (including instructions) from the memory 10 via the second CPU bus 62 and executes predetermined arithmetic processing. Also, write data to the memory 10 is output to the second memory interface 32 via the second CPU bus 62. The second CPU 22 executes a predetermined interrupt process in response to an interrupt request from the second interrupt controller 12.

上記第1比較回路51からの不一致検出結果、上記第2比較回路52からの不一致検出結果は、上記第1CPU21や上記第2CPU22へも伝達されるようなっている。これによって、第1CPU21や上記第2CPU22は、上記第1比較回路51での不一致検出結果や、上記第2比較回路52での不一致検出結果を把握することができる。   The mismatch detection result from the first comparison circuit 51 and the mismatch detection result from the second comparison circuit 52 are also transmitted to the first CPU 21 and the second CPU 22. Accordingly, the first CPU 21 and the second CPU 22 can grasp the mismatch detection result in the first comparison circuit 51 and the mismatch detection result in the second comparison circuit 52.

図2には、上記マイクロコンピュータ1における主要な処理の流れが示される。   FIG. 2 shows a main processing flow in the microcomputer 1.

上記第1CPU21及び第2CPU22では、メモリ10から取得した命令(プログラム)を実行することによって、例えば自動車における制御対象の動作を制御する。このとき、上記第1CPU21及び第2CPU22では、SCI55やACN56を介して外部との間で各種情報のやり取りを可能とする。また、各種センサーからのアナログ信号がAD変換器57を介して取り込むことができる。さらに、PWMタイマ54を制御してPWMパルスのデューティ比を変化させる。このような動作を「通常動作」という。そして、上記マイクロコンピュータ1は、必要に応じて通常動作からエラーインジェクション処理へ遷移することができる。通常動作がメインルーチンで行われるとき、上記エラーインジェクション処理はサブルーチンで行われる。このようなエラーインジェクション処理は、上記マイクロコンピュータ1の信頼性をさらに向上させるために、所定の時間間隔(例えば10分間隔)で定期的に実施される。例えば上記第1CPU21及び第2CPU22では、エラーインジェクション処理を実施するか否かの判別が行われ(S201)、この判別に基づいて、通常動作からエラーインジェクション処理に遷移される。尚、上記エラーインジェクション処理については、後に図3を参照しながら詳述する。   The first CPU 21 and the second CPU 22 execute an instruction (program) acquired from the memory 10 to control, for example, an operation to be controlled in an automobile. At this time, the first CPU 21 and the second CPU 22 can exchange various information with the outside via the SCI 55 and the ACN 56. In addition, analog signals from various sensors can be taken in via the AD converter 57. Further, the PWM timer 54 is controlled to change the duty ratio of the PWM pulse. Such an operation is called “normal operation”. The microcomputer 1 can make a transition from normal operation to error injection processing as necessary. When the normal operation is performed in the main routine, the error injection process is performed in a subroutine. Such error injection processing is periodically performed at predetermined time intervals (for example, every 10 minutes) in order to further improve the reliability of the microcomputer 1. For example, the first CPU 21 and the second CPU 22 determine whether or not to perform an error injection process (S201). Based on this determination, the normal operation is shifted to the error injection process. The error injection processing will be described in detail later with reference to FIG.

上記エラーインジェクション処理が終了されて通常動作が再開され(S203)、上記第1CPU21及び第2CPU22によるメモリアクセスが発生すると(S204)、このメモリアクセスがメモリ10からのリードアクセスか否かの判別が行われ(S205)、リードアクセスの場合には、上記第1比較回路51および上記第2比較回路52において不一致検出が行われる(S206)。メモリ10からのリードアクセスにて上記第1比較回路51の不一致または上記第2比較回路52の不一致を検出した場合には、不一致検出結果が論理値“1”とされ、それに基づいて第1割り込みコントローラ11及び第2割り込みコントローラ12によって、それぞれ第1CPU21及び第2CPU22に対して割り込み要求が発生される(S207)。この割り込み要求を受けて、第1CPU21及び第2CPU22では、当該割り込み要求に対して直ぐにリセットする必要があるか否かの判別が行われる(S208)。当該割り込み要求に対して、直ぐにリセットする必要が無いと判断された場合は、故障診断処理に遷移される。この故障診断処理は、ステップS209〜S222の処理を含む。   When the error injection process is finished and normal operation is resumed (S203), and memory access by the first CPU 21 and the second CPU 22 occurs (S204), it is determined whether or not this memory access is a read access from the memory 10. In the case of read access (S205), mismatch detection is performed in the first comparison circuit 51 and the second comparison circuit 52 (S206). When a mismatch of the first comparison circuit 51 or a mismatch of the second comparison circuit 52 is detected by read access from the memory 10, the mismatch detection result is set to a logical value “1”, and the first interrupt is based on the result. The controller 11 and the second interrupt controller 12 generate an interrupt request to the first CPU 21 and the second CPU 22, respectively (S207). Upon receiving this interrupt request, the first CPU 21 and the second CPU 22 determine whether or not it is necessary to immediately reset the interrupt request (S208). If it is determined that there is no need to immediately reset the interrupt request, the process proceeds to failure diagnosis processing. This failure diagnosis process includes the processes of steps S209 to S222.

上記故障診断処理は以下のように行われる。   The failure diagnosis process is performed as follows.

不一致を検出した場合、不一致が発生したメモリアドレスがエラーアドレスレジスタ71,72に保持されているため、このエラーアドレスが、第1CPU21及び第2CPU22により読み出される(S209)。そして、第1CPU21は、上記メモリ10における上記エラーアドレスのデータマット10AとECCマット10Bのそれぞれに、ECCエラーを発生させるための所定データ(読み出された際にECCエラーとなってしまうデータを意味し、以下、それを「テストデータ」と称する)を書き込む(S210)。そして、上記第1CPU21は、上記ECCエラーを発生させるためのテストデータが第1ECC回路41によってエラー訂正された場合の期待値を、上記第1CPU21内の適宜のレジスタに保持する(S211)。次に第1CPU21は、上記第1メモリインタフェース31を介して上記メモリ10から上記テストデータを読出しを行う(S212)。このとき、第1ECC回路41では、上記メモリ10から読み出されたテストデータのエラー訂正が行われる。第1CPU21は、上記第1ECC回路41でエラー訂正が行われたテストデータと、上記ステップS211で内部の適宜のレジスタに格納しておいた期待値とを比較する(S213)。この比較において、エラー訂正が行われたテストデータと期待値とが不一致であると判断された場合には、第2比較回路52での比較結果は一致か否かの判別が行われる(S217)。この判別において、第2比較回路52での比較結果は不一致であると判断された場合には、第1ECC回路41が故障していると判断し(S219)、この場合には、第1CPU21によるリセット処理に遷移される(S220)。また、上記ステップS217の判別において、第2比較回路52での比較結果は一致すると判断された場合には、第2比較回路52の故障と判断し(S218)、第1CPU21によるリセット処理に遷移される(S220)。さらに、上記ステップS213の判別において、エラー訂正が行われたテストデータと期待値とが一致すると判断された場合には、上記第1比較回路51での比較結果は一致か否かの判別が行われる(S214)。この判別において、上記第1比較回路51での比較結果は不一致であると判断された場合、上記第2ECC回路42の故障が疑われるが(S215)、上記第1ECC回路41は正常であり、第1メモリインタフェース31を介することにより正しいデータを取得できることから、直ちにリセット処理に遷移する必要はなく、むしろ、リセット前の安全なシステム停止処理を実行し(S216)、その処理が完了した後にリセットする(S220)ようにしたほうが、システム全体としての信頼性を向上させる上で好ましい。ここで、「リセット前の安全なシステム停止処理」とは、直ちにシステムがリセットされた場合に不都合を生ずる場合の回避措置であり、例えば現在、モータのPWM制御中であれば、当該モータの回転を安全に停止させるための処理を挙げることができる。また、SCI55やCAN56を介して通信が行われている場合には、当該通信が終了するまでリセットするのを待ったほうが良い場合があり、かかる場合においては、通信が終了するまでリセットするのを待たせる処理も、上記ステップS216における「リセット前の安全なシステム停止処理」に含めることができる。さらに、A/D変換器57によって入力アナログ信号のA/D変換処理が行われている場合には、当該A/D変換処理が終了するまでリセットするのを待たせる処理も、上記ステップS216における「リセット前の安全なシステム停止処理」に含めることができる。   When a mismatch is detected, the memory address where the mismatch occurred is held in the error address registers 71 and 72, so this error address is read by the first CPU 21 and the second CPU 22 (S209). Then, the first CPU 21 means predetermined data for generating an ECC error in each of the data mat 10A and the ECC mat 10B of the error address in the memory 10 (meaning data that becomes an ECC error when read). (Hereinafter referred to as “test data”) (S210). Then, the first CPU 21 holds an expected value when the test data for generating the ECC error is error-corrected by the first ECC circuit 41 in an appropriate register in the first CPU 21 (S211). Next, the first CPU 21 reads the test data from the memory 10 via the first memory interface 31 (S212). At this time, the first ECC circuit 41 performs error correction on the test data read from the memory 10. The first CPU 21 compares the test data that has been subjected to error correction by the first ECC circuit 41 with the expected value stored in an appropriate internal register in step S211 (S213). In this comparison, when it is determined that the test data subjected to error correction and the expected value do not match, it is determined whether or not the comparison result in the second comparison circuit 52 matches (S217). . In this determination, if it is determined that the comparison result in the second comparison circuit 52 is inconsistent, it is determined that the first ECC circuit 41 is out of order (S219). In this case, the reset by the first CPU 21 is performed. A transition is made to processing (S220). If it is determined in step S217 that the comparison results in the second comparison circuit 52 match, it is determined that the second comparison circuit 52 is out of order (S218), and a transition is made to reset processing by the first CPU 21. (S220). Further, if it is determined in step S213 that the test data subjected to error correction matches the expected value, it is determined whether or not the comparison result in the first comparison circuit 51 matches. (S214). In this determination, if it is determined that the comparison result in the first comparison circuit 51 is inconsistent, a failure of the second ECC circuit 42 is suspected (S215), but the first ECC circuit 41 is normal and the first ECC circuit 41 is normal. Since correct data can be acquired via the one memory interface 31, it is not necessary to immediately shift to the reset process. Rather, a safe system stop process before reset is executed (S216), and reset is performed after the process is completed. (S220) is preferable in terms of improving the reliability of the entire system. Here, the “safe system stop process before reset” is an avoidance measure in the case of inconvenience when the system is reset immediately. For example, if the motor is currently under PWM control, the rotation of the motor A process for safely stopping can be mentioned. In addition, when communication is performed via the SCI 55 or the CAN 56, it may be better to wait for the reset until the communication ends. In such a case, the reset is waited until the communication ends. Can also be included in the “safe system stop process before reset” in step S216. Further, when A / D conversion processing of the input analog signal is performed by the A / D converter 57, processing for waiting for reset until the A / D conversion processing is completed is also performed in step S216. It can be included in “safe system stop processing before reset”.

また、上記ステップS214の判別において、上記第1比較回路51での比較結果は一致すると判断された場合、故障ではないにもかかわらず、何らかの原因で一時的に故障検出されたと考えられるため(S221)、リセットするか否かの判別を行う(S222)。この判別においてリセットの必要がある(yes)と判断された場合には、リセット前の安全なシステム停止処理を行った後にリセットされる(S216,S220)。また、上記ステップS222の判別において、リセットの必要はない(no)と判断された場合には、故障診断処理が終了され、通常動作が開始される(S203)。   In the determination in step S214, if it is determined that the comparison results in the first comparison circuit 51 match, it is considered that a failure has been temporarily detected for some reason even though it is not a failure (S221). ), It is determined whether or not to reset (S222). If it is determined in this determination that reset is necessary (yes), the system is reset after performing a safe system stop process before reset (S216, S220). If it is determined in step S222 that no reset is required (no), the failure diagnosis process is terminated and normal operation is started (S203).

上記故障診断処理が実行されることで、第1CC回路41及び第2ECC回路42の何れが故障しているのかを判定することができ、しかも故障の場合にはシステムがリセットされることで、エラーにかかるデータに基づく不所望な処理が回避され、また、必要に応じてリセット要求前の安全なシステム停止処理(S216)が行われることで、マイクロコンピュータ1による動作制御の信頼性の向上を図ることができる。   By executing the fault diagnosis process, it is possible to determine which of the first CC circuit 41 and the second ECC circuit 42 is faulty, and in the case of a fault, the system is reset, so that an error occurs. Undesirable processing based on the data is avoided, and if necessary, safe system stop processing (S216) before a reset request is performed, thereby improving the reliability of operation control by the microcomputer 1. be able to.

次に、上記ステップS202のエラーインジェクション処理について、図3を参照しながら説明する。上記ステップS202のエラーインジェクション処理は、ECCエラーを発生させるためのテストデータを上記メモリ10のデータマット10AとECCマット10Bのそれぞれに書き込んだ後にそれを読み出し、上記第1ECC回路41及び上記第1CPUバスを介して伝達された上記テストデータを、上記テストデータの誤り訂正後の期待値と比較し、その比較結果に基づいて、上記第1ECC回路41の故障と上記第2ECC回路42の故障との判別を可能とするもので、基本的には図2における故障診断処理と同様の処理とされる。ただし、上記ステップS202のエラーインジェクション処理では、通常動作における上記メモリ10へのリードアクセスの有無にかかわらず、任意のアドレスのデータマットとECCマットのそれぞれにテストデータの書き込みが行われる点が大きく相違する。すなわち、上記ステップS202のエラーインジェクション処理では、図3に示されるように、第1CPU21によって、上記メモリ10における任意のアドレスのデータマットとECCマットのそれぞれに、ECCエラーを発生させるためのテストデータの書き込みが行われる(S310)。そして、上記第1CPU21は、上記ECCエラーを発生させるためのテストデータが第1ECC回路41によってエラー訂正された場合の期待値を、上記第1CPU21内の適宜のレジスタに保持する(S311)。次に第1CPU21は、上記第1メモリインタフェース31を介して上記メモリ10から上記テストデータを読出しを行う(S312)。このとき、第1ECC回路41では、上記メモリ10から読み出されたテストデータのエラー訂正が行われる。第1CPU21は、上記第1ECC回路41でエラー訂正が行われたテストデータと、上記ステップS211で内部の適宜のレジスタに格納しておいた期待値とを比較する(S313)。この比較において、エラー訂正が行われたテストデータと期待値とが不一致であると判断された場合には、第2比較回路52での比較結果は一致か否かの判別が行われる(S317)。この判別において、第2比較回路52での比較結果は不一致であると判断された場合には、第1ECC回路41が故障していると判断し(S319)、この場合には、第1CPU21によるリセット処理に遷移される(S320)。また、上記ステップS317の判別において、第2比較回路52での比較結果は一致すると判断された場合には、第2比較回路52の故障と判断し(S318)、第1CPU21によるリセット処理に遷移される(S320)。さらに、上記ステップS313の判別において、エラー訂正が行われたテストデータと期待値とが一致すると判断された場合には、上記第1比較回路51での比較結果は一致か否かの判別が行われる(S314)。この判別において、上記第1比較回路51での比較結果は不一致であると判断された場合、上記第2ECC回路42の故障と判断し(S315)、リセット前の安全なシステム停止処理が行われ(S316)、その処理が完了した後にリセット処理に遷移される(S320)。ここで、リセット前の安全なシステム停止処理とは、直ちにシステムがリセットされた場合に不都合を生ずる場合の回避措置であり、その具体例は図2におけるステップ216の場合と同様とされる。   Next, the error injection process in step S202 will be described with reference to FIG. In the error injection process in step S202, test data for generating an ECC error is written in each of the data mat 10A and the ECC mat 10B of the memory 10 and then read out, and the first ECC circuit 41 and the first CPU bus are read out. The test data transmitted via the test data is compared with the expected value after error correction of the test data, and based on the comparison result, the failure of the first ECC circuit 41 and the failure of the second ECC circuit 42 are discriminated. This is basically the same process as the fault diagnosis process in FIG. However, the error injection process in step S202 is greatly different in that test data is written to each of the data mat and the ECC mat at an arbitrary address regardless of the presence or absence of read access to the memory 10 in the normal operation. To do. That is, in the error injection process of step S202, as shown in FIG. 3, the first CPU 21 generates test data for generating an ECC error in each of the data mat and the ECC mat at an arbitrary address in the memory 10. Writing is performed (S310). The first CPU 21 holds an expected value when the test data for generating the ECC error is error-corrected by the first ECC circuit 41 in an appropriate register in the first CPU 21 (S311). Next, the first CPU 21 reads the test data from the memory 10 via the first memory interface 31 (S312). At this time, the first ECC circuit 41 performs error correction on the test data read from the memory 10. The first CPU 21 compares the test data corrected by the first ECC circuit 41 with the expected value stored in the appropriate internal register in step S211 (S313). In this comparison, when it is determined that the test data subjected to error correction and the expected value do not match, it is determined whether or not the comparison result in the second comparison circuit 52 matches (S317). . In this determination, if it is determined that the comparison result in the second comparison circuit 52 is inconsistent, it is determined that the first ECC circuit 41 has failed (S319). In this case, the reset by the first CPU 21 is performed. A transition is made to processing (S320). If it is determined in step S317 that the comparison results in the second comparison circuit 52 match, it is determined that the second comparison circuit 52 is out of order (S318), and a transition is made to reset processing by the first CPU 21. (S320). Further, if it is determined in step S313 that the test data subjected to error correction and the expected value match, it is determined whether or not the comparison result in the first comparison circuit 51 matches. (S314). In this determination, if it is determined that the comparison result in the first comparison circuit 51 is inconsistent, it is determined that the second ECC circuit 42 has failed (S315), and a safe system stop process before resetting is performed ( (S316) After the completion of the process, the process proceeds to a reset process (S320). Here, the safe system stop process before resetting is a measure for avoiding inconvenience when the system is immediately reset, and a specific example thereof is the same as that in step 216 in FIG.

また、上記ステップS314の判別において、上記第1比較回路51での比較結果は一致すると判断された場合には、本サブルーチンによるエラーインジェクション処理が終了され、図2に示されるメインルーチンに戻され、通常動作が開始される(S203)。   If it is determined in step S314 that the comparison results in the first comparison circuit 51 match, the error injection process according to this subroutine is terminated, and the process returns to the main routine shown in FIG. Normal operation is started (S203).

このようなエラーインジェクション処理が、所定の時間間隔で定期的に実行されることで、第1CC回路41及び第2ECC回路42の何れが故障しているのかを判定することができ、しかも故障の場合にはシステムがリセットされることで、エラーにかかるデータに基づく不所望な処理が回避され、また、必要に応じてリセット要求前の安全なシステム停止処理(S316)が行われることで、マイクロコンピュータ1による動作制御の信頼性の向上を図ることができる。   Such error injection processing is periodically executed at predetermined time intervals, so that it is possible to determine which of the first CC circuit 41 and the second ECC circuit 42 has failed, and in the case of a failure. By resetting the system, undesired processing based on error-related data is avoided, and if necessary, safe system stop processing (S316) before a reset request is performed, so that the microcomputer The reliability of the operation control by 1 can be improved.

上記の例によれば、以下の作用効果を得ることができる。   According to the above example, the following effects can be obtained.

(1)上記メモリ10からデータ読み出しが行われる毎に、上記第1CPU21は、第1比較回路52での比較結果に基づいてECCエラーを生じたか否かを判断し、ECCエラーを生じた場合には、上記第1ECC回路の故障と上記第2ECC回路の故障との判別を可能とする故障診断処理故障診断処理(S209〜S222)が行われることで、二重化されたECC回路の何れが故障しているかの判定を行うことができる。   (1) Each time data is read out from the memory 10, the first CPU 21 determines whether an ECC error has occurred based on the comparison result in the first comparison circuit 52, and when an ECC error has occurred. The fault diagnosis process (S209 to S222) that makes it possible to discriminate between the failure of the first ECC circuit and the failure of the second ECC circuit causes any of the duplicated ECC circuits to fail. Can be determined.

(2)上記ステップS217の判別において、第2比較回路52での比較結果は一致すると判断された場合には、第2比較回路52の故障と判断し(S218)、第1CPU21によるリセット処理に遷移される(S220)。さらに、上記ステップS213の判別において、エラー訂正が行われたテストデータと期待値とが一致すると判断された場合には、上記第1比較回路51での比較結果は一致か否かの判別が行われる(S214)。この判別において、上記第1比較回路51での比較結果は不一致であると判断された場合には、直ちにリセット処理に遷移する必要はなく、リセット前の安全なシステム停止処理を実行し(S216)、その処理が完了した後にリセット処理に遷移される(S220)ことにより、システム全体としての信頼性をさらに向上させることができる。   (2) If it is determined in step S217 that the comparison results in the second comparison circuit 52 match, it is determined that the second comparison circuit 52 is out of order (S218), and a transition is made to reset processing by the first CPU 21. (S220). Further, if it is determined in step S213 that the test data subjected to error correction matches the expected value, it is determined whether or not the comparison result in the first comparison circuit 51 matches. (S214). In this determination, if it is determined that the comparison result in the first comparison circuit 51 does not match, it is not necessary to immediately shift to the reset process, and a safe system stop process before the reset is executed (S216). After the processing is completed, the transition to the reset processing is performed (S220), so that the reliability of the entire system can be further improved.

(3)エラーインジェクション処理(S202)が所定の時間間隔で定期的に実施されることにより、上記マイクロコンピュータ1の信頼性をさらに向上させることができる。   (3) Since the error injection process (S202) is periodically performed at predetermined time intervals, the reliability of the microcomputer 1 can be further improved.

以上本発明者によってなされた発明を具体的に説明したが、本発明はそれに限定されるものではなく、その要旨を逸脱しない範囲で種々変更可能であることはいうまでもない。   Although the invention made by the present inventor has been specifically described above, the present invention is not limited thereto, and it goes without saying that various changes can be made without departing from the scope of the invention.

例えば、電源投入に起因して行われるパワーオンリセットや、割り込み等のリセット処理の際に、上記エラーインジェクション処理(S202)が行われるようにしても良い。このようにすることで、上記マイクロコンピュータ1の信頼性をさらに向上させることができる。   For example, the error injection process (S202) may be performed at the time of a power-on reset performed due to power-on or a reset process such as an interrupt. By doing so, the reliability of the microcomputer 1 can be further improved.

本発明にかかるマイクロコンピュータにおける主要部の詳細な構成例ブロック図である。It is a block diagram of a detailed configuration example of a main part in the microcomputer according to the present invention. 上記マイクロコンピュータにおける故障診断の流れを示すフローチャートである。It is a flowchart which shows the flow of the failure diagnosis in the said microcomputer. 上記マイクロコンピュータにおけるエラーインジェクション処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the error injection process in the said microcomputer. 上記マイクロコンピュータにおける全体的な構成例ブロック図である。It is a block diagram of an example of the overall configuration of the microcomputer.

符号の説明Explanation of symbols

1 マイクロコンピュータ
10 メモリ
10A データマット
10B ECCマット
11 第1割り込みコントローラ
12 第2割り込みコントローラ
21 第1CPU
22 第2CPU
31 第1メモリインタフェース
32 第2メモリインタフェース
41 第1ECC回路
42 第2ECC回路
51 第1比較回路
52 第2比較回路
61 第1CPUバス
62 第2CPUバス
DESCRIPTION OF SYMBOLS 1 Microcomputer 10 Memory 10A Data mat 10B ECC mat 11 1st interrupt controller 12 2nd interrupt controller 21 1st CPU
22 Second CPU
31 1st memory interface 32 2nd memory interface 41 1st ECC circuit 42 2nd ECC circuit 51 1st comparison circuit 52 2nd comparison circuit 61 1st CPU bus 62 2nd CPU bus

Claims (10)

それぞれデータを記憶可能なデータマットとECCマットとを含むメモリと、
上記メモリのデータマットとECCマットのそれぞれにデータを書き込み可能な第1メモリインタフェースと、
上記メモリから読み出されたデータのエラーチェックを行い、読み出しデータに誤りがある場合には当該データの誤り訂正を行う第1ECC回路と、
上記メモリから読み出されたデータのエラーチェックを行い、読み出しデータに誤りがある場合には当該データの誤り訂正を行う第2ECC回路と、
上記第1ECC回路を介して得られたデータを伝達可能な第1バスと、
上記第2ECC回路を介して得られたデータを伝達可能な第2バスと、
上記第1バスに結合され、上記第1バスを介して取り込まれたデータを処理可能な第1CPUと、
上記第2バスに結合され、上記第2バスを介して取り込まれたデータを処理可能な第2CPUと、
上記第1ECC回路の出力情報と上記第2ECC回路の出力情報とが一致するか否かの比較を可能とする第1比較回路と、を含み、
上記メモリからデータ読み出しが行われる毎に、上記第1CPUは、上記第1比較回路での比較結果に基づいて不一致を検出したか否かを判断し、不一致を検出た場合には、上記メモリのデータマットとECCマットのそれぞれにECCエラーを発生させるための所定データを書き込み、上記第1ECC回路の故障と上記第2ECC回路の故障との判別を可能とする故障診断処理を実行するものであることを特徴とするマイクロコンピュータ。
A memory including a data mat capable of storing data and an ECC mat;
A first memory interface capable of writing data to each of the memory data mat and the ECC mat;
A first ECC circuit that performs an error check on the data read from the memory and corrects the error of the data if there is an error in the read data;
A second ECC circuit that performs an error check on the data read from the memory and corrects the error of the data if there is an error in the read data;
A first bus capable of transmitting data obtained via the first ECC circuit;
A second bus capable of transmitting data obtained via the second ECC circuit;
A first CPU coupled to the first bus and capable of processing data captured via the first bus;
A second CPU coupled to the second bus and capable of processing data captured via the second bus;
A first comparison circuit enabling comparison of whether the output information of the first ECC circuit and the output information of the second ECC circuit match,
Each time data is read from the memory, the first CPU determines whether or not a mismatch is detected based on the comparison result in the first comparison circuit. If a mismatch is detected, the first CPU Predetermined data for generating an ECC error is written in each of the data mat and the ECC mat, and a failure diagnosis process is executed that enables discrimination between the failure of the first ECC circuit and the failure of the second ECC circuit. A microcomputer characterized by.
上記第1CPUによる故障診断処理は、上記第1比較回路での比較結果に基づいて不一致検出を把握した場合、ECCエラーを発生させるための所定データを上記メモリのデータマットとECCマットのそれぞれに書き込んだ後にそれを読み出し、上記第1ECC回路及び上記第1バスを介して伝達された上記所定データを、上記所定データの誤り訂正後の期待値と比較し、その比較結果に基づいて、上記第1ECC回路の故障と上記第2ECC回路の故障との判別を可能とする処理を含む請求項1記載のマイクロコンピュータ。   The failure diagnosis process by the first CPU writes predetermined data for generating an ECC error to each of the data mat and the ECC mat of the memory when the inconsistency detection is grasped based on the comparison result in the first comparison circuit. Thereafter, it is read out, the predetermined data transmitted through the first ECC circuit and the first bus is compared with an expected value after error correction of the predetermined data, and the first ECC is determined based on the comparison result. The microcomputer according to claim 1, further comprising a process that makes it possible to discriminate between a circuit failure and a failure of the second ECC circuit. 上記メモリから読み出され、上記第1ECC回路及び上記第1バスを介して伝達された第1読み出しデータと、上記メモリから読み出され、上記第2ECC回路及び上記第2バスを介して伝達された第2読み出しデータとが一致するか否かの比較を可能とする第2比較回路を含み、
上記第1CPUによる故障診断処理は、上記第1比較回路での比較結果に基づいてECCエラーを把握した場合、ECCエラーを発生させるための所定データを上記メモリのデータマットとECCマットのそれぞれに書き込んだ後にそれを読み出し、上記第1ECC回路及び上記第1バスを介して伝達された上記所定データを、上記所定データの誤り訂正後の期待値と比較し、その比較結果と、上記第1比較回路での比較結果と、上記第2比較回路での比較結果とに基づいて、上記第1ECC回路の故障と上記第2ECC回路の故障との判別を可能とする処理を含む請求項1記載のマイクロコンピュータ。
First read data read from the memory and transmitted via the first ECC circuit and the first bus, and read from the memory and transmitted via the second ECC circuit and the second bus A second comparison circuit that enables comparison of whether or not the second read data matches,
In the failure diagnosis processing by the first CPU, when an ECC error is grasped based on the comparison result of the first comparison circuit, predetermined data for generating the ECC error is written in each of the data mat and the ECC mat of the memory. Thereafter, it is read out, the predetermined data transmitted via the first ECC circuit and the first bus is compared with an expected value after error correction of the predetermined data, and the comparison result is compared with the first comparison circuit. The microcomputer according to claim 1, further comprising: a process that makes it possible to distinguish between a failure in the first ECC circuit and a failure in the second ECC circuit based on the comparison result in step 1 and the comparison result in the second comparison circuit. .
上記故障診断処理は、上記所定データと上記所定データの誤り訂正後の期待値とが一致せず、且つ、上記第1読み出しデータと上記第2読み出しデータとが一致しない場合には、上記第1ECC回路の故障と判断する第1処理と、
上記所定データと上記所定データの誤り訂正後の期待値とが一致し、且つ、上記第1ECC回路でのエラーチェック結果と上記第2ECC回路でのエラーチェック結果とが一致しない場合には、上記第2ECC回路の故障と判断する第2処理と、を含む請求項3記載のマイクロコンピュータ。
In the failure diagnosis process, if the predetermined data does not match the expected value after error correction of the predetermined data, and the first read data and the second read data do not match, the first ECC A first process for determining a circuit failure;
If the predetermined data and the expected value after error correction of the predetermined data match and the error check result in the first ECC circuit does not match the error check result in the second ECC circuit, the first data The microcomputer according to claim 3, further comprising: a second process for determining that the 2ECC circuit is faulty.
上記第1CPUは、上記故障診断処理において上記第2ECC回路の故障と判断した場合、リセットしても安全な状態へ遷移するためのシステム停止処理を実行し、その後、リセット処理に遷移する請求項4記載のマイクロコンピュータ。   The said 1st CPU performs the system stop process for changing to a safe state even if it resets, when it is judged in the said fault diagnosis process that the said 2nd ECC circuit is faulty, Then, it changes to a reset process. The microcomputer as described. 上記第1CPUは、上記故障診断処理において上記第1ECC回路の故障と判断した場合、速やかにリセット処理に遷移する請求項4記載のマイクロコンピュータ。   The microcomputer according to claim 4, wherein when the first CPU determines that the first ECC circuit has failed in the failure diagnosis process, the first CPU promptly shifts to a reset process. それぞれデータを記憶可能なデータマットとECCマットとを含むメモリと、
上記メモリのデータマットとECCマットのそれぞれにデータを書き込み可能な第1メモリインタフェースと、
上記メモリから読み出されたデータのエラーチェックを行い、読み出しデータに誤りがある場合には当該データの誤り訂正を行う第1ECC回路と、
上記メモリから読み出されたデータのエラーチェックを行い、読み出しデータに誤りがある場合には当該データの誤り訂正を行う第2ECC回路と、
上記第1ECC回路を介して得られたデータを伝達可能な第1バスと、
上記第2ECC回路を介して得られたデータを伝達可能な第2バスと、
上記第1バスに結合され、上記第1バスを介して取り込まれたデータを処理可能な第1CPUと、
上記第2バスに結合され、上記第2バスを介して取り込まれたデータを処理可能な第2CPUと、を含み、
上記第1CPUは、ECCエラーを発生させるための所定データを上記メモリのデータマットとECCマットのそれぞれに書き込んだ後にそれを読み出し、上記第1ECC回路及び上記第1バスを介して伝達された上記所定データを、上記テストデータの誤り訂正後の期待値と比較し、その比較結果に基づいて、上記第1ECC回路の故障と上記第2ECC回路の故障との判別を可能とするエラーインジェクション処理を実行するものであることを特徴とするマイクロコンピュータ。
A memory including a data mat capable of storing data and an ECC mat;
A first memory interface capable of writing data to each of the memory data mat and the ECC mat;
A first ECC circuit that performs an error check on the data read from the memory and corrects the error of the data if there is an error in the read data;
A second ECC circuit that performs an error check on the data read from the memory and corrects the error of the data if there is an error in the read data;
A first bus capable of transmitting data obtained via the first ECC circuit;
A second bus capable of transmitting data obtained via the second ECC circuit;
A first CPU coupled to the first bus and capable of processing data captured via the first bus;
A second CPU coupled to the second bus and capable of processing data captured via the second bus;
The first CPU writes predetermined data for generating an ECC error to each of the data mat and the ECC mat of the memory and then reads the predetermined data and transmits the predetermined data transmitted via the first ECC circuit and the first bus. The data is compared with the expected value after error correction of the test data, and based on the comparison result, an error injection process is executed that makes it possible to discriminate between the failure of the first ECC circuit and the failure of the second ECC circuit. A microcomputer characterized by being a thing.
上記エラーインジェクション処理は、所定の時間間隔で定期的に実行される請求項7記載のマイクロコンピュータ。   8. The microcomputer according to claim 7, wherein the error injection process is periodically executed at predetermined time intervals. 上記エラーインジェクション処理は、上記マイクロコンピュータへの通電開始によるパワーオンリセットに起因して実行される請求項7記載のマイクロコンピュータ。   8. The microcomputer according to claim 7, wherein the error injection process is executed due to a power-on reset caused by starting energization of the microcomputer. 上記エラーインジェクション処理は、上記マイクロコンピュータのリセットに起因して実行される請求項7記載のマイクロコンピュータ。   8. The microcomputer according to claim 7, wherein the error injection process is executed due to a reset of the microcomputer.
JP2008135750A 2008-05-23 2008-05-23 Microcomputer Withdrawn JP2009282849A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008135750A JP2009282849A (en) 2008-05-23 2008-05-23 Microcomputer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008135750A JP2009282849A (en) 2008-05-23 2008-05-23 Microcomputer

Publications (1)

Publication Number Publication Date
JP2009282849A true JP2009282849A (en) 2009-12-03

Family

ID=41453225

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008135750A Withdrawn JP2009282849A (en) 2008-05-23 2008-05-23 Microcomputer

Country Status (1)

Country Link
JP (1) JP2009282849A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8682501B2 (en) 2012-05-31 2014-03-25 Renesas Electronics Corporation Data processing device, microcontroller, and self-diagnosis method of data processing device
EP3480958A1 (en) 2017-11-07 2019-05-08 Renesas Electronics Corporation Bus bridge with improved fault detection

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8682501B2 (en) 2012-05-31 2014-03-25 Renesas Electronics Corporation Data processing device, microcontroller, and self-diagnosis method of data processing device
US9043046B2 (en) 2012-05-31 2015-05-26 Renesas Electronics Corporation Data processing device, microcontroller, and self-diagnosis method of data processing device
EP3480958A1 (en) 2017-11-07 2019-05-08 Renesas Electronics Corporation Bus bridge with improved fault detection
KR20190051835A (en) 2017-11-07 2019-05-15 르네사스 일렉트로닉스 가부시키가이샤 Semiconductor device and semiconductor system including the same
US10891186B2 (en) 2017-11-07 2021-01-12 Renesas Electronics Corporation Semiconductor device and semiconductor system including the same

Similar Documents

Publication Publication Date Title
US9207661B2 (en) Dual core architecture of a control module of an engine
US10281525B2 (en) Semiconductor device and diagnostic test method for both single-point and latent faults using first and second scan tests
US10062451B2 (en) Background memory test apparatus and methods
JP2015018414A (en) Microcomputer
JP6658417B2 (en) Electronic control unit
KR102131230B1 (en) Method for self diagnosis of ram error detection logic in powertrain ecu system and apparatus thereof
JP6729407B2 (en) Microcomputer
CN105868060A (en) Method for operating a data processing unit of a driver assistance system and data processing unit
JP2009282849A (en) Microcomputer
JP2015035121A (en) Semiconductor integrated circuit device
JP5978873B2 (en) Electronic control unit
US11831337B2 (en) Semiconductor device and error detection methods
JP6588068B2 (en) Microcomputer
US20220222135A1 (en) Electronic control device
JP2006259935A (en) Computation device with computation abnormality determination function
JP2000259444A (en) Data processor and its testing method
JP4411600B2 (en) Duplex system
JP4422076B2 (en) Data processing device, electronic control unit, and automobile
JP2000035923A (en) Abnormality detecting method and abnormality detecting device
CN101311909A (en) Method for diagnosing system abnormality
CN116700224B (en) Method and device for detecting functional safety mechanism failure of vehicle
JP2011232910A (en) Memory diagnosis system
JP5924195B2 (en) Electronic equipment
JP4842036B2 (en) Semiconductor device and abnormality detection method of timing control circuit
JP3009238B2 (en) Register failure detection device for microcomputer addition

Legal Events

Date Code Title Description
A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20100527

A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20110802