Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP6694517B2 - In-vehicle control device - Google Patents
[go: Go Back, main page]

JP6694517B2 - In-vehicle control device - Google Patents

In-vehicle control device Download PDF

Info

Publication number
JP6694517B2
JP6694517B2 JP2018547211A JP2018547211A JP6694517B2 JP 6694517 B2 JP6694517 B2 JP 6694517B2 JP 2018547211 A JP2018547211 A JP 2018547211A JP 2018547211 A JP2018547211 A JP 2018547211A JP 6694517 B2 JP6694517 B2 JP 6694517B2
Authority
JP
Japan
Prior art keywords
ram
vehicle
power supply
circuit
control device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2018547211A
Other languages
Japanese (ja)
Other versions
JPWO2018079163A1 (en
Inventor
啓人 栗原
啓人 栗原
務 赤池
務 赤池
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Astemo Ltd
Original Assignee
Hitachi Automotive Systems Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Automotive Systems Ltd filed Critical Hitachi Automotive Systems Ltd
Publication of JPWO2018079163A1 publication Critical patent/JPWO2018079163A1/en
Application granted granted Critical
Publication of JP6694517B2 publication Critical patent/JP6694517B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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 OR CALCULATING; 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 OR CALCULATING; 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)

Description

本発明は、車両が搭載する機器を制御する車載制御装置に関する。   The present invention relates to an in-vehicle control device that controls a device 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 on-vehicle electronic control unit (ECU: Electronic Control Unit) as an on-vehicle control unit (Vicole Control Unit) for controlling a device mounted on a vehicle includes a microcomputer (hereinafter, referred to as a microcomputer) for performing control calculation. .. 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 fails, the write data to the RAM and the read data from the RAM become improper data, which causes a problem in the control calculation of the CPU and makes it difficult to carry out the desired control calculation. Therefore, the vehicle-mounted control device has a function of diagnosing the RAM.

下記特許文献1は、RAMの故障を診断する手法を記載している。同文献においては、所定診断タイミング毎に、診断対象のRAM領域に対して所定の値を書き込み、その値を読み出すことを繰り返し実施する。書き込んだ値と読み出した値が一致しない場合、RAMが故障していると判断し、自動車が危険な状態に陥らないようにフェールセーフ処理を実施する。   The following Patent Document 1 describes a method of diagnosing a failure of RAM. In this document, a predetermined value is written in the RAM area to be diagnosed and the value is read out repeatedly at every predetermined diagnosis timing. If the written value and the read value do not match, it is determined that the RAM has failed, and fail-safe processing is performed so that the vehicle does not fall into a dangerous state.

なお、フェールセーフ処理の一例には、RAMの故障による誤った制御を防止するため、ドライバーの操縦指示による変速制御は無効とし、変速比を固定とすることにより、リンプホーム運転が可能となるような安全制御を実施するものがある。   As an example of the fail-safe processing, in order to prevent erroneous control due to a failure of RAM, the gear change control by the driver's steering instruction is invalidated and the gear ratio is fixed so that the limp home operation can be performed. There are some that implement various safety controls.

特開2000−137501号公報JP-A-2000-137501

上記特許文献1が記載しているRAM診断方法は、RAMを構成するメモリセル(1ビットのデータを記憶する記憶素子)が完全に故障し、所望の値をライトもしくはリードすることが完全に不可能となるに至った場合は、RAMの故障を検知することができる。しかしながら、完全に故障していないものの、将来、故障となるポテンシャルを持つメモリセルの検出は不可能と考えられる。   In the RAM diagnosing method described in Patent Document 1, a memory cell (a storage element that stores 1-bit data) that constitutes a RAM completely fails, and it is completely impossible to write or read a desired value. When it becomes possible, the failure of the RAM can be detected. However, it is considered impossible to detect a memory cell that has a potential to become a failure in the future although it is not completely failed.

車載制御装置に利用されるマイコンは、一般的に、半導体製造メーカにより加速試験や最終テストを実施され、故障の無い状態と判断されて、車載制御装置の製造メーカへ出荷される。しかしながら、車載制御装置のマイコンが備えるRAMは、半導体製造工程において混入した異物により隣接するトランジスタ間や配線間の短絡(ショート)や長期使用による経年劣化による不良などが原因となり、車両の走行中に故障する可能性が少なからず存在する。   A microcomputer used in an on-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 failure-free state, and shipped to the manufacturer of the on-vehicle control device. However, the RAM included in the microcomputer of the vehicle-mounted control device may be defective due to a short circuit between adjacent transistors or wiring due to foreign substances mixed in the semiconductor manufacturing process or deterioration due to aged deterioration due to long-term use. There is a considerable possibility of failure.

一般的に知られているRAMの故障モードとしては、例えば、以下のものがある。これらの故障モードが1つでも発生した場合、故障したメモリセルには、期待する値をライトもしくはリードすることが不可能となる。
(故障その1)メモリセルの値が「0」または「1」に固定される縮退故障。
(故障その2)あるメモリセルが格納している値が変化するのと連動して他のメモリセルの値も変化するカプリング故障。
(故障その3)メモリアドレスを正しく選択できないアドレスデコーダ故障。
(故障その4)あるメモリセルに隣接する上下左右に配置されたメモリセルが記憶している値の影響を受けて、当該メモリセルが記憶している値も変化する、パターンセンシティブ故障。
Commonly known RAM failure modes include, for example, the following. If any one of these failure modes occurs, it becomes impossible to write or read the expected value to the failed memory cell.
(Fault 1) A stuck-at fault in which the value of the memory cell is fixed at "0" or "1".
(Fault 2) A coupling fault in which the value stored in one memory cell changes and the value in another memory cell also changes.
(Fault 3) Faulty address decoder that cannot select memory address correctly.
(Fault 4) A pattern-sensitive fault in which a value stored in a memory cell adjacent to a memory cell is affected by a value stored in the memory cell and the value stored in the memory cell is also changed.

