JP3129102B2 - Data bus monitor device - Google Patents

Data bus monitor device

Info

Publication number
JP3129102B2
JP3129102B2 JP06220182A JP22018294A JP3129102B2 JP 3129102 B2 JP3129102 B2 JP 3129102B2 JP 06220182 A JP06220182 A JP 06220182A JP 22018294 A JP22018294 A JP 22018294A JP 3129102 B2 JP3129102 B2 JP 3129102B2
Authority
JP
Japan
Prior art keywords
data
ram
dual port
port ram
read
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.)
Expired - Lifetime
Application number
JP06220182A
Other languages
Japanese (ja)
Other versions
JPH0883201A (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.)
Nissan Motor Co Ltd
Original Assignee
Nissan Motor Co 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 Nissan Motor Co Ltd filed Critical Nissan Motor Co Ltd
Priority to JP06220182A priority Critical patent/JP3129102B2/en
Publication of JPH0883201A publication Critical patent/JPH0883201A/en
Application granted granted Critical
Publication of JP3129102B2 publication Critical patent/JP3129102B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は、マイクロプロセッサ等
から成るコントローラがRAMに書き込んだ演算結果を
モニタすることで、コントローラの動作が正常か否かを
解析するようにしたデータバスモニタ装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data bus monitor device in which a controller comprising a microprocessor or the like monitors an operation result written in a RAM to analyze whether or not the operation of the controller is normal.

【0002】[0002]

【従来の技術】エンジン制御システム(以下、ECCS
と呼ぶ)やアンチロックブレーキシステム(以下、AB
Sと呼ぶ)では、エンジン回転数や車輪回転速度等の演
算をコントローラ10(以下、ECU:Electric Contr
ol Unitと呼ぶ)によって行なっている。図10に示す
ように、この種の従来のECU200は、一般にCPU
201、ROM202およびRAM203から成り、C
PU201はROM202に格納されているプログラム
に基づいて各種演算を行ない、演算結果をRAM203
に格納する。したがって、このRAM203の内容を解
析すれば、ECU200の動作が正常か否かを判断でき
る。そして、このような解析を行なう装置は一般にデー
タバスモニタ装置と呼ばれている。
2. Description of the Related Art An engine control system (hereinafter referred to as ECCS)
) And anti-lock brake systems (hereinafter referred to as AB
S), the calculation of the engine speed, wheel rotation speed, and the like is performed by the controller 10 (hereinafter, ECU: Electric Controller).
ol Unit). As shown in FIG. 10, a conventional ECU 200 of this type generally has a CPU
201, a ROM 202 and a RAM 203;
The PU 201 performs various calculations based on the program stored in the ROM 202 and stores the calculation results in the RAM 203.
To be stored. Therefore, by analyzing the contents of the RAM 203, it can be determined whether or not the operation of the ECU 200 is normal. A device that performs such an analysis is generally called a data bus monitor device.

【0003】従来のデータバスモニタ装置100は、図
10に示すように、特定のRAM領域に書き込まれたデ
ータをモニタするための複数のモニタ部101から成
り、各モニタ部101はそれぞれ、アドレスデコーダ1
02、ラッチ103、D/Aコンバータ104および7
segLED105を有する。アドレスデコーダ102
にはECU内のCPU201のアドレスバスが接続さ
れ、ラッチ103にはECU内のCPU201のデータ
バスが接続される。そして、CPU201がアドレスバ
スに所定のアドレス値を出力すると、アドレスデコーダ
102の出力が変化し、その変化時点におけるデータバ
スのデータがラッチ103によって保持される。
As shown in FIG. 10, a conventional data bus monitor device 100 includes a plurality of monitor units 101 for monitoring data written in a specific RAM area, and each monitor unit 101 is provided with an address decoder. 1
02, latch 103, D / A converters 104 and 7
It has a segLED 105. Address decoder 102
Is connected to the address bus of the CPU 201 in the ECU, and the latch 103 is connected to the data bus of the CPU 201 in the ECU. When the CPU 201 outputs a predetermined address value to the address bus, the output of the address decoder 102 changes, and the data on the data bus at the time of the change is held by the latch 103.

【0004】ラッチ103によって保持されたデータ
は、7segLED105によってリアルタイムに表示
されるとともに、D/Aコンバータ104によってアナ
ログ値に変換された後、周知のデータロガー106に入
力されてアナログの数値データとしてプリントアウトさ
れる。
The data held by the latch 103 is displayed in real time by a 7-segment LED 105, converted into an analog value by a D / A converter 104, input to a well-known data logger 106, and printed as analog numerical data. Be out.

【0005】このように、従来のデータバスモニタ装置
100は、ECU内のCPU201がRAM203の特
定領域を書き換えると自動的にその書き換えたデータを
ラッチするように構成されており、RAM203の特定
領域のデータ変化をリアルタイムにモニタできる。
As described above, the conventional data bus monitor device 100 is configured so that when the CPU 201 in the ECU rewrites a specific area of the RAM 203, the rewritten data is automatically latched. Data changes can be monitored in real time.

【0006】[0006]

【発明が解決しようとする課題】最近のECCS用EC
UやABS用ECU等は制御アルゴリズムが複雑であ
り、これらECUが演算結果を格納するためのRAM容
量も大変大きい。このため、ECUの演算動作を詳細に
解析するためには大量のRAM領域をモニタする必要が
ある。
[Problems to be Solved by the Invention] Recent EC for ECCS
U and ABS ECUs have complicated control algorithms, and these ECUs have a very large RAM capacity for storing calculation results. For this reason, it is necessary to monitor a large amount of RAM area in order to analyze the arithmetic operation of the ECU in detail.

【0007】ところが、従来のデータバスモニタ装置
は、モニタすべきRAM203の各アドレスごとに、ア
ドレスデコーダ102、ラッチ103、D/Aコンバー
タ104および7segLED105から成るモニタ部
101を設ける必要があるため、モニタすべきRAM領
域が増えると、それに応じてデータバスモニタ装置全体
の回路規模が大きくなってしまう。回路規模が大きくな
ると、それに比例して消費電力も増え、また装置の実装
面積も大きくなるため、もともと実装スペースが厳しく
制限される車両用にこの種のデータバスモニタ装置を用
いるのは容易ではない。
However, in the conventional data bus monitor device, it is necessary to provide the monitor unit 101 including the address decoder 102, the latch 103, the D / A converter 104, and the 7-segment LED 105 for each address of the RAM 203 to be monitored. When the RAM area to be increased increases, the circuit scale of the entire data bus monitor increases accordingly. As the circuit scale increases, the power consumption increases in proportion to it, and the mounting area of the device also increases, so it is not easy to use this type of data bus monitor device for vehicles where the mounting space is originally severely limited. .

【0008】また、ECU内のCPU201のアドレス
バスとデータバスはデータバスモニタ装置100内の各
モニタ部101に接続されるため、モニタ部101の数
が多い場合にはアドレスバスまたはデータバスの駆動能
力の制限を越える(ファンアウト数を越える)おそれが
あり、信号振幅が小さくなったりノイズの影響を受けや
すくなる。
Further, since the address bus and data bus of the CPU 201 in the ECU are connected to the respective monitor units 101 in the data bus monitor device 100, when the number of monitor units 101 is large, the address bus or the data bus is driven. There is a possibility that the capacity limit may be exceeded (the number of fan-outs may be exceeded), and the signal amplitude may be reduced or the apparatus may be susceptible to noise.

【0009】さらに、従来のデータバスモニタ装置は、
CPU201から出力されたデータをラッチした後、い
ったんアナログ値に変換してデータロガ等によってデー
タ収集する場合が多いが、この種の装置を車両等の電磁
ノイズの影響を受けやすい場所で使用すると、ノイズに
よってアナログ値が間欠的に大きく変動するおそれがあ
り、データの信頼性が低くなる。すなわち、ノイズによ
る影響を受けやすい場所では、アナログ値に変換せずに
デジタル値のままでデータ解析を行なう方が望ましい。
Further, the conventional data bus monitor device is
In many cases, after latching the data output from the CPU 201, the data is once converted to an analog value and then collected by a data logger or the like. Therefore, the analog value may intermittently fluctuate greatly, thereby lowering the reliability of data. That is, in a place that is susceptible to noise, it is desirable to perform data analysis with the digital value as it is without converting it to an analog value.

