JPH0877032A - Logic analyzer - Google Patents

Logic analyzer

Info

Publication number
JPH0877032A
JPH0877032A JP6208491A JP20849194A JPH0877032A JP H0877032 A JPH0877032 A JP H0877032A JP 6208491 A JP6208491 A JP 6208491A JP 20849194 A JP20849194 A JP 20849194A JP H0877032 A JPH0877032 A JP H0877032A
Authority
JP
Japan
Prior art keywords
register
signal
address
unit
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
JP6208491A
Other languages
Japanese (ja)
Inventor
Masashi Sakai
正志 酒井
Hiromoto Sato
広基 佐藤
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP6208491A priority Critical patent/JPH0877032A/en
Publication of JPH0877032A publication Critical patent/JPH0877032A/en
Withdrawn legal-status Critical Current

Links

Landscapes

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

Abstract

(57)【要約】 【目的】本発明はソフトウェア試験を行うためのロジッ
クアナライザに関し,バッファのような変動するエリア
の動作をトレースすることを目的とする。 【構成】MPU及びプログラムとデータが格納されるメ
モリとを備えた被試験部のMPUとメモリ間のデータ信
号及びアドレス信号を取り出してロジックアナライザへ
供給する信号探索部を設ける。被試験部のメモリ内のバ
ッファ位置が設定されるポインタ格納部のアドレスを第
1レジスタに設定し,信号探索部からのアドレス信号と
第1レジスタを第1比較手段で比較し,その一致検出に
よりその時のデータ信号を第2レジスタに格納し,第2
レジスタの内容とアドレス信号を第2比較手段で比較し
て,第2比較手段の一致検出信号をトリガとしてソフト
ウェアをトレースするよう構成する。
(57) [Summary] [Object] The present invention relates to a logic analyzer for performing a software test, and an object thereof is to trace the operation of a variable area such as a buffer. A signal search unit for extracting a data signal and an address signal between an MPU and a memory of a unit under test including an MPU and a memory for storing a program and data and supplying the signal and the logic signal to a logic analyzer is provided. The address of the pointer storage unit in which the buffer position in the memory of the device under test is set is set in the first register, the address signal from the signal search unit and the first register are compared by the first comparison means, and the match is detected. The data signal at that time is stored in the second register, and the second
The register contents are compared with the address signal by the second comparing means, and the software is traced by using the coincidence detection signal of the second comparing means as a trigger.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明はソフトウェア試験を行う
ためのロジックアナライザに関する。近年の電子製品の
高機能化に伴い,機能をソフトウェアに分担させること
が要求されている。そのためにMPU(Micro Processo
r Unit) を用いマイクロプログラムによるソフトウェア
が開発されている。ソフトウェアは正常に動作すること
を確認するために試験を行う必要があり,そのためにロ
ジックアナライザが使用される。
FIELD OF THE INVENTION The present invention relates to a logic analyzer for performing software testing. With the increasing functionality of electronic products in recent years, it is required that the functions be shared by software. Therefore, MPU (Micro Processo
r Unit) is used to develop software by microprograms. The software needs to be tested to make sure it works properly, which is why a logic analyzer is used.

【0002】[0002]

【従来の技術】図5は従来例の説明図である。図5にお
いて,50〜53は被試験部を構成し,50はMPU,
51は試験対象となるソフトウェア(プログラム及びデ
ータ)が格納されたメモリ,52はアドレス信号,53
はデータ信号,54は各信号を端子から取り出すプロー
ブ(または信号探索部),55はロジックアナライザ,
56はレジスタ,57は比較部,58はトレース部であ
る。
2. Description of the Related Art FIG. 5 is an explanatory view of a conventional example. In FIG. 5, reference numerals 50 to 53 form a unit under test, 50 is an MPU,
51 is a memory in which software (program and data) to be tested is stored, 52 is an address signal, 53
Is a data signal, 54 is a probe (or signal search unit) for extracting each signal from a terminal, 55 is a logic analyzer,
56 is a register, 57 is a comparison unit, and 58 is a trace unit.

【0003】図5による試験動作を説明すると,MPU
50とメモリ51の間を接続するアドレス信号52,デ
ータ信号53はプローブ54により取り出されて,ロジ
ックアナライザ55へ取り込まれる。ロジックアナライ
ザ55には予め,試験を行いたいアドレスをレジスタ5
6に設定しておく。
The test operation according to FIG. 5 will be explained.
An address signal 52 and a data signal 53 connecting between 50 and the memory 51 are taken out by a probe 54 and taken into a logic analyzer 55. The address to be tested is registered in the register 5 in the logic analyzer 55 in advance.
Set to 6.

