JP3398402B2 - Bus monitor device - Google Patents

Bus monitor device

Info

Publication number
JP3398402B2
JP3398402B2 JP27330392A JP27330392A JP3398402B2 JP 3398402 B2 JP3398402 B2 JP 3398402B2 JP 27330392 A JP27330392 A JP 27330392A JP 27330392 A JP27330392 A JP 27330392A JP 3398402 B2 JP3398402 B2 JP 3398402B2
Authority
JP
Japan
Prior art keywords
data
output
bus
address
register
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
JP27330392A
Other languages
Japanese (ja)
Other versions
JPH06124245A (en
Inventor
洋造 荒
Original Assignee
株式会社エフ・エフ・シー
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 株式会社エフ・エフ・シー filed Critical 株式会社エフ・エフ・シー
Priority to JP27330392A priority Critical patent/JP3398402B2/en
Publication of JPH06124245A publication Critical patent/JPH06124245A/en
Application granted granted Critical
Publication of JP3398402B2 publication Critical patent/JP3398402B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】 【0001】 【産業上の利用分野】本発明は、バスを監視し、バス上
のデータを収集するバスモニタ装置の改良に関する。 【0002】近年、さまざまな分野でマイクロプロセッ
サ(以下MPU)を使用した制御装置が普及している。
これらの制御装置は多種のデータを収集して複雑な制御
を行っているものが多く、制御状態を監視する場合、す
べてのデータをログして制御状態を解析するよりは、着
目するデータの推移を監視する方が効率的である場合が
多い。このため、マイクロプロセッサ(以下MPU)が
アクセスするバス上のデータのうちより、特定のアドレ
スのデータのみを取り込んで監視する方法が考えられる
が、近年のMPUは、命令によっては連続する2バイ
ト,または4バイトのデータを1つのまとまったデータ
として取り扱うものがあり、例えば着目する4バイトの
データが更新される(4回のバスアクセスが行われる)
途中で、そのデータを取り込むタイミングが生じると、
取り込んだ4バイトのデータの一部が未更新のままとな
る可能性がある。 【0003】このため、MPUのバスを監視して特定の
データを取り込むバスモニタ装置において、複数バイト
にわたるデータの連続性を保証することが必要とされ
る。 【0004】 【従来の技術】MPUのバスを監視するものとして、ロ
ジックアナライザ、ICE(In Circuit Emulater )等
がある。このうちロジックアナライザによる方法は、M
PUのバスにロジックアナライザを接続してバス上のデ
ータをロジックアナライザ中のメモリにログし、このメ
モリの内容を読出して16進表示、または波形表示させ
ることにより、制御状態を解析するというものである
が、制御順序に従ってバス上に出力されたすべてのデー
タが時系列にログされるため、メモリ容量によってはロ
グするデータ量に制限が生じることと、このデータのう
ちより着目するデータを抽出するには手間がかかるとい
った課題がある。 【0005】一方ICEは、装置のMPUの動作と同じ
動作を行うとともにデータ収集を行う手段を備えた回路
をそのMPUに置き換えて、バス上に出力されるデータ
をログするものであるが、ロジックアナライザと同様
に、着目したデータのみをリアルタイムには監視できな
いといった課題がある。 【0006】 【発明が解決しようとする課題】ロジックアナライザ,
ICEによるデータ収集はすべてのデータが時系列に収
集されるので複雑な動作を行う制御装置の監視には不便
である。 【0007】このため、MPUのバス上に出力されるデ
ータのうちより指定したアドレスのデータのみを取り込
むことが考えられている。図5課題(その1)説明図は
その一例の構成図を示したものであり、その動作は次の
通りである。 【0008】即ち、図5のバスモニタ装置52において、
予め監視したいデータのアドレスをアドレス設定レジス
タ42に設定しておくと、そのアドレスと被測定装置40の
MPU41がアドレスバスに出力するアドレスとが一致し
たとき比較器46より一致信号が出力され、その一致信号
によりその時点でデータバスに出力されているデータが
データレジスタ47にラッチされる。このアドレスのデー
タは、繰り返し出力され、且つ制御とともにその値は変
化してデータレジスタ47に上書きされるので、ある一定
周期のサンプリングクロックに同期して、転送部51がデ
ータレジスタ47の内容をメモリ52に書き込んでいく。 【0009】このアドレス設定レジスタ, 比較器, デー
タレジスタを1組としたデータ捕捉部が複数組設けら
れ、それぞれアドレス設定レジスタ42〜45にアドレスを
設定することにより、データレジスタ47〜50に所望のデ
ータがラッチされ、且つ転送部51により、メモリ52に記
録される。 【0010】このようなバスモニタを使用する場合、次
のような課題に遭遇する。つまり、近年のMPU41は、
その種類あるいは命令によっては、図6(a),(b),(c) の
ごとく、8ビット並列で、且つ2バイト連続、16ビット
並列で、且つ2バイトづつ連続、8 ビット並列で、4 バ
イト連続のごとく出力される場合があり、メモリ52に書
き込むタイミングが、例えば図6(c) のように、一連の
データの途中(t1)にぶつかると、正確なデータバスの監
視結果が得られない。即ち、t1時点では、1000H 〜1002
H 番地までの3バイトのデータは今回更新されたデータ
であるが、第4バイト目は、前のアクセス時に更新され
たままのデータである。 【0011】このため、第1バイトである1000H 番地の
データ出力を検出した後、第2バイトの検出を待ち、同
様にして第3バイト, 第4バイトまでの検出を待ってメ
モリ52に転送することが考えられるが、この方法は何ら
かの理由により(例えばオペレータの設定ミス)1001H番
地へのアクセスがない場合は、メモリ52への転送が永久
にできないことになる。このように、複数回のバスアク
セスにより連続的に出力される一連のデータを取り込む
場合には、データの連続性を保証する必要がある。 【0012】本発明は、上記課題に鑑み、複数回のアク
セスにより出力される一連のデータを、連続性を保証し
つつ取り込むバスモニタ装置を提供することを目的とす
る。 【0013】 【課題を解決するための手段】図1の本発明の原理図に
おいて、61は複数のデータ捕捉部で、複数回のバスアク
セスによりバス上に時系列に出力される一連のデータを
それぞれ捕捉する。60はタイミング制御部で、データ捕
捉部61に捕捉されたデータの取り込み制御を行う。 【0014】そして、各データ捕捉部61は、アドレスデ
ータが設定されるアドレス設定レジスタ8と、設定され
た該アドレスデータとバス上に出力されるアドレスデー
タとを比較する比較器9 と、比較器9から一致信号が出
力された時点でバス上に出力されているデータを捕捉す
るデータレジスタ10と、一連のデータ中、捕捉データか
ら最終データまでのアクセス回数が設定されるアクセス
回数設定レジスタ7と、データレジスタ10へのデータ捕
捉時から設定されたアクセス回数分のアクセス時間、ビ
ジー信号を出力するビジー信号発生部5 とを備えるもの
であり、タイミング制御部60は、一連の該データを捕捉
する所定のデータ捕捉部61のいずれからかビジー信号が
出力されている場合は、該データ捕捉部61のデータレジ
スタ10からデータを取り込むことを禁止する。 【0015】 【作用】各データ捕捉部61では、捕捉するデータに対応
するアドレスデータがアドレス設定レジスタ8に設定さ
れ、アクセス回数設定レジスタ7には、一連のデータ中
における捕捉データから最終データまでのバスアクセス
回数が設定される。例えば図6(C) の場合、即ち、一連
のデータ(4バイト)が4回のバスアクセスで出力され
る場合、データ捕捉部61は4組使用され、それぞれのア
ドレス設定レジスタ8には順次、1000H 〜1003H が設定
され、且つアクセス回数設定レジスタ7には降順に4,
3,2,1のように最終データのバスアクセスまでのア
クセス回数が設定される。これにより、各データ捕捉部
61のデータレジスタ10には、設定されたアドレスのデー
タが捕捉されるとともに、各データ捕捉部61のビジー信
号発生部5から、捕捉したアクセス時点から最終データ
のアクセス終了までの間ビジー信号が出力される。 【0016】タイミング制御部60は、このビジー信号を
監視し、この4組のデータ捕捉部61より出力されるビジ
ー信号のうち、いずれか1つでもビジー信号が出力され
ていれば、各データ捕捉部61中の4組のデータレジスタ
10からの取込みを禁止する。 【0017】以上により、一連の纏まったデータがアク
セスされている間はラッチするデータレジスタ10からの
取込みが禁止されるから、データの連続性は保証され
る。また、アクセス回数設定レジスタにセットした回数
分のアクセスが終了するとビジー信号が解除されるの
で、オペレータのセットミスが生じても、次に発生する
一連のデータの捕捉を永久に待つ必要がない。 【0018】 【実施例】図2は一実施例の構成図、図3は一実施例の
BSY信号発生部の構成図、図4は動作タイムチャート
図である。 【0019】本バスモニタは、バス上に出力されるデー
タから、指定した任意の複数のデータを捕捉する(ラッ
チする)ように構成されるが、本実施例では、図6(C)
で示した一連の4バイトのデータをラッチする場合を示
す。 【0020】図2において、第1バイトデータ捕捉部
1,第2バイトデータ捕捉部2,第3バイトデータ捕捉
部3,第4バイトデータ捕捉部4(以上図1のデータ捕
捉部61に対応する) は、本実施例における4バイトデー
タのうちのラッチすべきバイト順に対応してそれぞれ命
名したもので、構成は同一である。従って、アドレス設
定レジスタ8,アクセス回数設定レジスタ7に設定する
値によって、4バイトデータ、2組の2バイトデータ、
4組の異なるバイトデータ等、任意の連続した、あるい
は単独のデータをラッチすることができることは勿論で
ある。 【0021】なお、以後の説明において、第2〜第4バ
イトデータ捕捉部2〜4のうち、図示省略した部分は第
1バイトデータ捕捉部1の符号を使用している。第1バ
イトデータ捕捉部1において、8はアドレス設定レジス
タで、図示省略したキーボード等より入力されたアドレ
スデータがマイクロプロセッサMPU15により設定され
る。9 は比較器で、アドレスバスに出力されたアドレス
データと、アドレス設定レジスタ8 に前記設定されたア
ドレスデータとを比較し、一致したとき一致信号"1" を
出力する。10は第1のレジスタ(図1のデータレジスタ
に対応する)で、比較器9より出力された一致信号によ
り、データバス上に出力されているデータをラッチす
る。 【0022】以上の構成により、アドレス設定レジスタ
8に設定されたアドレスデータと同一アドレスデータが
バス上に出力される毎に、その時点のデータバス上のデ
ータが第1のレジスタ10に上書き(ラッチ)される。 【0023】本実施例では、第1〜第4バイトデータ捕
捉部1〜4のそれぞれのアドレス設定レジスタ8に、例
えば、1000H番地,1001H番地,1002H番
地,1003H番地のごとく設定しておけば、第1〜第
4バイト捕捉部1〜4の第1のレジスタ10〜13に、図示
省略したMPUよりアクセスされてバス上に出力された
1000H〜1003H番地のデータがそれぞれラッチ
される。 【0024】7はアクセス回数設定レジスタで、自己の
データ捕捉部でデータラッチが行われたアクセスサイク
ルから対象とする一連のデータの最終バイトデータ(こ
こでは4バイト目)までのアクセス回数がキーボードか
ら設定される。即ち、第1〜第4バイトデータ捕捉部1
〜4のアドレス設定レジスタ8に、前述したように、ア
ドレスが昇順に設定された場合は、それぞれのアクセス
回数設定レジスタ7にはそれぞれ、4,3,2,1(実
際には後述する値が設定される)のごとく設定される。
5はBSY信号発生部で、当該データ捕捉部で捕捉した
データアクセスからアドレス設定レジスタ7に設定され
た回数のアクセス時間、ビジー(BSY)信号を発生す
る。 【0025】10a は第2のレジスタで、後述するよう
に、タイミング制御部60(ノア回路17、アンド回路18,
21、D-FF 19 ,20, 22 、インバータ23等より構成され
る) のうちのアンド回路21の出力するセット信号により
第1のレジスタ10の内容が転送される。そして、この第
2のレジスタ10a の内容が、例えばセット信号後にMP
U15に読出されてメモリ6 に格納される。 【0026】第1のレジスタ10〜13から第2のレジスタ
10a 〜13a への転送は、一連のデータ(4バイトのデー
タ)がアクセスされていないタイミングで行われる。こ
のため、例えば、図6(C) で時刻t1にときセット信号が
出力されるタイミングの場合は、セット信号を時刻t2ま
で遅延する。 【0027】図3はBSY信号発生部5の構成例を示し
たものである。ここでD-FF(D TYPEフリップフロップ)
31〜D-FF 34 はシフトレジスタ6 を構成するもので、一
致信号"1" がアドレスストローブによりシフトされる。
25はデコーダで、図示テーブルに示したようなA,Bの
入力に対して0〜3の出力が得られるように構成されて
いる。 【0028】いま、アドレス設定レジスタ8に設定した
アドレスデータと、アドレスバス上のデータとが一致し
たとき、比較器9より一致信号が出力(ハイレベル"1"
となる)される。一致信号が出力("1") されると、JK-F
F 35のQ出力(BSY信号,図4参照)は、50nSのコン
スタントクロックに同期して"1" となる。 【0029】ここで、アクセス回数設定レジスタ7の
〔A,B〕が〔0,0〕に設定されているとすると、ア
ドレスストローブ一周期の間、BSY信号が出力され
る。即ち、通常は、ナンド回路26の3入力のうち、一致
信号(図4の場合は第4バイト一致信号)は"0" ,デコ
ーダ25の出力は"1" 、且つ*Qは"1" であるが、一致信
号が"1" となると、ナンド回路26の出力は"1" から"0"
となり、アドレスストーブの立ち下がりで*Qが"0" と
なるから再びナンド回路26の出力は"1" となる。ナンド
回路27〜29はデコーダ25の出力が"0" であるから、ナン
ド回路27〜29の出力は常に"1" である。この結果、アン
ド回路30より、D-FF 26 のQ出力に応じた時間幅で"0"
が出力され、JK-FF 35がクリアされる。この結果JK-FF
のQ出力は"0" となる。つまり、〔0,0〕がアクセス
回数設定レジスタ8に設定され、且つ4バイト目のアド
レスがアドレス設定レジスタ8に設定されていると、図
4の第4バイトBSY信号が発生される。 【0030】同様にしてアクセス回数設定レジスタ7 に
〔0,1〕が設定されると、アドレスストローブを1つ
カウントした後にD-FF 31 のQ出力が"1" となり、次の
アドレスストローブでD-FF 32 のQ出力が"0" から"1"
となり、且つ*Q出力が"1"から"0" となって、その時
点でJK-FF 35がクリアされる。これによりアドレススト
ローブ2周期の間のBSY信号が出力される。本実施例
では、図4の第3バイトのBSY信号である。このよう
にしてアクセス回数設定レジスタ7に〔1,0〕、
〔1,1〕をそれぞれ設定することにより、それぞれア
ドレスストローブ3周期分(図4の第2バイトBSY信
号)、4周期分のBSY信号(図4の第1バイトBSY
信号)がそれぞれ発生する。 【0031】以上の結果、4 バイトのデータ、例えば連
続するアドレス1000H,1001H,1002H,
1003Hのデータをラッチする場合、第1〜第4バイ
トデータ捕捉部1〜4のそれぞれのアドレス設定レジス
タ8にそれぞれアドレス1000H,1001H,10
02H,1003Hを設定し、アクセス回数設定レジス
タ7にそれぞれ〔1,1〕、〔1,0〕、〔0,1〕、
〔0,0〕を設定する。これにより、例えば、監視対象
のMPUより命令 MOVE.L DO, 1000H ( マイクロプロ
セッサ68008 の場合) が発行されると、アドレス100
0H,1001H,1002H,1003Hの順にその
アドレスとともにデータが出力され、順次第1のレジス
タ10〜13にラッチ(例えば、図4のデータストローブの
立ち上がり時点)されるとともに、図4に示す第1〜第
4バイトBSY信号が出力されることになる。 【0032】このBSY信号が出力されている期間は、
4バイトのデータが第1のレジスタ10〜13にラッチされ
ている途中の期間であって、それらのデータは1つのか
たまりとして保証できないから、4 バイトのBSY信号
のいずれかが出力されている場合は、第2のレジスタ10
a 〜13a へのセット信号出力を禁止(遅延)する。そし
て、BSY信号がすべて解除された後に、セット信号を
出力し、しかる後にメモリ16に転送するか、または図示
省略した表示部に表示する。つまり、第2のレジスタ10
a 〜13a への転送を指示するサンプリングクロック(本
来のセット信号、1000H 〜1003H へのアクセスとは非同
期) が出力されたときに第1〜第4バイトBSY信号の
いずれかが出力されている場合は、すべてのBSY信号
が解除されるまでセット信号の出力を待たす。以下はそ
のタイミング制御部(図1のタイミング制御部60) の説
明である。 【0033】17は、ノア回路で、BSY信号がオール"
0" のとき"1" を出力する。D-FF 22は、サンプリングク
ロックが入力されると、Q出力を"1" とするが、ノア回
路17が"1" になったときアンド回路は"1" を出力し、こ
の"1" 出力はD-FF 19,D-FF20によりコンスタントクロッ
ク(50nS)×2時間分遅れてアンド回路21に"1" を出力
し、インバータ23により"0" となって、D-FF 22 をクリ
アする。つまりサンプリングクロックは第1〜第4バイ
トBSY信号がオール"0" になった後で、且つコンスタ
ントクロック2個分遅れてアンド回路21から出力され
る。この信号はセット信号として出力され、第1のレジ
スタ10〜13から第2のレジスタ10a 〜13a にデータを転
送する。 【0034】このようにして、第2のレジスタ10a 〜13
a には4バイトのデータが一つのまとまりとしてアクセ
ス期間外に同時にセットされるので、データの連続性が
保証される。 【0035】なお、以上の実施例は、セット信号によ
り、一旦第2のレジスタ10a 〜13a に転送したが、MP
U15により第1のレジスタ10〜13の内容を直接読出して
メモリ16に転送してもよいことは勿論である。 【0036】 【発明の効果】以上説明したように、本発明のバスモニ
タは、バス上に出力された一連のデータをアドレス指定
によりレジスタにラッチするように構成し、且つ一連の
データがアクセスされる間はこのレジスタにラッチされ
たデータの取込みを禁止するように構成したので、複数
バイトにわたり分割してアクセスされる一連のデータの
連続性を保証する効果がある。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an improvement in a bus monitor device for monitoring a bus and collecting data on the bus. In recent years, control devices using a microprocessor (hereinafter, MPU) have become widespread in various fields.
Many of these controllers collect various types of data and perform complex control.When monitoring the control state, rather than logging all data and analyzing the control state, the transition of the data of interest Monitoring is often more efficient. For this reason, a method of monitoring only data at a specific address from among data on a bus accessed by a microprocessor (hereinafter referred to as an MPU) can be considered. Alternatively, there is a type in which 4-byte data is handled as one set of data. For example, 4-byte data of interest is updated (bus access is performed four times).
If there is a timing to capture that data on the way,
There is a possibility that a part of the acquired 4-byte data remains unupdated. For this reason, in a bus monitor device that monitors a bus of an MPU and takes in specific data, it is necessary to guarantee continuity of data over a plurality of bytes. [0004] There are a logic analyzer, an ICE (In Circuit Emulator) and the like for monitoring a bus of an MPU. Of these, the method using a logic analyzer is M
A logic analyzer is connected to the bus of the PU, the data on the bus is logged to the memory in the logic analyzer, and the contents of this memory are read out and displayed in hexadecimal or waveform to analyze the control state. However, since all data output on the bus is logged in chronological order according to the control order, the amount of data to be logged is limited depending on the memory capacity, and data of interest is extracted from the data. Has a problem that it takes time. [0005] On the other hand, the ICE replaces a circuit provided with a means for collecting data with the same operation as that of the MPU of the apparatus by using the MPU and logs data output on the bus. Like the analyzer, there is a problem that only the data of interest cannot be monitored in real time. SUMMARY OF THE INVENTION A logic analyzer,
Data collection by the ICE is inconvenient for monitoring a control device that performs complicated operations because all data is collected in time series. For this reason, it has been considered to take in only the data of the designated address from the data output on the bus of the MPU. FIG. 5 Problem (No. 1) The explanatory diagram shows a configuration diagram of one example, and the operation is as follows. That is, in the bus monitor device 52 of FIG.
If the address of the data to be monitored is set in the address setting register 42 in advance, a comparator 46 outputs a match signal when the address matches the address output from the MPU 41 of the device under test 40 to the address bus. The data currently output to the data bus is latched in the data register 47 by the coincidence signal. Since the data at this address is repeatedly output, and the value changes along with the control and is overwritten in the data register 47, the transfer unit 51 stores the contents of the data register 47 in the memory in synchronization with a sampling clock of a certain period. Write to 52. A plurality of data capture units each including one set of the address setting register, the comparator and the data register are provided. By setting an address in each of the address setting registers 42 to 45, a desired value is set in the data registers 47 to 50. The data is latched and recorded in the memory 52 by the transfer unit 51. When using such a bus monitor, the following problems are encountered. In other words, the recent MPU 41
Depending on the type or instruction, as shown in FIGS. 6 (a), (b), and (c), 4 bits in 8 bits parallel, 2 bytes continuous, 16 bits parallel, 2 bytes continuous, 8 bits parallel. If the timing of writing to the memory 52 collides with the middle of a series of data (t1) as shown in FIG. 6 (c), an accurate data bus monitoring result can be obtained. Absent. That is, at time t1, 1000H to 1002
The 3-byte data up to address H is the data that has been updated this time, but the fourth byte is the data that has been updated during the previous access. For this reason, after detecting the data output at the address 1000H, which is the first byte, it waits for the detection of the second byte, and in the same way, waits for the detection of the third and fourth bytes and transfers it to the memory 52. However, in this method, if there is no access to the address 1001H for some reason (for example, an operator setting error), the transfer to the memory 52 cannot be performed forever. As described above, when fetching a series of data continuously output by a plurality of bus accesses, it is necessary to guarantee data continuity. In view of the above problems, an object of the present invention is to provide a bus monitor device which takes in a series of data output by a plurality of accesses while ensuring continuity. In the principle diagram of the present invention shown in FIG. 1, reference numeral 61 denotes a plurality of data acquisition units, and a series of data output in time series on a bus by a plurality of bus accesses. Capture each. Reference numeral 60 denotes a timing control unit which controls the capture of data captured by the data capture unit 61. Each data capturing section 61 includes an address setting register 8 in which address data is set, a comparator 9 for comparing the set address data with address data output on the bus, and a comparator 9. 9, a data register 10 for capturing the data output on the bus when the match signal is output, an access number setting register 7 for setting the number of accesses from the captured data to the final data in a series of data, , A busy signal generator 5 that outputs a busy signal for an access time corresponding to the number of accesses set from the time of capturing data to the data register 10, and a timing controller 60 captures a series of the data. When a busy signal is being output from any of the predetermined data capturing units 61, data is retrieved from the data register 10 of the data capturing unit 61. To prohibit the Mukoto. In each data capturing section 61, the address data corresponding to the data to be captured is set in the address setting register 8, and the access number setting register 7 stores the data from the captured data to the final data in the series of data. The bus access count is set. For example, in the case of FIG. 6C, that is, when a series of data (4 bytes) is output by four bus accesses, four sets of data capturing units 61 are used, and each address setting register 8 sequentially stores 1000H to 1003H are set, and 4 in the access count setting register 7 in descending order.
The number of times of access until the last data is accessed is set as 3, 2, or 1. This allows each data capture unit
The data of the set address is captured by the data register 10 of 61, and a busy signal is output from the busy signal generating section 5 of each data capturing section 61 from the captured access time to the end of the last data access. Is done. The timing control unit 60 monitors the busy signals, and if any one of the four busy signals output from the data capturing units 61 has been output, each data capturing unit 61 4 sets of data registers in unit 61
Prohibit importing from 10. As described above, while the series of integrated data is being accessed, the fetch from the latched data register 10 is prohibited, so that the continuity of the data is guaranteed. Further, since the busy signal is released when the access for the number of times set in the access number setting register is completed, even if an operator makes a mistake in setting, there is no need to wait forever for capturing the next series of data. FIG. 2 is a block diagram of one embodiment, FIG. 3 is a block diagram of a BSY signal generator of one embodiment, and FIG. 4 is an operation time chart. The bus monitor is configured to capture (latch) any specified plurality of data from the data output on the bus. In the present embodiment, FIG.
A case in which a series of 4-byte data indicated by is latched. In FIG. 2, a first byte data capturing unit 1, a second byte data capturing unit 2, a third byte data capturing unit 3, and a fourth byte data capturing unit 4 (corresponding to the data capturing unit 61 in FIG. 1). ) Are named corresponding to the order of bytes to be latched among the 4-byte data in this embodiment, and have the same configuration. Therefore, depending on the values set in the address setting register 8 and the access number setting register 7, 4-byte data, two sets of 2-byte data,
Of course, any continuous or single data such as four different sets of byte data can be latched. In the following description, the portions of the second to fourth byte data capturing units 2 to 4 that are not shown use the reference numerals of the first byte data capturing unit 1. In the first byte data capturing section 1, reference numeral 8 denotes an address setting register, and address data input from a keyboard or the like (not shown) is set by the microprocessor MPU15. A comparator 9 compares the address data output to the address bus with the address data set in the address setting register 8, and outputs a match signal "1" when they match. Reference numeral 10 denotes a first register (corresponding to the data register in FIG. 1), which latches data output on the data bus in accordance with the coincidence signal output from the comparator 9. With the above configuration, every time the same address data as the address data set in the address setting register 8 is output on the bus, the data on the data bus at that time is overwritten on the first register 10 (latch). ) Is done. In this embodiment, if the address setting registers 8 of the first to fourth byte data capturing units 1 to 4 are set as, for example, addresses 1000H, 1001H, 1002H, and 1003H, In the first registers 10 to 13 of the first to fourth byte capturing units 1 to 4, data of addresses 1000H to 1003H accessed by the MPU (not shown) and output on the bus are latched. Reference numeral 7 denotes an access count setting register, which indicates the number of accesses from the access cycle in which data is latched by its own data capturing section to the last byte data (here, the fourth byte) of a series of target data from the keyboard. Is set. That is, the first to fourth byte data capturing units 1
As described above, when the addresses are set in ascending order in the address setting registers 8 to 4, the access number setting registers 7 respectively store 4, 3, 2, 1 (actually, Is set).
Reference numeral 5 denotes a BSY signal generating unit which generates a busy (BSY) signal for the access time set in the address setting register 7 from the data access captured by the data capturing unit. Reference numeral 10a denotes a second register. As will be described later, the timing control unit 60 (the NOR circuit 17, the AND circuit 18,
21, D-FFs 19, 20, 22 and an inverter 23), the contents of the first register 10 are transferred by the set signal output from the AND circuit 21. The content of the second register 10a is, for example, the MP signal after the set signal.
The data is read by U15 and stored in the memory 6. First register 10-13 to second register
The transfer to 10a to 13a is performed at a timing when a series of data (4-byte data) is not accessed. Therefore, for example, in the case where the set signal is output at time t1 in FIG. 6C, the set signal is delayed until time t2. FIG. 3 shows an example of the configuration of the BSY signal generator 5. Where D-FF (D TYPE flip-flop)
31 to D-FF 34 constitute the shift register 6, and the coincidence signal "1" is shifted by the address strobe.
Reference numeral 25 denotes a decoder which is configured to obtain 0 to 3 outputs with respect to the inputs of A and B as shown in the illustrated table. When the address data set in the address setting register 8 matches the data on the address bus, a match signal is output from the comparator 9 (high level "1").
Will be). When the match signal is output ("1"), JK-F
The Q output of the F35 (BSY signal, see FIG. 4) becomes "1" in synchronization with the 50 ns constant clock. Here, assuming that [A, B] of the access number setting register 7 is set to [0, 0], the BSY signal is output during one cycle of the address strobe. That is, normally, of the three inputs of the NAND circuit 26, the match signal (the fourth byte match signal in FIG. 4) is "0", the output of the decoder 25 is "1", and * Q is "1". However, when the match signal becomes “1”, the output of the NAND circuit 26 changes from “1” to “0”.
And * Q becomes "0" at the fall of the address stove, so that the output of the NAND circuit 26 becomes "1" again. Since the outputs of the decoders 25 of the NAND circuits 27 to 29 are "0", the outputs of the NAND circuits 27 to 29 are always "1". As a result, the AND circuit 30 outputs "0" with a time width corresponding to the Q output of the D-FF 26.
Is output and JK-FF 35 is cleared. This result JK-FF
Is "0". That is, when [0, 0] is set in the access count setting register 8 and the address of the fourth byte is set in the address setting register 8, the fourth byte BSY signal of FIG. 4 is generated. Similarly, when [0, 1] is set in the access count setting register 7, the Q output of the D-FF 31 becomes "1" after counting one address strobe, and the D output at the next address strobe becomes "1". -Q output of FF32 is changed from "0" to "1"
And the * Q output changes from "1" to "0", at which point JK-FF 35 is cleared. As a result, the BSY signal is output during two cycles of the address strobe. In the present embodiment, it is the BSY signal of the third byte in FIG. In this way, [1,0],
By setting [1,1], respectively, the address strobe for three cycles (the second byte BSY signal in FIG. 4) and the four cycles of the BSY signal (the first byte BSY in FIG. 4)
Signal) respectively. As a result, 4-byte data, for example, consecutive addresses 1000H, 1001H, 1002H,
When latching the data of 1003H, the addresses 1000H, 1001H, and 10H are respectively stored in the address setting registers 8 of the first to fourth byte data capturing units 1 to 4.
02H, 1003H, and [1,1], [1,0], [0,1],
[0,0] is set. Thereby, for example, the command MOVE. When L DO, 1000H (for microprocessor 68008) is issued, address 100
Data is output together with the address in the order of 0H, 1001H, 1002H, and 1003H, and is sequentially latched in the first registers 10 to 13 (for example, at the rising edge of the data strobe in FIG. 4). The fourth byte BSY signal will be output. During the period when the BSY signal is being output,
When 4 bytes of BSY signal is output because 4-byte data is being latched in the first registers 10 to 13 and cannot be guaranteed as one lump. Is the second register 10
Prohibits (delays) set signal output to a to 13a. Then, after all the BSY signals are released, a set signal is output, and thereafter, the set signal is transferred to the memory 16 or displayed on a display unit (not shown). That is, the second register 10
When any of the first to fourth byte BSY signals is output when the sampling clock (inherited from the original set signal, access to 1000H to 1003H) that instructs transfer to a to 13a is output Waits for the output of the set signal until all the BSY signals are released. The following is a description of the timing controller (timing controller 60 in FIG. 1). 17 is a NOR circuit, in which the BSY signal is all "
When the sampling clock is input, the D-FF 22 sets the Q output to "1", but when the NOR circuit 17 becomes "1", the AND circuit outputs "1". "1" is output. This "1" output is output as "1" to the AND circuit 21 with a delay of a constant clock (50 nS) × 2 hours by the D-FF 19 and D-FF20. As a result, the D-FF 22 is cleared, that is, the sampling clock is output from the AND circuit 21 after the first to fourth byte BSY signals are all "0" and delayed by two constant clocks. This signal is output as a set signal and transfers data from the first register 10 to the second register 10a to the second register 10a to 13a.
Since four bytes of data are simultaneously set in a outside the access period as a unit, data continuity is guaranteed. In the above embodiment, the data is temporarily transferred to the second registers 10a to 13a by the set signal.
Needless to say, the contents of the first registers 10 to 13 may be directly read out and transferred to the memory 16 by U15. As described above, the bus monitor of the present invention is configured so that a series of data output on the bus is latched in a register by addressing, and a series of data is accessed. During this time, the data latched in the register is prohibited from being taken in, so that there is an effect of guaranteeing the continuity of a series of data divided and accessed over a plurality of bytes.