たとえば、半導体製造工程において、異物がメモリセル上に付着し、その異物が経年使用により何らかの原因で移動して隣接するメモリセル間に付着した場合、その隣接するメモリセルが異物により短絡し、RAMの故障を引き起こす場合がある。ただし、メモリセル間の短絡状態によっては、短絡によって生じる電位変動が故障と判断される判定閾値に至らない程度にとどまる場合がある。この場合、メモリセル間に短絡故障が生じていたとしても、書き込んだ値と同じ値を読み出すことができる。上記特許文献1に記載の診断手法は、このような故障を検出することは開示されていない。   For example, in a semiconductor manufacturing process, when a foreign substance adheres to 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 due to the foreign substance and RAM May cause a breakdown. However, depending on the short-circuit state between the memory cells, the potential fluctuation caused by the short-circuit may remain at a level that does not reach the determination threshold value for determining a failure. In this case, the same value as the written value can be read even if a short circuit failure has occurred between the memory cells. The diagnostic method described in Patent Document 1 above does not disclose detecting such a failure.

他方、このようなメモリセル間の短絡故障を放置すると、短絡状態が経年使用により進行し、メモリセル間が完全に短絡し、RAMの故障として診断されることになると想定される。このように将来RAMの故障として顕出する潜在的な故障は、できる限り早い時点で検出することが望ましい。   On the other hand, if such a short-circuit fault between memory cells is left as it is, it is assumed that a short-circuit state will progress due to long-term use and the memory cells will be completely short-circuited, resulting in a diagnosis of a RAM fault. In this way, it is desirable to detect a potential failure that appears as a failure in the RAM in the future at the earliest possible time.

本発明は、上記のような課題に鑑みてなされたものであり、記憶装置の故障の予兆を検出し、記憶装置の正常な状態を可能なかぎり継続可能な車載制御装置を提供することを目的とする。   The present invention has been made in view of the above problems, and an object of the present invention is to provide a vehicle-mounted control device that detects a sign of a failure of a storage device and can maintain the normal state of the storage device as long as possible. And

本発明に係る車載制御装置は、演算回路(111)と、前記演算回路による制御演算に使用されるデータを一時的に記憶する記憶装置(113)と、前記記憶装置の駆動電流を測定可能な電流測定回路(150)とを備える。前記演算回路は、前記電流測定回路から取得した前記駆動電流の値に基づき前記記憶装置の診断を実施する。   The vehicle-mounted 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 diagnoses the storage device based on the value of the drive current acquired from the current measuring circuit.

本発明に係る車載制御装置によれば、現時点では記憶装置(RAM)に対して正常にデータを読み書きできるものの、将来的に故障する可能性があるような記憶装置の故障の予兆を、早期の段階で検出することができる。   According to the vehicle-mounted control device of the present invention, although data can be normally read / written from / to the storage device (RAM) at the present moment, a sign of failure of the storage device that may possibly fail in the future can be detected at an early stage. It can be detected in stages.

車載制御装置100の構成図である。It is a block diagram of the vehicle-mounted control apparatus 100. RAM113に対してチェッカーデータを書き込んだとき各メモリセルが格納しているビット値を模式的に示す一例の図である。FIG. 7 is an example of a diagram schematically showing a bit value stored in each memory cell when checker data is written in a RAM 113. RAM113に対してチェッカーデータを書き込んだとき各メモリセルが格納しているビット値を模式的に示す他の一例の図である。FIG. 6 is a diagram of another example schematically showing the bit value stored in each memory cell when the checker data is written in the RAM 113. RAM113に対してチェッカーデータを書き込んだとき各メモリセルが格納しているビット値を模式的に示す他の一例の図である。FIG. 6 is a diagram of another example schematically showing the bit value stored in each memory cell when the checker data is written in the RAM 113. 車載制御装置100がスタートアップするときメインマイコン110がRAM113を診断する手順の一例を説明するフローチャートである。7 is a flowchart illustrating an example of a procedure in which the main microcomputer 110 diagnoses the RAM 113 when the vehicle-mounted control device 100 starts up. 図3Aのフローチャートに続くフローチャートである。It is a flowchart following the flowchart of FIG. 3A. 車載制御装置100がスタートアップするときサブマイコン120がRAM113の駆動電流を診断する手順の一例を説明するフローチャートである。7 is a flowchart illustrating an example of a procedure in which the sub-microcomputer 120 diagnoses the drive current of the RAM 113 when the vehicle-mounted control device 100 starts up. 車載制御装置100がシャットダウンするときメインマイコン110がRAM113を診断する手順の一例を説明するフローチャートである。6 is a flowchart illustrating an example of a procedure in which the main microcomputer 110 diagnoses a RAM 113 when the vehicle-mounted control device 100 shuts down. 図5Aのフローチャートに続くフローチャートである。It is a flowchart following the flowchart of FIG. 5A. 車載制御装置100がシャットダウンするときサブマイコン120がRAM113を診断する手順の一例を説明するフローチャートである。6 is a flowchart illustrating an example of a procedure in which the sub-microcomputer 120 diagnoses the RAM 113 when the vehicle-mounted control device 100 shuts down. 車載制御装置100が、車両走行中に、メインマイコン110がRAM113を診断する手順の一例を説明するフローチャートである。4 is a flowchart illustrating an example of a procedure in which the vehicle-mounted control device 100 causes the main microcomputer 110 to diagnose the RAM 113 while the vehicle is traveling. 図7Aのフローチャートに続くフローチャートである。7B is a flowchart that follows the flowchart of FIG. 7A. 車載制御装置100が、車両走行中に、サブマイコン120がRAM113を診断する手順の一例を説明するフローチャートである。6 is a flowchart illustrating an example of a procedure in which the vehicle-mounted control device 100 causes the sub-microcomputer 120 to diagnose the RAM 113 while the vehicle is traveling. RAM113が有する記憶領域を示すアドレス図である。FIG. 3 is an address diagram showing a storage area included in a RAM 113. RAM113がスタティックランダムアクセスメモリ(SRAM)の場合のメモリセルの回路図である。FIG. 6 is a circuit diagram of a memory cell when the RAM 113 is a static random access memory (SRAM). 図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 memory cells of FIG. 11 are arranged in a matrix. スタティックランダムアクセスメモリ(SRAM)の模式的なブロック図である。FIG. 3 is a schematic 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 executes a control arithmetic operation for controlling a device, and a memory that temporarily stores data used by the arithmetic circuit. A (storage device, RAM) 113 and a current measuring circuit 150 capable of measuring the drive current supplied to the memory 113 are provided. The arithmetic circuit 111 diagnoses whether the memory 113 is normal based on the value of the drive current acquired from the current measuring circuit 150.