【0010】本発明の目的は、アドレスデコーダ等の部
品を追加または交換することなく、高機能かつ多種類の
コントローラの演算結果を詳細に解析できるようにした
データバスモニタ装置を提供することにある。
An object of the present invention is to provide a data bus monitor device capable of analyzing in detail the operation results of high-performance and various types of controllers without adding or replacing components such as an address decoder. .

【0011】[0011]

【課題を解決するための手段】実施例を示す図1,5に
対応づけて本発明を説明すると、請求項1に記載の発明
は、検査対象となるコントローラ201がRAM203
に書き込んだデータをモニタして該コントローラ201
の動作を解析するデータバスモニタ装置に適用され、R
AM203の記憶容量以上の記憶容量を有し、コントロ
ーラ201がRAM203にデータを書き込むと、略同
タイミングでデータを書き込むデュアルポートRAM1
と、コントローラ201とデュアルポートRAM1との
間に介挿され、コントローラ201から出力されるアド
レス信号、データ信号および書き込み制御信号の各タイ
ミングを含む電気的特性をデュアルポートRAM1の種
類に応じて変更するインタフェース手段2と、デュアル
ポートRAM1の同一アドレスのデータを複数回連続し
て読み出し、読み出したデータが所定回数連続して一致
した場合に限り、読み出したデータの加工を行う制御手
段3と、制御手段3によって加工されたデータを表示ま
たは収集する表示収集手段7,8とを備えることによ
り、上記目的を達成する。請求項2に記載の発明は、検
査対象となるコントローラ201がRAM203に書き
込んだデータをモニタして該コントローラ201の動作
を解析するデータバスモニタ装置に適用され、RAM2
03の記憶容量以上の記憶容量を有し、コントローラ2
01がRAM203にデータを書き込むと、略同タイミ
ングでデータを書き込むデュアルポートRAM1と、コ
ントローラ201とデュアルポートRAM1との間に介
挿され、コントローラ201から出力されるアドレス信
号、データ信号および書き込み制御信号の各タイミング
を含む電気的特性をデュアルポートRAM1の種類に応
じて変更するインタフェース手段2と、デュアルポート
RAM1に書き込まれたデータを所定のタイミングで読
み出し、書き込まれたデータの加工を行う制御手段3
と、制御手段3によって加工されたデータを解析する解
析装置9とを備えることにより、上記目的を達成する。
請求項3に記載の発明は、請求項1または2に記載され
たデータバスモニタ装置において、デュアルポートRA
M1の同一アドレスに対して同時に読み書きが指示され
ると、制御手段3に割り込み信号を送出する読み書き重
複検出手段11を備え、割り込み信号が入力されると、
デュアルポートRAM1の読み出しタイミングを遅らせ
るように制御手段3を構成するものである。請求項4に
記載の発明は、請求項2に記載されたデータバスモニタ
装置において、デュアルポートRAM1の同一アドレス
のデータを複数回連続して読み出し、読み出したデータ
が所定回数連続して一致した場合に限り、読み出したデ
ータの加工を行うように制御手段3を構成するものであ
る。
The present invention will be described with reference to FIGS. 1 and 5 showing an embodiment.
Monitor the data written to the controller 201
Applied to a data bus monitor that analyzes the operation of
When the controller 201 writes data to the RAM 203, the dual-port RAM 1 writes data at substantially the same timing.
And electrical characteristics, including timings of an address signal, a data signal, and a write control signal, which are interposed between the controller 201 and the dual port RAM 1 and output from the controller 201, are changed according to the type of the dual port RAM 1. Interface means 2; control means 3 for continuously reading data at the same address in dual port RAM 1 a plurality of times; and processing the read data only when the read data matches continuously for a predetermined number of times; The above object is achieved by providing display collecting means 7 and 8 for displaying or collecting the data processed by 3. The invention according to claim 2 is applied to a data bus monitor device that monitors data written by the controller 201 to be inspected in the RAM 203 and analyzes the operation of the controller 201.
03 having a storage capacity equal to or larger than the storage capacity of the controller 2
01 writes data to the RAM 203, the dual-port RAM 1 that writes data at substantially the same timing, and an address signal, a data signal, and a write control signal that are inserted between the controller 201 and the dual-port RAM 1 and output from the controller 201. Interface means 2 for changing the electrical characteristics including the respective timings according to the type of the dual port RAM 1, and control means 3 for reading out the data written in the dual port RAM 1 at a predetermined timing and processing the written data.
The above object is achieved by providing an analyzer 9 for analyzing data processed by the control means 3.
According to a third aspect of the present invention, in the data bus monitor device according to the first or second aspect, the dual port RA is provided.
A read / write duplication detecting means 11 for sending an interrupt signal to the control means 3 when reading and writing are simultaneously instructed to the same address of M1 is provided.
The control means 3 is configured to delay the read timing of the dual port RAM 1. According to a fourth aspect of the present invention, in the data bus monitor device according to the second aspect, data of the same address of the dual port RAM 1 is continuously read a plurality of times, and the read data matches a predetermined number of times continuously. Only, the control means 3 is configured to process the read data.

【0012】[0012]

【作用】請求項1に記載の発明では、コントローラ20
1がRAM203にデータを書き込むのと略同タイミン
グで、RAM203の記憶容量以上の記憶容量を有する
デュアルポートRAM1に同一データを書き込む。ま
た、コントローラ201とデュアルポートRAM1との
間に介挿されるインタフェース手段2では、コントロー
ラ201から出力されるアドレス信号、データ信号およ
び書き込み制御信号の各タイミングを含む電気的特性を
デュアルポートRAM1の種類に応じて変更する。デュ
アルポートRAM1に書き込まれたデータは制御手段3
によって同一アドレスのデータが複数回連続して読み出
され、読み出されたデータが所定回数連続して一致した
場合に限って加工され、加工されたデータは表示収集手
段7,8によって表示または収集される。請求項2に記
載の発明では、デュアルポートRAM1に書き込まれた
データが制御手段3によって所定のタイミングで読み出
されて加工され、加工されたデータは解析装置9によっ
て解析される。請求項3に記載の発明では、デュアルポ
ートRAM1の同一アドレスに同時に読み書きを行なお
うとすると、読み書き重複検出手段11は制御手段3に
割り込み信号を送出する。そして、制御手段3は、割り
込み信号が入力されると、デュアルポートRAM1の読
み出しタイミングを遅らせる。請求項4に記載の発明の
制御手段3は、デュアルポートRAM1の同一アドレス
のデータを複数回連続して読み出し、読み出したデータ
が所定回数連続して一致した場合に限り、読み出したデ
ータの加工を行う。
According to the first aspect of the present invention, the controller 20 is provided.
1 writes the same data to the dual-port RAM 1 having a storage capacity equal to or larger than the storage capacity of the RAM 203 at substantially the same timing as when writing data to the RAM 203. The interface means 2 interposed between the controller 201 and the dual port RAM 1 converts the electrical characteristics including the timings of the address signal, data signal, and write control signal output from the controller 201 to the type of the dual port RAM 1. Change accordingly. The data written in the dual port RAM 1 is
The data at the same address is read out a plurality of times in succession, and the data is processed only when the read out data matches the predetermined number of times in succession. The processed data is displayed or collected by the display collection means 7 and 8. Is done. According to the second aspect of the present invention, the data written in the dual port RAM 1 is read out and processed at a predetermined timing by the control means 3, and the processed data is analyzed by the analysis device 9. According to the third aspect of the present invention, if simultaneous reading and writing are to be performed on the same address of the dual port RAM 1, the read / write duplication detecting means 11 sends an interrupt signal to the control means 3. Then, when the interrupt signal is input, the control means 3 delays the read timing of the dual port RAM 1. The control means 3 according to the fourth aspect of the present invention reads the data at the same address of the dual port RAM 1 continuously plural times, and processes the read data only when the read data matches a predetermined number of times continuously. Do.