【0004】MPU50を動作させると,メモリ51と
の間でアドレス信号52,データ信号53が順次発生す
る。ロジックアナライザ55の比較部57はレジスタ5
6に設定されたアドレスとアドレス信号52とを比較し
て一致すると,この一致出力をトリガとしてトレース部
58が駆動される。トレース部58が駆動されると,そ
の時のアドレス信号52,データ信号53を取り込んで
記憶する。このトレース動作は,その後の予め決められ
た個数のデータまたは,一定の条件を満たすまで実行さ
せることができる。
When the MPU 50 is operated, an address signal 52 and a data signal 53 are sequentially generated with the memory 51. The comparison unit 57 of the logic analyzer 55 is the register 5
When the address set to 6 and the address signal 52 are compared and coincident, the coincidence output is used as a trigger to drive the trace unit 58. When the trace unit 58 is driven, the address signal 52 and the data signal 53 at that time are fetched and stored. This trace operation can be executed until a predetermined number of data thereafter or until a certain condition is satisfied.

【0005】[0005]

【発明が解決しようとする課題】上記の従来のロジック
アナライザではトリガとなるアドレスを直接指定してい
るため,固定したエリアをトレースすることはできる
が,バッファのようにトレースすべきエリアの先頭アド
レスが変動する場合には,トリガとなるアドレスを指定
できないという問題があった。
In the above conventional logic analyzer, since the trigger address is directly specified, it is possible to trace a fixed area, but the start address of the area to be traced like a buffer. When fluctuates, there is a problem that the address that becomes the trigger cannot be specified.

【0006】本発明はバッファのような変動するエリア
の動作をトレースすることができるソフトウェア試験を
行うためのロジックアナライザを提供することを目的と
する。
An object of the present invention is to provide a logic analyzer for performing a software test capable of tracing the operation of a variable area such as a buffer.

【0007】[0007]

【課題を解決するための手段】図1は本発明の原理構成
図である。図1において,1はロジックアナライザ,1
0はポインタ格納位置を格納する第1レジスタ,11は
第1比較手段,12は第2レジスタ,13は第2比較手
段,14は第3レジスタ,2はデータ信号線2a,アド
レス信号線2b,リード・ライト信号線2cで構成する
信号線,3は被試験部,4はMPU,5は試験対象のソ
フトウェアが格納されたメモリ,5aはソフトウェアに
より使用するバッファの先頭アドレスが設定されるメモ
リ5内に設けられたポインタ格納部,5bはバッファで
ある。6はMPU4とメモリ5間のデータ信号線6a,
アドレス信号線6b,リード・ライト信号線6cで構成
する信号線,7はMPU4とメモリ5間の信号線6を取
り出して,ロジックアナライザ1の各信号線2へ入力す
るプローブ等の信号探索部である。
FIG. 1 is a block diagram showing the principle of the present invention. In FIG. 1, 1 is a logic analyzer, 1
0 is a first register for storing the pointer storage position, 11 is a first comparing means, 12 is a second register, 13 is a second comparing means, 14 is a third register, 2 is a data signal line 2a, an address signal line 2b, A signal line composed of the read / write signal line 2c, 3 is a portion to be tested, 4 is an MPU, 5 is a memory in which software to be tested is stored, and 5a is a memory 5 in which the start address of a buffer used by the software is set. A pointer storage unit 5b provided therein is a buffer. 6 is a data signal line 6a between the MPU 4 and the memory 5,
A signal search unit such as a probe for extracting the signal line 6 between the MPU 4 and the memory 5 and inputting the signal line 6 between the MPU 4 and the memory 5 to the signal line 7 composed of the address signal line 6b and the read / write signal line 6c. is there.

【0008】本発明はソフトウェアにおいてバッファの
ような変動エリアのポインタを格納する位置を監視し
て,該ポインタにアクセスした時にそこに設定されたア
ドレスを抽出して,以後そのアドレスへのアクセスが発
生するとトレースを行うことによりバッファエリアの試
験を行う。
According to the present invention, the position where a pointer of a variable area such as a buffer is stored in software is monitored, and when the pointer is accessed, the address set therein is extracted, and thereafter the access to that address occurs. Then, the buffer area is tested by tracing.

【0009】[0009]