本発明に係る車載制御装置は、前記電流測定回路150を設けることにより、メモリ113が完全に故障する前に、故障の予兆を捉えることが可能である。故障の予兆を捉えるため、メモリ113の隣接するメモリセルに対し、例えば、互いに異なるビット値がチェック用の書込みデータ(以下、チェッカーデータと称す)として書き込まれる。そして、チェッカーデータの書き込まれた状態において、メモリ113の駆動電流が電流測定回路150により計測される。計測されたRAMの駆動電流の値とあらかじめ設定された判定閾値とが比較され、メモリ113の状態が診断される。前記判定閾値を超える様な駆動電流が流れるメモリセルは、完全に故障していないものの、将来的に故障となるポテンシャルを持つメモリセルと見做される。すなわち、故障の予兆があるメモリセルと見做される。そして、将来的に故障となるポテンシャルを持つメモリセルを含む記憶領域のアドレスは、そのメモリセルが完全に故障する前に、メモリ113の空き領域(未使用の記憶領域または未使用領域)内に、あらかじめ確保されている正常なメモリセルを含む記憶領域のアドレスへと置換される。   By providing the current measuring circuit 150, the vehicle-mounted control device according to the present invention can detect a sign of failure before the memory 113 completely fails. In order to detect a sign of a failure, different bit values are written as write data for checking (hereinafter referred to as checker data) to adjacent memory cells of the memory 113, for example. Then, the drive current of the memory 113 is measured by the current measuring circuit 150 in the state where the checker data is written. The value of the measured drive current of the RAM is compared with a preset determination threshold value, and the state of the memory 113 is diagnosed. A memory cell in which a drive current that exceeds the determination threshold flows is regarded as a memory cell that has a potential to become a failure in the future, although it is not completely failed. That is, it is regarded as a memory cell having a sign of failure. Then, the address of the storage area including the memory cell having a potential to become a failure in the future is stored in an empty area (unused storage area or unused area) of the memory 113 before the memory cell completely fails. , Is replaced with an address of a storage area including a normal memory cell that is secured in advance.

本発明に係る車載制御装置によれば、現時点ではメモリ113に対して正常にデータを読み書きできるが将来的に故障する可能性があるようなメモリ113の故障を、早期の段階で検出することができる。将来的に故障となるポテンシャルを持つメモリセルが完全に故障する前に、そのメモリセルを含む記憶領域のアドレスが、メモリ113の空き領域にあらかじめ確保された正常なメモリセルを含む記憶領域のアドレスへと置換される。そのため、車両走行中におけるメモリ113の故障を未然に防ぐことができる。したがって、車両走行中に、メモリ113の故障が原因により発生するドライバーの意図に反したエンジンやトランスミッション等のアクチュエータの誤動作、および、その誤動作に起因する車両の意図しない挙動を防ぐことが可能である。車両走行中に、RAMが故障し、フェールセーフ処理に移行する制御が行われ、運転性能が低下することを可能な限り防ぐことができる。   According to the vehicle-mounted control device of the present invention, it is possible to detect a failure of the memory 113 at an early stage such that data can be normally read / written from / to the memory 113 at the present time but may possibly 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 memory cell is the address of the storage area including a normal memory cell secured in advance in an empty area of the memory 113. Is replaced by. Therefore, it is possible to prevent the failure of the memory 113 while the vehicle is traveling. Therefore, it is possible to prevent a malfunction of an actuator such as an engine or a transmission against the driver's intention, which is caused by a failure of the memory 113, and an unintended behavior of the vehicle due to the malfunction while the vehicle is traveling. .. It is possible to prevent the driving performance from being deteriorated as much as possible by controlling the RAM to fail and the control to shift to the fail-safe processing while the vehicle is traveling.

また、現時点では壊れておらず、将来壊れそうなメモリセルを事前に検知して、そのメモリセルを含む記憶領域を使わない様にし、別途確保していた正常なメモリセルを含む未使用の記憶領域を使用して、本発明に係る車載制御装置により車載制御処理を継続させる。そのため、市場でのメモリ(RAM)113の故障による車載制御装置のユニット交換の減少、顧客からの車載制御装置のクレーム品としての返却品の数の減少、および、車載制御装置の不良解析の削減が見込まれ、車載制御装置の信頼性が向上する。   In addition, memory cells that are not broken at this moment and are likely to break in the future are detected in advance, and the memory area containing the memory cells is not used. The area is used to continue the on-vehicle control processing by the on-vehicle control device according to the present invention. Therefore, the number of replacements of the in-vehicle control unit due to the failure of the memory (RAM) 113 in the market is reduced, the number of returned products as in-vehicle control device complaints from the customer is reduced, and the in-vehicle control device failure analysis is reduced. Is expected, and 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 assigned the same reference numerals and repeated description may be omitted. It should be noted that, in order to make the description clearer, the drawings may schematically show the width and shape of each part as compared with the actual mode, but this is merely an example and limits 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 vehicle-mounted control device 100 is a vehicle-mounted electronic control unit (ECU: Electronic Control Unit) that electronically controls a vehicle-mounted device (for example, an automatic transmission, an engine, etc.) mounted in the vehicle. The vehicle-mounted control device 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 vehicle-mounted 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 characters or images, or 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 control arithmetic 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 in FIGS. 3A to 8 described later) and the like. 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 according to a request or an 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 on-vehicle control device 100 receives power supply from the battery 220 mounted on the vehicle. The main power supply IC (main power supply circuit) 130 lowers or boosts / decreases the power VB received from the battery 220 and supplies the power VB to the main microcomputer 110. Similarly, the sub power supply IC (sub power supply circuit) 140 lowers or boosts / decreases the power received from the battery 220 and supplies the power 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. That is, the main power supply IC 130 generates a first power supply circuit VG1 for the CPU 111, a second power supply circuit VG2 for the ROM 112, a second power supply circuit VG2, and a third power supply VB3 for the RAM 113. The power supply circuit VG3 is included. This is to suppress the influence of the driving current supplied to the RAM 113 due to the fluctuation of the driving current of the CPU 111 and the ROM 112, as described later. 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 measuring 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 uses the measurement result to diagnose the RAM 113 according to the procedure described later. The reason why the sub-microcomputer 120 executes the diagnosis will be described later. Although the circuit configuration of the current measuring circuit 150 is not specifically described, it will be easily understood by those skilled in the art 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 outputting the measurement result 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. The case where the measurement result is output as a digital signal is stronger than the case where the measurement result is output as an analog signal against the noise such as the power supply generated in the vehicle-mounted control device 100.