【0013】なお、本発明の構成を説明する上記課題を
解決するための手段と作用の項では、本発明を分かり易
くするために実施例の図を用いたが、これにより本発明
が実施例に限定されるものではない。
In the means and means for solving the above problems which explain the constitution of the present invention, the drawings of the embodiments are used for easy understanding of the present invention. However, the present invention is not limited to this.

【0014】[0014]

【実施例】図1は本発明によるデータバスモニタ装置1
00Aの一実施例のブロック図である。図1において、
1はECU内のCPU201(以下、ECU内CPUと
呼ぶ)がECU内のRAM203(以下、ECU内RA
Mと呼ぶ)に書き込むデータと同一のデータが書き込ま
れるデュアルポートRAMである。このデュアルポート
RAM1は、図2に示すように、ECU内RAM203
の記憶容量以上の記憶容量を有し、ECU内CPU20
1がECU内RAM203のどの領域にデータを書き込
んでも、漏れなくデュアルポートRAM1に書き込める
ようにしている。
1 shows a data bus monitor 1 according to the present invention.
It is a block diagram of one Example of 00A. In FIG.
Reference numeral 1 denotes a CPU 201 in the ECU (hereinafter, referred to as a CPU in the ECU) which stores a RAM 203 in the ECU (hereinafter, an RA in the ECU).
M) is written in the dual-port RAM. As shown in FIG. 2, this dual port RAM 1
CPU in the ECU having a storage capacity not less than
1 can write data to the dual-port RAM 1 without any loss of data in any area of the RAM 203 in the ECU.

【0015】2はECU内CPU201とデュアルポー
トRAM1との間に介挿されるECUインタフェース部
であり、ECU内CPU201から出力されるアドレス
信号、データ信号および書き込みイネーブル信号が入力
される。ECU内RAM203の書き込みタイミングと
デュアルポートRAM1の書き込みタイミングは一般に
異なるため、このECUインタフェース部2で書き込み
タイミングの変更を行なって、デュアルポートRAM1
に確実にデータを書き込めるようにする。
Reference numeral 2 denotes an ECU interface section interposed between the CPU 201 in the ECU and the dual port RAM 1, and receives an address signal, a data signal, and a write enable signal output from the CPU 201 in the ECU. Since the write timing of the RAM 203 in the ECU and the write timing of the dual port RAM 1 are generally different from each other, the write timing is changed by the ECU interface unit 2 and the dual port RAM 1 is changed.
Ensure that data can be written.

【0016】例えば、ECU内CPU201がECU内
RAM203に書き込むために出力するタイミングが図
3(a)で、デュアルポートRAM1に書き込むタイミ
ングが図3(b)の場合、図3(a)のタイミングでは
デュアルポートRAM1に正常にデータを書き込めない
ため、ECUインタフェース部2によっていったん図3
(b)のようにタイミングの変更を行なってからデュア
ルポートRAM1に書き込む。また、ECU内RAM2
03とデュアルポートRAM1との電圧レベルが異なる
場合には、電圧レベルの調整もECUインタフェース部
2で行なう。
For example, when the timing at which the CPU 201 in the ECU outputs data for writing to the RAM 203 in the ECU is shown in FIG. 3A and the timing for writing to the dual port RAM 1 is shown in FIG. 3B, the timing shown in FIG. Since data cannot be normally written to the dual port RAM 1, the ECU interface unit 2
After the timing is changed as shown in (b), the data is written to the dual port RAM 1. The RAM 2 in the ECU
If the voltage level of the dual port RAM 03 differs from that of the dual port RAM 1, the ECU interface unit 2 also adjusts the voltage level.

【0017】図1に示す3はデュアルポートRAM1に
格納されているデータを読み出して、データの加工を行
なうCPU(以下、モニタ内CPUと呼ぶ)である。E
CU内RAM203に書き込まれるデータには、符号識
別ビットやエラー判別ビット等の付属情報が含まれてお
り、これら付属情報を含んだままで7segLED等に
データを表示しても、データの内容がわかりにくい。そ
こで、モニタ内CPU3では、デュアルポートRAM1
に格納されているデータの中から付属情報を抽出し、そ
の付属情報に基づいてデータの加工を行なう。また、E
CU内CPU201の種類により、ワード長以上のデー
タの書き込み形式が異なるため、モニタ内CPU3では
書き込み形式の統一も行なう。
Reference numeral 3 shown in FIG. 1 denotes a CPU (hereinafter referred to as a monitor CPU) for reading data stored in the dual port RAM 1 and processing the data. E
The data written to the RAM 203 in the CU includes additional information such as a code identification bit and an error determination bit. Even if the data is displayed on a 7-segment LED or the like while including the additional information, the content of the data is difficult to understand. . Therefore, in the CPU 3 in the monitor, the dual port RAM 1
The auxiliary information is extracted from the data stored in the. And the data is processed based on the additional information. Also, E
Since the writing format of data having a word length or more differs depending on the type of the CPU 201 in the CU, the writing format is unified in the CPU 3 in the monitor.

【0018】4はモニタ内CPU3に接続されるタイマ
であり、このタイマ4によって所定時間が計測されるた
びに、モニタ内CPU3はデュアルポートRAM1の内
容を読み出す。なお、タイマ4をモニタ内CPU3と別
個に持たずに、モニタ内CPU3自身が内部に有するタ
イマを用いてもよい。
Reference numeral 4 denotes a timer connected to the CPU 3 in the monitor. Every time a predetermined time is measured by the timer 4, the CPU 3 in the monitor reads the contents of the dual port RAM 1. Instead of having the timer 4 separately from the CPU 3 in the monitor, a timer included in the CPU 3 in the monitor itself may be used.

【0019】5はモニタ内CPU3の動作プログラム等
を格納するROM、6はモニタ内CPU3が加工したデ
ータを格納するRAM、7はモニタ内CPU3が加工し
たデータを表示する7segLED、8はモニタ内CP
U3が加工したデータをアナログデータに変換するD/
Aコンバータである。9はモニタ内CPU3が加工した
データを解析するパソコンであり、モニタ内CPU3と
パソコン9はPCインタフェース部10を介して接続さ
れる。このパソコン9は、データの波形表示、データの
分析およびデータの格納等を行なう。
5 is a ROM for storing an operation program of the CPU 3 in the monitor, 6 is a RAM for storing data processed by the CPU 3 in the monitor, 7 is a 7 seg LED for displaying data processed by the CPU 3 in the monitor, and 8 is a CP in the monitor.
D / which converts the data processed by U3 into analog data
A converter. Reference numeral 9 denotes a personal computer for analyzing data processed by the CPU 3 in the monitor. The CPU 3 in the monitor and the personal computer 9 are connected via a PC interface unit 10. The personal computer 9 performs data waveform display, data analysis, data storage, and the like.

【0020】また、図1のデータバスモニタ装置100
AはL1,L2,L3で示す3種類のバスラインを有
し、このうちバスラインL1はECU内CPU201の
動作タイミングに同期し、バスラインL2はデュアルポ
ートRAM1の動作タイミングに同期し、バスラインL
3はモニタ内CPU3の動作タイミングに同期してい
る。
The data bus monitor 100 shown in FIG.
A has three types of bus lines denoted by L1, L2 and L3, of which the bus line L1 is synchronized with the operation timing of the CPU 201 in the ECU, the bus line L2 is synchronized with the operation timing of the dual port RAM1, L
3 is synchronized with the operation timing of the CPU 3 in the monitor.

【0021】以下、図1のように構成されたデータバス
モニタ装置100Aの第1の実施例の動作を説明する。
ECU内CPU201がECU内RAM203の任意の
アドレスにデータを書き込むと、ECU内CPU201
から出力されたアドレス信号、データ信号および各種制
御信号がECUインタフェース部2によってタイミング
変換され、ECU内RAM203に書き込むのとほぼ同
タイミングで、同一データがデュアルポートRAM1に
書き込まれる。
Hereinafter, the operation of the first embodiment of the data bus monitor 100A configured as shown in FIG. 1 will be described.
When the CPU 201 in the ECU writes data to an arbitrary address in the RAM 203 in the ECU, the CPU 201 in the ECU 201
The address signal, data signal and various control signals output from the ECU are timing-converted by the ECU interface unit 2 and the same data is written to the dual-port RAM 1 at substantially the same timing as the writing to the RAM 203 in the ECU.