【図面の簡単な説明】 【図1】 本発明の原理図 【図2】 一実施例の構成図 【図3】 一実施例のBSY信号発生部の構成図 【図4】 動作タイムチャート図 【図5】 課題(その1)説明図 【図6】 課題(その2)説明図 【符号の説明】 1 第1バイトデータ捕捉部 2 第2バ
イトデータ捕捉部 3 第3バイトデータ捕捉部 4 第4バ
イトデータ捕捉部 5 BSY信号発生部 6 シフト
レジスタ 7 アクセス回数設定レジスタ 8 アドレ
ス設定レジスタ 9 比較器 10〜13 第
1のレジスタ 10a 〜13a 第2のレジスタ 15 マイク
ロプロセッサMPU 16 メモリ 17 ノア回
路 18 アンド回路 19, 20 D
−FF 21 アンド回路 22 D−F
F 23 インバータ 25 デコー
ダ 26〜29 ナンド回路 30 アンド
回路 31〜34 D−FF回路 35 JK−
FF 40 被測定装置 41 マイク
ロプロセッサMPU 42〜45 アドレス設定レジスタ 46 比較器 47〜50 レジスタ 51 転送部 52 データメモリ 60 タイミ
ング制御部 61 データ捕捉部
BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a principle diagram of the present invention; FIG. 2 is a configuration diagram of one embodiment; FIG. 3 is a configuration diagram of a BSY signal generation unit of one embodiment; FIG. 4 is an operation time chart; FIG. 5 is an explanatory diagram of a problem (No. 1). FIG. 6 is an explanatory diagram of a problem (No. 2). [Explanation of symbols] 1 First byte data capturing unit 2 Second byte data capturing unit 3 Third byte data capturing unit 4 Fourth Byte data capturing unit 5 BSY signal generating unit 6 Shift register 7 Access count setting register 8 Address setting register 9 Comparator 10-13 First register 10a-13a Second register 15 Microprocessor MPU 16 Memory 17 NOR circuit 18 AND circuit 19, 20 D
-FF 21 AND circuit 22 DF
F23 Inverter 25 Decoder 26-29 NAND circuit 30 AND circuit 31-34 D-FF circuit 35 JK-
FF 40 Device under test 41 Microprocessor MPU 42-45 Address setting register 46 Comparator 47-50 Register 51 Transfer unit 52 Data memory 60 Timing control unit 61 Data acquisition unit

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