車両の運転者がイグニッションキーを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 vehicle-mounted control device 100 starts / shuts down according to the power supply signal 210. Accordingly, the main power supply IC 130 and the sub power supply IC 140 supply or cut off power to 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 non-volatile memory for storing a diagnosis result for the RAM 113, an address range as a diagnosis target, 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 vehicle-mounted control device 100 starts up or shuts down, and 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. It should be noted that examples of steady-state processing include control and diagnosis of actuators such as an engine and a transmission performed by the vehicle-mounted control device 100, and fail-safe processing.

図2A、図2Bおよび図2Cは、診断用データとしてのチェッカーデータを、RAM113のメモリセルへ書き込んだ状態を示している。各図において、RAM113のメモリセルとして、3行3列のアレイ状に配置された9個のメモリセル1131が例示的に示される。   2A, 2B, and 2C show a state in which the checker data as the diagnostic data is written in the memory cell of the RAM 113. In each drawing, nine memory cells 1131 arranged in an array of 3 rows and 3 columns are exemplarily shown as memory cells of the RAM 113.

図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 a diagram of an example schematically showing the bit value stored in each memory cell when the checker data is written in 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 memory cells 1131 on the upper, lower, left, and right sides. That is, in the nine memory cells 1131 arranged in three rows and three columns illustrated by way of example, the three memory cells in the first row store data of bit values of 1, 0, and 1, respectively. .. Data of bit values 0, 1, and 0 are stored in the three memory cells in the second row. Data of bit values of 1, 0 and 1 are stored in the three memory cells in the third row. With reference to the memory cell corresponding to the second row and the second column, the memory cells 1131 adjacent to each other in the upper, lower, left, and right sides store different bit value data. Since the memory cell 1131 generally represents a bit value depending on the magnitude of 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, the adjacent memory cells 1131 have different potentials.

RAM113を製造する半導体製造工程において混入した異物が、隣接するメモリセル1131間に残存していることを想定する。この場合、当該異物によって隣接メモリセルの記憶ノード間が架橋される。架橋された隣接するメモリセルの記憶ノードが互いに異電位である場合、その電位差に応じて隣接するメモリセルの記憶ノード間でリーク電流が流れることとなる。そうすると、異物が存在していない場合と比較して、RAM113の駆動電流が大きくなる。   It is assumed that the foreign matter mixed in the semiconductor manufacturing process for manufacturing the RAM 113 remains between the adjacent memory cells 1131. In this case, the foreign matter bridges the storage nodes of the adjacent memory cells. When the storage nodes of adjacent memory cells that are bridged have different potentials, a leak current flows between the storage nodes of the adjacent memory cells according to the potential difference. Then, the drive current of the RAM 113 becomes larger than that in the case where no foreign matter is present.

サブマイコン120は、後述されるように、ステップS203、S403、S603において、このことを利用してRAM113の異常を診断する。仮にメモリセル1131に対するデータ読み書きが正常に実施できるとしても、かかる異物の存在は将来において短絡故障を生じさせる可能性がある。そのため、本発明においては、異常と診断されたメモリセルを含む記憶領域のアドレスは、あらかじめRAM113の空き領域(未使用の記憶領域または未使用領域)に確保された正常なメモリセルを含む記憶領域のアドレスへ置換される。それにより、車両走行中に、メモリ113の故障が原因により発生するドライバーの意図に反したエンジンやトランスミッション等のアクチュエータの誤動作、および、その誤動作に起因する車両の意図しない挙動を防ぐことが可能である。   As will be described later, the sub-microcomputer 120 utilizes this in steps S203, S403, and S603 to diagnose an abnormality in the RAM 113. Even if data reading / writing can be normally performed on 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 which is secured in advance in the empty area (unused storage area or unused area) of the RAM 113. Will be replaced with the address of. As a result, it is possible to prevent a malfunction of an actuator such as an engine or a transmission against the driver's intention, which is caused by a failure of the memory 113, and an unintended behavior of the vehicle due to the malfunction while the vehicle is traveling. is there.

但し、隣接するメモリセル1131が互いに同じビット値を格納している場合、隣接するメモリセルの記憶ノード間の電位差はほぼない。この場合、仮に隣接メモリセルの記憶ノード間に異物が存在して架橋されたとしても、リーク電流は流れないか、または、僅かであると考えられる。駆動電流に基づき異物の存在を顕著に検出するためには、図2Aに示すように隣接するメモリセルの記憶ノードが互いに異なるビット値を格納することが望ましい。すなわち、チェッカーデータは、隣接するメモリセルの記憶ノード間に異物が存在して架橋されていた場合に、リーク電流を顕在化させる様なデータパターンが選択される。   However, when adjacent memory cells 1131 store the same bit value, there is almost no potential difference between the storage nodes of the adjacent memory cells. In this case, it is considered that even if foreign matter is present between the storage nodes of the adjacent memory cells and they are bridged, the leak current does not flow or is small. 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, as the checker data, a data pattern is selected such that the leakage current is actualized when a foreign substance is present between the storage nodes of the adjacent memory cells and the storage nodes are 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 the bit value stored in each memory cell when the checker data is written in the RAM 113. In the nine memory cells 1131 illustrated by way of example, data of bit values 1, 1, and 1 are stored in the three memory cells in the first row. Data of bit values 0, 0, and 0 are stored in the three memory cells in the second row. Data of bit values 1, 1, and 1 are stored in the three memory cells in the third row.
The checker data is configured to store data having different bit values between upper and lower memory cells. That is, the three memory cells 1131 in the second row and the three memory cells 1131 in each of the first and third rows are configured to store data of different bit values. This checker data is effective for detecting a leak current due to a short circuit between the storage nodes of the memory cells arranged above and below, for example.

図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 the bit value stored in each memory cell when the checker data is written in the RAM 113. In the nine memory cells 1131, data of bit values of 1, 0 and 1 are stored in the three memory cells of the first row.
Data having bit values of 1, 0 and 1 are stored in the three memory cells in the second row. Data having bit values of 1, 0 and 1 are stored in the three memory cells in the third row. The checker data is configured to store data having different bit values between the left and right memory cells. That is, the three memory cells 1131 in the second column and the three memory cells 1131 in each of the first and third columns are configured to store data of different bit values.
The checker data is effective for detecting a leak current due to a short circuit between the storage nodes of the memory cells arranged on the left and right.