【0022】一方、モニタ内CPU3には一定時間ごと
にタイマ4から割り込みが入り、割り込みが入るたびに
モニタ内CPU3はデュアルポートRAM1に格納され
ているデータを読み出し、データの中から付属情報を抽
出してデータの加工を行なう。その際、タイマ割り込み
が入る時間間隔が、ECU内CPU201がECU内R
AM203のデータを書き換える時間間隔よりも長い場
合には、モニタ内CPU3はECU内RAM203に書
き込まれたすべてのデータをモニタできなくなるため、
タイマ割り込みをかける時間間隔をECU内CPU20
1がECU内RAM203のデータを書き換える時間間
隔よりも短くするのが望ましい。モニタ内CPU3によ
って加工されたデータは7segLED7やD/Aコン
バータ8に出力され、ECU内RAM203に書き込む
のとほぼ同タイミングで表示またはデータ収集される。
On the other hand, the CPU 3 in the monitor receives an interrupt from the timer 4 at regular intervals, and every time an interrupt occurs, the CPU 3 in the monitor reads the data stored in the dual port RAM 1 and extracts the attached information from the data. To process the data. At this time, the time interval at which the timer interrupt occurs is determined by the CPU 201 in the ECU.
If the time interval is longer than the time interval for rewriting the data in the AM 203, the CPU 3 in the monitor cannot monitor all the data written in the RAM 203 in the ECU.
The time interval at which a timer interrupt is generated is determined by the CPU 20 in the ECU.
1 is preferably shorter than the time interval for rewriting the data in the RAM 203 in the ECU. The data processed by the CPU 3 in the monitor is output to the 7-segment LED 7 and the D / A converter 8, and is displayed or collected at almost the same timing as written in the RAM 203 in the ECU.

【0023】一方、パソコン9からデータ読み出し要求
があると、モニタ内CPU3はPCインタフェース10
を介してデータをパソコン9に送出して、パソコン9内
部で種々のデータ解析を行なう。なお、パソコン9にデ
ータを送出する際は、デュアルポートRAM1の内容を
直接送出しても、あるいはモニタ内CPU3がデータ加
工した後のデータを送出してもよい。
On the other hand, when there is a data read request from the personal computer 9, the CPU 3 in the monitor
The data is sent to the personal computer 9 via the PC and various data analyzes are performed inside the personal computer 9. When sending data to the personal computer 9, the contents of the dual port RAM 1 may be sent directly, or the data after the CPU 3 in the monitor processes the data may be sent.

【0024】ところで、デュアルポートRAM1は、デ
ータを読み書きするためのポートを2種類有し、各ポー
トから同時にデータを読み書きできるという特徴を有す
る。ところが、各ポートから同一アドレスに対して同時
にデータの書き込みを行なうと、デュアルポートRAM
1の構造上、大量の電流が流れて内部素子が破壊等する
おそれがある。このため、ECU内CPU201に接続
される側のポートは書き込み専用とし、モニタ内CPU
3に接続される側のポートは読み出し専用とするのが望
ましい。
The dual-port RAM 1 has two types of ports for reading and writing data, and has a feature that data can be read and written from each port simultaneously. However, when data is simultaneously written from each port to the same address, dual port RAM
Due to the structure of (1), there is a possibility that a large amount of current flows and the internal element is broken. For this reason, the port connected to the CPU 201 in the ECU is dedicated to writing, and the CPU
It is desirable that the port connected to 3 be read-only.

【0025】また、一方のポートからデータを読み出し
ている最中に他方のポートから同一アドレスに対してデ
ータを書き込むと、デュアルポートRAM1の構造上、
そのアドレスのデータが不定になるおそれがある。この
ため、先にデュアルポートRAM1にアクセスしたポー
トに優先権を与え、後からアクセスしたポートにウェイ
トをかけたり、書き込みを禁止するバス裁定機能を備え
たデュアルポートRAM1も製品化されている。しか
し、ウェイトをかけるとその分だけ余計にデータを読み
書きする時間がかかり、モニタ内CPU3が行なうデー
タ加工処理にも時間がかかってしまう。このため、本実
施例のモニタ内CPU3は、以下に示す図4のフローチ
ャートに基づいて、デュアルポートRAM1のデータ読
み出しを行なう。なお、モニタ内CPU3はタイマ4か
ら割り込みが入るたびに図4の処理を行なう。
When data is written from the other port to the same address while data is being read from one port, the dual port RAM 1 has a structure
The data at that address may be undefined. For this reason, a dual-port RAM 1 having a bus arbitration function of giving priority to a port that has accessed the dual-port RAM 1 first, giving a weight to a port accessed later, or prohibiting writing has also been commercialized. However, when the weight is applied, it takes extra time to read and write data, and the data processing performed by the CPU 3 in the monitor also takes time. Therefore, the in-monitor CPU 3 of this embodiment reads data from the dual port RAM 1 based on the flowchart of FIG. 4 described below. The CPU 3 in the monitor performs the processing of FIG. 4 every time an interrupt is received from the timer 4.

【0026】図4のステップS1では、デュアルポート
RAM1からデータを読み出し、そのデータを内部レジ
スタRに格納する。ステップS2では、モニタ内RAM
6のアドレスA番地に内部レジスタRのデータを格納す
る。ステップS3では、変数nを「1」に初期化する。
この変数nは、後述するステップS6の判定処理を何回
繰り返したかを計測するためのものである。
In step S1 of FIG. 4, data is read from the dual port RAM 1, and the data is stored in the internal register R. In step S2, the RAM in the monitor
The data of the internal register R is stored at the address A of No. 6. In step S3, the variable n is initialized to “1”.
The variable n is used to measure how many times the determination process in step S6 described below is repeated.

【0027】ステップS4では、ステップS1と同様
に、デュアルポートRAM1からデータを読み出し、内
部レジスタRに格納する。ステップS5では、変数nを
「1」加算する。ステップS6では、内部レジスタRの
値とモニタ内RAM6のアドレスA番地に格納されてい
るデータとが一致するか否かを判定する。判定が肯定さ
れると処理を終了し、判定が否定されるとステップS7
に進む。ステップS7では、変数nの値がnmax以上か
否かを判定する。判定が肯定されるとステップS8に進
んでエラー処理を行ない、判定が否定されるとステップ
9に進む。なお、エラー処理としては、例えばデュアル
ポートRAM1の内容を正しく読み込めなかった等の警
告表示や、ECU内RAM203のモニタ中止処理等を
行なう。ステップS9では、ステップS2と同様にモニ
タ内RAM6のアドレスA番地にレジスタRのデータを
格納してステップS4に戻る。
In step S4, data is read from the dual port RAM 1 and stored in the internal register R as in step S1. In step S5, "1" is added to the variable n. In step S6, it is determined whether or not the value of the internal register R matches the data stored at the address A of the RAM 6 in the monitor. If the determination is affirmative, the process ends, and if the determination is negative, step S7
Proceed to. In step S7, the value of the variable n is determined whether n max or more. If the determination is affirmative, the process proceeds to step S8 to perform error processing, and if the determination is negative, the process proceeds to step 9. As the error processing, for example, a warning display indicating that the contents of the dual port RAM 1 could not be read correctly, a monitoring stop processing of the RAM 203 in the ECU, and the like are performed. In step S9, as in step S2, the data of the register R is stored at the address A of the RAM 6 in the monitor, and the process returns to step S4.

【0028】このように、第1の実施例のモニタ内CP
U3は、デュアルポートRAM1の内容を最低2回読み
出し、読み出したデータが2回連続して一致すれば、正
しく読み出せたと判断し、読み込んだデータを用いてデ
ータ加工処理を行なう。一方、nmax回連続して読み出
しても毎回データ値が異なる場合には、データの加工処
理を中止してエラー処理を行なう。すなわち、図4の処
理によれば、デュアルポートRAM1のデータを読み出
す際にウェイトかけずに済むため、データを迅速に読み
出すことができる。また、デュアルポートRAM1から
読み出したデータが複数回連続して一致した場合のみデ
ータ加工処理を行なうようにしたため、誤ったデータを
用いてデータ加工処理を行なうことはなく、信頼性が向
上する。
As described above, the CP in the monitor of the first embodiment is
U3 reads the contents of the dual-port RAM 1 at least twice, and if the read data matches twice consecutively, determines that the data has been read correctly, and performs data processing using the read data. On the other hand, if the data value is different each time even when reading is performed continuously for n max times, the data processing is stopped and error processing is performed. That is, according to the processing of FIG. 4, when reading data from the dual port RAM 1, there is no need to wait, so that data can be read quickly. Further, since the data processing is performed only when the data read from the dual port RAM 1 successively matches a plurality of times, the data processing is not performed using erroneous data, and the reliability is improved.

