WO2018079163A1 - Vehicle control unit - Google Patents

Vehicle control unit Download PDF

Info

Publication number
WO2018079163A1
WO2018079163A1 PCT/JP2017/034855 JP2017034855W WO2018079163A1 WO 2018079163 A1 WO2018079163 A1 WO 2018079163A1 JP 2017034855 W JP2017034855 W JP 2017034855W WO 2018079163 A1 WO2018079163 A1 WO 2018079163A1
Authority
WO
WIPO (PCT)
Prior art keywords
ram
power supply
storage device
circuit
vehicle control
Prior art date
Application number
PCT/JP2017/034855
Other languages
French (fr)
Japanese (ja)
Inventor
啓人 栗原
務 赤池
Original Assignee
日立オートモティブシステムズ株式会社
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 日立オートモティブシステムズ株式会社 filed Critical 日立オートモティブシステムズ株式会社
Priority to CN201780062622.9A priority Critical patent/CN109844724B/en
Priority to JP2018547211A priority patent/JP6694517B2/en
Priority to DE112017004594.0T priority patent/DE112017004594T5/en
Publication of WO2018079163A1 publication Critical patent/WO2018079163A1/en

Links

Images

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C29/00Checking stores for correct operation ; Subsequent repair; Testing stores during standby or offline operation
    • G11C29/04Detection or location of defective memory elements, e.g. cell constructio details, timing of test signals
    • G11C29/50Marginal testing, e.g. race, voltage or current testing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/16Protection against loss of memory contents
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C29/00Checking stores for correct operation ; Subsequent repair; Testing stores during standby or offline operation
    • G11C29/02Detection or location of defective auxiliary circuits, e.g. defective refresh counters
    • G11C29/021Detection or location of defective auxiliary circuits, e.g. defective refresh counters in voltage or current generators
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C29/00Checking stores for correct operation ; Subsequent repair; Testing stores during standby or offline operation
    • G11C29/04Detection or location of defective memory elements, e.g. cell constructio details, timing of test signals
    • G11C29/08Functional testing, e.g. testing during refresh, power-on self testing [POST] or distributed testing
    • G11C29/12Built-in arrangements for testing, e.g. built-in self testing [BIST] or interconnection details
    • G11C29/44Indication or identification of errors, e.g. for repair
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C29/00Checking stores for correct operation ; Subsequent repair; Testing stores during standby or offline operation
    • G11C29/04Detection or location of defective memory elements, e.g. cell constructio details, timing of test signals
    • G11C2029/0409Online test
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C29/00Checking stores for correct operation ; Subsequent repair; Testing stores during standby or offline operation
    • G11C29/04Detection or location of defective memory elements, e.g. cell constructio details, timing of test signals
    • G11C29/50Marginal testing, e.g. race, voltage or current testing
    • G11C2029/5006Current
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C29/00Checking stores for correct operation ; Subsequent repair; Testing stores during standby or offline operation
    • G11C29/52Protection of memory contents; Detection of errors in memory contents

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • For Increasing The Reliability Of Semiconductor Memories (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The purpose of the present invention is to provide a vehicle control unit which is capable of detecting a symptom of a fault in a storage device, and of sustaining a normal state of the storage device for as long as possible. A vehicle control unit according to the present invention comprises a computation circuit (CPU), a storage device (RAM) which temporarily stores data which is used in a control computation which is performed by the computation circuit, and a current measuring circuit (150) which is capable of measuring a drive current of the storage device. The computation circuit carries out a diagnostic of the storage device on the basis of the value of the drive current which is acquired from the current measuring circuit.

Description

車載制御装置In-vehicle control device
 本発明は、車両が搭載する機器を制御する車載制御装置に関する。 The present invention relates to an in-vehicle control device that controls equipment mounted on a vehicle.
 車両が搭載している機器を制御する車載制御装置(Vichole Control Unit)としての車載用電子制御装置(ECU:Electronic Control Unit)は、制御演算を実施するマイクロコンピュータ(以下、マイコンと称す)を備える。マイコンは、一般的に、CPU(Central Processing Unit)、ROM(Read Only Memory)、RAM(Random Access Memory)などを備える。RAMは、CPUが制御演算に使用するデータを一時的に記憶する記憶装置である。RAMが故障すると、RAMへの書き込みデータ及びRAMからの読み出しデータが不適なデータとなるため、CPUの制御演算に不具合が生じ、所望の制御演算を実施することが困難となってしまう。そのため、車載制御装置はRAMを診断する機能を備える。 An in-vehicle electronic control unit (ECU: Electronic Control Unit) as an in-vehicle control unit that controls equipment mounted on a vehicle includes a microcomputer (hereinafter referred to as a microcomputer) that performs control calculations. . The microcomputer generally includes a CPU (Central Processing Unit), a ROM (Read Only Memory), a RAM (Random Access Memory), and the like. The RAM is a storage device that temporarily stores data used by the CPU for control calculations. When the RAM breaks down, write data to the RAM and read data from the RAM become unsuitable data, which causes a problem in the CPU control calculation and makes it difficult to perform the desired control calculation. Therefore, the in-vehicle control device has a function of diagnosing the RAM.
 下記特許文献1は、RAMの故障を診断する手法を記載している。同文献においては、所定診断タイミング毎に、診断対象のRAM領域に対して所定の値を書き込み、その値を読み出すことを繰り返し実施する。書き込んだ値と読み出した値が一致しない場合、RAMが故障していると判断し、自動車が危険な状態に陥らないようにフェールセーフ処理を実施する。 The following Patent Document 1 describes a method of diagnosing a RAM failure. In this document, for each predetermined diagnosis timing, a predetermined value is written into the RAM area to be diagnosed and the value is read out repeatedly. If the written value does not match the read value, it is determined that the RAM has failed, and fail-safe processing is performed so that the automobile does not fall into a dangerous state.
 なお、フェールセーフ処理の一例には、RAMの故障による誤った制御を防止するため、ドライバーの操縦指示による変速制御は無効とし、変速比を固定とすることにより、リンプホーム運転が可能となるような安全制御を実施するものがある。 As an example of fail-safe processing, in order to prevent erroneous control due to failure of the RAM, the shift control based on the driver's steering instruction is invalidated, and the limp home operation can be performed by fixing the gear ratio. Some implement safe control.
特開2000-137501号公報JP 2000-137501 A
 上記特許文献1が記載しているRAM診断方法は、RAMを構成するメモリセル(1ビットのデータを記憶する記憶素子)が完全に故障し、所望の値をライトもしくはリードすることが完全に不可能となるに至った場合は、RAMの故障を検知することができる。しかしながら、完全に故障していないものの、将来、故障となるポテンシャルを持つメモリセルの検出は不可能と考えられる。 The RAM diagnostic method described in Patent Document 1 described above completely fails to write or read a desired value because a memory cell (memory element that stores 1-bit data) constituting the RAM completely fails. If it becomes possible, a failure of the RAM can be detected. However, although it has not completely failed, it is considered impossible to detect a memory cell having a potential for failure in the future.
 車載制御装置に利用されるマイコンは、一般的に、半導体製造メーカにより加速試験や最終テストを実施され、故障の無い状態と判断されて、車載制御装置の製造メーカへ出荷される。しかしながら、車載制御装置のマイコンが備えるRAMは、半導体製造工程において混入した異物により隣接するトランジスタ間や配線間の短絡(ショート)や長期使用による経年劣化による不良などが原因となり、車両の走行中に故障する可能性が少なからず存在する。 A microcomputer used in an in-vehicle control device is generally subjected to an acceleration test and a final test by a semiconductor manufacturer, and is judged to be in a state without a failure, and is shipped to the in-vehicle control device manufacturer. However, the RAM included in the microcomputer of the in-vehicle control device is caused by foreign matter mixed in the semiconductor manufacturing process due to short-circuit between adjacent transistors or wirings (short circuit) or failure due to aging deterioration due to long-term use. There is a lot of possibility of failure.
 一般的に知られているRAMの故障モードとしては、例えば、以下のものがある。これらの故障モードが1つでも発生した場合、故障したメモリセルには、期待する値をライトもしくはリードすることが不可能となる。
(故障その1)メモリセルの値が「0」または「1」に固定される縮退故障。
(故障その2)あるメモリセルが格納している値が変化するのと連動して他のメモリセルの値も変化するカプリング故障。
(故障その3)メモリアドレスを正しく選択できないアドレスデコーダ故障。
(故障その4)あるメモリセルに隣接する上下左右に配置されたメモリセルが記憶している値の影響を受けて、当該メモリセルが記憶している値も変化する、パターンセンシティブ故障。
Examples of generally known failure modes of RAM include the following. When even one of these failure modes occurs, it is impossible to write or read an expected value to the failed memory cell.
(Failure No. 1) A stuck-at fault in which the value of the memory cell is fixed to “0” or “1”.
(Failure No. 2) A coupling fault in which the value of another memory cell changes in conjunction with the change of the value stored in a certain memory cell.
(Failure 3) A failure of the address decoder that cannot correctly select the memory address.
(Failure 4) A pattern sensitive failure in which the value stored in the memory cell changes under the influence of the value stored in the memory cell arranged vertically and horizontally adjacent to a certain memory cell.
 たとえば、半導体製造工程において、異物がメモリセル上に付着し、その異物が経年使用により何らかの原因で移動して隣接するメモリセル間に付着した場合、その隣接するメモリセルが異物により短絡し、RAMの故障を引き起こす場合がある。ただし、メモリセル間の短絡状態によっては、短絡によって生じる電位変動が故障と判断される判定閾値に至らない程度にとどまる場合がある。この場合、メモリセル間に短絡故障が生じていたとしても、書き込んだ値と同じ値を読み出すことができる。上記特許文献1に記載の診断手法は、このような故障を検出することは開示されていない。 For example, in a semiconductor manufacturing process, when a foreign substance adheres on a memory cell, and the foreign substance moves for some reason due to aged use and adheres between adjacent memory cells, the adjacent memory cell is short-circuited by the foreign substance, and the RAM May cause malfunction. However, depending on the short-circuit state between the memory cells, the potential fluctuation caused by the short-circuit may not reach a determination threshold value that is determined to be a failure. In this case, even if a short circuit failure occurs between the memory cells, the same value as the written value can be read. The diagnostic method described in Patent Document 1 does not disclose detecting such a failure.
 他方、このようなメモリセル間の短絡故障を放置すると、短絡状態が経年使用により進行し、メモリセル間が完全に短絡し、RAMの故障として診断されることになると想定される。このように将来RAMの故障として顕出する潜在的な故障は、できる限り早い時点で検出することが望ましい。 On the other hand, if such a short-circuit failure between memory cells is left unattended, it is assumed that the short-circuit state will progress with use over time, the memory cells will be completely short-circuited, and will be diagnosed as a RAM failure. Thus, it is desirable to detect a potential failure that will manifest as a failure of the RAM in the future as soon as possible.
 本発明は、上記のような課題に鑑みてなされたものであり、記憶装置の故障の予兆を検出し、記憶装置の正常な状態を可能なかぎり継続可能な車載制御装置を提供することを目的とする。 The present invention has been made in view of the above problems, and an object of the present invention is to provide an in-vehicle control device capable of detecting a sign of a failure of a storage device and continuing the normal state of the storage device as much as possible. And
 本発明に係る車載制御装置は、演算回路(111)と、前記演算回路による制御演算に使用されるデータを一時的に記憶する記憶装置(113)と、前記記憶装置の駆動電流を測定可能な電流測定回路(150)とを備える。前記演算回路は、前記電流測定回路から取得した前記駆動電流の値に基づき前記記憶装置の診断を実施する。 The in-vehicle control device according to the present invention can measure an arithmetic circuit (111), a storage device (113) that temporarily stores data used for control calculation by the arithmetic circuit, and a drive current of the storage device A current measuring circuit (150). The arithmetic circuit performs diagnosis of the storage device based on the value of the drive current acquired from the current measurement circuit.
 本発明に係る車載制御装置によれば、現時点では記憶装置(RAM)に対して正常にデータを読み書きできるものの、将来的に故障する可能性があるような記憶装置の故障の予兆を、早期の段階で検出することができる。 According to the vehicle-mounted control device according to the present invention, at the present time, although data can be normally read from and written to the storage device (RAM), a sign of a failure of the storage device that may fail in the future can be detected at an early stage. Can be detected in stages.
車載制御装置100の構成図である。1 is a configuration diagram of an in-vehicle control device 100. FIG. RAM113に対してチェッカーデータを書き込んだとき各メモリセルが格納しているビット値を模式的に示す一例の図である。4 is an example diagram schematically showing bit values stored in each memory cell when checker data is written to a RAM 113. FIG. RAM113に対してチェッカーデータを書き込んだとき各メモリセルが格納しているビット値を模式的に示す他の一例の図である。It is a figure of another example which shows typically the bit value which each memory cell has stored when checker data was written in RAM113. RAM113に対してチェッカーデータを書き込んだとき各メモリセルが格納しているビット値を模式的に示す他の一例の図である。It is a figure of another example which shows typically the bit value which each memory cell has stored when checker data was written in RAM113. 車載制御装置100がスタートアップするときメインマイコン110がRAM113を診断する手順の一例を説明するフローチャートである。It is a flowchart explaining an example of the procedure which the main microcomputer 110 diagnoses RAM113 when the vehicle-mounted control apparatus 100 starts up. 図3Aのフローチャートに続くフローチャートである。It is a flowchart following the flowchart of FIG. 3A. 車載制御装置100がスタートアップするときサブマイコン120がRAM113の駆動電流を診断する手順の一例を説明するフローチャートである。5 is a flowchart for explaining an example of a procedure in which a sub-microcomputer 120 diagnoses a drive current of a RAM 113 when the in-vehicle control device 100 starts up. 車載制御装置100がシャットダウンするときメインマイコン110がRAM113を診断する手順の一例を説明するフローチャートである。It is a flowchart explaining an example of the procedure which the main microcomputer 110 diagnoses RAM113 when the vehicle-mounted control apparatus 100 shuts down. 図5Aのフローチャートに続くフローチャートである。It is a flowchart following the flowchart of FIG. 5A. 車載制御装置100がシャットダウンするときサブマイコン120がRAM113を診断する手順の一例を説明するフローチャートである。10 is a flowchart for explaining an example of a procedure in which a sub-microcomputer 120 diagnoses a RAM 113 when the in-vehicle control device 100 shuts down. 車載制御装置100が、車両走行中に、メインマイコン110がRAM113を診断する手順の一例を説明するフローチャートである。5 is a flowchart for explaining an example of a procedure in which the main microcomputer 110 diagnoses a RAM 113 while the vehicle-mounted control device 100 is traveling in a vehicle. 図7Aのフローチャートに続くフローチャートである。It is a flowchart following the flowchart of FIG. 7A. 車載制御装置100が、車両走行中に、サブマイコン120がRAM113を診断する手順の一例を説明するフローチャートである。5 is a flowchart for explaining an example of a procedure for the sub-microcomputer 120 to diagnose a RAM 113 while the vehicle-mounted control device 100 is traveling. RAM113が有する記憶領域を示すアドレス図である。3 is an address diagram showing a storage area of a RAM 113. FIG. RAM113がスタティックランダムアクセスメモリ(SRAM)の場合のメモリセルの回路図である。3 is a circuit diagram of a memory cell when a RAM 113 is a static random access memory (SRAM). FIG. 図10のメモリセルの一例のレイアウト図である。FIG. 11 is a layout diagram of an example of the memory cell of FIG. 10. 図11のメモリセルのレイアウト配置を、行列状に配置した場合の模式図である。FIG. 12 is a schematic diagram when the layout arrangement of the memory cells in FIG. 11 is arranged in a matrix. スタティックランダムアクセスメモリ(SRAM)の模式的なブロック図である。It is a typical block diagram of a static random access memory (SRAM).
 本発明に係る車載制御装置は、図1に示されるように、機器を制御するための制御演算を実施する演算回路(CPU)111と、前記演算回路が使用するデータを一時的に記憶するメモリ(記憶装置、RAM)113と、前記メモリ113に対して供給される駆動電流を測定可能な電流測定回路150と、を備える。前記演算回路111は、前記電流測定回路150から取得した前記駆動電流の値に基づき、前記メモリ113が正常であるか否かを診断する。 As shown in FIG. 1, an in-vehicle control device according to the present invention includes an arithmetic circuit (CPU) 111 that performs a control calculation for controlling a device, and a memory that temporarily stores data used by the arithmetic circuit. (Storage device, RAM) 113 and a current measurement circuit 150 capable of measuring a drive current supplied to the memory 113. The arithmetic circuit 111 diagnoses whether the memory 113 is normal based on the value of the drive current acquired from the current measurement circuit 150.
 本発明に係る車載制御装置は、前記電流測定回路150を設けることにより、メモリ113が完全に故障する前に、故障の予兆を捉えることが可能である。故障の予兆を捉えるため、メモリ113の隣接するメモリセルに対し、例えば、互いに異なるビット値がチェック用の書込みデータ(以下、チェッカーデータと称す)として書き込まれる。そして、チェッカーデータの書き込まれた状態において、メモリ113の駆動電流が電流測定回路150により計測される。計測されたRAMの駆動電流の値とあらかじめ設定された判定閾値とが比較され、メモリ113の状態が診断される。前記判定閾値を超える様な駆動電流が流れるメモリセルは、完全に故障していないものの、将来的に故障となるポテンシャルを持つメモリセルと見做される。すなわち、故障の予兆があるメモリセルと見做される。そして、将来的に故障となるポテンシャルを持つメモリセルを含む記憶領域のアドレスは、そのメモリセルが完全に故障する前に、メモリ113の空き領域(未使用の記憶領域または未使用領域)内に、あらかじめ確保されている正常なメモリセルを含む記憶領域のアドレスへと置換される。 The vehicle-mounted control device according to the present invention can capture a sign of failure before the memory 113 completely fails by providing the current measuring circuit 150. In order to catch a sign of a failure, for example, different bit values are written as check write data (hereinafter referred to as checker data) in adjacent memory cells of the memory 113. In the state where the checker data is written, the drive current of the memory 113 is measured by the current measurement circuit 150. The measured value of the RAM drive current is compared with a preset determination threshold value, and the state of the memory 113 is diagnosed. A memory cell in which a driving current exceeding the determination threshold flows is regarded as a memory cell having a potential to become a failure in the future, although it has not completely failed. That is, it is regarded as a memory cell with a sign of failure. The address of a storage area including a memory cell having a potential to become a failure in the future is stored in an empty area (an unused storage area or an unused area) of the memory 113 before the memory cell completely fails. , The address of the storage area including the normal memory cell secured in advance is replaced.
 本発明に係る車載制御装置によれば、現時点ではメモリ113に対して正常にデータを読み書きできるが将来的に故障する可能性があるようなメモリ113の故障を、早期の段階で検出することができる。将来的に故障となるポテンシャルを持つメモリセルが完全に故障する前に、そのメモリセルを含む記憶領域のアドレスが、メモリ113の空き領域にあらかじめ確保された正常なメモリセルを含む記憶領域のアドレスへと置換される。そのため、車両走行中におけるメモリ113の故障を未然に防ぐことができる。したがって、車両走行中に、メモリ113の故障が原因により発生するドライバーの意図に反したエンジンやトランスミッション等のアクチュエータの誤動作、および、その誤動作に起因する車両の意図しない挙動を防ぐことが可能である。車両走行中に、RAMが故障し、フェールセーフ処理に移行する制御が行われ、運転性能が低下することを可能な限り防ぐことができる。 According to the vehicle-mounted control device according to the present invention, it is possible to detect a failure of the memory 113 at an early stage, which can read and write data normally with respect to the memory 113 at the present time but may fail in the future. it can. Before a memory cell having a potential to become a failure in the future completely fails, the address of the storage area including the normal memory cell reserved in advance in the empty area of the memory 113 is the address of the storage area including the memory cell. Is replaced by Therefore, it is possible to prevent a failure of the memory 113 while the vehicle is traveling. Accordingly, it is possible to prevent malfunction of an actuator such as an engine or transmission that is contrary to the driver's intention caused by the failure of the memory 113 while the vehicle is traveling, and unintended behavior of the vehicle due to the malfunction. . It is possible to prevent the RAM from being broken and control to shift to the fail-safe process while the vehicle is running, and to reduce the driving performance as much as possible.
 また、現時点では壊れておらず、将来壊れそうなメモリセルを事前に検知して、そのメモリセルを含む記憶領域を使わない様にし、別途確保していた正常なメモリセルを含む未使用の記憶領域を使用して、本発明に係る車載制御装置により車載制御処理を継続させる。そのため、市場でのメモリ(RAM)113の故障による車載制御装置のユニット交換の減少、顧客からの車載制御装置のクレーム品としての返却品の数の減少、および、車載制御装置の不良解析の削減が見込まれ、車載制御装置の信頼性が向上する。 In addition, memory cells that are not broken at this time and that are likely to break in the future are detected in advance so that the storage area including the memory cells is not used, and unused memory including normal memory cells that have been separately secured Using the region, the vehicle-mounted control process is continued by the vehicle-mounted control device according to the present invention. Therefore, the unit replacement of the in-vehicle control device due to the failure of the memory (RAM) 113 in the market, the number of returned products as complaints of the in-vehicle control device from customers, and the failure analysis of the in-vehicle control device are reduced. As a result, the reliability of the in-vehicle control device is improved.
 以下、図面を用いてより詳細に説明する。ただし、以下の説明において、同一構成要素には同一符号を付し繰り返しの説明を省略することがある。なお、図面は説明をより明確化するため、実際の態様に比べ、各部の幅、形状などについて模式的に表される場合があるが、あくまでも一例であって、本発明の解釈を限定するものではない。 Hereinafter, it will be described in more detail with reference to the drawings. However, in the following description, the same components may be denoted by the same reference numerals and repeated description may be omitted. In order to clarify the description, the drawings may be schematically shown with respect to the width, shape, etc. of each part as compared to the actual mode, but are merely examples and limit the interpretation of the present invention. is not.
 図1は、本発明に係る車載制御装置100の構成図である。車載制御装置100は、車両が搭載する車載機器(例えば、自動変速機、エンジンなど)を電子的に制御する車載用電子制御装置(ECU:Electronic Control Unit)である。車載制御装置100は、メインマイクロマイクロコンピュータ(以下、メインマイコンと称す)110、サブマイクロマイクロコンピュータ(以下、サブマイコンと称す)120、メイン電源IC(Integrated Circuit)130、サブ電源IC140、電流測定回路150、外部メモリ160を備える。 FIG. 1 is a configuration diagram of an in-vehicle control device 100 according to the present invention. The in-vehicle control device 100 is an in-vehicle electronic control device (ECU: Electronic Control Unit) that electronically controls in-vehicle devices (for example, an automatic transmission, an engine, etc.) mounted on the vehicle. The in-vehicle controller 100 includes a main microcomputer (hereinafter referred to as a main microcomputer) 110, a sub microcomputer (hereinafter referred to as a sub microcomputer) 120, a main power supply IC (Integrated Circuit) 130, a sub power supply IC 140, a current measurement circuit. 150 and an external memory 160.
 メインマイコン110は、車両が搭載する車載機器を制御するマイクロコンピュータ(第1マイクロコンピュータ)である。メインマイコン110は、例えば、アクチュエータ230を制御することによって車載機器を制御する。また、表示装置240を介してメッセージを表示することができる。メッセージは、例えば文字や画像などのメッセージ、ランプ点灯による通知など、任意の形態のものを用いることができる。 The main microcomputer 110 is a microcomputer (first microcomputer) that controls in-vehicle devices mounted on the vehicle. The main microcomputer 110 controls the in-vehicle device by controlling the actuator 230, for example. In addition, a message can be displayed via the display device 240. The message may be in any form, such as a message such as a character or an image, or a notification by lighting a lamp.
 メインマイコン110は、中央処理装置(CPU)111、リートオンリメモリ(ROM)112、ランダムアクセスメモリ(RAM)113を備える。CPU111は、車載機器を制御するために必要な制御演算を実施する演算装置(演算回路)である。ROM112は、CPU111が実行するプログラム(例えば、後述の図3A~図8で説明される診断処理のプログラム)などを格納する。RAM113は、CPU111が使用するデータを一時的に格納する。 The main microcomputer 110 includes a central processing unit (CPU) 111, a read only memory (ROM) 112, and a random access memory (RAM) 113. The CPU 111 is an arithmetic device (arithmetic circuit) that performs a control calculation necessary for controlling the in-vehicle device. The ROM 112 stores a program executed by the CPU 111 (for example, a diagnostic processing program described later with reference to FIGS. 3A to 8). The RAM 113 temporarily stores data used by the CPU 111.
 サブマイコン120は、メインマイコン110と同様の構成を備えるマイクロコンピュータ(第2マイクロコンピュータ)であり、その説明は省略される。サブマイコン120は、メインマイコン110からのリクエストないし指示に従って、RAM113が正常であるか否かを診断し、その診断の結果をメインマイコン110に対して通知する処理を実行可能である。 The sub-microcomputer 120 is a microcomputer (second microcomputer) having the same configuration as the main microcomputer 110, and the description thereof is omitted. The sub-microcomputer 120 can execute a process of diagnosing whether or not the RAM 113 is normal in accordance with a request or instruction from the main microcomputer 110 and notifying the main microcomputer 110 of the result of the diagnosis.
 車載制御装置100は、車両が搭載するバッテリ220から電力の供給を受ける。メイン電源IC(メイン電源回路)130は、バッテリ220から受け取った電力VBを降圧ないし昇降圧し、メインマイコン110に対して供給する。サブ電源IC(サブ電源回路)140も同様に、バッテリ220から受け取った電力を降圧ないし昇降圧し、サブマイコン120に対して供給する。 The in-vehicle control device 100 receives power supply from a battery 220 mounted on the vehicle. A main power supply IC (main power supply circuit) 130 steps down or boosts or lowers the electric power VB received from the battery 220 and supplies it to the main microcomputer 110. Similarly, the sub power supply IC (sub power supply circuit) 140 steps down or steps up / down the power received from the battery 220 and supplies it to the sub microcomputer 120.
 メイン電源IC130は、CPU111、ROM112、RAM113のそれぞれに対して個別に電力(電源)VB1,VB2,VB3を供給可能なように、内部的に電源回路が3つに切り分けられている。すなわち、メイン電源IC130は、CPU111の第1電源VB1を生成する第1電源回路VG1、ROM112の第2電源VB2を生成する第2電源回路VG2、および、RAM113の第3電源VB3を生成する第3電源回路VG3を含む。これは後述するように、RAM113に対して供給する駆動電流がCPU111やROM112の駆動電流の変動によって受ける影響を抑制するためである。第1電源回路VG1から発生された第1電源VB1は、電源配線(電源パス)L1を介してCPU111へ供給される。第2電源回路VG2から発生された第2電源VB2は、電源配線(電源パス)L2を介してROM112へ供給される。第3電源回路VG3から発生された第3電源VB3は、電源配線(電源パス)L3を介してRAM113へ供給される。 The main power supply IC 130 is internally divided into three power supply circuits so that power (power supplies) VB1, VB2, and VB3 can be individually supplied to the CPU 111, the ROM 112, and the RAM 113, respectively. That is, the main power supply IC 130 generates the first power supply circuit VG1 that generates the first power supply VB1 of the CPU 111, the second power supply circuit VG2 that generates the second power supply VB2 of the ROM 112, and the third power supply VB3 of the RAM 113. A power supply circuit VG3 is included. As will be described later, this is because the drive current supplied to the RAM 113 is suppressed from being affected by fluctuations in the drive current of the CPU 111 and the ROM 112. The first power supply VB1 generated from the first power supply circuit VG1 is supplied to the CPU 111 via the power supply wiring (power supply path) L1. The second power supply VB2 generated from the second power supply circuit VG2 is supplied to the ROM 112 via the power supply wiring (power supply path) L2. The third power supply VB3 generated from the third power supply circuit VG3 is supplied to the RAM 113 via the power supply wiring (power supply path) L3.
 電流測定回路150は、メイン電源IC130からRAM113に対して供給される駆動電流の値を測定し、その測定結果をサブマイコン120に対して出力する。サブマイコン120はその測定結果を用いて後述する手順によりRAM113を診断する。サブマイコン120が診断を実施する理由については後述する。電流測定回路150の回路構成は、具体的に記載されないが、種々の回路構成が適用可能であることは、当業者には容易に理解されるであろう。測定結果は、アナログ信号としてサブマイコン120へ出力してもよいし、デジタル信号としてサブマイコン120へ出力してもよい。測定結果をデジタル信号として出力する場合、電流測定回路150はアナログ・デジタル変換回路ADCを含むように構成される。一方、測定結果をアナログ信号として出力する場合、サブマイコン120はアナログ・デジタル変換回路ADCを含むように構成される。測定結果をデジタル信号として出力する場合の方が、アナログ信号として出力する場合と比較して、車載制御装置100内で発生する電源などのノイズに対する影響に強い。 The current measurement circuit 150 measures the value of the drive current supplied from the main power supply IC 130 to the RAM 113 and outputs the measurement result to the sub-microcomputer 120. The sub-microcomputer 120 diagnoses the RAM 113 by the procedure described later using the measurement result. The reason why the sub-microcomputer 120 performs diagnosis will be described later. Although the circuit configuration of the current measurement circuit 150 is not specifically described, those skilled in the art will readily understand that various circuit configurations are applicable. The measurement result may be output to the sub-microcomputer 120 as an analog signal or may be output to the sub-microcomputer 120 as a digital signal. When the measurement result is output as a digital signal, the current measurement circuit 150 is configured to include an analog / digital conversion circuit ADC. On the other hand, when outputting the measurement result as an analog signal, the sub-microcomputer 120 is configured to include an analog / digital conversion circuit ADC. When the measurement result is output as a digital signal, the influence on noise such as a power source generated in the in-vehicle control device 100 is stronger than when the measurement result is output as an analog signal.
 車両の運転者がイグニッションキーをON/OFFすると、これにともなって電源信号210が生成される。車載制御装置100は、電源信号210にしたがってスタートアップ/シャットダウンする。メイン電源IC130とサブ電源IC140は、これにともなって各マイコン110,120に対して電力を供給し、または遮断する。 When the driver of the vehicle turns on / off the ignition key, the power signal 210 is generated accordingly. The in-vehicle control device 100 starts up / shuts down according to the power signal 210. Accordingly, the main power supply IC 130 and the sub power supply IC 140 supply power to or cut off the microcomputers 110 and 120.
 外部メモリ160は、RAM113に対する診断結果や診断対象としたアドレス範囲などを記憶するための電気的に書き込みおよび消去可能な不揮発性メモリとされる記憶装置である。後述されるように、メインマイコン110/サブマイコン120は、車載制御装置100がスタートアップやシャットダウンするときに、またスタートアップ後の定常処理中において、RAM113のそれぞれ異なる記憶領域を診断する。そのため、次回診断すべきアドレス範囲は、外部メモリ160内へ格納される。外部メモリ160は、メイン電源IC130またはサブ電源IC140から電力を受ける。外部メモリ160は、特に制限されないが、フラッシュメモリやEEPROMなどの不揮発性記憶装置を利用することができる。なお、定常処理の一例には、車載制御装置100により行われる、エンジンやトランスミッション等のアクチュエータの制御や診断、フェールセーフ処理がある。 The external memory 160 is a storage device that is an electrically writable and erasable nonvolatile memory for storing a diagnosis result for the RAM 113, an address range targeted for diagnosis, and the like. As will be described later, the main microcomputer 110 / sub-microcomputer 120 diagnoses different storage areas of the RAM 113 when the in-vehicle control device 100 starts up or shuts down, or during steady processing after startup. Therefore, the address range to be diagnosed next time is stored in the external memory 160. The external memory 160 receives power from the main power supply IC 130 or the sub power supply IC 140. The external memory 160 is not particularly limited, but a non-volatile storage device such as a flash memory or an EEPROM can be used. Examples of the steady process include control and diagnosis of actuators such as an engine and a transmission, and fail-safe process performed by the in-vehicle control device 100.
 図2A、図2Bおよび図2Cは、診断用データとしてのチェッカーデータを、RAM113のメモリセルへ書き込んだ状態を示している。各図において、RAM113のメモリセルとして、3行3列のアレイ状に配置された9個のメモリセル1131が例示的に示される。 2A, 2B, and 2C show a state where checker data as diagnostic data is written to the memory cell of the RAM 113. FIG. In each figure, as memory cells of the RAM 113, nine memory cells 1131 arranged in an array of 3 rows and 3 columns are exemplarily shown.
 図2Aは、RAM113に対してチェッカーデータを書き込んだときの各メモリセルが格納しているビット値を模式的に示す一例の図である。RAM113が備える各メモリセル1131は、共通の電源ライン1132と接続されている。図2Aに示すように、チェッカーデータは隣接する上下左右のメモリセル1131間で互いに異なるビット値のデータを格納するように構成されている。すなわち、例示的に示される3行3列に配置された9個のメモリセル1131において、1行目の3個のメモリセルには、1、0、1のビット値のデータがそれぞれ格納される。2行目の3個のメモリセルには、0、1、0のビット値のデータがそれぞれ格納される。3行目の3個のメモリセルには、1、0、1のビット値のデータがそれぞれ格納される。2行目2列目に対応するメモリセルを基準とすると、隣接する上下左右のメモリセル1131間で互いに異なるビット値のデータを格納するように構成されている。メモリセル1131は、一般的に、その記憶ノードの電位の大小(または、ハイレベル“1”、ローレベル“0”)によってビット値を表すので、メモリセル1131間で互いに異なるビット値を格納することにより、隣接するメモリセル1131は互いに異なる電位となる。 FIG. 2A is an example diagram schematically showing bit values stored in each memory cell when the checker data is written to the RAM 113. Each memory cell 1131 included in the RAM 113 is connected to a common power supply line 1132. As shown in FIG. 2A, the checker data is configured to store data having different bit values between the adjacent upper, lower, left, and right memory cells 1131. That is, in nine memory cells 1131 arranged in 3 rows and 3 columns as shown as an example, data of bit values of 1, 0 and 1 are stored in the three memory cells in the first row, respectively. . Three memory cells in the second row store data having bit values of 0, 1, and 0, respectively. Three memory cells in the third row store data of bit values of 1, 0, and 1, respectively. With reference to the memory cell corresponding to the second row and the second column, data of different bit values is stored between the adjacent upper, lower, left and right memory cells 1131. Since the memory cells 1131 generally represent bit values depending on the potential of the storage node (or high level “1”, low level “0”), different bit values are stored between the memory cells 1131. As a result, adjacent memory cells 1131 have different potentials.
 RAM113を製造する半導体製造工程において混入した異物が、隣接するメモリセル1131間に残存していることを想定する。この場合、当該異物によって隣接メモリセルの記憶ノード間が架橋される。架橋された隣接するメモリセルの記憶ノードが互いに異電位である場合、その電位差に応じて隣接するメモリセルの記憶ノード間でリーク電流が流れることとなる。そうすると、異物が存在していない場合と比較して、RAM113の駆動電流が大きくなる。 It is assumed that foreign matter mixed in the semiconductor manufacturing process for manufacturing the RAM 113 remains between adjacent memory cells 1131. In this case, the storage nodes of adjacent memory cells are bridged by the foreign matter. When the storage nodes of adjacent memory cells that are cross-linked have different potentials, a leakage current flows between the storage nodes of adjacent memory cells according to the potential difference. As a result, the drive current of the RAM 113 becomes larger than when no foreign matter is present.
 サブマイコン120は、後述されるように、ステップS203、S403、S603において、このことを利用してRAM113の異常を診断する。仮にメモリセル1131に対するデータ読み書きが正常に実施できるとしても、かかる異物の存在は将来において短絡故障を生じさせる可能性がある。そのため、本発明においては、異常と診断されたメモリセルを含む記憶領域のアドレスは、あらかじめRAM113の空き領域(未使用の記憶領域または未使用領域)に確保された正常なメモリセルを含む記憶領域のアドレスへ置換される。それにより、車両走行中に、メモリ113の故障が原因により発生するドライバーの意図に反したエンジンやトランスミッション等のアクチュエータの誤動作、および、その誤動作に起因する車両の意図しない挙動を防ぐことが可能である。 As will be described later, the sub-microcomputer 120 diagnoses an abnormality of the RAM 113 by using this fact in steps S203, S403, and S603. Even if data can be read / written normally from / to the memory cell 1131, the presence of such foreign matter may cause a short-circuit failure in the future. Therefore, in the present invention, the address of the storage area including the memory cell diagnosed as abnormal is the storage area including the normal memory cell reserved in the empty area (unused storage area or unused area) of the RAM 113 in advance. Is replaced with the address. As a result, it is possible to prevent malfunctions of actuators such as engines and transmissions that are contrary to the driver's intentions caused by the failure of the memory 113 while the vehicle is traveling, and unintended behaviors of the vehicle due to the malfunctions. is there.
 但し、隣接するメモリセル1131が互いに同じビット値を格納している場合、隣接するメモリセルの記憶ノード間の電位差はほぼない。この場合、仮に隣接メモリセルの記憶ノード間に異物が存在して架橋されたとしても、リーク電流は流れないか、または、僅かであると考えられる。駆動電流に基づき異物の存在を顕著に検出するためには、図2Aに示すように隣接するメモリセルの記憶ノードが互いに異なるビット値を格納することが望ましい。すなわち、チェッカーデータは、隣接するメモリセルの記憶ノード間に異物が存在して架橋されていた場合に、リーク電流を顕在化させる様なデータパターンが選択される。 However, when adjacent memory cells 1131 store the same bit value, there is almost no potential difference between storage nodes of adjacent memory cells. In this case, even if a foreign substance exists between the storage nodes of adjacent memory cells and is bridged, it is considered that the leakage current does not flow or is slight. In order to significantly detect the presence of foreign matter based on the drive current, it is desirable that the storage nodes of adjacent memory cells store different bit values as shown in FIG. 2A. That is, the checker data is selected as a data pattern that makes the leakage current manifest when a foreign object exists between the storage nodes of adjacent memory cells and is bridged.
 図2Bは、RAM113に対してチェッカーデータを書き込んだときの各メモリセルが格納しているビット値を模式的に示す他の一例の図である。例示的に示された9個のメモリセル1131において、1行目の3個のメモリセルには、1、1、1のビット値のデータが格納される。2行目の3個のメモリセルには、0、0、0のビット値のデータが格納される。3行目の3個のメモリセルには、1、1、1のビット値のデータが格納される。
このチェッカーデータは、上下のメモリセル間で異なるビット値のデータを格納するように構成されている。すなわち、2行目の3個のメモリセル1131と、1行目および3行目のそれぞれ3個のメモリセル1131とで、異なるビット値のデータを格納するように構成されている。このチェッカーデータは、例えば、上下に配置されたメモリセルの記憶ノード間の短絡によるリーク電流の検出に有効である。
FIG. 2B is a diagram of another example schematically showing bit values stored in each memory cell when checker data is written to the RAM 113. In the nine memory cells 1131 shown as examples, data of bit values of 1, 1, 1 are stored in three memory cells in the first row. Bit values of 0, 0, and 0 are stored in the three memory cells in the second row. The three memory cells in the third row store data having bit values of 1, 1, 1.
The checker data is configured to store data having different bit values between the upper and lower memory cells. In other words, the three memory cells 1131 in the second row and the three memory cells 1131 in the first and third rows are configured to store data of different bit values. This checker data is effective, for example, in detecting a leakage current due to a short circuit between storage nodes of memory cells arranged above and below.
 図2Cは、RAM113に対してチェッカーデータを書き込んだときの各メモリセルが格納しているビット値を模式的に示す他の一例の図である。9個のメモリセル1131において、1行目の3個のメモリセルには、1、0、1のビット値のデータが格納される。
2行目の3個のメモリセルには、1、0、1のビット値のデータが格納される。3行目の3個のメモリセルには、1、0、1のビット値のデータが格納される。このチェッカーデータは、左右のメモリセル間で異なるビット値のデータを格納するように構成されている。すなわち、2列目の3個のメモリセル1131と、1列目および3列目のそれぞれ3個のメモリセル1131とで、異なるビット値のデータを格納するように構成されている。
このチェッカーデータは、例えば、左右に配置されたメモリセルの記憶ノード間の短絡によるリーク電流の検出に有効である。
FIG. 2C is a diagram of another example schematically showing bit values stored in each memory cell when the checker data is written to the RAM 113. In nine memory cells 1131, data of bit values of 1, 0, 1 are stored in three memory cells in the first row.
Three memory cells in the second row store data with bit values of 1, 0, and 1. Three memory cells in the third row store data with bit values of 1, 0, and 1. The checker data is configured to store data having different bit values between the left and right memory cells. That is, three memory cells 1131 in the second column and three memory cells 1131 in the first and third columns are configured to store data having different bit values.
This checker data is effective, for example, in detecting a leakage current due to a short circuit between storage nodes of memory cells arranged on the left and right.
 チェッカーデータのデータパターンの構成は、メモリセルのレイアウト構成およびアレイ状に配置される複数のメモリセルのレイアウト構成に依存する。より具体的には、メモリセルの記憶ノードのレイアウト構成およびメモリセル間の記憶ノードの配置や距離に依存するため、診断対象のRAM113に採用されるメモリセルのレイアウト構成および複数のメモリセルのレイアウト構成を考慮して選択するのが良い。 The data pattern configuration of the checker data depends on the layout configuration of the memory cells and the layout configuration of a plurality of memory cells arranged in an array. More specifically, since it depends on the layout configuration of the storage nodes of the memory cells and the arrangement and distance of the storage nodes between the memory cells, the layout configuration of the memory cells and the layout of the plurality of memory cells employed in the RAM 113 to be diagnosed It is good to select in consideration of the configuration.
 図3Aおよび図3Bは、車載制御装置100がスタートアップするとき、メインマイコン110がRAM113を診断する手順を説明するフローチャートの一例である。以下、図3の各ステップについて説明する。図3Aに示される1,2,3の部分は、図3Bに示される1,2,3の部分にそれぞれ接続される。 FIG. 3A and FIG. 3B are examples of a flowchart for explaining a procedure for the main microcomputer 110 to diagnose the RAM 113 when the in-vehicle control device 100 starts up. Hereinafter, each step of FIG. 3 will be described. The parts 1, 2, 3 shown in FIG. 3A are connected to the parts 1, 2, 3 shown in FIG. 3B, respectively.
 (図3A:ステップS100)
 メインマイコン110は、電源が投入されたことを示す電源信号210を受信すると、本フローチャートを開始する。本フローチャートを開始する時点において、メイン電源IC130とサブ電源IC140はそれぞれ電源信号210にしたがって電力供給を開始済であるものとする。
(FIG. 3A: Step S100)
When the main microcomputer 110 receives the power signal 210 indicating that the power is turned on, the main microcomputer 110 starts this flowchart. It is assumed that the main power supply IC 130 and the sub power supply IC 140 have already started supplying power according to the power supply signal 210 at the time of starting this flowchart.
 (図3A:ステップS101)
 メインマイコン110は、外部メモリ160から前回実施したRAM113に対する診断結果と、今回診断するRAM113上の記憶領域のアドレスを読み出す。
(FIG. 3A: Step S101)
The main microcomputer 110 reads from the external memory 160 the previous diagnosis result for the RAM 113 and the address of the storage area on the RAM 113 to be diagnosed this time.
 (図3A:ステップS102)
 前回実施したRAM113に対する診断により故障と判定された場合は、ステップS112へスキップする。正常または診断未実施である場合は、ステップS103へ進む。ここでいう前回診断結果とは、例えば、後述するようにスタートアップ時とシャットダウン時と走行中各々においてRAM113の診断を実施する場合は、前回シャットダウン時における診断結果である。前回シャットダウン時においてRAM113が故障であったのであれば、今回スタートアップ時も故障であると考えられるので、かかる場合はステップS112へスキップすることとした。
(FIG. 3A: Step S102)
If it is determined that a failure has occurred in the previous diagnosis of the RAM 113, the process skips to step S112. If normal or not diagnosed, the process proceeds to step S103. The previous diagnosis result referred to here is, for example, a diagnosis result at the previous shutdown when the diagnosis of the RAM 113 is performed at startup, at shutdown, and during traveling, as will be described later. If the RAM 113 had a failure at the time of the previous shutdown, it is considered that the RAM 113 has also failed this time, so in this case, the process skips to step S112.
 (図3A:ステップS103)
 メインマイコン110は、ステップS101で読み出した診断対象アドレスの記憶領域に格納されたデータを、あらかじめ退避用に用意した退避領域に退避する。
(FIG. 3A: Step S103)
The main microcomputer 110 saves the data stored in the storage area of the diagnosis target address read out in step S101 in a save area prepared for saving in advance.
 (図3A:ステップS104)
 メインマイコン110は、ステップS101で読み出した診断対象アドレスに対して、診断用データとされるチェッカーデータを書き込む。図2A、図2B、図2Cで説明したように、チェッカーデータは隣接するメモリセルが互いに異なるビット値を格納することにより互いに異電位となるように構成されたデータである。
(FIG. 3A: Step S104)
The main microcomputer 110 writes checker data, which is diagnostic data, to the diagnosis target address read in step S101. As described with reference to FIGS. 2A, 2B, and 2C, checker data is data configured such that adjacent memory cells have different potentials by storing different bit values.
 (図3A:ステップS105)
 メインマイコン110は、チェッカーデータを書き込んだアドレスからデータを読み出す。読み出したデータと書き込んだチェッカーデータが一致する場合はステップS105へ進み、一致しない場合はステップS108へ進む。
(FIG. 3A: Step S105)
The main microcomputer 110 reads data from the address where the checker data is written. If the read data matches the written checker data, the process proceeds to step S105, and if not, the process proceeds to step S108.
 (図3B:ステップS106)
 メインマイコン110は、サブマイコン120に対して、RAM113の駆動電流を測定するよう指示する。サブマイコン120は、後述の図4で説明するフローチャートにしたがって駆動電流を測定し、その測定結果をメインマイコン110に対して通知する。
(FIG. 3B: Step S106)
The main microcomputer 110 instructs the sub microcomputer 120 to measure the drive current of the RAM 113. The sub-microcomputer 120 measures the drive current according to a flowchart described later with reference to FIG. 4 and notifies the main microcomputer 110 of the measurement result.
 (図3B:ステップS107)
 メインマイコン110は、サブマイコン120から駆動電流の測定結果を受け取る。測定結果が正常である場合はステップS108へ進み、異常である場合はステップS109へ進む。
(FIG. 3B: Step S107)
The main microcomputer 110 receives the drive current measurement result from the sub-microcomputer 120. If the measurement result is normal, the process proceeds to step S108. If the measurement result is abnormal, the process proceeds to step S109.
 (図3B:ステップS108)
 測定結果が正常である場合、ステップS103で退避したデータが、現在の診断領域へ書き戻される。
(FIG. 3B: Step S108)
If the measurement result is normal, the data saved in step S103 is written back to the current diagnosis area.
 (図3B:ステップS109)
 メインマイコン110は、故障と判断したメモリセルの置換後の記憶領域として、あらかじめ用意している、RAM113の空き領域(未使用領域)の有無を確認する。RAM113の空き領域が有る場合、ステップS110に進み、RAM113の空き領域が無い場合は、ステップS112に進む。空き領域(未使用領域)とは、CPU111により利用さるデータが格納されていない部分の記憶領域を意味する。
(FIG. 3B: Step S109)
The main microcomputer 110 confirms the presence or absence of an empty area (unused area) in the RAM 113 prepared in advance as a storage area after replacement of the memory cell determined to be faulty. If there is a free area in the RAM 113, the process proceeds to step S110. If there is no free area in the RAM 113, the process proceeds to step S112. An empty area (unused area) means a storage area of a part where data used by the CPU 111 is not stored.
 (図3B:ステップS110)
 メインマイコン110は、S103で退避したデータを空き領域にコピーする。
(FIG. 3B: Step S110)
The main microcomputer 110 copies the data saved in S103 to an empty area.
 (図3B:ステップS111)
 メインマイコン110は、故障と診断したメモリのアドレスをあらかじめRAM113の空き領域に確保している正常なメモリのアドレスに置換する。
(FIG. 3B: Step S111)
The main microcomputer 110 replaces the address of the memory diagnosed as a failure with the address of a normal memory secured in advance in the free space of the RAM 113.
 (図3B:ステップS112)
 メインマイコン110は、外部メモリ160にRAM113の診断結果と次回の診断対象アドレスを格納する。
(FIG. 3B: Step S112)
The main microcomputer 110 stores the diagnosis result of the RAM 113 and the next diagnosis target address in the external memory 160.
 (図3B:ステップS113)
 メインマイコン110は、RAM113の診断結果が故障であった旨のメッセージを表示装置240上に表示する。
(FIG. 3B: Step S113)
The main microcomputer 110 displays a message on the display device 240 that the diagnosis result of the RAM 113 is a failure.
 (図3B:ステップS114)
 メインマイコン110は、フェールセーフモードを開始する。フェールセーフモードとは、機能を縮退して安全側に倒した動作を実施するモードである。メインマイコン110は、フェールセーフモードにおいては、RAM113の故障により車両を誤制御することを防止するため、運転者の操縦指示に基づいた自動車制御を無効とし、安全な走行モードとなるようにアクチュエータ230を制御する。
(FIG. 3B: Step S114)
The main microcomputer 110 starts the fail safe mode. The fail safe mode is a mode in which the operation is performed by degenerating the function and defeating it to the safe side. In the fail-safe mode, the main microcomputer 110 disables the vehicle control based on the driver's steering instruction and prevents the actuator 230 from being in a safe driving mode in order to prevent erroneous control of the vehicle due to the failure of the RAM 113. Control.
 (図3B:ステップS115)
 メインマイコン110は、外部メモリ160にRAM113の診断結果と次回の診断対象アドレスを格納する。
(FIG. 3B: Step S115)
The main microcomputer 110 stores the diagnosis result of the RAM 113 and the next diagnosis target address in the external memory 160.
 (図3B:ステップS116)
 メインマイコン110は、車載制御装置100の定常処理を開始する。
(FIG. 3B: Step S116)
The main microcomputer 110 starts a steady process of the in-vehicle control device 100.
 図4は、車載制御装置100がスタートアップするとき、サブマイコン120がRAM113の駆動電流を診断する手順を説明するフローチャートの一例である。以下、図4の各ステップについて説明する。 FIG. 4 is an example of a flowchart illustrating a procedure in which the sub-microcomputer 120 diagnoses the drive current of the RAM 113 when the in-vehicle control device 100 starts up. Hereinafter, each step of FIG. 4 will be described.
 (図4:ステップS200)
 サブマイコン120は、電源が投入されたことを示す電源信号210を受信すると、本フローチャートを開始する。本フローチャートを開始する時点において、メイン電源IC130とサブ電源IC140はそれぞれ電源信号210にしたがって電力供給を開始済であるものとする。
(FIG. 4: Step S200)
When the sub-microcomputer 120 receives the power signal 210 indicating that the power is turned on, the sub-microcomputer 120 starts this flowchart. It is assumed that the main power supply IC 130 and the sub power supply IC 140 have already started supplying power according to the power supply signal 210 at the time of starting this flowchart.
 (図4:ステップS201)
 サブマイコン120は、メインマイコン110からRAM113の駆動電流を測定するよう指示する命令を受け取っているか否かを判定する。指示が有る場合はステップS202へ進み、無い場合は本フローチャートを終了(END)する。
(FIG. 4: Step S201)
The sub-microcomputer 120 determines whether or not an instruction for instructing to measure the driving current of the RAM 113 is received from the main microcomputer 110. When there is an instruction, the process proceeds to step S202, and when there is no instruction, this flowchart is ended (END).
 (図4:ステップS202)
 サブマイコン120は、電流測定回路150から、RAM113の駆動電流値を取得する。
(FIG. 4: Step S202)
The sub microcomputer 120 acquires the drive current value of the RAM 113 from the current measurement circuit 150.
 (図4:ステップS203)
 サブマイコン120は、取得した駆動電流値が判定閾値以下であるか否かを判定する。
取得した駆動電流値が判定閾値を下回る場合はRAM113が正常であると判断してステップS204へ進み、取得した駆動電流値が判定閾値を上回る場合は故障であると判断してステップS205へ進む。判定閾値は、サブマイコン120(または、メインマイコン110)が備えるROMなど不揮発性メモリにあらかじめ格納しておくことができる。
(FIG. 4: Step S203)
The sub-microcomputer 120 determines whether or not the acquired drive current value is equal to or less than a determination threshold value.
If the acquired drive current value is lower than the determination threshold, it is determined that the RAM 113 is normal, and the process proceeds to step S204. If the acquired drive current value is higher than the determination threshold, it is determined that there is a failure and the process proceeds to step S205. The determination threshold value can be stored in advance in a non-volatile memory such as a ROM provided in the sub microcomputer 120 (or the main microcomputer 110).
 (図4:ステップS203:補足)
 本ステップにおいては駆動電流値と判定閾値を比較しているので、駆動電流を正確に取得することが必要である。CPU111、ROM112などのRAM113以外の他回路部品に対して電力を供給する電源パスと、RAM113に対して電力を供給する電源パスとが共通になっていると、他回路部品の電圧や電流の影響を受けてRAM113の駆動電流が変動し、正確な値を取得できない可能性がある。そのため、図1で説明されたように、メイン電源IC130は、これら回路部品に対してそれぞれ個別に電力を提供するように、構成されている。
(FIG. 4: Step S203: Supplement)
In this step, since the drive current value is compared with the determination threshold, it is necessary to accurately acquire the drive current. If the power supply path that supplies power to other circuit components other than the RAM 113 such as the CPU 111 and the ROM 112 and the power supply path that supplies power to the RAM 113 are common, the influence of the voltage and current of the other circuit components In response to this, the drive current of the RAM 113 may fluctuate and an accurate value may not be obtained. Therefore, as described in FIG. 1, the main power supply IC 130 is configured to individually supply power to these circuit components.
 (図4:ステップS204~S205)
 サブマイコン120は、メインマイコン110に対して、RAM113の駆動電流が正常である旨の診断結果を送信する(S204)。サブマイコン120は、メインマイコン110に対して、RAM113の駆動電流が異常である旨の診断結果を送信する(S205)。
(FIG. 4: Steps S204 to S205)
The sub-microcomputer 120 transmits a diagnosis result indicating that the drive current of the RAM 113 is normal to the main microcomputer 110 (S204). The sub-microcomputer 120 transmits a diagnosis result indicating that the drive current of the RAM 113 is abnormal to the main microcomputer 110 (S205).
 図5Aおよび図5Bは、車載制御装置100がシャットダウンするときメインマイコン110がRAM113を診断する手順を説明するフローチャートの一例である。以下図5Aおよび図5Bの各ステップについて説明する。なお、図5Aに示される4,5,6の部分は、図5Bに示される4,5,6の部分にそれぞれ接続される。 FIG. 5A and FIG. 5B are examples of a flowchart for explaining a procedure in which the main microcomputer 110 diagnoses the RAM 113 when the in-vehicle control device 100 shuts down. Hereinafter, each step of FIG. 5A and FIG. 5B will be described. Note that the portions 4, 5, and 6 shown in FIG. 5A are connected to the portions 4, 5, and 6 shown in FIG. 5B, respectively.
 (図5A:ステップS300~S301)
 メインマイコン110は、電源が遮断されたことを示す電源信号210を受信すると、本フローチャートを開始する(S300)。メインマイコン110は、車載制御装置100の定常処理を終了する(S301)。
(FIG. 5A: Steps S300 to S301)
When the main microcomputer 110 receives the power signal 210 indicating that the power has been cut off, the main microcomputer 110 starts this flowchart (S300). The main microcomputer 110 ends the steady process of the in-vehicle control device 100 (S301).
 (図5Aおよび図5B:ステップS302~S309)
 ステップS302~S308は、図3Aおよび図3BのステップS101~S108と同様である。ただし、ステップS303において、先回診断結果が異常である場合には、図5BのステップS314に移行する。
(FIGS. 5A and 5B: Steps S302 to S309)
Steps S302 to S308 are the same as steps S101 to S108 in FIGS. 3A and 3B. However, if the previous diagnosis result is abnormal in step S303, the process proceeds to step S314 in FIG. 5B.
 (図5B:ステップS310)
 メインマイコン110は、故障と判断したメモリセルの置換後の領域とてあらかじめ用意している、RAM113の空き領域の有無を確認する。RAM113の空き領域が有る場合は、S311に進み、RAM113の空き領域が無い場合は、S313に進む。
(FIG. 5B: Step S310)
The main microcomputer 110 confirms the presence or absence of an empty area in the RAM 113 prepared in advance as an area after replacement of the memory cell determined to be faulty. If there is a free area in the RAM 113, the process proceeds to S311. If there is no free area in the RAM 113, the process proceeds to S313.
 (図5B:ステップS311~S312)
 ステップS311~S312は、図3BのステップS110~S111と同様である。
(FIG. 5B: Steps S311 to S312)
Steps S311 to S312 are the same as steps S110 to S111 in FIG. 3B.
 (図5B:ステップS313)
 ステップS313は、図3BのステップS115と同様である。
(FIG. 5B: Step S313)
Step S313 is the same as step S115 of FIG. 3B.
 (図5B:ステップS314~315)
 メインマイコン110は、メイン電源IC130とサブ電源IC140に対してシャットダウン信号を送信する(S314)。これにより各電源ICは電力供給を停止するので、メインマイコン110、サブマイコン120はOFFになる(S315)。
(FIG. 5B: Steps S314 to S315)
The main microcomputer 110 transmits a shutdown signal to the main power supply IC 130 and the sub power supply IC 140 (S314). As a result, the power supply ICs stop power supply, and the main microcomputer 110 and the sub-microcomputer 120 are turned off (S315).
 なお、ステップS314に移行する前に、再び、メインマイコン110が電源の投入されたことを示す電源信号210を受信する場合もあり得る。そのため、ステップS309において、退避されたデータが現在の診断領域へ書き戻すステップS309が実行される。それにより、再度、図3Aおよび図3Bのフローチャートが実行されることとなる。 It should be noted that the power supply signal 210 indicating that the main microcomputer 110 is turned on may be received again before the process proceeds to step S314. Therefore, in step S309, step S309 is executed in which the saved data is written back to the current diagnosis area. Thereby, the flowcharts of FIGS. 3A and 3B are executed again.
 図6は、車載制御装置100がシャットダウンするとき、サブマイコン120がRAM113を診断する手順を説明するフローチャートである。本フローチャートを開始する時点において、メイン電源IC130とサブ電源IC140はそれぞれ電力の供給を継続しているものとする。以下、図6の各ステップについて説明する。車載制御装置100がシャットダウンするとき、本フローチャートのステップS400に移行する。 FIG. 6 is a flowchart illustrating a procedure for the sub-microcomputer 120 to diagnose the RAM 113 when the in-vehicle control device 100 shuts down. It is assumed that the main power supply IC 130 and the sub power supply IC 140 are continuously supplying power at the time of starting this flowchart. Hereinafter, each step of FIG. 6 will be described. When the vehicle-mounted control apparatus 100 shuts down, the process proceeds to step S400 in the flowchart.
 (図6:ステップS401~S405)
 ステップS401~S405は、図4のステップS201~S205と同様である。
(FIG. 6: Steps S401 to S405)
Steps S401 to S405 are the same as steps S201 to S205 in FIG.
 (図6:ステップS406)
 サブマイコン120は、メインマイコン110により、ステップS315でサブ電源ICへシャットダウン信号が送られるため、電源OFFとなる。
(FIG. 6: Step S406)
The sub microcomputer 120 is turned off because the main microcomputer 110 sends a shutdown signal to the sub power IC in step S315.
 図7Aおよび図7Bは、車載制御装置100が定時処理中に、メインマイコン110がRAM113を診断する手順を説明するフローチャートである。定常処理とは、車載制御装置100により、エンジンやトランスミッション等のアクチュエータの制御や診断、通信等の処理が複数にタスクに分割され、一定周期毎に実行される。図7Aおよび図7Bに示す、本発明のRAM113を診断するタスクは、定常処理の一部のタスクとして実行される。以下、図7Aおよび図7Bの各ステップについて説明する。なお、図7Aに示される7,8,9の部分は、図7Bに示される7,8,9の部分にそれぞれ接続される。 FIGS. 7A and 7B are flowcharts for explaining a procedure in which the main microcomputer 110 diagnoses the RAM 113 while the in-vehicle control device 100 is performing a scheduled process. In the steady process, the control, diagnosis, communication, and the like of the actuators such as the engine and the transmission are divided into a plurality of tasks by the in-vehicle control device 100 and executed at regular intervals. The task for diagnosing the RAM 113 of the present invention shown in FIGS. 7A and 7B is executed as a part of the routine process. Hereafter, each step of FIG. 7A and FIG. 7B is demonstrated. Note that the portions 7, 8, and 9 shown in FIG. 7A are connected to the portions 7, 8, and 9 shown in FIG. 7B, respectively.
 (図7A:ステップS500)
 メインマイコン110は、電源が投入されたことを示す電源信号210を受信し、図3Aおよび図3Bのスタートアップ処理を完了し、定常処理に移行した後、本フローチャートを開始する。
(FIG. 7A: Step S500)
The main microcomputer 110 receives the power signal 210 indicating that the power is turned on, completes the start-up process of FIGS. 3A and 3B, shifts to a steady process, and then starts this flowchart.
 (図7Aおよび図7B:ステップS501~S515)
 ステップS501~S515は、図3Aおよび図3BのステップS101~S115と同様である。
(FIGS. 7A and 7B: Steps S501 to S515)
Steps S501 to S515 are the same as steps S101 to S115 in FIGS. 3A and 3B.
 図8は、車載制御装置100が定時処理中に、サブマイコン120がRAM113を診断する手順を説明するフローチャートの一例である。以下図8の各ステップについて説明する。 FIG. 8 is an example of a flowchart for explaining a procedure in which the sub-microcomputer 120 diagnoses the RAM 113 while the in-vehicle control device 100 is performing a scheduled process. Hereinafter, each step of FIG. 8 will be described.
 (図8:ステップS600)
 サブマイコン120は、電源が投入されたことを示す電源信号210を受信し、図3Aおよび図3Bのスタートアップ処理を完了し、定常処理に移行した後、本フローチャートを開始する。
(FIG. 8: Step S600)
The sub-microcomputer 120 receives the power signal 210 indicating that the power is turned on, completes the start-up process of FIGS. 3A and 3B, shifts to a steady process, and then starts this flowchart.
 (図8:ステップS601~S605)
 ステップS601~S605は、図4のステップS201~S205と同様である。
(FIG. 8: Steps S601 to S605)
Steps S601 to S605 are the same as steps S201 to S205 in FIG.
 図9は、RAM113が有する記憶領域を示すアドレス図の一例である。RAM113が有する全記憶領域を一度に診断しようとすると、診断時間が長くかかる。また、メモリセル上における故障領域を判別する必要がある。そのため、図9に示すように、診断対象アドレスが複数に分割されることで、RAM113が有する全記憶領域は複数の診断領域に分割される。そして、図3A~図8で説明された様に、スタートアップ時/シャットダウン時/定常処理のいずれかまたは双方において、それぞれ異なるアドレスの記憶領域が診断領域として診断することとした。メインマイコン110/サブマイコン120は、診断を実施する毎に、次の診断対象アドレスを外部メモリ160に書き込み、次回の診断時はこれにしたがって診断対象アドレスを決定する。 FIG. 9 is an example of an address diagram showing a storage area of the RAM 113. If it is attempted to diagnose all the storage areas of the RAM 113 at once, it takes a long time to diagnose. In addition, it is necessary to determine the failure area on the memory cell. Therefore, as shown in FIG. 9, the entire storage area of the RAM 113 is divided into a plurality of diagnosis areas by dividing the diagnosis target address into a plurality of parts. Then, as described with reference to FIGS. 3A to 8, the storage areas at different addresses are diagnosed as diagnosis areas in one or both of startup, shutdown, and steady state processing. The main microcomputer 110 / sub-microcomputer 120 writes the next diagnosis target address to the external memory 160 each time diagnosis is performed, and determines the diagnosis target address according to this in the next diagnosis.
 メモリアドレス0000h-FFEEh(末尾のhは、16進アドレス示す)の診断領域700~702は、先頭の診断領域は700、次回診断領域701、最後の診断領域702で構成される。最後の診断領域702まで診断が進んだ場合、先頭の診断領域700に戻る。診断領域に元々格納されていたデータを退避する記憶領域として、メモリアドレスFFEFhに、診断領域のデータの退避領域703が確保される。メモリアドレスFFF0h-FFFFhは、空き領域(未使用領域)704として確保される。故障とした診断した記憶領域の置換後の記憶領域705は、空き領域(未使用領域)704内に確保される。異常セルのアドレス置換後の記憶領域が空き領域の記憶容量を超える場合は、正常な領域のメモリセルへの置換は不可となる。この場合、メインマイコン110は、RAM113の診断結果が故障であった旨のメッセージを表示装置240上に表示し、フェールセーフモードを開始する。なお、上記で説明されたメモリアドレスの領域の割付けは、一例であり、それに限定されるものではなく、適宜変更されてよい。 The diagnosis area 700 to 702 of the memory address 0000h-FFEEh (the h at the end indicates a hexadecimal address) is composed of the first diagnosis area 700, the next diagnosis area 701, and the last diagnosis area 702. When the diagnosis proceeds to the last diagnosis area 702, the process returns to the first diagnosis area 700. As a storage area for saving the data originally stored in the diagnosis area, a data save area 703 in the diagnosis area is secured at the memory address FFEFh. Memory addresses FFF0h to FFFFh are secured as free areas (unused areas) 704. A storage area 705 after replacement of the storage area diagnosed as a failure is secured in a free area (unused area) 704. If the storage area after the replacement of the address of the abnormal cell exceeds the storage capacity of the free area, the replacement of the normal area with the memory cell becomes impossible. In this case, the main microcomputer 110 displays a message on the display device 240 that the diagnosis result of the RAM 113 is a failure, and starts the fail-safe mode. The allocation of the memory address area described above is an example, and is not limited thereto, and may be changed as appropriate.
 図10は、RAM113がスタティック ランダム アクセス メモリ(SRAM:Static Ramdom Access Memory)の場合のメモリセルMCの回路図を示す。メモリセルMCは、CMOS型の6トランジスタであり、以下を含む。 FIG. 10 shows a circuit diagram of the memory cell MC in the case where the RAM 113 is a static random access memory (SRAM: Static Random Access Memory). The memory cell MC is a CMOS type 6 transistor and includes the following.
 メモリセルMCは、PチャネルMOSトランジスタPM1,PM2およびNチャネルMOSトランジスタNT1、NT2,ND1,ND2を含む。負荷トランジスタとされるPチャネルMOSトランジスタPM1,PM2のソース・ドレイン経路は、それぞれ電源電位(VDD)1132のラインと第1および第2記憶ノードMB,MTとの間に接続され、それらのゲートはそれぞれ第2および第1記憶ノードMT,MBに接続される。駆動トランジスタとされるNチャネルMOSトランジスタND1,ND2のソース・ドレイン経路は、それぞれ第1および第2記憶ノードMB,MTと接地電位(VSS)1133のラインとの間に接続され、それらのゲートはそれぞれ第2および第1記憶ノードMT,MBに接続される。転送トランジスタとされるNチャネルMOSトランジスタNT1,NT2のソース・ドレイン経路は、それぞれ記憶ノードMB,MTとビット線/BL,BLとの間に接続され、それらのゲートはともにワード線WLに接続される。MOSトランジスタPM1,ND1は、第2記憶ノードMTの信号の反転信号を第1記憶ノードMBに与えるインバータを構成する。MOSトランジスタPM2,ND2は、第2記憶ノードMBの信号の反転信号を第1記憶ノードMTに与えるインバータを構成する。2つのインバータは、第1および第2記憶ノードMB,MTの間に逆並列に接続されており、ラッチ回路を構成している。 Memory cell MC includes P channel MOS transistors PM1, PM2 and N channel MOS transistors NT1, NT2, ND1, ND2. The source / drain paths of the P-channel MOS transistors PM1 and PM2, which are load transistors, are connected between the power supply potential (VDD) 1132 line and the first and second storage nodes MB and MT, respectively, and their gates are Respectively connected to the second and first storage nodes MT, MB. The source / drain paths of the N-channel MOS transistors ND1 and ND2 which are driving transistors are connected between the first and second storage nodes MB and MT and the ground potential (VSS) 1133 line, respectively, and their gates are Respectively connected to the second and first storage nodes MT, MB. Source / drain paths of N-channel MOS transistors NT1 and NT2 serving as transfer transistors are connected between storage nodes MB and MT and bit lines / BL and BL, respectively, and their gates are both connected to a word line WL. The MOS transistors PM1 and ND1 form an inverter that provides an inverted signal of the signal of second storage node MT to first storage node MB. MOS transistors PM2 and ND2 form an inverter that provides an inverted signal of the signal of second storage node MB to first storage node MT. The two inverters are connected in antiparallel between the first and second storage nodes MB and MT, and constitute a latch circuit.
 ワード線WLが選択レベルの「H」レベルにされると、NチャネルMOSトランジスタNT1,NT2が導通する。書込データ信号に応じてビット線対BL,/BLのうちの一方のビット線(たとえばBL)を「H」レベルにするとともに他方のビット線(この場合は/BL)を「L」レベルにすると、MOSトランジスタPM2,ND1が導通するとともにMOSトランジスタPM1,ND2が非導通になり、記憶ノードMB,MTのレベルがラッチされる。ワード線WLを非選択レベルの「L」レベルにすると、NチャネルMOSトランジスタNT1、NT2が非導通になり、メモリセルMCにデータ信号が記憶される。 When the word line WL is set to the selection level “H” level, the N-channel MOS transistors NT1 and NT2 become conductive. In response to the write data signal, one bit line (for example, BL) of bit line pair BL, / BL is set to "H" level and the other bit line (/ BL in this case) is set to "L" level. Then, MOS transistors PM2 and ND1 are turned on and MOS transistors PM1 and ND2 are turned off, so that the levels of storage nodes MB and MT are latched. When word line WL is set to the “L” level, which is a non-selection level, N channel MOS transistors NT1 and NT2 are rendered non-conductive, and a data signal is stored in memory cell MC.
 読出動作時は、ビット線対BL,/BLを「H」レベルにプリチャージした後、ワード線WLを選択レベルの「H」レベルにする。これにより、ビット線(この場合は/BL)からNチャネルMOSトランジスタNT1,NT2を介して接地電位GNDのラインに電流が流出し、ビット線/BLの電位が低下する。ビット線BLと/BLの電位を比較することにより、メモリセルMCの記憶データを読出すことができる。 In the read operation, the bit line pair BL, / BL is precharged to “H” level, and then the word line WL is set to “H” level of the selection level. As a result, a current flows from the bit line (in this case, / BL) to the ground potential GND line via the N-channel MOS transistors NT1, NT2, and the potential of the bit line / BL decreases. By comparing the potentials of bit lines BL and / BL, data stored in memory cell MC can be read.
 メモリセルMCが、ハイレベルのデータ“1”を記憶している場合、第1および第2記憶ノードMB,MTのレベルは、それぞれ“0”、“1”とされる。メモリセルMCが、ローレベルのデータ“0”を記憶している場合、第1および第2記憶ノードMB,MTのレベルは、それぞれ“1”、“0”とされる。 When the memory cell MC stores high level data “1”, the levels of the first and second storage nodes MB and MT are set to “0” and “1”, respectively. When the memory cell MC stores low level data “0”, the levels of the first and second storage nodes MB and MT are set to “1” and “0”, respectively.
 実際のRAM113においては、後述される図13に示されるように、メモリセルMCが行列状に複数設けられる。図13には示されていないが、複数のメモリセルMCの電源電位(VDD)1132のラインは共通に結合される。結合された電源電位(VDD)1132のラインは、図1に示される電流測定回路150に結合される。 In the actual RAM 113, as shown in FIG. 13 described later, a plurality of memory cells MC are provided in a matrix. Although not shown in FIG. 13, the lines of the power supply potential (VDD) 1132 of the plurality of memory cells MC are coupled in common. The coupled line of power supply potential (VDD) 1132 is coupled to the current measurement circuit 150 shown in FIG.
 同様に、図13には示されていないが、複数のメモリセルMCの接地電位(VSS)1133のラインは結合される。なお、図1では、RAM113の駆動電流を電流測定回路150により計測する例が示されたが、それに代えて、RAM113の消費電流の値が計測されてもよい。この場合、例えば、接地電位(VSS)1133のラインに電流測定回路150が設けられる。RAM113の駆動電流および消費電流は、RAM113の動作電流と言い換えても良いことは言うまでもない。 Similarly, although not shown in FIG. 13, the lines of the ground potential (VSS) 1133 of the plurality of memory cells MC are combined. Although FIG. 1 shows an example in which the drive current of the RAM 113 is measured by the current measurement circuit 150, the current consumption value of the RAM 113 may be measured instead. In this case, for example, the current measurement circuit 150 is provided in the line of the ground potential (VSS) 1133. Needless to say, the drive current and consumption current of the RAM 113 may be rephrased as the operation current of the RAM 113.
 図11は、図10に示すメモリセルMCの模式的なレイアウト図の一例である。ポリシリコンなどのゲート電極G1,G2,G3,G4を含む。ゲート電極G1は、NチャネルMOSトランジスタNT1のゲートとされ、ワード線WLに結合される。ゲート電極G2は、NチャネルMOSトランジスタND1およびPチャネルMOSトランジスタPM1のゲートとされる。ゲート電極G3は、NチャネルMOSトランジスタND2およびPチャネルMOSトランジスタPM2のゲートとされる。ゲート電極G4は、NチャネルMOSトランジスタNT2のゲートとされ、ワード線WLに結合される。 FIG. 11 is an example of a schematic layout diagram of the memory cell MC shown in FIG. It includes gate electrodes G1, G2, G3, G4 such as polysilicon. Gate electrode G1 serves as the gate of N-channel MOS transistor NT1, and is coupled to word line WL. Gate electrode G2 serves as the gate of N-channel MOS transistor ND1 and P-channel MOS transistor PM1. Gate electrode G3 serves as the gate of N-channel MOS transistor ND2 and P-channel MOS transistor PM2. Gate electrode G4 serves as the gate of N-channel MOS transistor NT2, and is coupled to word line WL.
 ゲート電極G1およびG2を不純物導入マスクとしてN型領域NR1が形成れて、NチャネルMOSトランジスタNT1およびND1が形成される。ゲート電極G4およびG3を不純物導入マスクとしてN型領域NR2が形成れて、NチャネルMOSトランジスタNT2およびND2が形成される。ゲート電極G2を不純物導入マスクとしてP型領域PR1が形成れて、PチャネルMOSトランジスタPM1が形成される。ゲート電極G3を不純物導入マスクとしてP型領域PR2が形成れて、PチャネルMOSトランジスタPM2が形成される。ビット線/BLは、図11において、ゲート電極G1より上側に形成されたN型領域NR1(NチャネルMOSトランジスタND1のソース)に結合される。ビット線/BLは、図11において、ゲート電極G1より上側に形成されたN型領域NR1(NチャネルMOSトランジスタNT1のソースまたはドレイン)に結合される。ビット線BLは、図11において、ゲート電極G4より下側に形成されたN型領域NR2(NチャネルMOSトランジスタNT2のソースまたはドレイン)に結合される。電源電位(VDD)1132のラインは、図11において、ゲートG2の下側に形成されるP型領域PR1(PM1のソース)およびゲートG3の上側に形成されるP型領域PR2(PM2のソース)に結合される。接地電位(VSS)1133のラインは、図11において、ゲートG2の下側に形成されるN型領域NR1(NチャネルMOSトランジスタND1のソース)およびゲートG3の上側に形成されるN型領域NR2(NチャネルMOSトランジスタND2のソース)に結合される。 N-type region NR1 is formed using gate electrodes G1 and G2 as an impurity introduction mask, and N-channel MOS transistors NT1 and ND1 are formed. N-type region NR2 is formed using gate electrodes G4 and G3 as an impurity introduction mask, and N-channel MOS transistors NT2 and ND2 are formed. P-type region PR1 is formed using gate electrode G2 as an impurity introduction mask, and P-channel MOS transistor PM1 is formed. P-type region PR2 is formed using gate electrode G3 as an impurity introduction mask, and P-channel MOS transistor PM2 is formed. In FIG. 11, bit line / BL is coupled to N-type region NR1 (the source of N-channel MOS transistor ND1) formed above gate electrode G1. In FIG. 11, bit line / BL is coupled to N-type region NR1 (the source or drain of N-channel MOS transistor NT1) formed above gate electrode G1. In FIG. 11, bit line BL is coupled to N-type region NR2 (the source or drain of N-channel MOS transistor NT2) formed below gate electrode G4. In FIG. 11, the line of the power supply potential (VDD) 1132 corresponds to a P-type region PR1 (source of PM1) formed below the gate G2 and a P-type region PR2 (source of PM2) formed above the gate G3. Combined with In FIG. 11, the line of the ground potential (VSS) 1133 corresponds to the N-type region NR1 (the source of the N-channel MOS transistor ND1) formed below the gate G2 and the N-type region NR2 (the source of the N-channel MOS transistor ND1). Coupled to the source of N-channel MOS transistor ND2.
 第1記憶ノードMBは、ゲート電極G1とG2との間のN型領域NR1(NチャネルMOSトランジスタND1のドレイン)と、PチャネルMOSトランジスタPM1のドレイン側のP型領域PR1と、ゲート電極G3と、を配線LW1で結合することにより構成される。第2記憶ノードMTは、ゲート電極G3とG4との間のN型領域NR2(NチャネルMOSトランジスタND2のドレイン)と、PチャネルMOSトランジスタPM2のドレイン側のP型領域PR2と、ゲート電極G2と、を配線LW2で結合することにより構成される。 The first storage node MB includes an N-type region NR1 (the drain of the N-channel MOS transistor ND1) between the gate electrodes G1 and G2, a P-type region PR1 on the drain side of the P-channel MOS transistor PM1, and a gate electrode G3. Are coupled by a wiring LW1. The second storage node MT includes an N-type region NR2 (the drain of the N-channel MOS transistor ND2) between the gate electrodes G3 and G4, a P-type region PR2 on the drain side of the P-channel MOS transistor PM2, and a gate electrode G2. Are coupled by a wiring LW2.
 図12は、図11のメモリセルのレイアウト配置を、行列状に配置した場合の模式図である。例示的に示されたメモリセルMC1-MC9が、行列状に配置されている。メモリセルMC5には、図11の第1および第2記憶ノードMB,MTが模式的に示される。他のメモリセルの記憶ノードについては、図面が複雑となるので、省略される。メモリセルMC1-MC9のレイアウト配置は、当業者にとって容易に理解されるように、例えば、メモリセルMC5を基準とした場合、鏡面対称配置、線対称配置、あるいは、繰り替えし配置などが採用できる。図12において、距離D1は、横方向(X方向)において、左右の隣り合うメモリセル間の記憶ノードの間隔を示している。距離D2は、縦方向(Y方向)において、上下の隣り合うメモリセル間の記憶ノードの間隔を示している。 FIG. 12 is a schematic diagram when the layout arrangement of the memory cells in FIG. 11 is arranged in a matrix. The memory cells MC1 to MC9 shown as examples are arranged in a matrix. The memory cell MC5 schematically shows the first and second storage nodes MB and MT of FIG. The storage nodes of other memory cells are omitted because the drawing becomes complicated. As can be easily understood by those skilled in the art, for example, when the memory cell MC5 is used as a reference, a mirror-symmetrical arrangement, a line-symmetrical arrangement, or a repeated arrangement can be adopted as the layout arrangement of the memory cells MC1 to MC9. In FIG. 12, the distance D <b> 1 indicates the storage node interval between the left and right adjacent memory cells in the horizontal direction (X direction). The distance D2 indicates the interval between the storage nodes between the upper and lower adjacent memory cells in the vertical direction (Y direction).
 一般的に、RAM113がスタティックランダムアクセスメモリ(SRAM)とされる場合、半導体製造プロセスの最小加工寸法によって、メモリセルMC1-MC9が形成される。したがって、距離D1ないし距離D2は、極めて狭くされている。上述されるように、半導体製造工程において混入した異物が、隣接するメモリセルの記憶ノード間(D1またはD2)に残存していることを想定する場合、当該異物によって隣接メモリセルの記憶ノード間が架橋される可能性がある。架橋された隣接するメモリセルの記憶ノードが互いに異電位である場合、その電位差に応じて隣接するメモリセルの記憶ノード間でリーク電流が流れることとなる。したがって、チェッカーデータは、メモリセルの記憶ノードのレイアウト構成およびメモリセル間の各記憶ノードの配置やその距離などを考慮して、図2A、図2B、および図2Cで説明されたチェッカーデータから適宜選択ないしその組み合わせを利用するなど選択可能である。 Generally, when the RAM 113 is a static random access memory (SRAM), the memory cells MC1 to MC9 are formed according to the minimum processing size of the semiconductor manufacturing process. Accordingly, the distances D1 and D2 are extremely narrow. As described above, when it is assumed that foreign matter mixed in the semiconductor manufacturing process remains between storage nodes (D1 or D2) of adjacent memory cells, the storage node between adjacent memory cells is caused by the foreign matter. There is a possibility of crosslinking. When the storage nodes of adjacent memory cells that are cross-linked have different potentials, a leakage current flows between the storage nodes of adjacent memory cells according to the potential difference. Therefore, the checker data is appropriately selected from the checker data described in FIGS. 2A, 2B, and 2C in consideration of the layout configuration of the storage nodes of the memory cells, the arrangement of the storage nodes between the memory cells, and their distances. Selection or a combination thereof can be used.
 図13は、RAM113がスタティックランダムアクセスメモリ(SRAM)の場合の模式的なブロック図である。複数のメモリセルMCが、行列状に配置されてメモリセルアレイMAが構成される。行列状に配置された複数のメモリセルアレイにおいて、1行目に配置されたメモリセルに第1ワード線(WL0)が結合され、2行目に配置されたメモリセルに第2ワード線(WL1)が結合され、3行目に配置されたメモリセルに第3ワード線(WL2)が結合される。同様にして、第4ワード線(WL3)、第5ワード線(WL4)、第6ワード線(WL5)、第7ワード線(WL6)から第n-1ワード線(WLn)が設けられる。また、1列目に配置されたメモリセルに第1ビット線対(/BL0、BL0)が結合される。2列目に配置されたメモリセルに第2ビット線対(/BL1、BL1)が結合される。同様にして、第3ビット線対(/BL2、BL2)から第n-1ビット線対(/BLn、BLn)が設けられる。なお、上述のワード線の数及びビット線対の数は、一例である。 FIG. 13 is a schematic block diagram when the RAM 113 is a static random access memory (SRAM). A plurality of memory cells MC are arranged in a matrix to form a memory cell array MA. In a plurality of memory cell arrays arranged in a matrix, the first word line (WL0) is coupled to the memory cell arranged in the first row, and the second word line (WL1) is connected to the memory cell arranged in the second row. And the third word line (WL2) is coupled to the memory cell arranged in the third row. Similarly, a fourth word line (WL3), a fifth word line (WL4), a sixth word line (WL5), and a seventh word line (WL6) to an n−1th word line (WLn) are provided. A first bit line pair (/ BL0, BL0) is coupled to the memory cell arranged in the first column. A second bit line pair (/ BL1, BL1) is coupled to the memory cell arranged in the second column. Similarly, the third bit line pair (/ BL2, BL2) to the (n-1) th bit line pair (/ BLn, BLn) are provided. The number of word lines and the number of bit line pairs described above are examples.
 行選択回路RDECは、CPU111から供給された行アドレス信号に従って、複数のワード線(WL0-WLn)のうち、行アドレス信号に対応する1本のワード線を選択レベルする。列選択回路CDECはCPU111から供給された列アドレス信号に従って、複数のビット線対(/BL0、BL0―/BLn、BLn)のうち、行アドレス信号に対応する1または複数のビット線対を選択レベルする。入出力制御回路IOCKTは、データ読み出しの場合、選択されたワード線および選択された1または複数のビット線対に結合された1または複数のメモリセルからデータを読み出し、その読み出されたデータをCPU111へ供給する。一方、データ書き込みの場合、入出力制御回路IOCKTは、CPU111から供給されたデータを、選択されたワード線および選択された1または複数のビット線対に結合された1または複数のメモリセルへ書き込む。 The row selection circuit RDEC selects one word line corresponding to the row address signal among the plurality of word lines (WL0 to WLn) in accordance with the row address signal supplied from the CPU 111. The column selection circuit CDEC selects one or more bit line pairs corresponding to the row address signal from the plurality of bit line pairs (/ BL0, BL0− / BLn, BLn) according to the column address signal supplied from the CPU 111. To do. In the case of data reading, the input / output control circuit IOCKT reads data from one or more memory cells coupled to the selected word line and the selected one or more bit line pairs, and the read data is read out. It supplies to CPU111. On the other hand, in the case of data writing, the input / output control circuit IOCKT writes the data supplied from the CPU 111 to one or more memory cells coupled to the selected word line and the selected one or more bit line pairs. .
 図9では、RAM113のアドレスに基づいて診断領域が設定されたが、特に制限されないが、RAM113のワード線の本数によって診断領域が設定されても良い。すなわち、1本のワード線に接続された複数のメモリセルを単位として、それを選択するための連続する複数のアドレスを1つの診断領域として設定しても良い。特に制限されないが、複数本のワード線、例えば、連続する3本のワード線に接続される複数のメモリセルが1つの診断領域として設定することができる。この場合、図2A(または、図2B、図2C)に示されるチェッカーデータが書き込まれ、診断が実行される。連続する3本のワード線とは、図13において、第1ワード線WL0、第2ワード線WL1および第3ワード線WL2が連続する3本のワード線を意味し、第4ワード線WL3、第5ワード線WL4および第6ワード線WL5が連続する3本のワード線を意味する。 In FIG. 9, the diagnosis area is set based on the address of the RAM 113. However, the diagnosis area may be set according to the number of word lines in the RAM 113, although not particularly limited. That is, a plurality of continuous addresses for selecting a plurality of memory cells connected to one word line may be set as one diagnostic area. Although not particularly limited, a plurality of memory cells connected to a plurality of word lines, for example, three consecutive word lines can be set as one diagnostic region. In this case, the checker data shown in FIG. 2A (or FIG. 2B, FIG. 2C) is written, and the diagnosis is executed. In FIG. 13, the three consecutive word lines mean three word lines in which the first word line WL0, the second word line WL1, and the third word line WL2 are continuous, and the fourth word line WL3, It means three word lines in which the fifth word line WL4 and the sixth word line WL5 are continuous.
 図13に示されるように、第1ワード線WL0、第2ワード線WL1および第3ワード線WL2に接続される複数のメモリセルが1つの診断領域R1に含まれる。第4ワード線WL3、第5ワード線WL4および第6ワード線WL5が3本のワード線に接続される複数のメモリセルが1つの診断領域R2に含まれる。診断領域R1および診断領域R2は、連続する複数のアドレスにて割り当てられているものとする。 As shown in FIG. 13, a plurality of memory cells connected to the first word line WL0, the second word line WL1, and the third word line WL2 are included in one diagnostic region R1. A plurality of memory cells in which the fourth word line WL3, the fifth word line WL4, and the sixth word line WL5 are connected to three word lines are included in one diagnostic region R2. The diagnosis area R1 and the diagnosis area R2 are assigned by a plurality of continuous addresses.
 また、図13に示されるように、特に制限されないが、先頭の診断領域r1が、第1ワード線WL0、第2ワード線WL1および第3ワード線WL2として設定された場合、次回の診断領域r2を、第3ワード線WL2、第4ワード線WL3および第5ワード線WL4として設定しても良い。すなわち、連続する2つの診断領域r1、r2において、重複部分(第3ワード線WL2に接続されるメモリセル)が設けられる。この場合、第3ワード線に結合されるメモリセルの記憶ノードと第4ワード線に結合されるメモリセルの記憶ノードとの間も、診断することができる。 Further, as shown in FIG. 13, although not particularly limited, when the first diagnostic region r1 is set as the first word line WL0, the second word line WL1, and the third word line WL2, the next diagnostic region r2 May be set as the third word line WL2, the fourth word line WL3, and the fifth word line WL4. That is, an overlapping portion (memory cell connected to the third word line WL2) is provided in two consecutive diagnostic regions r1 and r2. In this case, a diagnosis can be made between the storage node of the memory cell coupled to the third word line and the storage node of the memory cell coupled to the fourth word line.
 図13において、行選択回路RDEC、列選択回路CDECおよび入出力制御回路IOCKTを含むメモリ周辺回路の電源ラインと、メモリセルアレイMAの電源ライン1132と、が分離されて構成されている場合、メモリセルの故障の診断のためには、メモリセルアレイMAの電源ライン1132に流れる駆動電流が、図1の電流測定回路150により計測できれば良い。これにより、メモリセルアレイMAの電源ライン1132とメモリ周辺回路の電源ラインとが分離されているため、メモリ周辺回路の駆動電流の影響を低減して、メモリセルアレイMAの駆動電流の変化をより確実に計測することができる。この場合、図1の電源配線L3は、メモリセルアレイMAの電源ライン1132に結合される電源配線(L31)と、メモリ周辺回路の電源ラインに結合される電源配線(L32)との2本の電源配線を含む構成へと変更される。そして、図1の電流測定回路150は、電源配線(L31)に結合され、電源配線(L31)に流れる駆動電流(動作電流)を計測する。 In FIG. 13, when the power supply line of the memory peripheral circuit including the row selection circuit RDEC, the column selection circuit CDEC, and the input / output control circuit IOCKT is separated from the power supply line 1132 of the memory cell array MA, the memory cell In order to diagnose the failure, it is sufficient that the drive current flowing in the power supply line 1132 of the memory cell array MA can be measured by the current measurement circuit 150 in FIG. Thereby, since the power supply line 1132 of the memory cell array MA and the power supply line of the memory peripheral circuit are separated, the influence of the drive current of the memory peripheral circuit is reduced, and the change of the drive current of the memory cell array MA is more reliably performed. It can be measured. In this case, the power supply line L3 in FIG. 1 has two power supplies, a power supply line (L31) coupled to the power supply line 1132 of the memory cell array MA and a power supply line (L32) coupled to the power supply line of the memory peripheral circuit. The configuration is changed to include wiring. The current measurement circuit 150 in FIG. 1 is coupled to the power supply wiring (L31), and measures the drive current (operating current) flowing through the power supply wiring (L31).
 <本発明のまとめ>
 本発明に係る車載制御装置100は、前記電流測定回路150を設けることにより、メモリ(RAM)113が完全に故障する前に、故障の予兆を捉えることが可能である。故障の予兆を捉えるため、メモリ(RAM)113の隣接するメモリセル1131に対し、例えば、互いに異なるビット値がチェック用の書込みデータ(チェッカーデータ)として書き込まれる。チェッカーデータがメモリ(RAM)113に対して書き込まれた状態で、メモリ(RAM)113の駆動電流が前記電流測定回路150により測定される。測定された駆動電流の値が閾値を超えているか否かに基づき、メモリ(RAM)113の状態が診断される。これにより、現時点では正常にデータを読み書きできるが将来的に故障を生じさせる可能性のあるメモリセル1131間の異物を早期の段階で検出することができる。将来的に故障を生じさせる可能性のあるメモリセルが完全に故障する前に、そのメモリセルを含む記憶領域のアドレスが、メモリ(RAM)113の空き領域にあらかじめ確保された正常なメモリセルを含む記憶領域のアドレスへと置換される。そのため、車両走行中におけるメモリ(RAM)113の故障を未然に防ぐことができる。したがって、車両走行中に、メモリ(RAM)113の故障が原因により発生するドライバーの意図に反したエンジンやトランスミッション等のアクチュエータの誤動作、および、その誤動作に起因する車両の意図しない挙動を防ぐことが可能である。車両走行中に、RAMが故障し、フェールセーフ処理に移行する制御が行われ、運転性能が低下することを可能な限り防ぐことができる。
<Summary of the present invention>
By providing the current measurement circuit 150, the in-vehicle control device 100 according to the present invention can catch a sign of failure before the memory (RAM) 113 completely fails. In order to catch a sign of failure, for example, different bit values are written as check write data (checker data) in adjacent memory cells 1131 of the memory (RAM) 113. The drive current of the memory (RAM) 113 is measured by the current measurement circuit 150 in a state where the checker data is written to the memory (RAM) 113. The state of the memory (RAM) 113 is diagnosed based on whether or not the measured drive current value exceeds a threshold value. As a result, it is possible to detect foreign matter between the memory cells 1131 that can normally read and write data at the present time but may cause a failure in the early stage. Before a memory cell that may cause a failure in the future completely fails, a normal memory cell in which an address of a storage area including the memory cell is reserved in an empty area of the memory (RAM) 113 is used. It is replaced with the address of the storage area that contains it. Therefore, a failure of the memory (RAM) 113 during traveling of the vehicle can be prevented in advance. Therefore, it is possible to prevent malfunction of an actuator such as an engine or transmission that is contrary to the driver's intention caused by a failure of the memory (RAM) 113 while the vehicle is traveling, and unintended behavior of the vehicle due to the malfunction. Is possible. It is possible to prevent the RAM from being broken and control to shift to the fail-safe process while the vehicle is running, and to reduce the driving performance as much as possible.
100:車載制御装置、110:メインマイコン、111:CPU、112:ROM113:RAM、120:サブマイコン、130:メイン電源IC、140:サブ電源IC、150:電流測定回路、160:外部メモリ、210:電源信号、220:バッテリ、230:アクチュエータ、240:表示装置、700:今回の診断領域、701:次回の診断領域、702:最後の診断領域、703:診断領域のデータの退避領域、704:空き領域、705:異常セルのアドレス置換後の領域、1131:RAM113を構成するメモリセル、1132:RAM113を構成する共通の電源ライン 100: In-vehicle control device, 110: Main microcomputer, 111: CPU, 112: ROM 113: RAM, 120: Sub microcomputer, 130: Main power IC, 140: Sub power IC, 150: Current measurement circuit, 160: External memory, 210 : Power signal, 220: Battery, 230: Actuator, 240: Display device, 700: Current diagnostic area, 701: Next diagnostic area, 702: Last diagnostic area, 703: Data saving area in the diagnostic area, 704: Empty area, 705: Area after address replacement of abnormal cell, 1131: Memory cell constituting RAM 113, 1132: Common power supply line constituting RAM 113

Claims (10)

  1.  車両が搭載している機器を制御する車載制御装置であって、
     前記機器を制御するための制御演算を実施可能な演算回路、
     前記演算回路が使用するデータを一時的に記憶可能な記憶装置、
     前記記憶装置に対して供給される駆動電流の値を測定可能な電流測定回路、
     を備え、
     前記演算回路は、前記電流測定回路から取得した前記駆動電流の値に基づき前記記憶装置が正常であるか否かを診断する、
     ことを特徴とする車載制御装置。
    An in-vehicle control device that controls equipment mounted on a vehicle,
    An arithmetic circuit capable of performing a control operation for controlling the device;
    A storage device capable of temporarily storing data used by the arithmetic circuit;
    A current measurement circuit capable of measuring a value of a drive current supplied to the storage device;
    With
    The arithmetic circuit diagnoses whether or not the storage device is normal based on the value of the drive current acquired from the current measurement circuit.
    An in-vehicle control device characterized by that.
  2.  前記演算回路は、前記記憶装置の隣接するメモリセルに対して互いに異なるビット値を書き込むことにより、前記隣接するメモリセルが互いに異なる電位となるようにした状態で、前記診断を実施する、
     ことを特徴とする請求項1記載の車載制御装置。 
    The arithmetic circuit performs the diagnosis in a state where the adjacent memory cells have different potentials by writing different bit values to adjacent memory cells of the storage device.
    The in-vehicle control device according to claim 1.
  3.  前記演算回路は、前記電流測定回路から取得した前記駆動電流の値が判定閾値を超えているか否かに基づき前記記憶装置が正常であるか否かを診断する
     ことを特徴とする請求項1記載の車載制御装置。
    The said arithmetic circuit diagnoses whether the said memory | storage device is normal based on whether the value of the said drive current acquired from the said current measurement circuit exceeds the determination threshold value. In-vehicle control device.
  4.  前記演算回路は、前記記憶装置の診断領域を故障と判断した場合、前記記憶装置の診断領域に格納されたデータを、あらかじめ用意した前記記憶装置の空き領域に格納し、前記記憶装置の診断領域のアドレスを、前記記憶装置の空き領域のアドレスへ置換する、
     ことを特徴とする請求項1記載の車載制御装置。
    When the arithmetic circuit determines that the diagnosis area of the storage device is faulty, the arithmetic circuit stores the data stored in the diagnosis area of the storage device in a free area of the storage device prepared in advance, and the diagnosis area of the storage device Is replaced with the address of the free area of the storage device,
    The in-vehicle control device according to claim 1.
  5.  警告メッセージを表示する表示装置を備え、
     前記演算回路は、前記診断により前記記憶装置を故障と判断し、あらかじめ用意した前記記憶装置の空き領域が故障セルのデータで置換済みの場合、前記記憶装置が故障である旨の警告メッセージを前記表示装置に表示させるとともに、所定のフェールセーフ処理を実施する、
     ことを特徴とする請求項1記載の車載制御装置。
    A display device for displaying a warning message;
    The arithmetic circuit determines that the storage device is faulty by the diagnosis, and if an empty area of the storage device prepared in advance has been replaced with data of a faulty cell, a warning message indicating that the storage device is faulty is displayed. In addition to displaying on the display device, a predetermined fail-safe process is performed.
    The in-vehicle control device according to claim 1.
  6.  前記車載制御装置は、前記記憶装置に対してのみ電力を供給する電源回路を備え、
     前記電流測定回路は、前記電源回路が前記記憶装置に対して供給する前記駆動電流を測定する、
     ことを特徴とする請求項1記載の車載制御装置。
    The in-vehicle control device includes a power supply circuit that supplies power only to the storage device,
    The current measuring circuit measures the driving current supplied to the storage device by the power supply circuit;
    The in-vehicle control device according to claim 1.
  7.  CPU、RAMを含む第1マイクロコンピュータと、
     前記CPUへ第1電源を供給するための第1電源配線と、
     前記RAMへ第2電源を供給するための第2電源配線と、
     前記第1電源配線に結合された第1電源回路と、
     前記第2電源配線に結合された第2電源回路と、
     前記第2電源配線に結合され、前記RAMの駆動電流の値を測定可能な電流測定回路と、
     前記電流測定回路に結合された第2マイクロコンピュータと、
     を含み、
     前記第2マイクロコンピュータは、前記電流測定回路から取得した前記駆動電流の値に基づき前記RAMが正常であるか異常であるかを診断し、診断結果を前記CPUへ送付する車載制御装置。
    A first microcomputer including a CPU and a RAM;
    A first power supply wiring for supplying a first power to the CPU;
    A second power supply wiring for supplying a second power to the RAM;
    A first power supply circuit coupled to the first power supply wiring;
    A second power supply circuit coupled to the second power supply wiring;
    A current measuring circuit coupled to the second power supply wiring and capable of measuring a value of a driving current of the RAM;
    A second microcomputer coupled to the current measuring circuit;
    Including
    The second microcomputer is a vehicle-mounted control device that diagnoses whether the RAM is normal or abnormal based on the value of the drive current acquired from the current measurement circuit, and sends the diagnosis result to the CPU.
  8.  不揮発性メモリを、さらに、含み、
     前記RAMは、アドレスによって判別され、それぞれが診断対象とされる複数の記憶領域を含み、
     前記CPUは、前記不揮発性メモリへ前記診断結果と次回に診断対象とされるべき記憶領域のアドレスとを格納する、
     ことを特徴とする請求項7記載の車載制御装置。
    Further comprising a non-volatile memory;
    The RAM includes a plurality of storage areas that are discriminated by an address, each of which is a diagnosis target,
    The CPU stores the diagnosis result and an address of a storage area to be diagnosed next time in the nonvolatile memory;
    The in-vehicle control device according to claim 7.
  9.  前記CPUは、前記診断に際し、前記診断対象とされるべき記憶領域内に格納されたデータを前記RAMに設けられた退避領域へ格納した後、前記診断対象とされるべき記憶領域へ診断用データの書き込みを行い、前記診断用データが前記診断対象とされるべき記憶領域に書き込まれた状態で、前記第2マイクロコンピュータへ前記電流測定回路による前記RAMの前記駆動電流の値の測定を指示する、
     ことを特徴とする請求項8記載の車載制御装置。
    In the diagnosis, the CPU stores data stored in the storage area to be diagnosed in a save area provided in the RAM, and then stores the diagnostic data in the storage area to be diagnosed. And instructing the second microcomputer to measure the value of the driving current of the RAM by the current measuring circuit in a state where the diagnostic data is written in the storage area to be diagnosed. ,
    The in-vehicle control device according to claim 8.
  10.  前記診断用データは、前記RAMの隣接するメモリセルに互いに異なるビット値を設定する、
     ことを特徴とする請求項9記載の車載制御装置。
    The diagnostic data sets different bit values in adjacent memory cells of the RAM,
    The in-vehicle control device according to claim 9.
PCT/JP2017/034855 2016-10-26 2017-09-27 Vehicle control unit WO2018079163A1 (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
CN201780062622.9A CN109844724B (en) 2016-10-26 2017-09-27 Vehicle-mounted control device
JP2018547211A JP6694517B2 (en) 2016-10-26 2017-09-27 In-vehicle control device
DE112017004594.0T DE112017004594T5 (en) 2016-10-26 2017-09-27 VEHICLE CONTROL UNIT

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2016-209254 2016-10-26
JP2016209254 2016-10-26

Publications (1)

Publication Number Publication Date
WO2018079163A1 true WO2018079163A1 (en) 2018-05-03

Family

ID=62024804

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2017/034855 WO2018079163A1 (en) 2016-10-26 2017-09-27 Vehicle control unit

Country Status (4)

Country Link
JP (1) JP6694517B2 (en)
CN (1) CN109844724B (en)
DE (1) DE112017004594T5 (en)
WO (1) WO2018079163A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110890121A (en) * 2018-09-07 2020-03-17 合肥沛睿微电子股份有限公司 Storage device and NAND flash memory controller thereof

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1139231A (en) * 1997-07-17 1999-02-12 Unisia Jecs Corp Electronic controller for vehicle
JP2003323353A (en) * 2002-05-01 2003-11-14 Denso Corp Memory diagnostic device and control device
JP2008286740A (en) * 2007-05-21 2008-11-27 Renesas Technology Corp Semiconductor integrated circuit, and testing method therefor

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US3478286A (en) * 1965-07-01 1969-11-11 Ibm System for automatically testing computer memories
JPH02147968A (en) * 1988-11-30 1990-06-06 Fuji Heavy Ind Ltd Apparatus for detecting fault of electric circuit
JPH06105452A (en) * 1992-09-25 1994-04-15 Toshiba Corp Load control apparatus
JP2000137501A (en) * 1998-11-02 2000-05-16 Unisia Jecs Corp Diagnostic device for ram
US6490697B1 (en) * 1998-08-27 2002-12-03 Unisia Jecs Corporation Diagnosing apparatus and method for RAM
JP4135494B2 (en) * 2002-12-19 2008-08-20 富士ゼロックス株式会社 Fault diagnosis system
JP4397184B2 (en) * 2003-07-14 2010-01-13 株式会社ルネサステクノロジ Arithmetic circuit device and magnetic memory device
JP2005276114A (en) * 2004-03-26 2005-10-06 Kyocera Mita Corp Memory control apparatus
JP2006091940A (en) * 2004-09-21 2006-04-06 Matsushita Electric Ind Co Ltd Memory control device
JP5100035B2 (en) * 2005-08-02 2012-12-19 ルネサスエレクトロニクス株式会社 Semiconductor memory device
KR101156336B1 (en) * 2008-02-14 2012-06-13 미쓰비시덴키 가부시키가이샤 Load current monitoring device and load power monitoring device
KR101001140B1 (en) * 2008-11-06 2010-12-15 주식회사 하이닉스반도체 Semiconductor memory device and mehtod for termination operation
JP6161482B2 (en) * 2013-09-19 2017-07-12 ルネサスエレクトロニクス株式会社 Semiconductor memory device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1139231A (en) * 1997-07-17 1999-02-12 Unisia Jecs Corp Electronic controller for vehicle
JP2003323353A (en) * 2002-05-01 2003-11-14 Denso Corp Memory diagnostic device and control device
JP2008286740A (en) * 2007-05-21 2008-11-27 Renesas Technology Corp Semiconductor integrated circuit, and testing method therefor

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110890121A (en) * 2018-09-07 2020-03-17 合肥沛睿微电子股份有限公司 Storage device and NAND flash memory controller thereof
CN110890121B (en) * 2018-09-07 2021-10-22 合肥沛睿微电子股份有限公司 Storage device and NAND flash memory controller thereof

Also Published As

Publication number Publication date
CN109844724B (en) 2023-04-11
JP6694517B2 (en) 2020-05-13
DE112017004594T5 (en) 2019-07-11
CN109844724A (en) 2019-06-04
JPWO2018079163A1 (en) 2019-06-24

Similar Documents

Publication Publication Date Title
JP3910078B2 (en) Semiconductor memory device and method for testing semiconductor memory device
US8379466B2 (en) Integrated circuit having an embedded memory and method for testing the memory
US8509006B2 (en) Semiconductor device and method of detecting abnormality on semiconductor device
US10324123B2 (en) Semiconductor device and method of diagnosing semiconductor device
US20120096323A1 (en) Diagnostic circuit and semiconductor integrated circuit
US20070223297A1 (en) Semiconductor storage device
US6501691B2 (en) Word-line deficiency detection method for semiconductor memory device
JP2004178724A (en) Nonvolatile semiconductor storage device, and method of detecting short circuit failure in rows
JP6694517B2 (en) In-vehicle control device
JP5486948B2 (en) Nonvolatile semiconductor memory device having defect detection circuit and defect detection method of nonvolatile semiconductor memory device
US9251864B2 (en) System and method for providing voltage supply protection in a memory device
KR100610015B1 (en) Circuits for burn-in test in memory device having open bit-line cell structure and method thereof
JP2005302809A (en) Semiconductor device
JP4927164B2 (en) Semiconductor device
TWI608481B (en) Semiconductor memory apparatus
WO2019207905A1 (en) Vehicle-mounted control device
JP5465266B2 (en) Semiconductor memory device
US20230207034A1 (en) Semiconductor device and testing method for memory circuit
JP4566209B2 (en) Semiconductor memory device
JP2012164390A (en) Semiconductor memory device and cell leakage detection method therefor
TWI484496B (en) Storage medium and floating detection method
JP2019046223A (en) Semiconductor device
KR20230168093A (en) Row decoder circuit, memory device and memory system
US7813195B2 (en) Method for testing semiconductor memory device
JP2012038378A (en) Semiconductor memory

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17864957

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2018547211

Country of ref document: JP

Kind code of ref document: A

122 Ep: pct application non-entry in european phase

Ref document number: 17864957

Country of ref document: EP

Kind code of ref document: A1