チェッカーデータのデータパターンの構成は、メモリセルのレイアウト構成およびアレイ状に配置される複数のメモリセルのレイアウト構成に依存する。より具体的には、メモリセルの記憶ノードのレイアウト構成およびメモリセル間の記憶ノードの配置や距離に依存するため、診断対象のRAM113に採用されるメモリセルのレイアウト構成および複数のメモリセルのレイアウト構成を考慮して選択するのが良い。   The configuration of the data pattern of the checker data depends on the layout configuration of the memory cells and the layout configuration of the 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 adopted in the RAM 113 to be diagnosed. It is good to select it considering the configuration.

図3Aおよび図3Bは、車載制御装置100がスタートアップするとき、メインマイコン110がRAM113を診断する手順を説明するフローチャートの一例である。以下、図3の各ステップについて説明する。図3Aに示される1,2,3の部分は、図3Bに示される1,2,3の部分にそれぞれ接続される。   FIG. 3A and FIG. 3B are an example of a flowchart illustrating a procedure in which the main microcomputer 110 diagnoses 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, and 3 shown in FIG. 3A are connected to the parts 1, 2, and 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. At the time of starting this flowchart, it is assumed that the main power supply IC 130 and the sub power supply IC 140 have already started to supply power according to the power supply signal 210.

(図3A:ステップS101)
メインマイコン110は、外部メモリ160から前回実施したRAM113に対する診断結果と、今回診断するRAM113上の記憶領域のアドレスを読み出す。
(FIG. 3A: Step S101)
The main microcomputer 110 reads, from the external memory 160, the diagnosis result of the RAM 113 executed last time 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 as a failure by the previous diagnosis of the RAM 113, the process skips to step S112. If it is normal or the diagnosis has not been performed, the process proceeds to step S103. The previous diagnosis result here is, for example, a diagnosis result at the time of the previous shutdown when the diagnosis of the RAM 113 is performed at each of the startup, the shutdown, and the traveling as will be described later. If the RAM 113 was faulty at the time of the previous shutdown, it is considered to be faulty also at the start-up this time, and in such a case, it is decided to skip 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 in step S101 to the save area prepared for saving in advance.

(図3A:ステップS104)
メインマイコン110は、ステップS101で読み出した診断対象アドレスに対して、診断用データとされるチェッカーデータを書き込む。図2A、図2B、図2Cで説明したように、チェッカーデータは隣接するメモリセルが互いに異なるビット値を格納することにより互いに異電位となるように構成されたデータである。
(FIG. 3A: Step S104)
The main microcomputer 110 writes the checker data, which is the diagnostic data, to the diagnosis target address read in step S101. As described with reference to FIGS. 2A, 2B, and 2C, the 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 out the data from the address where the checker data is written. If the read data and the written checker data match, the process proceeds to step S105, and if they do not match, 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 the 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 measurement result of the drive current from the sub microcomputer 120. If the measurement result is normal, the process proceeds to step S108, and if it 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 diagnostic area.

(図3B:ステップS109)
メインマイコン110は、故障と判断したメモリセルの置換後の記憶領域として、あらかじめ用意している、RAM113の空き領域(未使用領域)の有無を確認する。RAM113の空き領域が有る場合、ステップS110に進み、RAM113の空き領域が無い場合は、ステップS112に進む。空き領域(未使用領域)とは、CPU111により利用さるデータが格納されていない部分の記憶領域を意味する。
(FIG. 3B: Step S109)
The main microcomputer 110 confirms whether or not there is a free area (unused area) of the RAM 113 prepared in advance as a storage area after replacement of the memory cell determined to be defective. When there is a free area in the RAM 113, the process proceeds to step S110, and when there is no free region in the RAM 113, the process proceeds to step S112. The free area (unused area) means a storage area of a portion in which 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 a free area.

(図3B:ステップS111)
メインマイコン110は、故障と診断したメモリのアドレスをあらかじめRAM113の空き領域に確保している正常なメモリのアドレスに置換する。
(FIG. 3B: Step S111)
The main microcomputer 110 replaces the address of the memory that has been diagnosed as a failure with the address of the normal memory that is secured in the free area of the RAM 113 in advance.

(図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 on the display device 240 a message indicating 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 a function is degenerated and an operation in which the function is pushed to the safe side is performed. In the fail-safe mode, the main microcomputer 110 disables the vehicle control based on the driver's driving instruction in order to prevent the vehicle from being erroneously controlled due to the failure of the RAM 113, and sets the actuator 230 to the safe driving mode. 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 the regular processing 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 vehicle-mounted 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 supply signal 210 indicating that the power is turned on, the sub-microcomputer 120 starts this flowchart. At the time of starting this flowchart, it is assumed that the main power supply IC 130 and the sub power supply IC 140 have already started to supply power according to the power supply signal 210.

(図4:ステップS201)
サブマイコン120は、メインマイコン110からRAM113の駆動電流を測定するよう指示する命令を受け取っているか否かを判定する。指示が有る場合はステップS202へ進み、無い場合は本フローチャートを終了(END)する。
(FIG. 4: Step S201)
The sub-microcomputer 120 determines whether or not it has received from the main microcomputer 110 a command instructing to measure the drive current of the RAM 113. 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 measuring circuit 150.

(図4:ステップS203)
サブマイコン120は、取得した駆動電流値が判定閾値以下であるか否かを判定する。
取得した駆動電流値が判定閾値を下回る場合はRAM113が正常であると判断してステップS204へ進み、取得した駆動電流値が判定閾値を上回る場合は故障であると判断してステップS205へ進む。判定閾値は、サブマイコン120(または、メインマイコン110)が備えるROMなど不揮発性メモリにあらかじめ格納しておくことができる。
(FIG. 4: Step S203)
The sub-microcomputer 120 determines whether the acquired drive current value is less than or equal to the determination threshold value.
When the acquired drive current value is less than the determination threshold value, the RAM 113 is determined to be normal and the process proceeds to step S204. When the acquired drive current value is greater than the determination threshold value, it is determined to be a failure and the process proceeds to step S205. The determination threshold can be stored in advance in a non-volatile memory such as a ROM included in the sub-microcomputer 120 (or the main microcomputer 110).

(図4:ステップS203:補足)
本ステップにおいては駆動電流値と判定閾値を比較しているので、駆動電流を正確に取得することが必要である。CPU111、ROM112などのRAM113以外の他回路部品に対して電力を供給する電源パスと、RAM113に対して電力を供給する電源パスとが共通になっていると、他回路部品の電圧や電流の影響を受けてRAM113の駆動電流が変動し、正確な値を取得できない可能性がある。そのため、図1で説明されたように、メイン電源IC130は、これら回路部品に対してそれぞれ個別に電力を提供するように、構成されている。
(FIG. 4: Step S203: Supplement)
Since the drive current value and the determination threshold value are compared in this step, 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 will occur. In response to this, the drive current of the RAM 113 varies, and there is a possibility that an accurate value cannot be acquired. Therefore, as described with reference to FIG. 1, the main power supply IC 130 is configured to individually provide electric 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の部分にそれぞれ接続される。   5A and 5B are an example of a flowchart illustrating a procedure in which the main microcomputer 110 diagnoses the RAM 113 when the vehicle-mounted control device 100 shuts down. Each step of FIGS. 5A and 5B will be described below. The parts 4, 5, and 6 shown in FIG. 5A are connected to the parts 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 supply signal 210 indicating that the power supply has been cut off, the main microcomputer 110 starts this flowchart (S300). The main microcomputer 110 ends the steady process of the vehicle-mounted 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 whether or not there is a free area in the RAM 113, which is prepared in advance as the area after replacement of the memory cell determined to be defective. 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 315)
The main microcomputer 110 transmits a shutdown signal to the main power IC 130 and the sub power IC 140 (S314). As a result, each power supply IC stops the power supply, and the main microcomputer 110 and the sub-microcomputer 120 are turned off (S315).