【0029】以上に説明した第1の実施例によれば、E
CU内RAM203の記憶容量以上の記憶容量を有する
デュアルポートRAM1をデータバスモニタ装置内に備
え、ECU内CPU201がECU内RAM203に書
き込んだデータのすべてを、ほぼリアルタイムにデュア
ルポートRAM1に書き込むようにしたため、ECU内
RAM203のどの領域に書き込んだデータでも漏れな
くモニタできる。したがって、再現性が大変に低い障害
等も確実に検出できる。また、データ解析処理をすべて
デジタルで行なうため、ノイズの影響を受けにくくな
る。
According to the first embodiment described above, E
A dual port RAM 1 having a storage capacity equal to or larger than the storage capacity of the RAM 203 in the CU is provided in the data bus monitor device, and all the data written to the RAM 203 in the ECU by the CPU 201 in the ECU are written to the dual port RAM 1 almost in real time. The data written to any area of the RAM 203 in the ECU can be monitored without omission. Therefore, a failure or the like with extremely low reproducibility can be reliably detected. In addition, since all the data analysis processing is performed digitally, it is less susceptible to noise.

【0030】さらに、アドレスデコーダやラッチ等を複
数設ける必要もないため、従来のデータバスモニタ装置
に比べ、大幅に回路規模を小型化できる。したがって、
実装スペースが厳しく制限される車載用には特に利用価
値がある。また、ECU内CPU201とデュアルポー
トRAM1の間にECUインタフェース部2を設けたた
め、ECU内RAM203とデュアルポートRAM1の
書き込みタイミングや電圧レベル等が異なっていても、
ECU内RAM1への書き込みデータを確実にデュアル
ポートRAM1に書き込める。
Further, since there is no need to provide a plurality of address decoders and latches, the circuit scale can be significantly reduced as compared with the conventional data bus monitor. Therefore,
It is particularly useful for automotive applications where the mounting space is severely limited. Further, since the ECU interface unit 2 is provided between the CPU 201 in the ECU and the dual port RAM 1, even if the write timing and voltage level of the RAM 203 in the ECU and the dual port RAM 1 are different,
Data written to the RAM 1 in the ECU can be reliably written to the dual port RAM 1.

【0031】また、例えばECU内CPU201が人間
の目で確認できないほど高速にECU内RAM203の
データを書き換える場合には、ECUインタフェース部
2によって人間の目で確認できる程度の速度にタイミン
グ変換できるため、7segLED7等によってECU
内RAM203の変化の様子を詳細に観察できる。ま
た、検査対象となるECU内CPU201およびECU
内RAM203の種類を変更する場合には、ECUイン
タフェース部2の構成のみを変更すれば済むため、多種
類の高機能ECUのデータ解析が可能となる。
Further, for example, when the CPU 201 in the ECU rewrites the data in the RAM 203 in the ECU so quickly that the data cannot be confirmed by human eyes, the ECU interface unit 2 can convert the timing to a speed that can be confirmed by human eyes. ECU by 7seg LED7 etc.
The state of change of the internal RAM 203 can be observed in detail. In addition, the CPU 201 in the ECU to be inspected and the ECU
When the type of the internal RAM 203 is changed, only the configuration of the ECU interface unit 2 needs to be changed, so that data analysis of various types of high-performance ECUs becomes possible.

【0032】さらに、ECU内CPU201の動作に影
響を与えることなく、ECU内RAM203に書き込ん
だデータをデュアルポートRAM1に書き込めるため、
ECU内CPUの動作プログラムを変更せずに済む。ま
た、ECU内CPU201がECU内RAM203に書
き込んだデータを詳細に解析する必要がある場合には、
そのデータをPCインタフェース部10を介してパソコ
ン9に伝送できるため、パソコン9のディスプレイに波
形を表示したり、パソコン9で複雑高度なデータ解析を
行なったり、またパソコン9のハードディスクにデータ
を格納したりできる。
Further, the data written in the RAM 203 in the ECU can be written in the dual port RAM 1 without affecting the operation of the CPU 201 in the ECU.
The operation program of the CPU in the ECU does not need to be changed. When it is necessary to analyze the data written in the RAM 203 in the ECU by the CPU 201 in the ECU in detail,
Since the data can be transmitted to the personal computer 9 via the PC interface unit 10, waveforms can be displayed on the display of the personal computer 9, complicated and sophisticated data analysis can be performed by the personal computer 9, and data can be stored on the hard disk of the personal computer 9. Can be.

【0033】−第2の実施例− 以下に説明する第2の実施例は、デュアルポートRAM
1が有する2つのポートから同一アドレスに同時に読み
書きを行なったことをハードウェアによって検出するも
のである。
Second Embodiment A second embodiment described below is a dual port RAM.
The hardware detects that data is simultaneously read from or written to the same address from the two ports of 1.

【0034】図5はデータバスモニタ装置100Bの第
2の実施例のブロック図である。第2の実施例のデータ
バスモニタ装置100Bは、ECUインタフェース部2
とモニタ内CPU3との間に新たに読み書き重複判定部
11が設けられる点を除いて、図1の構成と共通する。
FIG. 5 is a block diagram of a second embodiment of the data bus monitor device 100B. The data bus monitoring device 100B of the second embodiment includes an ECU interface unit 2
The configuration is the same as that of FIG. 1 except that a read / write duplication determination unit 11 is newly provided between the CPU and the CPU 3 in the monitor.

【0035】図6は読み書き重複判定部11の詳細を示
す回路図である。図示のように、読み書き重複判定部1
1は、アドレス一致信号出力部12、Dフリップフロッ
プ13(以下、DF/Fと呼ぶ)、アドレスセレクタ1
4、バッファ15およびORゲート16からなる。この
うち、アドレス一致信号出力部12は、デュアルポート
RAM1の2つのポートに同一のアドレス値が入力され
るとローレベルの信号を出力する。DF/F13のクロ
ック端子CLKには、ECUインタフェース部2から出
力された書き込みイネーブル信号NWEが入力される。
また、DF/F13のD端子は、アドレス一致信号出力
部12の出力がローレベルでかつモニタ内CPU3から
出力されたリードイネーブル信号NRDがローレベルの
ときにローレベルに変化する。DF/F13のQ端子か
ら出力される割り込み信号NDAR信号はモニタ内CP
U3の割り込み端子に接続されており、この割り込み信
号NDAR信号がローレベルになるとモニタ内CPU3
に割り込みが入る。
FIG. 6 is a circuit diagram showing the details of the read / write duplication determination section 11. As shown in FIG.
Reference numeral 1 denotes an address match signal output unit 12, a D flip-flop 13 (hereinafter, referred to as DF / F), and an address selector 1.
4, a buffer 15 and an OR gate 16. The address match signal output unit 12 outputs a low-level signal when the same address value is input to two ports of the dual port RAM 1. The write enable signal NWE output from the ECU interface unit 2 is input to the clock terminal CLK of the DF / F 13.
The D terminal of the DF / F 13 changes to a low level when the output of the address match signal output unit 12 is at a low level and the read enable signal NRD output from the CPU 3 in the monitor is at a low level. The interrupt signal NDAR signal output from the Q terminal of the DF / F 13
U3, which is connected to the interrupt terminal of U3.
Is interrupted.