【作用】図1において,被試験部3のMPU4は信号線
6を介してメモリ5にアクセスし,ソフトウェアにより
変動するエリアであるバッファ5bを使用する場合,そ
の先頭アドレスがポインタ格納部5aに設定される。一
方,ロジックアナライザ1の第1レジスタ10にメモリ
5のポインタ格納部5aの位置を示すアドレスを設定す
る。この状態で被試験部3のMPU4によりメモリ5の
ソフトウェアを実行させると,MPU4とメモリ5の間
の信号線6の各信号が信号探索部7から信号線2へ入力
される。
In FIG. 1, when the MPU 4 of the unit under test 3 accesses the memory 5 through the signal line 6 and uses the buffer 5b, which is an area that is changed by software, its head address is set in the pointer storage unit 5a. To be done. On the other hand, an address indicating the position of the pointer storage unit 5a of the memory 5 is set in the first register 10 of the logic analyzer 1. When the MPU 4 of the unit under test 3 executes the software of the memory 5 in this state, each signal on the signal line 6 between the MPU 4 and the memory 5 is input from the signal searching unit 7 to the signal line 2.

【0010】信号線2のアドレス信号線2bは第1比較
手段11において第1レジスタ10内のアドレスと比較
され,一致がとれるとMPU4がポインタ格納部5aを
アクセスしたことが分かり,その時データ信号線2a上
にはメモリ5からポインタ格納部5aに格納されたバッ
ファ5bの位置を表すポインタが出力されるので,第1
比較手段11の比較一致出力によりポインタを表すデー
タをデータ信号線2aから取り込んで第2レジスタ12
に設定する。この後,第2比較手段13により,第2レ
ジスタ12に設定されたポインタとMPU4から発生し
たアドレスをアドレス信号線2bから入力して比較を行
う。
The address signal line 2b of the signal line 2 is compared with the address in the first register 10 in the first comparing means 11, and if a match is found, it is found that the MPU 4 has accessed the pointer storage 5a, and at that time the data signal line Since the pointer indicating the position of the buffer 5b stored in the pointer storage unit 5a is output from the memory 5 onto the 2a, the first
The data indicating the pointer is fetched from the data signal line 2a by the comparison and coincidence output of the comparison means 11, and the second register 12 is obtained.
Set to. After that, the second comparison means 13 inputs the pointer set in the second register 12 and the address generated from the MPU 4 from the address signal line 2b for comparison.

【0011】第2比較手段13で一致出力が発生する
と,その時MPU4がメモリ5のバッファ5bにアクセ
スしたことが分かり,この一致出力によりトレースを開
始させる。トレースは図示されないトレース部によりデ
ータ信号線2a,アドレス信号線2bの各信号を取り込
んで表示したり,記録する。
When the coincidence output is generated by the second comparing means 13, it is found that the MPU 4 has accessed the buffer 5b of the memory 5 at that time, and the trace is started by this coincidence output. The trace captures and displays or records each signal of the data signal line 2a and the address signal line 2b by a trace unit (not shown).

【0012】また,予め第3レジスタ14にトレースす
べきリード動作,またはライト動作の種別を指定する
と,第2比較手段13において,アドレスの比較だけで
なく,第3レジスタ14に設定された種別とリード・ラ
イト信号線2cを比較して,アドレスの一致と,動作の
種別の一致がとれた時にトレースを開始させることがで
きる。また,別のレジスタを設けてそこにトレースすべ
きデータの長さ(一致がとれた後に,何個のデータをト
レースするか)を設定して,その個数になるとトレース
を終了させるように構成することができる。
When the type of the read operation or the write operation to be traced is designated in advance in the third register 14, the second comparing means 13 not only compares the addresses but also the type set in the third register 14. By comparing the read / write signal lines 2c, the trace can be started when the address matches and the operation type matches. Also, another register is provided, and the length of the data to be traced (the number of data to be traced after a match is set) is set, and the trace is terminated when that number is reached. be able to.

【0013】[0013]