なお、ステップS314に移行する前に、再び、メインマイコン110が電源の投入されたことを示す電源信号210を受信する場合もあり得る。そのため、ステップS309において、退避されたデータが現在の診断領域へ書き戻すステップS309が実行される。それにより、再度、図3Aおよび図3Bのフローチャートが実行されることとなる。   It is possible that the main microcomputer 110 receives the power signal 210 indicating that the power is turned on again before the process proceeds to step S314. Therefore, in step S309, step S309 in which the saved data is written back to the current diagnostic area is executed. As a result, 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 in which the sub-microcomputer 120 diagnoses the RAM 113 when the vehicle-mounted control device 100 shuts down. It is assumed that the main power supply IC 130 and the sub power supply IC 140 continue to supply electric power at the time of starting this flowchart. Hereinafter, each step of FIG. 6 will be described. When the vehicle-mounted control device 100 shuts down, the process proceeds to step S400 of this 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)
Since the main microcomputer 110 sends a shutdown signal to the sub power IC in step S315, the sub microcomputer 120 is turned off.

図7Aおよび図7Bは、車載制御装置100が定時処理中に、メインマイコン110がRAM113を診断する手順を説明するフローチャートである。定常処理とは、車載制御装置100により、エンジンやトランスミッション等のアクチュエータの制御や診断、通信等の処理が複数にタスクに分割され、一定周期毎に実行される。図7Aおよび図7Bに示す、本発明のRAM113を診断するタスクは、定常処理の一部のタスクとして実行される。以下、図7Aおよび図7Bの各ステップについて説明する。なお、図7Aに示される7,8,9の部分は、図7Bに示される7,8,9の部分にそれぞれ接続される。   7A and 7B are flowcharts illustrating a procedure in which the main microcomputer 110 diagnoses the RAM 113 during the on-time processing of the vehicle-mounted control device 100. The steady process is performed by the in-vehicle control device 100 by dividing a process such as control of an actuator such as an engine and a transmission, diagnosis, and communication into a plurality of tasks, which are executed at regular intervals. The task of diagnosing the RAM 113 of the present invention shown in FIGS. 7A and 7B is executed as a part of the routine processing. Hereinafter, each step of FIGS. 7A and 7B will be described. The parts 7, 8 and 9 shown in FIG. 7A are connected to the parts 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, and shifts to the 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 illustrating a procedure in which the sub-microcomputer 120 diagnoses the RAM 113 during the regular processing of the vehicle-mounted control device 100. Each step of FIG. 8 will be described below.