【0036】アドレスセレクタ14は、モニタ内CPU
3の主記憶上にマッピングされており、モニタ内CPU
3がマッピングされたアドレスを出力すると、アドレス
セレクタ14はローレベルの信号を出力する。アドレス
セレクタ14がローレベルの信号を出力すると、バッフ
ァ15がイネーブル状態となり、DF/F13のNQ端
子から出力されるDAR信号がモニタ内CPU3のデー
タ入力端子に入力される。
The address selector 14 is a CPU in the monitor.
3 is mapped on the main memory and the CPU in the monitor
When 3 outputs the mapped address, the address selector 14 outputs a low-level signal. When the address selector 14 outputs a low-level signal, the buffer 15 is enabled, and the DAR signal output from the NQ terminal of the DF / F 13 is input to the data input terminal of the CPU 3 in the monitor.

【0037】図7はモニタ内CPU3に割り込みが入っ
ていない場合(NDAR=ハイレベル)のモニタ内CP
U3の動作を示すフローチャート、図8はモニタ内CP
U3に割り込みが入った場合(NDAR=ローレベル)
の動作を示すフローチャートであり、これらのフローチ
ャートに基づいて第2の実施例の動作を説明する。な
お、モニタ内CPU3は、割り込みが入ると即座に図8
の割り込み処理を行なうのに対し、割り込みが入ってい
ないときは、タイマ割り込みによって定まる所定時間ご
とに図7の処理を行なう。
FIG. 7 shows an in-monitor CP when an interrupt is not input to the in-monitor CPU 3 (NDAR = high level).
FIG. 8 is a flowchart showing the operation of U3, and FIG.
When an interrupt enters U3 (NDAR = low level)
Is a flowchart showing the operation of the second embodiment, and the operation of the second embodiment will be described based on these flowcharts. It should be noted that the CPU 3 in the monitor immediately receives the interrupt as shown in FIG.
When no interrupt is issued, the process shown in FIG. 7 is performed at predetermined time intervals determined by a timer interrupt.

【0038】図7のステップS101では、変数mを
「1」に初期化する。この変数mは、図8の割り込み処
理を連続して行なった回数を計測する。すなわち、図8
の割り込み処理を行なった後、図7の処理を行なえば、
いったん変数mは「1」に初期化される。図7のステッ
プS102では、デュアルポートRAM1のデータを読
み出して内部レジスタRに格納する。その後、モニタ内
CPU3はデータの加工処理を行なう。一方、モニタ内
CPU3に割り込み信号が入力されると、モニタ内CP
U3は図8の割り込み処理を開始する。
In step S101 of FIG. 7, the variable m is initialized to "1". This variable m measures the number of times the interrupt processing of FIG. 8 is continuously performed. That is, FIG.
After performing the interrupt processing of FIG.
Once the variable m is initialized to "1". In step S102 of FIG. 7, the data in the dual port RAM 1 is read and stored in the internal register R. Thereafter, the CPU 3 in the monitor performs data processing. On the other hand, when an interrupt signal is input to the monitor CPU 3, the monitor CP
U3 starts the interrupt processing of FIG.

【0039】まず、ステップS201では、いったん割
り込み信号NDAR信号による割り込みをマスクする。
すなわち、再度割り込みが入っても、その割り込みを受
け付けないようにする。ステップS202では、本当に
同一アドレスに同時に読み書きを行なうのか否かを確認
する。この確認のため、モニタ内CPU3は主記憶にマ
ッピングされているアドレスセレクタ14のアドレスを
出力して図6に示すアドレスセレクタ14の出力をロー
レベルにした状態で、バッファ15を介してDAR信号
の信号レベルを検出する。そして、DAR信号がハイレ
ベルであれば、同一アドレスに同時に読み書きを行なう
ものと判断する。
First, in step S201, the interruption by the interruption signal NDAR is temporarily masked.
That is, even if an interrupt is input again, the interrupt is not accepted. In step S202, it is confirmed whether reading and writing are to be performed simultaneously at the same address. For this confirmation, the CPU 3 in the monitor outputs the address of the address selector 14 mapped to the main memory and sets the output of the address selector 14 shown in FIG. Detect signal level. If the DAR signal is at a high level, it is determined that reading and writing to the same address are performed simultaneously.

【0040】このステップS202の処理は、何らかの
理由で誤って割り込みが入った場合の保護処理であり、
誤動作のおそれが少なければ省略しても構わない。ステ
ップS203では、変数mを「1」加算する。ステップ
S204では、変数mがmmax以上か否かを判定する。
判定が肯定されるとステップS205に進み、エラー処
理を行なう。一方、ステップS204の判定が否定され
るとステップS206に進み、割り込み入力を受け付け
可能にしてリターンする。
The process in step S202 is a protection process in the case where an interrupt is accidentally input for some reason.
If there is little possibility of malfunction, it may be omitted. In step S203, “1” is added to the variable m. In step S204, it is determined whether the variable m is equal to or greater than mmax.
If the determination is affirmative, the process proceeds to step S205, where error processing is performed. On the other hand, if the determination in step S204 is negative, the process proceeds to step S206, where an interrupt input can be accepted, and the process returns.

【0041】以上に説明した第2の実施例の動作をまと
めると、ECU内インタフェース部2とモニタ内CPU
3の間に読み書き重複判定部11を設け、デュアルポー
トRAM1の同一アドレスに同時に読み書きを指示する
と、モニタ内CPU3に割り込みをかけるようにする。
モニタ内CPU3は、割り込みが入るとデュアルポート
RAM1の読み出し処理にウェイトをかける。また、モ
ニタ内CPU3では、連続して割り込みがかかった回数
を計測し、その回数が所定回数を超えれば、異常が起こ
ったと判断してデータの加工処理を中止する。
The operation of the second embodiment described above can be summarized as follows.
3, a read / write duplication determination unit 11 is provided. When reading / writing is simultaneously instructed to the same address of the dual port RAM 1, the CPU 3 in the monitor is interrupted.
The CPU 3 in the monitor waits for the reading process of the dual port RAM 1 when an interrupt occurs. Further, the CPU 3 in the monitor measures the number of times interrupts are continuously taken, and if the number exceeds a predetermined number, determines that an abnormality has occurred and stops the data processing.

【0042】このように、第2の実施例は、デュアルポ
ートRAM1の同一アドレスに同時に読み書きが指示さ
れたか否かをハードウェアによって判断するようにした
ため、その判断を迅速かつ正確に行なうことができる。
As described above, in the second embodiment, it is determined by the hardware whether reading or writing is instructed at the same address of the dual port RAM 1 at the same time, so that the determination can be made quickly and accurately. .

【0043】−第3の実施例− 第3の実施例は第2の実施例の変形例であり、第2の実
施例の読み書き重複判定部11の回路構成を第2の実施
例に比べて簡易化したものである。図9は第3の実施例
の読み書き重複判定部11Aの回路図である。図示のよ
うに、読み書き重複判定部11Aは、アドレス一致信号
判定部12とORゲート16によって構成される。
Third Embodiment A third embodiment is a modification of the second embodiment. The circuit configuration of the read / write duplication determination unit 11 of the second embodiment is different from that of the second embodiment. It is a simplification. FIG. 9 is a circuit diagram of the read / write duplication determination unit 11A of the third embodiment. As shown, the read / write duplication determination unit 11A includes an address match signal determination unit 12 and an OR gate 16.

【0044】図9において、デュアルポートRAM1の
同一アドレスに同時に読み書きを指示すると、アドレス
一致信号判定部12からローレベルの信号が出力され
る。このとき、ECUインタフェース部2がローレベル
のライトイネーブル信号NWEを出力すると、ORゲー
ト16の出力であるNDAR信号はローレベルになる。
このNDAR信号はモニタ内CPU3のウェイト端子に
入力され、この信号がローレベルの期間は、モニタ内C
PU3はデュアルポートRAM1の読み出しを停止す
る。
In FIG. 9, when reading and writing are simultaneously instructed to the same address of the dual port RAM 1, a low level signal is output from the address coincidence signal judging section 12. At this time, when the ECU interface unit 2 outputs the low level write enable signal NWE, the NDAR signal output from the OR gate 16 becomes low level.
The NDAR signal is input to the wait terminal of the CPU 3 in the monitor.
PU3 stops reading the dual port RAM1.