【実施例】図2は実施例1の構成図である。図2におい
て,1はロジックアナライザ,1aは各部を制御する情
報処理部,1b〜1eは上記図1の10〜13に対応
し,1bは第1レジスタ,1cは第1比較回路,1dは
第2レジスタ,1eは第2比較回路,1fはトレース
部,1gは表示部,2はデータ信号線2aとアドレス信
号線2bを含む信号線である。また,被試験部3の構成
は上記図1と同様であり,4はMPU,5はMPU4に
より動作するソフトウェアが格納されたRAMやROM
等で構成されるメモリ,6はデータ信号線6aとアドレ
ス信号線6bとで構成する信号線,7は被試験部のデー
タ信号線6aとアドレス信号線6bを取り出して,ロジ
ックアナライザ1の対応する各信号線2a,2bへ入力
する信号探索部であり,7aはデータ信号探索部,7b
はアドレス信号探索部である。
FIG. 2 is a block diagram of the first embodiment. In FIG. 2, 1 is a logic analyzer, 1a is an information processing unit for controlling each unit, 1b to 1e correspond to 10 to 13 in FIG. 1, 1b is a first register, 1c is a first comparison circuit, and 1d is a first register. 2 registers, 1e is a second comparison circuit, 1f is a trace part, 1g is a display part, and 2 is a signal line including a data signal line 2a and an address signal line 2b. The configuration of the unit under test 3 is the same as that of FIG.
And the like, 6 is a signal line composed of a data signal line 6a and an address signal line 6b, and 7 is a data signal line 6a and an address signal line 6b of the part under test, which correspond to the logic analyzer 1. A signal search unit for inputting to each of the signal lines 2a and 2b, 7a is a data signal search unit, 7b
Is an address signal search unit.

【0014】実施例1の動作を説明すると,予め情報処
理部1aから第1レジスタ1bに対して,メモリ5に格
納されたソフトウェアで使用するバッファの位置を示す
ポインタの格納位置を表すアドレス(上記図1参照)を
設定する。
Explaining the operation of the first embodiment, the information processing unit 1a gives the first register 1b an address indicating the storage position of a pointer indicating the position of the buffer used by the software stored in the memory 5 in advance (above). (See FIG. 1).

【0015】この状態で被試験部3のMPU4によりメ
モリ5のソフトウェアを実行させると,第1比較回路1
cにおいて,信号探索部7により取り出したアドレス信
号線2bのアドレスを取り込んで第1レジスタ1bの設
定アドレスと比較され,一致を検出するとその検出出力
により,第2レジスタ1dに対しその時のデータ信号線
2aのデータ(バッファエリアの先頭位置を指示するポ
インタ)を格納する制御を行う。この後,ソフトウェア
の実行によりバッファにアクセスすると,第2比較回路
1eにより第2レジスタ1dに格納されたアドレスとア
ドレス信号線2bのアドレスが一致し,その一致検出出
力によりトレース部1fが駆動される。
In this state, when the software of the memory 5 is executed by the MPU 4 of the unit under test 3, the first comparison circuit 1
In c, the address of the address signal line 2b fetched by the signal search unit 7 is fetched and compared with the set address of the first register 1b, and if a match is detected, the detection output indicates the data signal line for the second register 1d at that time. Control is performed to store the data 2a (a pointer that points to the beginning position of the buffer area). After that, when the buffer is accessed by executing software, the address stored in the second register 1d and the address of the address signal line 2b are matched by the second comparison circuit 1e, and the trace detection section 1f is driven by the match detection output. .

【0016】これにより,トレース部1fはソフトウェ
ア(データ信号線2a及びアドレス信号線2bのデー
タ)のトレースを開始し,それらのトレースデータを表
示部1gに表示させる。なお,情報処理部1aはトレー
ス部1f及び表示部1gの動作を制御する。
As a result, the trace unit 1f starts tracing the software (data of the data signal line 2a and the address signal line 2b), and displays the trace data on the display unit 1g. The information processing unit 1a controls the operations of the trace unit 1f and the display unit 1g.

【0017】図3は実施例2の構成図である。上記図2
に示す実施例1の場合,MPU4がメモリ5にアクセス
(リード,ライトに関係なく)して,そのアドレスが第
2レジスタ1dの内容と一致するとトレースを開始して
いるが,この実施例2では予めトレースを開始する条件
としてリードかライトかを指定しておき,指定された動
作を行う時だけトレース部をトリガさせるようにしたも
のである。
FIG. 3 is a block diagram of the second embodiment. Figure 2 above
In the case of the first embodiment shown in (1), the MPU 4 accesses the memory 5 (regardless of read or write) and the trace is started when the address matches the content of the second register 1d. In this case, read or write is designated in advance as a condition for starting the trace, and the trace unit is triggered only when the designated operation is performed.