Claims (1)

(57)【特許請求の範囲】 【請求項1】 複数回のバスアクセスによりバス上に出
力される一連のデータをそれぞれ捕捉する複数のデータ
捕捉部(61)と、該データ捕捉部に捕捉されたデータの取
り込み制御を行うタイミング制御部(60)とを有するバス
モニタ装置であって、 各データ捕捉部(61)は、アドレスデータが設定されるア
ドレス設定レジスタ(8) と、設定された該アドレスデー
タとバス上に出力されるアドレスデータとを比較する比
較器(9) と、該比較器から一致信号が出力された時点で
該バス上に出力されているデータを捕捉するデータレジ
スタ(10)と、前記一連のデータ中における捕捉対象のデ
ータから最終データまでのアクセス回数を設定するアク
セス回数設定レジスタ(7) と、該データレジスタへのデ
ータ捕捉時から前記設定されたアクセス回数分のアクセ
ス時間の間ビジー信号を出力するビジー信号発生部(5)
とを具備して、バス上に出力される一連のデータのうち
の自己に割り当てられたデータを該データレジスタに捕
捉するものであり、 該タイミング制御部(60)は、一連の該データを捕捉する
所定のデータ捕捉部(61)のうちのいずれからかビジー信
号が出力されている場合は、所定の該データ捕捉部のデ
ータレジスタからデータを取り込むことを禁止するもの
であることを特徴とするバスモニタ装置。
(57) Claims 1. A plurality of data capturing units (61) each capturing a series of data output on the bus by a plurality of bus accesses, and a plurality of data capturing units (61) captured by the data capturing unit. A bus monitor device having a timing control unit (60) for controlling the capture of data, wherein each data capture unit (61) includes an address setting register (8) in which address data is set, and a A comparator (9) for comparing the address data with the address data output on the bus; and a data register (10) for capturing the data output on the bus when the match signal is output from the comparator. ), An access number setting register (7) for setting the number of accesses from the data to be captured to the final data in the series of data, and the access number set from the time of capturing the data in the data register. Busy signal generating section for outputting a busy signal during the number of times of access time (5)
The timing control unit (60) captures the data assigned to itself out of the series of data output on the bus, and captures the series of data. When a busy signal is output from any of the predetermined data capturing units (61), it is characterized in that it is prohibited to capture data from the data register of the predetermined data capturing unit. Bus monitor device.
JP27330392A 1992-10-13 1992-10-13 Bus monitor device Expired - Lifetime JP3398402B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP27330392A JP3398402B2 (en) 1992-10-13 1992-10-13 Bus monitor device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP27330392A JP3398402B2 (en) 1992-10-13 1992-10-13 Bus monitor device