【0045】このように、第3の実施例はDF/F13
とアドレスセレクタ14がない分だけ第2の実施例より
も回路構成が簡略化している。しかし、デュアルポート
RAM1の同一アドレスに同時に読み書きが指示される
と、デュアルポートRAM1の読み出しを一時停止する
点では共通しており、第2の実施例と同様の処理を行な
える。ただし、ウェイト信号NDARが誤って入力され
ても確認のしようがないため、ノイズの多い箇所等で動
作させる場合等は、第2の実施例の方が望ましい。な
お、第3の実施例では、モニタ内CPU3が読み出し処
理に入った直後にECU内CPU201が書き込み処理
に入ると、読み出し処理をウェイトさせることができな
くなる場合があるため、このような場合には、図4の処
理と同様にデュアルポートRAM1の内容を複数回読み
出すようにすればよい。
As described above, the third embodiment uses the DF / F13
The circuit configuration is simpler than that of the second embodiment because of the absence of the address selector 14. However, when reading and writing are simultaneously instructed to the same address of the dual port RAM 1, the reading of the dual port RAM 1 is temporarily stopped, and the same processing as in the second embodiment can be performed. However, since there is no way to check even if the wait signal NDAR is erroneously input, the second embodiment is more desirable when operating in a noisy place or the like. In the third embodiment, if the CPU 201 in the ECU enters the writing process immediately after the CPU 3 in the monitor enters the reading process, the reading process may not be allowed to wait. 4, the contents of the dual port RAM 1 may be read a plurality of times.

【0046】上記各実施例のECUインタフェース部2
では、各信号のタイミングと電圧レベルの変更を行なう
例を説明したが、電圧振幅の変更等の他の電気的特性を
変更するようにしてもよい。上記第1の実施例では図4
の処理によって、また第2,3の実施例ではそれぞれ図
6,9の回路によって、デュアルポートRAM1の同一
アドレスに同時に読み書きを行なわないようにしている
が、バス裁定機能を有するデュアルポートRAMを使用
してもよい。
The ECU interface unit 2 of each of the above embodiments
Although the example in which the timing and the voltage level of each signal are changed has been described, other electrical characteristics such as a change in the voltage amplitude may be changed. In the first embodiment, FIG.
And in the second and third embodiments, the circuits of FIGS. 6 and 9 are used to prevent simultaneous reading and writing to the same address of the dual port RAM 1. However, a dual port RAM having a bus arbitration function is used. May be.

【0047】このように構成した実施例にあっては、E
CUインタフェース部2がインタフェース手段に、CP
U3が制御手段に、7segLED7およびD/Aコン
バータ8が表示収集手段に、パソコン9が解析装置に、
読み書き重複判定部11が読み書き重複検出手段に、そ
れぞれ対応する。
In the embodiment configured as described above, E
The CU interface unit 2 uses the CP
U3 is a control means, 7 seg LED7 and D / A converter 8 are a display collection means, a personal computer 9 is an analysis device,
The read / write duplication determination unit 11 corresponds to the read / write duplication detection means.

【0048】[0048]

【発明の効果】以上詳細に説明したように、請求項1,
3に記載の発明によれば、コントローラがRAMに書き
込んだすべてのデータをデュアルポートRAMに格納す
るようにしたため、コントローラが複雑かつ高度な演算
を行なっても、コントローラの演算結果を詳細に分析で
きる。また、コントローラから出力された各種信号のタ
イミング等の電気的特性を、インタフェース部によって
デュアルポートRAMの種類に応じて変更するようにし
たため、電気特性の異なる多種類のコントローラのデー
タ分析を行なうことができ、汎用性に優れる。さらに、
デュアルポートRAMは構造上、同一アドレスのデータ
を同時に読み書きすると、読み出しデータが不定になる
おそれがあるため、デュアルポートRAMの内容を読み
出す際には、同一アドレスのデータを複数回連続して読
み出し、読み出したデータが所定回数連続して一致する
場合のみデータの加工を行なうようにしている。したが
って、デュアルポートRAMの同一アドレスを同時に読
み書きしても、誤ったデータを読み出すことはない。ま
た、請求項2,3,4に記載の発明によれば、制御手段
によって加工されたデータを解析装置によって分析する
ようにしたため、波形表示や複雑高度なデータ分析等が
可能となり、コントローラの演算結果を詳細に分析でき
る。とくに、請求項3に記載の発明によれば、デュアル
ポートRAMの同一アドレスに同時に読み書きしようと
すると、制御手段に割り込み信号を入力して読み出しタ
イミングを遅らせるようにしたため、同一アドレスを同
時に読み書きをするおそれがなくなる。また、請求項4
に記載の発明によれば、デュアルポートRAMの内容を
読み出す際に同一アドレスのデータを複数回連続して読
み出し、読み出したデータが所定回数連続して一致する
場合のみデータの加工を行なうようにしたから、デュア
ルポートRAMの同一アドレスを同時に読み書きして
も、誤りなくデータを読み出すことが可能になる。
As described in detail above, claim 1
According to the invention described in the third aspect, all data written by the controller in the RAM is stored in the dual port RAM, so that even if the controller performs complicated and advanced calculations, the calculation results of the controller can be analyzed in detail. . In addition, since the electrical characteristics such as the timing of various signals output from the controller are changed according to the type of the dual-port RAM by the interface unit, data analysis of various types of controllers having different electrical characteristics can be performed. It can be used and has excellent versatility. further,
Due to the structure of the dual-port RAM, if data of the same address is simultaneously read and written, the read data may become indefinite. Therefore, when reading the contents of the dual-port RAM, the data of the same address is continuously read a plurality of times. Data processing is performed only when the read data matches a predetermined number of times consecutively. Therefore, even if the same address in the dual port RAM is simultaneously read and written, erroneous data is not read. According to the second, third, and fourth aspects of the present invention, the data processed by the control means is analyzed by the analysis device, so that waveform display, complicated data analysis, and the like can be performed. The results can be analyzed in detail. In particular, according to the third aspect of the present invention, when simultaneous reading and writing to the same address of the dual port RAM is attempted, an interrupt signal is input to the control means to delay the reading timing, so that the same address is simultaneously read and written. There is no fear. Claim 4
According to the invention described in (1), when reading the contents of the dual port RAM, the data at the same address is continuously read a plurality of times, and the data is processed only when the read data matches the predetermined number of times continuously. Therefore, even if the same address of the dual port RAM is simultaneously read and written, data can be read without error.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明によるデータバスモニタ装置の第1の実
施例のブロック図。
FIG. 1 is a block diagram of a first embodiment of a data bus monitor device according to the present invention.

【図2】ECU内CPUとモニタ内CPUの主記憶のマ
ッピングを示す図。
FIG. 2 is a diagram showing mapping of main memories of a CPU in an ECU and a CPU in a monitor.

【図3】ECU内RAMとデュアルポートRAMの書き
込みタイミングを示す図。
FIG. 3 is a diagram showing write timings of a RAM in an ECU and a dual port RAM.

【図4】第1の実施例のデュアルポートRAMの読み出
し処理を示すフローチャート。
FIG. 4 is a flowchart showing read processing of a dual port RAM according to the first embodiment;

【図5】本発明によるデータバスモニタ装置の第2の実
施例のブロック図。
FIG. 5 is a block diagram of a data bus monitor device according to a second embodiment of the present invention.

【図6】読み書き重複判定部の第2の実施例の回路図。FIG. 6 is a circuit diagram of a second embodiment of a read / write duplication determination unit.

【図7】割り込みが入らない場合のデュアルポートRA
Mの読み出し処理を示すフローチャート。
FIG. 7 shows a dual-port RA when an interrupt is not input
9 is a flowchart showing a reading process of M.

【図8】割り込みが入った場合のデュアルポートRAM
の読み出し処理を示すフローチャート。
FIG. 8 shows a dual port RAM when an interrupt occurs.
5 is a flowchart showing a reading process of FIG.

【図9】読み書き重複判定部の第3の実施例の回路図。FIG. 9 is a circuit diagram of a third embodiment of a read / write duplication determination unit.

【図10】従来のデータバスモニタ装置のブロック図。FIG. 10 is a block diagram of a conventional data bus monitor device.

【符号の説明】[Explanation of symbols]