【0018】図3において,ロジックアナライザ1内の
1a〜1gは上記図2の各符号と同じ装置または回路で
あり,1hは情報処理部1aからのリード・ライトの何
れかの種別を表す指定信号とリード・ライト信号線2c
の信号の一致を検出するリード・ライト信号検出部,1
iはアンド(AND)回路である。また,被試験部3に
おいて,4〜7は上記図2の各符号と同じ装置または回
路であるが,6cはリード・ライト信号線,7cはリー
ド・ライト信号探索部である。
In FIG. 3, reference numerals 1a to 1g in the logic analyzer 1 are the same devices or circuits as those shown in FIG. 2, and reference numeral 1h is a designation signal indicating any type of read / write from the information processing unit 1a. And read / write signal line 2c
Read / write signal detection unit for detecting coincidence of signals
i is an AND circuit. Further, in the unit under test 3, 4 to 7 are the same devices or circuits as those shown in FIG. 2, but 6c is a read / write signal line, and 7c is a read / write signal searching unit.

【0019】図3の実施例2の動作は,最初に情報処理
部1aから第1レジスタ1bに,メモリ5に格納された
ソフトウェアで使用するバッファの位置を示すポインタ
の格納位置を表すアドレスを設定すると同時に,リード
・ライト信号検出部1hにトレースを開始する条件とし
てリードまたはライトの何れかを指定する信号を供給す
る。
In the operation of the second embodiment shown in FIG. 3, the information processing section 1a first sets in the first register 1b an address indicating the storage position of the pointer indicating the position of the buffer used by the software stored in the memory 5. At the same time, a signal designating either read or write is supplied to the read / write signal detector 1h as a condition for starting the trace.

【0020】この状態で,被試験部3のMPU4により
メモリ5のソフトウェアを実行させると,上記実施例1
(図2)と同様の動作が行われ,第1比較回路1cでア
ドレス信号線2bのアドレスと第1レジスタ1bの設定
アドレスを比較して,一致が検出されると第2レジスタ
1dにデータ信号線2aのデータを格納する。この後,
更にソフトウェアが実行されて第2比較回路1eにより
第2レジスタ1dに格納されたアドレスとアドレス信号
線2bのアドレスが比較されて,MPU4がバッファに
アクセスすると,一致出力が発生する。
In this state, when the software of the memory 5 is executed by the MPU 4 of the unit under test 3, the above-mentioned first embodiment
The same operation as in (FIG. 2) is performed, the address of the address signal line 2b is compared with the set address of the first register 1b by the first comparison circuit 1c, and if a match is detected, the data signal is sent to the second register 1d. Store the data for line 2a. After this,
Further, the software is executed, the address stored in the second register 1d is compared with the address of the address signal line 2b by the second comparison circuit 1e, and when the MPU 4 accesses the buffer, a coincidence output is generated.

【0021】この一致出力はアンド回路1iに出力され
る。この時,リード・ライト信号検出部1hは,指定さ
れた種別(リードまたはライト)の信号がリード・ライ
ト信号線2cに発生したか判別して,発生した場合は検
出信号をアンド回路1iに出力する。アンド回路1iは
第2比較回路1eの一致出力とリード・ライト信号検出
部1hの検出出力が共に発生するとトレース部1fをト
リガイネーブル状態にする。この実施例2により,バッ
ファエリアへの書き込み,バッファエリアからの読み出
しをトリガとしてトレースを開始させることができる。
This coincidence output is output to the AND circuit 1i. At this time, the read / write signal detection unit 1h determines whether or not a signal of a designated type (read or write) has occurred on the read / write signal line 2c, and if so, outputs a detection signal to the AND circuit 1i. To do. The AND circuit 1i sets the trace unit 1f to the trigger enable state when both the coincidence output of the second comparison circuit 1e and the detection output of the read / write signal detection unit 1h occur. According to the second embodiment, the trace can be started by the writing to the buffer area and the reading from the buffer area as a trigger.

【0022】図4は実施例3の構成図である。上記図2
の実施例1及び図3の実施例2の場合,MPU4がメモ
リ5にアクセスして,そのアドレスが第2レジスタ1d
の内容と一致するか,アドレスの一致とアクセスの種別
が指定された種別と一致していると,それ以降のソフト
ウェアの動きをトレースしているが,この実施例3では
一致が検出されたアドレスから連続するエリアを設定さ
れた長さのデータ分だけトレースするようにしたもので
ある。
FIG. 4 is a block diagram of the third embodiment. Figure 2 above
In the case of the first embodiment of FIG. 3 and the second embodiment of FIG. 3, the MPU 4 accesses the memory 5 and its address is the second register 1d.
If it matches the contents of the above, or if the match of the address and the type of access match the specified type, the movement of the software after that is traced. In the third embodiment, the address where the match is detected. The area that continues from is traced by the data of the set length.