Publications (2)

Publication Number Publication Date
JPH06124245A JPH06124245A (en) 1994-05-06
JP3398402B2 true JP3398402B2 (en) 2003-04-21

Family

ID=17525988

Family Applications (1)

Application Number Title Priority Date Filing Date
JP27330392A Expired - Lifetime JP3398402B2 (en) 1992-10-13 1992-10-13 Bus monitor device

Country Status (1)

Country Link
JP (1) JP3398402B2 (en)

Also Published As

Publication number Publication date
JPH06124245A (en) 1994-05-06

Similar Documents

Publication Publication Date Title
US5771240A (en) Test systems for obtaining a sample-on-the-fly event trace for an integrated circuit with an integrated debug trigger apparatus and an external pulse pin
US6297760B1 (en) Data acquisition system comprising real-time analysis and storing means
US5226153A (en) Bus monitor with time stamp means for independently capturing and correlating events
EP1076855B1 (en) Non-intrusive performance monitoring
JPH0635993B2 (en) Data acquisition device
JPS6347852A (en) Monitor
US20040015880A1 (en) Method and apparatus for capturing event traces for debug and analysis
JPH0511329B2 (en)
US6763385B1 (en) Coordination of multiple processor bus tracings for enabling study of multiprocessor multi-bus computer systems
US6697968B1 (en) System and method for high speed, low cost address and bus signal tracing
JP3398402B2 (en) Bus monitor device
US7039834B1 (en) High speed processor interconnect tracing compaction using selectable triggers
US5276809A (en) Method and apparatus for capturing real-time data bus cycles in a data processing system
JP2001142733A (en) Internal signal observation device
JPS6142186Y2 (en)
JPS5939783B2 (en) logical state tracker
JP3039631B2 (en) Signal line monitoring device
JPS5833582B2 (en) Data bus monitor device
Holy et al. Non-intrusive tool for software testing and debugging: an actual industrial application example
JPS6216691Y2 (en)
SU1753474A1 (en) Device for control of microprocessor system
SU1013956A2 (en) Logic circuit checking device
JPS63277975A (en) Trigger event capturing device
JPH0991165A (en) Trigger system for tracing type logic analysis device
JPS5933079Y2 (en) Data event measurement device

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

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

Free format text: PAYMENT UNTIL: 20080214

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20090214

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20090214

Year of fee payment: 6

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

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

Free format text: PAYMENT UNTIL: 20090214

Year of fee payment: 6

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

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

Free format text: PAYMENT UNTIL: 20090214

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20100214

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20110214

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20120214

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20130214

Year of fee payment: 10

EXPY Cancellation because of completion of term
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130214

Year of fee payment: 10