1 デュアルポートRAM 2 ECUインタフェース部 3 CPU 4 タイマ 5 ROM 6 RAM 7 7segLED 8 D/Aコンバータ 9 パソコン 10 PCインタフェース部 100A データバスモニタ装置 200 ECU Reference Signs List 1 dual port RAM 2 ECU interface unit 3 CPU 4 timer 5 ROM 6 RAM 7 7 seg LED 8 D / A converter 9 personal computer 10 PC interface unit 100A data bus monitor device 200 ECU

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.7,DB名) G06F 11/34 G06F 11/22 350 G06F 13/00 301 ──────────────────────────────────────────────────続 き Continued on the front page (58) Field surveyed (Int. Cl. 7 , DB name) G06F 11/34 G06F 11/22 350 G06F 13/00 301

Claims (4)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】検査対象となるコントローラがRAMに書
き込んだデータをモニタして該コントローラの動作を解
析するデータバスモニタ装置において、 前記RAMの記憶容量以上の記憶容量を有し、前記コン
トローラが前記RAMにデータを書き込むと、略同タイ
ミングで前記データを書き込むデュアルポートRAM
と、 前記コントローラと前記デュアルポートRAMとの間に
介挿され、前記コントローラから出力されるアドレス信
号、データ信号および書き込み制御信号の各タイミング
を含む電気的特性を前記デュアルポートRAMの種類に
応じて変更するインタフェース手段と、前記デュアルポートRAMの同一アドレスのデータを複
数回連続して読み出し、読み出したデータが所定回数連
続して一致した場合に限り、前記読み出したデータの加
工を行う制御手段 と、 前記制御手段によって加工されたデータを表示または収
集する表示収集手段とを備えることを特徴とするデータ
バスモニタ装置。
1. A data bus monitor device for monitoring data written to a RAM by a controller to be inspected and analyzing the operation of the controller, wherein the data bus monitor device has a storage capacity equal to or larger than a storage capacity of the RAM, When writing data to the RAM, a dual port RAM that writes the data at substantially the same timing
And electrical characteristics including timings of an address signal, a data signal, and a write control signal which are interposed between the controller and the dual port RAM and output from the controller according to the type of the dual port RAM. Interface means for changing, and duplicating data at the same address in the dual port RAM.
Read several times in succession, and read the data
Only when there is a match, the read data is added.
A data bus monitor device, comprising: a control unit for performing an operation; and a display collection unit for displaying or collecting data processed by the control unit.
【請求項2】検査対象となるコントローラがRAMに書
き込んだデータをモニタして該コントローラの動作を解
析するデータバスモニタ装置において、 前記RAMの記憶容量以上の記憶容量を有し、前記コン
トローラが前記RAMにデータを書き込むと、略同タイ
ミングで前記データを書き込むデュアルポートRAM
と、 前記コントローラと前記デュアルポートRAMとの間に
介挿され、前記コントローラから出力されるアドレス信
号、データ信号および書き込み制御信号の各タイミング
を含む電気的特性を前記デュアルポートRAMの種類に
応じて変更するインタフェース手段と、 前記デュアルポートRAMに書き込まれたデータを所定
のタイミングで読み出し、前記書き込まれたデータの加
工を行う制御手段と、 前記制御手段によって加工されたデータを解析する解析
装置とを備える ことを特徴とするデータバスモニタ装
置。
2. A controller to be inspected writes in a RAM.
Monitor the input data and solve the operation of the controller.
A data bus monitor device that has a storage capacity equal to or larger than the storage capacity of the RAM;
When the controller writes data to the RAM, the
Dual port RAM for writing the data in the memory
Between the controller and the dual port RAM
The address signal output from the controller
Signal, data signal and write control signal timing
The electrical characteristics including
An interface means for changing the data written in the dual port RAM,
At the timing of
Control means for performing machining and analysis for analyzing data processed by the control means
Data bus monitor device, characterized in that it comprises a device.
【請求項3】請求項1または2に記載されたデータバス
モニタ装置において、 前記デュアルポートRAMの同一アドレスに対して同時
に読み書きが指示されると、前記制御手段に割り込み信
号を送出する読み書き重複検出手段を備え、 前記制御手段は、前記割り込み信号が入力されると、前
記デュアルポートRAMの読み出しタイミングを遅らせ
ことを特徴とするデータバスモニタ装置。
3. A data bus according to claim 1, wherein :
In the monitor device, the same address of the dual port RAM is simultaneously
When reading / writing is instructed to the control means, an interrupt signal is sent to the control means.
Read / write duplication detecting means for transmitting a signal, and the control means, when the interrupt signal is inputted,
Delay read timing of dual port RAM
Data bus monitor device, characterized in that that.
【請求項4】請求項2に記載されたデータバスモニタ装
置において、 前記制御手段は、前記デュアルポートRAMの同一アド
レスのデータを複数回連続して読み出し、読み出したデ
ータが所定回数連続して一致した場合に限り、前記読み
出したデータの加工を行うことを特徴とするデータバス
モニタ装置。
4. A data bus monitor device according to claim 2.
The control means may include the same address of the dual port RAM.
Address data is read continuously multiple times, and the read data
Only when the data match the specified number of times
Data bus characterized by processing the output data
Monitor device.
JP06220182A 1994-09-14 1994-09-14 Data bus monitor device Expired - Lifetime JP3129102B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP06220182A JP3129102B2 (en) 1994-09-14 1994-09-14 Data bus monitor device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP06220182A JP3129102B2 (en) 1994-09-14 1994-09-14 Data bus monitor device

Publications (2)

Publication Number Publication Date
JPH0883201A JPH0883201A (en) 1996-03-26
JP3129102B2 true JP3129102B2 (en) 2001-01-29

Family

ID=16747172

Family Applications (1)

Application Number Title Priority Date Filing Date
JP06220182A Expired - Lifetime JP3129102B2 (en) 1994-09-14 1994-09-14 Data bus monitor device

Country Status (1)

Country Link
JP (1) JP3129102B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10380057B2 (en) 2017-03-17 2019-08-13 Kabushiki Kaisha Toshiba Data storage device

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE19920992B4 (en) * 1999-05-06 2005-06-23 Siemens Ag Method for accessing a storage device
JP3643084B2 (en) 2001-03-30 2005-04-27 株式会社ソニー・コンピュータエンタテインメント Data monitoring system, method, computer program, and recording medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10380057B2 (en) 2017-03-17 2019-08-13 Kabushiki Kaisha Toshiba Data storage device

Also Published As

Publication number Publication date
JPH0883201A (en) 1996-03-26

Similar Documents

Publication Publication Date Title
US5226153A (en) Bus monitor with time stamp means for independently capturing and correlating events
US5206948A (en) Bus monitor with means for selectively capturing trigger conditions
JPH07271403A (en) Inactive system memory updating system
US5317721A (en) Method and apparatus to disable ISA devices for EISA addresses outside the ISA range
JP3129102B2 (en) Data bus monitor device
US5142673A (en) Bus monitor with dual port memory for storing selectable trigger patterns
US5771345A (en) Integrated digital processing device and method for examining the operation thereof
US6917991B2 (en) Method of and system for efficiently tracking memory access by direct memory access controller
EP2752768B1 (en) Error detection in a circuit module
CN114968629A (en) Computer system and special crash dump device thereof and method for recording error data
JP2580558B2 (en) Interface device
JP3105104B2 (en) Monitor unit for electronic control unit
US10831686B1 (en) Method of determining hard disk operation status
EP0556138A1 (en) A bus for connecting extension cards to a data processing system and test method
JP3105103B2 (en) Adjustment device for electronic control unit
KR930008679B1 (en) Error processing circuit of micro-channel bus
JP3105105B2 (en) Monitor unit for electronic control unit
JPH06119258A (en) Trace marking circuit of common bus
JP2592525B2 (en) Error detection circuit of common bus system
JP3172981B2 (en) Unused memory space access error detection circuit
US20030004698A1 (en) Agent state drive simulation and method for detecting simulated drive fights
JPH01287758A (en) Extension slot control system
JPH0137019B2 (en)
KR19990031462A (en) Error Logging Circuit Operates Even When a System Error Occurs
JPS6213703B2 (en)

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20071117

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081117

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091117

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101117

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20111117

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121117

Year of fee payment: 12

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121117

Year of fee payment: 12

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20131117

Year of fee payment: 13

EXPY Cancellation because of completion of term