【0023】図4において,ロジックアナライザ1内の
1a〜1gは上記図2の各符号と同じ装置または回路で
あり,1jは情報処理部1aから指定されたデータ長
(Lとする)を受け取ると共に第2レジスタ1dのアド
レスが発生するとそのアドレスとデータ長を加算したア
ドレスを発生する機能を備えるトレースデータ長格納レ
ジスタ,1kは第3比較回路,1mは論理回路である。
また,被試験部3の4〜7は上記図2の各符号と同じ装
置または回路である。
In FIG. 4, reference numerals 1a to 1g in the logic analyzer 1 are the same devices or circuits as those shown in FIG. 2, and 1j is a data length (L) designated by the information processing unit 1a. When the address of the second register 1d is generated, a trace data length storage register having a function of generating an address obtained by adding the address and the data length, 1k is a third comparison circuit, and 1m is a logic circuit.
Further, 4 to 7 of the unit under test 3 are the same devices or circuits as the reference numerals in FIG.

【0024】図4の実施例3の動作は,上記実施例1と
同様に最初に情報処理部1aから第1レジスタ1bに,
メモリ5に格納されたソフトウェアで使用するバッファ
の位置を示すポインタの格納位置を表すアドレスを設定
する。また,この実施例3により情報処理部1aからト
レースデータ長格納レジスタ1jにトレースすべきデー
タ長(Lとする)が指定される。
The operation of the third embodiment shown in FIG. 4 is similar to that of the first embodiment. First, the information processing section 1a transfers to the first register 1b,
The address indicating the storage position of the pointer indicating the position of the buffer used by the software stored in the memory 5 is set. In addition, according to the third embodiment, the data length (L) to be traced is designated from the information processing unit 1a to the trace data length storage register 1j.

【0025】この状態で被試験部3のMPU4によりメ
モリ5のソフトウェアを実行させる。第1比較回路1c
は,信号探索部7により取り出したアドレス信号線2b
のアドレスを取り込んで第1レジスタ1bの設定アドレ
スと比較し,一致を検出するとその検出出力により,第
2レジスタ1dに対しその時のデータ信号線2a上のデ
ータ(バッファの先頭位置を示すポインタを表し,アド
レスPとする)を格納させる。このアドレスはトレース
データ長格納レジスタ1jへ供給されると,情報処理部
1aから指定されたデータ長LとアドレスPとが加算さ
れてアドレス(P+L)を発生する。
In this state, the MPU 4 of the unit under test 3 executes the software of the memory 5. First comparison circuit 1c
Is the address signal line 2b extracted by the signal search unit 7.
Address of the first register 1b is compared with the set address of the first register 1b, and when a match is detected, the detection output outputs the data on the data signal line 2a at that time to the second register 1d (representing a pointer indicating the start position of the buffer). , Address P) is stored. When this address is supplied to the trace data length storage register 1j, the data length L designated by the information processing unit 1a and the address P are added to generate an address (P + L).

【0026】この後,さらにソフトウェアが実行されて
バッファにアクセスすると,第2比較回路1eにより第
2レジスタ1dに格納されたアドレスとアドレス信号線
2bのアドレスが一致する。この一致検出出力は論理回
路1mへ供給される。論理回路1mは,第2比較回路1
eの出力が発生すると,トレース部1fに対しトレース
動作を実行する指示を発生する。また,第2比較回路1
eの一致出力により第3比較回路1kが能動状態とな
る。この後,トレース部1fはソフトウェアのトレース
を実行する。
Thereafter, when software is further executed to access the buffer, the address stored in the second register 1d by the second comparison circuit 1e matches the address of the address signal line 2b. This coincidence detection output is supplied to the logic circuit 1m. The logic circuit 1m is the second comparison circuit 1
When the output of e is generated, an instruction to execute the trace operation is generated to the trace unit 1f. In addition, the second comparison circuit 1
The third comparison circuit 1k becomes active by the coincidence output of e. After that, the trace unit 1f executes a software trace.

【0027】この後,アドレス信号線2bのアドレスが
増加して,トレースデータ長格納レジスタ1jのアドレ
ス(P+L)と一致すると第3比較回路1kから一致出
力が発生する。この一致出力が論理回路1mへ供給され
ると,論理回路1mはこれに応じてトレース部1fへの
トレース動作の実行の指示を停止する。従って,トレー
ス部1fは第2比較回路1eで一致検出の出力を発生
(バッファエリアにアクセスした時)してから第3比較
回路1kで一致検出の出力が発生するまでのソフトウェ
ア(データ及びアドレス)のトレース動作を実行するこ
とになる。
After that, when the address of the address signal line 2b increases and coincides with the address (P + L) of the trace data length storage register 1j, the coincidence output is generated from the third comparison circuit 1k. When this coincidence output is supplied to the logic circuit 1m, the logic circuit 1m stops instructing the trace unit 1f to execute the trace operation accordingly. Therefore, the trace unit 1f is software (data and address) from when the match detection output is generated by the second comparison circuit 1e (when the buffer area is accessed) to when the match detection output is generated by the third comparison circuit 1k. The trace operation will be executed.