(図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, and shifts to the 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 an attempt is made to diagnose the entire storage area of the RAM 113 at once, it takes a long time for diagnosis. In addition, it is necessary to determine the failure area on the memory cell. Therefore, as shown in FIG. 9, the diagnosis target address is divided into a plurality of areas, so that the entire storage area of the RAM 113 is divided into a plurality of diagnosis areas. Then, as described with reference to FIGS. 3A to 8, during one of the startup / shutdown / steady processing, or both, storage areas with different addresses are diagnosed as diagnostic areas. The main microcomputer 110 / sub-microcomputer 120 writes the next diagnosis target address to the external memory 160 each time the diagnosis is performed, and determines the diagnosis target address in accordance with this when the next diagnosis is performed.

メモリアドレス0000h−FFEEh(末尾のhは、16進アドレス示す)の診断領域700〜702は、先頭の診断領域は700、次回診断領域701、最後の診断領域702で構成される。最後の診断領域702まで診断が進んだ場合、先頭の診断領域700に戻る。診断領域に元々格納されていたデータを退避する記憶領域として、メモリアドレスFFEFhに、診断領域のデータの退避領域703が確保される。メモリアドレスFFF0h−FFFFhは、空き領域(未使用領域)704として確保される。故障とした診断した記憶領域の置換後の記憶領域705は、空き領域(未使用領域)704内に確保される。異常セルのアドレス置換後の記憶領域が空き領域の記憶容量を超える場合は、正常な領域のメモリセルへの置換は不可となる。この場合、メインマイコン110は、RAM113の診断結果が故障であった旨のメッセージを表示装置240上に表示し、フェールセーフモードを開始する。なお、上記で説明されたメモリアドレスの領域の割付けは、一例であり、それに限定されるものではなく、適宜変更されてよい。   The diagnostic areas 700 to 702 of the memory address 0000h-FFEEh (h at the end indicates a hexadecimal address) are composed of the leading diagnostic area 700, the next diagnostic area 701, and the final diagnostic area 702. When the diagnosis has proceeded 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 diagnostic area, a save area 703 for the data in the diagnostic area is secured at the memory address FFEFh. The memory addresses FFF0h-FFFFh are secured as a free area (unused area) 704. A storage area 705 after replacement of the storage area diagnosed as a failure is secured in a free area (unused area) 704. When the storage area after the address replacement of the abnormal cell exceeds the storage capacity of the empty area, the replacement of the normal area with the memory cell becomes impossible. In this case, the main microcomputer 110 displays a message indicating that the diagnosis result of the RAM 113 has a failure on the display device 240 and starts the fail safe mode. Note that the allocation of the memory address area described above is an example, and the present invention is not limited to this and may be appropriately changed.

図10は、RAM113がスタティック ランダム アクセス メモリ(SRAM:Static Ramdom Access Memory)の場合のメモリセルMCの回路図を示す。メモリセルMCは、CMOS型の6トランジスタであり、以下を含む。   FIG. 10 is 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 and PM2 and N-channel MOS transistors NT1, NT2, ND1 and ND2. The source / drain paths of the P-channel MOS transistors PM1 and PM2, which are load transistors, are connected between the line of the power supply potential (VDD) 1132 and the first and second storage nodes MB and MT, and their gates are connected. It is connected to the second and first storage nodes MT and MB, respectively. The source / drain paths of the N-channel MOS transistors ND1 and ND2, which are drive transistors, are connected between the first and second storage nodes MB and MT and the line of the ground potential (VSS) 1133, respectively, and their gates are connected. It is connected to the second and first storage nodes MT and MB, respectively. Source / drain paths of N-channel MOS transistors NT1 and NT2 serving as transfer transistors are respectively connected between storage nodes MB and MT and bit lines / BL and BL, and their gates are both connected to word line WL. It The MOS transistors PM1 and ND1 form an inverter that gives an inverted signal of the signal of the second storage node MT to the first storage node MB. The MOS transistors PM2 and ND2 form an inverter that gives an inverted signal of the signal of the second storage node MB to the first storage node MT. The two inverters are connected in antiparallel between the first and second storage nodes MB and MT, and form 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 word line WL is set to the "H" level of the selection level, N channel MOS transistors NT1 and NT2 are rendered conductive. One bit line (for example, BL) of the bit line pair BL, / BL is set to “H” level and the other bit line (/ BL in this case) is set to “L” level according to the write data signal. Then, MOS transistors PM2, ND1 are rendered conductive, MOS transistors PM1, ND2 are rendered non-conductive, and the levels of storage nodes MB, MT are latched. When the word line WL is set to the "L" level which is the non-selection level, the N-channel MOS transistors NT1 and NT2 are rendered non-conductive, and the data signal is stored in the 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 the "H" level, and then the word line WL is set to the "H" level of the selection level. As a result, current flows from the bit line (/ BL in this case) to the line of ground potential GND through N channel MOS transistors NT1 and NT2, and the potential of bit line / BL lowers. By comparing the potentials of the bit lines BL and / BL, the stored data in the 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, a plurality of memory cells MC are provided in a matrix as shown in FIG. 13 described later. Although not shown in FIG. 13, the lines of the power supply potential (VDD) 1132 of the plurality of memory cells MC are commonly connected. The combined power supply potential (VDD) 1132 line 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 ground potential (VSS) 1133 lines of the plurality of memory cells MC are coupled. Note that, in FIG. 1, an example in which the drive current of the RAM 113 is measured by the current measuring circuit 150 is shown, but instead of this, the value of the current consumption of the RAM 113 may be measured. In this case, for example, the current measuring circuit 150 is provided on the line of the ground potential (VSS) 1133. It goes without saying that the drive current and the consumption current of the RAM 113 may be restated as the operating 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 gates of N channel MOS transistor ND1 and P channel MOS transistor PM1. Gate electrode G3 serves as the gates 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 by using gate electrodes G1 and G2 as an impurity introduction mask to form N-channel MOS transistors NT1 and ND1. Using gate electrodes G4 and G3 as an impurity introduction mask, N type region NR2 is formed, 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. Bit line / BL is coupled to N type region NR1 (source of N channel MOS transistor ND1) formed above gate electrode G1 in FIG. Bit line / BL is coupled to N type region NR1 (source or drain of N channel MOS transistor NT1) formed above gate electrode G1 in FIG. Bit line BL is coupled to N-type region NR2 (source or drain of N-channel MOS transistor NT2) formed below gate electrode G4 in FIG. The line of the power supply potential (VDD) 1132 is 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 in FIG. Be combined with. The line of the ground potential (VSS) 1133 has an N-type region NR1 (source of the N-channel MOS transistor ND1) formed under the gate G2 and an N-type region NR2 (formed above the gate G3 in FIG. 11). 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 (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 connected by the wiring LW1. The second storage node MT includes an N-type region NR2 (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 connected by the 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 of FIG. 11 is arranged in a matrix. The memory cells MC1 to MC9 shown as an example are arranged in a matrix. In the memory cell MC5, the first and second storage nodes MB and MT of FIG. 11 are schematically shown. The storage nodes of other memory cells are omitted because the drawing is complicated. As will be readily understood by those skilled in the art, the layout arrangement of the memory cells MC1 to MC9 can be, for example, a mirror-symmetrical arrangement, a line-symmetrical arrangement, or a repetitive arrangement with respect to the memory cell MC5. In FIG. 12, the distance D1 indicates the distance between the storage nodes between the left and right adjacent memory cells in the horizontal direction (X direction). The distance D2 indicates the distance between storage nodes between vertically 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. Therefore, the distance D1 or the distance D2 is extremely narrow. As described above, when it is assumed that the foreign matter mixed in in the semiconductor manufacturing process remains between the storage nodes (D1 or D2) of the adjacent memory cells, the foreign matter causes the storage nodes of the adjacent memory cells to be separated from each other. Can be cross-linked. When the storage nodes of adjacent memory cells that are bridged have different potentials, a leak current flows between the storage nodes of the adjacent memory cells according to the potential difference. Therefore, the checker data is appropriately selected from the checker data described with reference to 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 the distance between them. It is possible to make a selection or use a combination thereof.

図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 cells arranged in the first row, and the second word line (WL1) is connected to the memory cells arranged in the second row. And the third word line (WL2) is coupled to the memory cells arranged in the third row. Similarly, the fourth word line (WL3), the fifth word line (WL4), the sixth word line (WL5), the seventh word line (WL6) to the (n-1) th word line (WLn) are provided. Further, the first bit line pair (/ BL0, BL0) is coupled to the memory cell arranged in the first column. The 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 a plurality of bit line pairs corresponding to the row address signal among the plurality of bit line pairs (/ BL0, BL0- / BLn, BLn) according to the column address signal supplied from the CPU 111. To do. When reading data, the input / output control circuit IOCKT reads data from one or a plurality of memory cells coupled to the selected word line and one or a plurality of selected bit line pairs, and outputs the read data. It is supplied to the CPU 111. 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 one or more selected 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, but the diagnosis area is not particularly limited, but the diagnosis area may be set depending on the number of word lines of the RAM 113. That is, a plurality of memory cells connected to one word line may be set as a unit, and a plurality of consecutive addresses for selecting the memory cell may be set as one diagnostic area. Although not particularly limited, a plurality of word lines, for example, a plurality of memory cells connected to 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. The three continuous 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 in FIG. 13, and the fourth word line WL3, The five word lines WL4 and the sixth word line WL5 mean three consecutive word lines.

図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 the three word lines are included in one diagnostic region R2. The diagnostic region R1 and the diagnostic region R2 are assigned at a plurality of consecutive 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 leading 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, the overlapping portion (memory cells connected to the third word line WL2) is provided in two consecutive diagnostic regions r1 and r2. In this case, diagnosis can be performed 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 and the power supply line 1132 of the memory cell array MA are configured separately, the memory cell In order to diagnose the failure of 1, the drive current flowing in the power supply line 1132 of the memory cell array MA may be measured by the current measuring circuit 150 of FIG. As a result, the power supply line 1132 of the memory cell array MA and the power supply line of the memory peripheral circuit are separated from each other, so that 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 of 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. Changed to a configuration that includes wiring. The current measuring circuit 150 of FIG. 1 is coupled to the power supply line (L31) and measures the drive current (operating current) flowing through the power supply line (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 vehicle-mounted control device 100 according to the present invention can detect a sign of failure before the memory (RAM) 113 completely fails. In order to detect a sign of a failure, for example, different bit values are written as check write data (checker data) in adjacent memory cells 1131 of the memory (RAM) 113. With the checker data written in the memory (RAM) 113, the drive current of the memory (RAM) 113 is measured by the current measuring circuit 150. 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 future at an early stage. Before a memory cell that may cause a failure in the future completely fails, the address of the storage area including the memory cell is set to a normal memory cell previously secured in a free area of the memory (RAM) 113. It is replaced with the address of the containing storage area. Therefore, it is possible to prevent a failure of the memory (RAM) 113 while the vehicle is traveling. Therefore, it is possible to prevent a malfunction of an actuator such as an engine or a transmission against the driver's intention, which is caused by a failure of the memory (RAM) 113, and an unintended behavior of the vehicle due to the malfunction while the vehicle is traveling. It is possible. It is possible to prevent the driving performance from being deteriorated as much as possible by controlling the RAM to fail and the control to shift to the fail-safe processing while the vehicle is traveling.

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: ROM113: RAM, 120: Sub microcomputer, 130: Main power supply IC, 140: Sub power supply IC, 150: Current measurement circuit, 160: External memory, 210 : Power supply signal, 220: battery, 230: actuator, 240: display device, 700: current diagnosis area, 701: next diagnosis area, 702: last diagnosis area, 703: save area of data in diagnosis area, 704: Free area, 705: area after address replacement of abnormal cell, 1131: memory cells forming RAM113, 1132: common power supply line forming RAM113

Claims (10)

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

Applications Claiming Priority (3)

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

Publications (2)

Publication Number Publication Date
JPWO2018079163A1 JPWO2018079163A1 (en) 2019-06-24
JP6694517B2 true JP6694517B2 (en) 2020-05-13

Family

ID=62024804

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018547211A Active JP6694517B2 (en) 2016-10-26 2017-09-27 In-vehicle control device

Country Status (4)

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

Families Citing this family (1)

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

Family Cites Families (17)

* 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 device
DE19546553C1 (en) * 1995-12-13 1997-05-07 Daimler Benz Ag Method for testing electrical consumers in a vehicle electrical system
JPH1139231A (en) * 1997-07-17 1999-02-12 Unisia Jecs Corp Vehicle electronic control unit
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
JP4042466B2 (en) * 2002-05-01 2008-02-06 株式会社デンソー Memory diagnostic device and control device
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 device
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
JP5128177B2 (en) * 2007-05-21 2013-01-23 ルネサスエレクトロニクス株式会社 Semiconductor integrated circuit and test method thereof
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 Termination Method
JP6161482B2 (en) * 2013-09-19 2017-07-12 ルネサスエレクトロニクス株式会社 Semiconductor memory device

Also Published As

Publication number Publication date
CN109844724A (en) 2019-06-04
DE112017004594T5 (en) 2019-07-11
CN109844724B (en) 2023-04-11
WO2018079163A1 (en) 2018-05-03
JPWO2018079163A1 (en) 2019-06-24
DE112017004594B4 (en) 2025-05-22

Similar Documents

Publication Publication Date Title
US8531899B2 (en) Methods for testing a memory embedded in an integrated circuit
US8509006B2 (en) Semiconductor device and method of detecting abnormality on semiconductor device
KR100339321B1 (en) Electronic circuit with memory with multiple memory cells
KR101950609B1 (en) Failure detection circuitry for address decoder for a data storage device
US10324123B2 (en) Semiconductor device and method of diagnosing semiconductor device
KR100746389B1 (en) Integrated semiconductor memory with a memory unit for storing addresses of defective memory cells
KR100354276B1 (en) Semiconductor storage device
US6501691B2 (en) Word-line deficiency detection method for semiconductor memory device
EP1834337B1 (en) Sram test method and sram test arrangement to detect weak cells
JP6694517B2 (en) In-vehicle control device
US20130033948A1 (en) Device and method for detecting resistive defect
US20080175079A1 (en) Test scheme for fuse circuit
JP2007257768A (en) Semiconductor memory device
US9251864B2 (en) System and method for providing voltage supply protection in a memory device
WO2019207905A1 (en) Vehicle-mounted control device
US8605525B2 (en) System and method for testing for defects in a semiconductor memory array
JP2005302809A (en) Semiconductor device
JP4996215B2 (en) Semiconductor device test method
JP5465266B2 (en) Semiconductor memory device
CN116364129A (en) Semiconductor device and memory circuit testing method
TWI484496B (en) Storage medium and floating detection method
JP2019046223A (en) Semiconductor device
JPH08203296A (en) Semiconductor memory device
JP2005100490A (en) Power source control circuit for detecting current defective address in static semiconductor memory device
JP2008065938A (en) Semiconductor memory device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20190204

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20200414

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20200417

R150 Certificate of patent or registration of utility model

Ref document number: 6694517

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250