【0028】この実施例3により,希望するアドレスか
ら連続するアドレスのエリアを設定された長さ分だけト
レースすることができる。上記の各実施例1〜実施例3
では,トレースしたデータを表示部1gに表示させてい
るが,表示部をRAMや外部記憶装置(フレキシブルデ
ィスク装置等)に置き換えて,そこにトレースデータを
保存するように構成することができる。
According to the third embodiment, the area of consecutive addresses from the desired address can be traced by the set length. Each of the above Examples 1 to 3
In the above, the traced data is displayed on the display unit 1g, but the display unit can be replaced with a RAM or an external storage device (flexible disk device or the like), and the trace data can be stored there.

【0029】また上記の各実施例1〜実施例3では,ロ
ジックアナライザ1を被試験部3と別の装置として構成
しているが,ロジックアナライザ1と被試験部3とを一
つの装置として組み込むようにしてもよい。
In each of the above-described first to third embodiments, the logic analyzer 1 is constructed as a device different from the device under test 3, but the logic analyzer 1 and the device under test 3 are incorporated as a single device. You may do it.

【0030】[0030]

【発明の効果】本発明によれば,バッファのような変動
するエリアのトレースが可能となり,MPU上で動作す
るソフトウェアにおいてバッファエリアの動作がリアル
タイムで確認することができ,ロジックアナライザの機
能向上を実現することができる。
According to the present invention, a variable area such as a buffer can be traced, and the operation of the buffer area can be confirmed in real time in software operating on the MPU, which improves the function of the logic analyzer. Can be realized.

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

【図1】本発明の原理構成図である。FIG. 1 is a principle configuration diagram of the present invention.

【図2】実施例1の構成図である。FIG. 2 is a configuration diagram of a first embodiment.

【図3】実施例2の構成図である。FIG. 3 is a configuration diagram of a second embodiment.

【図4】実施例3の構成図である。FIG. 4 is a configuration diagram of a third embodiment.

【図5】従来例の説明図である。FIG. 5 is an explanatory diagram of a conventional example.

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

1 ロジックアナライザ 10 第1レジスタ 11 第1比較手段 12 第2レジスタ 13 第2比較手段 14 第3レジスタ 2 信号線 3 被試験部 4 MPU 5 メモリ 5a ポインタ格納部 5b バッファ 6 信号線 7 信号探索部 1 Logic Analyzer 10 1st Register 11 1st Comparison Means 12 2nd Register 13 2nd Comparison Means 14 3rd Register 2 Signal Line 3 Test Part 4 MPU 5 Memory 5a Pointer Storage 5b Buffer 6 Signal Line 7 Signal Search Unit

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 ソフトウェア試験を行うためのロジック
アナライザにおいて,MPU及びプログラムとデータが
格納されるメモリとを備えた被試験部のMPUとメモリ
間のデータ信号及びアドレス信号を取り出してロジック
アナライザへ供給する信号探索部を設け,ロジックアナ
ライザに,前記被試験部のメモリ内のバッファ位置が設
定されるポインタ格納部のアドレスが設定される第1レ
ジスタと,前記信号探索部からのアドレス信号と前記第
1レジスタを比較する第1比較手段と,前記第1比較手
段の一致検出によりその時の前記データ信号を格納する
第2レジスタと,前記第2レジスタの内容と前記アドレ
ス信号の一致を検出する第2比較手段とを設け,前記第
2比較手段の一致検出信号をトリガとしてソフトウェア
をトレースすることを特徴とするロジックアナライザ。
1. A logic analyzer for performing a software test, in which a data signal and an address signal between an MPU and a memory of a unit under test including an MPU and a memory in which a program and data are stored are extracted and supplied to the logic analyzer. A first register in which the address of the pointer storage unit in which the buffer position in the memory of the unit under test is set, the address signal from the signal search unit, and the A first comparing means for comparing one register, a second register for storing the data signal at that time by the match detection of the first comparing means, and a second register for detecting a match between the content of the second register and the address signal. Comparing means is provided, and the software is traced by using the coincidence detection signal of the second comparing means as a trigger. A logic analyzer characterized by.
【請求項2】 請求項1において,前記信号探索部にリ
ード・ライト信号を取り出すリード・ライト信号探索部
を設け,ロジックアナライザは,予めトレース開始条件
としてリードまたはライトを設定する第3レジスタを備
え,前記第2レジスタの内容と前記アドレス信号の一致
検出と共に前記リード・ライト信号探索部からのリード
・ライト信号と前記第3レジスタとの一致検出をトリガ
としてソフトウェアをトレースすることを特徴とするロ
ジックアナライザ。
2. The read / write signal search unit for extracting a read / write signal according to claim 1, wherein the logic analyzer includes a third register for setting read or write as a trace start condition in advance. A logic which traces software by using the coincidence detection of the contents of the second register and the address signal and the coincidence detection of the read / write signal from the read / write signal searching unit and the third register as a trigger. analyzer.
【請求項3】 請求項1または2において,ロジックア
ナライザは,トレースすべきデータ長に対応するデータ
を格納するトレースデータ長格納レジスタと,前記トレ
ースデータ長格納レジスタの内容と前記アドレス信号の
一致を検出する第3比較手段を備え,トレース部は前記
第2比較手段の一致出力によりトレースを開始し,前記
第3比較手段の一致出力によりトレースを終了すること
を特徴とするロジックアナライザ。
3. The logic analyzer according to claim 1 or 2, wherein the trace data length storage register for storing data corresponding to a data length to be traced and the contents of the trace data length storage register and the address signal are matched. A logic analyzer, comprising: a third comparing means for detecting, wherein the trace section starts the tracing by the coincidence output of the second comparing means, and ends the tracing by the coincidence output of the third comparing means.
【請求項4】 請求項1乃至3において,前記トレース
部に入力したデータを表示部またはメモリへ出力して,
トレース内容を表示または記録することを特徴とするロ
ジックアナライザ。
4. The data according to claim 1, wherein the data input to the trace unit is output to a display unit or a memory,
A logic analyzer that displays or records trace contents.
JP6208491A 1994-09-01 1994-09-01 Logic analyzer Withdrawn JPH0877032A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6208491A JPH0877032A (en) 1994-09-01 1994-09-01 Logic analyzer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6208491A JPH0877032A (en) 1994-09-01 1994-09-01 Logic analyzer

Publications (1)

Publication Number Publication Date
JPH0877032A true JPH0877032A (en) 1996-03-22

Family

ID=16557047

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6208491A Withdrawn JPH0877032A (en) 1994-09-01 1994-09-01 Logic analyzer

Country Status (1)

Country Link
JP (1) JPH0877032A (en)

Similar Documents

Publication Publication Date Title
JP3277900B2 (en) Program inspection method, program inspection device, and computer-readable storage medium storing inspection program
JP3684831B2 (en) Microcomputer, electronic equipment and debugging system
US5850512A (en) Bus analyzer and method for testing internal data paths thereof
JPH0877032A (en) Logic analyzer
JP2002140311A (en) Slave device, assembly of devices, and test method
JP2760228B2 (en) Microprocessor with built-in cache memory and its trace analyzer
US20040049511A1 (en) Method for acquiring and monitoring hardware data of computer system
JPH07248939A (en) Processor and processor system
KR100297224B1 (en) Microcomputer loaded with prom and data read-out testing method for same
JP3114828B2 (en) Programming device
JP2003271416A (en) Information processing equipment and electronic equipment
JPH0669854U (en) Digital oscilloscope
JP2000299711A (en) Data communication control device, data communication control method, and recording medium
JP2003263340A (en) Debug device
KR100326116B1 (en) Apparatus of saving data that make module active in board having modules
JPH11161516A (en) Covering rate measurement instrument
JPS60147849A (en) Method for debugging microprograms
JPH1115704A (en) Emulation control method and emulator device
JPS63318929A (en) Ultrasonic diagnostic apparatus
JPH11133064A (en) Measuring device and method for setting operating conditions of measuring device
JP2002049504A (en) System including flash memory, LSI with built-in flash memory, and debug system using them
JP2001134460A (en) Electronic circuit analysis apparatus and analysis method
JPH03292670A (en) Storage device
JPH02110637A (en) Program debugging supporting device
JPH10198577A (en) Electronic circuit analysis device, electronic circuit analysis method, and medium recording electronic circuit analysis program

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20011106