JPH0455948A - Dummy cycle detection system for computer program tracing device - Google Patents
Dummy cycle detection system for computer program tracing deviceInfo
- Publication number
- JPH0455948A JPH0455948A JP2165552A JP16555290A JPH0455948A JP H0455948 A JPH0455948 A JP H0455948A JP 2165552 A JP2165552 A JP 2165552A JP 16555290 A JP16555290 A JP 16555290A JP H0455948 A JPH0455948 A JP H0455948A
- Authority
- JP
- Japan
- Prior art keywords
- signal
- address
- dummy cycle
- address bus
- dummy
- 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.)
- Pending
Links
Landscapes
- Debugging And Monitoring (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
この発明はコンピュータプログラムトレース装置におけ
るダミーサイクル検出方式に関し、詳しくは、コンピュ
ータのダミーサイクルを検出し、該ダミーサイクルにお
ける該コンピュータのアドレスバス信号を除外して正確
な通過アドレストレースを行うことができるようにした
ものである。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a dummy cycle detection method in a computer program tracing device, and more specifically, detects a dummy cycle of a computer and detects the address bus signal of the computer in the dummy cycle. This allows accurate tracing of transit addresses by excluding them.
コンピュータプログラムの検査評価を行ない。 Performs inspection and evaluation of computer programs.
その誤りを正す作業すなわちデバッグを行なうためには
、プログラムテストを行なう必要がある。In order to correct the error, that is, to perform debugging, it is necessary to perform a program test.
プログラムテストの1つとして1通過アドレストレース
テストが従来より知られている0通過アドレストレース
テストとは、基本的には、コンピュータによって検査対
象たるプログラムを実行させ、この実行中のアドレス情
報を順次取り込んで記録(トレース)することからなっ
ている。実際に逐次実行されたアドレス情報つまり通過
アドレス情報を記録する手法としては、トレースメモリ
におけるアドレスをプログラムアドレスに対応させ、プ
ログラム通過アドレスに対応するトレースメモリのアド
レスに通過を示すデータ(例えばビットgr 1″)を
書き込むことが行なわオむる(特許第1134367号
参照)。A 0-pass address trace test, which has traditionally been known as a 1-pass address trace test as a program test, basically involves a computer running a program to be tested, and sequentially capturing address information during execution. It consists of recording (tracing). As a method for recording address information actually executed sequentially, that is, passing address information, addresses in the trace memory are made to correspond to program addresses, and data indicating passing (for example, bit gr 1 '') is performed (see Patent No. 1134367).
単純な通過アドレスのトレースのみでは、プログラムの
分岐点において分岐成立したのか分岐不成立であったの
かが判らない。そこで、本出願人の出願に関わる特願昭
59−199367号(特開昭61−77943号)に
おいては5分岐成立したのか分岐不成立であったのかを
通過アドレスの連続性に基づき判定し、この判定結果に
応じて、分岐成立に関するトレースデータと分岐不成立
に関するトレースデータをそれぞれ作成し、別々に記憶
することが開示されている。By simply tracing passing addresses, it is not possible to determine whether a branch is taken or not taken at a branch point in a program. Therefore, in Japanese Patent Application No. 59-199367 (Japanese Unexamined Patent Publication No. 61-77943) related to the application filed by the present applicant, it is determined based on the continuity of passed addresses whether 5 branches are taken or not. It is disclosed that trace data regarding a branch taken and trace data regarding a branch not taken are respectively created and stored separately according to the determination result.
また、トレースデータを評価するために、カバレージ(
網羅率)を算出し、算出したカバレージをテスト結果を
定i的に示す尺度(指S)として使用することも行なわ
れている。Also, in order to evaluate the trace data, the coverage (
It is also practiced to calculate the coverage rate) and use the calculated coverage as a measure (point S) that specifically indicates the test result.
ところで、被測定コンピュータにおけるバスサイクル状
態には、実際にメモリのアドレスをアクセスしたりI1
0領域をアクセスしたりする有効バスサイクルと、実際
のアクセスは行われていないダミーサイクルとがある。By the way, the bus cycle state in the computer under test includes actual memory address access and I1.
There are valid bus cycles that access the 0 area and dummy cycles that are not actually accessed.
ダミーサイクルが有効バスサイクルの間でサイクリック
に現われるような場合は、これを正確に検出して通過ア
ドレストレースから排除する必要がある。何故ならばダ
ミーサイクルのときのアドレスバス信号を有効バスサイ
クルのアドレスバス信号と同等にトレースしたのでは次
のような問題が生じるからである。If a dummy cycle appears cyclically between valid bus cycles, it is necessary to accurately detect it and exclude it from the passing address trace. This is because if the address bus signal during the dummy cycle is traced in the same manner as the address bus signal during the valid bus cycle, the following problem will occur.
a)通過アドレスの連続性が判断できなくなるので、上
述のような分岐成立/不成立の判定が困難になる。a) Since the continuity of passed addresses cannot be determined, it becomes difficult to determine whether a branch is taken or not taken as described above.
b)同一アドレス情報が持続する場合であってもそれが
ダミーサイクルによって分断されてしまうことにより、
持続する同一アドレス情報をデータ圧縮して記録するこ
とができなくなるので不経済である。b) Even if the same address information persists, it is divided by dummy cycles,
This is uneconomical because it becomes impossible to compress and record the same address information that persists.
C)ダミーサイクルのときのアドレスバス信号をもトレ
ースしてしまうと、トレースメモリが無駄に費やされて
しまい、有効バスサイクルのアドレスバス信号を記録す
るスペースが減少してしまう。C) If address bus signals during dummy cycles are also traced, the trace memory will be wasted and the space for recording address bus signals during valid bus cycles will be reduced.
これらの不都合は、バスサイクル識別信号をコンピュー
タの側から出力するタイプのものにあっては、トレース
装置側でこのバスサイクル識別信号に基づきダミーサイ
クルを検出すればよいので、比較的容易に解決できる。These inconveniences can be solved relatively easily if the bus cycle identification signal is output from the computer side, since the tracing device only needs to detect the dummy cycle based on this bus cycle identification signal. .
しかし、バスサイクル識別信号を出力しないタイプのコ
ンピュータの場合は、上記問題点を解決することができ
ない。However, in the case of a type of computer that does not output a bus cycle identification signal, the above problem cannot be solved.
この発明は上述の点に鑑みてなされたもので、バスサイ
クル識別信号を出力しないタイプのコンピュータに適用
する場合であっても容易にダミーサイクルを検出し得る
ようにすることにより、上記種々の問題点を解決するこ
とができるようにしたコンピュータプログラムトレース
装置におけるダミーサイクル検出方式を提供しようとす
るものである。The present invention has been made in view of the above points, and solves the various problems mentioned above by making it possible to easily detect dummy cycles even when applied to a type of computer that does not output a bus cycle identification signal. It is an object of the present invention to provide a dummy cycle detection method in a computer program tracing device that can solve the problem.
この発明に係るダミーサイクル検品方式は、コンピュー
タのアドレスバスから取り出した信号をプルアップ抵抗
を介して受信する受信回路と、前記受信回路の出力が全
ビット能動レベルのときダミーサイクル信号を出力し、
該ダミーサイクル信号に対応して前記アドレスバスに現
われた信号を前記コンピュータの通過アドレス情報とし
てトレースすることを禁止するダミーサイクル検出回路
とを具えたものである。The dummy cycle inspection method according to the present invention includes a receiving circuit that receives a signal taken out from an address bus of a computer via a pull-up resistor, and outputting a dummy cycle signal when the output of the receiving circuit is at an active level for all bits.
The apparatus further includes a dummy cycle detection circuit that prohibits tracing of a signal appearing on the address bus in response to the dummy cycle signal as passing address information of the computer.
コンピュータのアドレスバスの信号レベル状態は3状態
であり、有効バスサイクルではアドレス信号の値に応じ
てハイレベル(“1″)又はローレベル(1′o”)の
状態をとるが、ダミーサイクルではフローティング状態
となる。そこで、この発明では、コンピュータのアドレ
スバスから取り出した信号をプルアップ抵抗を介して受
信する。The signal level state of the address bus of a computer is three states, and in a valid bus cycle, it takes a high level (“1”) or low level (1'o) state depending on the value of the address signal, but in a dummy cycle, it takes a high level (“1”) or a low level (1'o) state. Therefore, in the present invention, a signal taken out from the address bus of the computer is received via a pull-up resistor.
そうすると、アドレスバスがフローティング状態のとき
は、プルアップ抵抗によってハイレベルフまり能動レベ
ルの信号として受信される。ダミーサイクルではアドレ
スバスの全ビットがフローティング状態であるから、能
動レベルへのプルアップにより、受信回路の出力が全ビ
ット能動レベルとなる。これにより、受信回路の出力が
全ビット能動レベルのときダミーサイクルを検品するこ
とができるので、そのときダミーサイクル信号を出力す
る。このダミーサイクル信号によって、アドレスバスに
現われた信号をコンピュータの通過アドレス情報として
トレースすることを禁止することにより、上述の問題点
a ” cを解決することができる。Then, when the address bus is in a floating state, it is received by the pull-up resistor as a high level signal and an active level signal. Since all bits of the address bus are in a floating state in the dummy cycle, the pull-up to the active level causes the output of the receiving circuit to have all bits at the active level. As a result, the dummy cycle can be inspected when the output of the receiving circuit is at all bits active level, and a dummy cycle signal is output at that time. By using this dummy cycle signal, the above-mentioned problems a'' and c can be solved by prohibiting the signal appearing on the address bus from being traced as passing address information of the computer.
以下、添付図面を参照してこの発明の一実施例を詳細に
説明しよう。Hereinafter, one embodiment of the present invention will be described in detail with reference to the accompanying drawings.
第1図において、被測定装置1はコンピュータによって
制御さ才しるものであり、そのコンピュータとしては例
えばマイクロプロセッサ2が使用されている。プログラ
ムトレーサ3は、マイクロプロセッサ2のアドレスバス
からアドレスバスケーブル4を介して該マイクロプロセ
ッサ2において実行中のプログラムのアドレス情報を逐
次入力し。In FIG. 1, a device to be measured 1 is controlled by a computer, and a microprocessor 2, for example, is used as the computer. The program tracer 3 sequentially inputs the address information of the program being executed in the microprocessor 2 from the address bus of the microprocessor 2 via the address bus cable 4.
所要のコンピュータプログラムトレース処理を行う。こ
の場合、マイクロプロセッサ2のアドレスバスの信号状
態がアドレスバスケーブル4を介してそのままプログラ
ムトレーサ3に与えられる。Performs necessary computer program tracing processing. In this case, the signal state of the address bus of the microprocessor 2 is directly applied to the program tracer 3 via the address bus cable 4.
従って、マイクロプロセッサ2のダミーサイクルにおけ
るアドレスバス信号状態もそのままアドレスバスケーブ
ル4を介してプログラムトレーサ3に与えられる6ダミ
ーサイクルにおけるアドレスバス信号状態は、全ビット
がフローティング状態つまりトライステートレベルであ
る。これに対して、有効バスサイクルでは、アドレス信
号の値に応じて各ビットがハイレベル(” 1 ” )
又はローレベル(′0”)のいすかの状態となる。Therefore, the address bus signal state in the dummy cycle of the microprocessor 2 is also applied to the program tracer 3 via the address bus cable 4. In the address bus signal state in the 6 dummy cycles, all bits are in a floating state, that is, at a tri-state level. On the other hand, in a valid bus cycle, each bit becomes high level ("1") according to the value of the address signal.
Or it becomes a low level ('0'') state.
プログラムトレーサ3の側では、受信回路5においてア
ドレスバスケーブル4の信号を受信する。On the program tracer 3 side, a reception circuit 5 receives the signal from the address bus cable 4 .
受信回路5はプルアップ抵抗6と受信アンプ素子7とを
各ビット毎に具えるものである。プルアップ抵抗6を設
けたことにより、アドレスバスケーブル4の信号レベル
がハイレベル(1”)又はローレベル(0”)のビット
ではそのままハイレベル(1”)又はローレベル(“0
”)のビット信号がそれに対応する受信アンプ素子7に
与えられるが、アドレスバスケーブル4の信号レベルが
フローティング状態つまりトライステートレベルのビッ
トでは、ハイレベル(“1”)のビット信号がそれに対
応する受信アンプ素子7に与えられる。The receiving circuit 5 includes a pull-up resistor 6 and a receiving amplifier element 7 for each bit. By providing the pull-up resistor 6, if the signal level of the address bus cable 4 is high level (1") or low level (0"), it will remain at high level (1") or low level ("0").
”) is given to the corresponding receiving amplifier element 7, but if the signal level of the address bus cable 4 is in a floating state, that is, a tri-state level bit, a high level (“1”) bit signal corresponds to it. The signal is applied to the receiving amplifier element 7.
受信回路5の出力は、通過アドレストレース族に8とダ
ミーサイクル検出回路9に入力される。The output of the receiving circuit 5 is input to a passing address trace group 8 and a dummy cycle detection circuit 9.
通過アドレストレース族FL8では、受信回路5から与
えられる信号を、被測定マイクロプロセッサ2で実行中
のアドレス情報として逐次取り込み、これを記録(トレ
ース)する。例えば、この通過アドレストレース装置8
が、プログラムの通過アドレスに応じて分岐成立または
分岐不成立に関するトレースデータを作成し、記憶する
ものであるとすると、アドレス連続性判定部81と読み
書き可能なメモリ82.83を有する。アドレス連続性
判定部81では、受信回路5から与えられる通過アドレ
ス情報の連続性を判定し、連続のとき分岐不成立と判定
し、不連続のとき分岐成立と判定する。メモリ82は分
岐成立に関するトレースデータを記憶するものであり、
そのアドレスがプログラムアドレスに対応しており1分
岐成立と判定されたアドレスにおいて1”を書き込み、
それ以外のアドレスにおいてパ0”を書き込む、メモリ
83は分岐不成立に関するトレースデータを記憶するも
のであり、そのアドレスがプログラムアドレスに対応し
ており、分岐不成立と判定されたアドレスにおいて11
”を書き込み、それ以外のアドレスにおいてRO17を
書き込む、なお、この通過アドレストレース装置8は、
上記に限らず。In the passing address trace group FL8, the signal given from the receiving circuit 5 is sequentially taken in as address information being executed by the microprocessor under test 2, and this is recorded (traced). For example, this passing address tracing device 8
, which creates and stores trace data regarding branch establishment or branch failure according to addresses passed through the program, has an address continuity determination unit 81 and read/write memories 82 and 83. The address continuity determination unit 81 determines the continuity of the passing address information provided from the receiving circuit 5, and determines that the branch is not taken when the address is continuous, and that the branch is taken when it is discontinuous. The memory 82 stores trace data regarding branch establishment.
1” is written at the address where it is determined that the address corresponds to the program address and 1 branch is established,
The memory 83 stores trace data related to branch failure, and the address corresponds to the program address, and 11 is written at the address where it is determined that the branch is not taken.
” and writes RO17 at other addresses. This passing address tracing device 8
Not limited to the above.
その他の構成のものであってもよい。Other configurations may also be used.
ダミーサイクル検出回路9では、受信回路5の出力が全
ビット能動レベルつまりこの例ではハイレベル(111
”)のときダミーサイクル信号DCを出力し、このダミ
ーサイクル信号DCを通過アドレストレース族[8に与
え、該ダミーサイクル信号DCに対応して前記アドレス
バスに現われた信号をコンピュータの通過アドレス情報
としてトレースすることを禁止する。ダミーサイクル検
出回路9の一例は第2図に示すように、全ビットの受信
アンプ素子7の出力を入力したアンドゲート91からな
り、受信回路5の出力が全ビットハイレベル(“1“)
のときダミーサイクル信号DCとしてハイレベル(1”
)信号を出力する。In the dummy cycle detection circuit 9, the output of the receiving circuit 5 is at all bits active level, that is, in this example, high level (111
”), a dummy cycle signal DC is output, this dummy cycle signal DC is given to the passing address trace group [8, and the signal appearing on the address bus corresponding to the dummy cycle signal DC is used as passing address information of the computer. Tracing is prohibited.An example of the dummy cycle detection circuit 9 is, as shown in FIG. Level (“1”)
When the dummy cycle signal DC is high level (1”
) outputs a signal.
前述のように、マイクロプロセッサ2のダミーサイクル
におけるアドレスバス信号状態は、全ビットがフローテ
ィング状態つまりトライステートレベルであるから、プ
ルアップ抵抗6のプルアップにより、全ビットの受信ア
ンプ素子7にハイレベル(1″)信号が入力され、その
出力としてダミーサイクル検出回路9に与えられる信号
が全ビットハイレベル(“1”)となる、従ってマイク
ロプロセッサ2のダミーサイクルのとき、ダミーサイク
ル信号DCがハイレベル(“1”)となり、これに対応
して通過アドレストレース族[8に入力されるアドレス
バス信号は無効なものであるため、これが通過アドレス
情報として通過アドレストレース装置8においてトレー
スすることが禁止される。As mentioned above, in the address bus signal state during the dummy cycle of the microprocessor 2, all bits are in a floating state, that is, at a tri-state level. (1") signal is input, and the signal given to the dummy cycle detection circuit 9 as its output becomes high level ("1") for all bits. Therefore, during the dummy cycle of the microprocessor 2, the dummy cycle signal DC is high. level (“1”), and correspondingly, the address bus signal input to the transit address trace group [8 is invalid, so it is prohibited to trace this as transit address information in the transit address trace device 8. be done.
なお、有効バスサイクルにおいてアドレス信号が全ビッ
トハイレベル(1”)となったときは、ダミーサイクル
でないにもかかわらず、ダミーサイクル信号DCが出力
されてしまうが、そのようなことはほとんど希であるの
で特に問題ない。また、オール“1”のアドレスをベク
タアドレスとして使用するプロセッサも中にはあるが、
その場合は1前後のアドレスバスの信号状態からベクタ
アドレスであることを判定することができるので。Note that when all bits of the address signal are at high level (1") in a valid bus cycle, the dummy cycle signal DC is output even though it is not a dummy cycle, but this is almost never the case. There are some processors that use all "1" addresses as vector addresses, but
In that case, it is possible to determine that it is a vector address from the signal state of the address bus around 1.
ダミーサイクル検出回路9をそのように構成すれば対処
できる。This problem can be dealt with by configuring the dummy cycle detection circuit 9 in this way.
なお、上記では能動レベルをハイレベル(”l”)とし
て説明したが、その逆にローレベル(0”)を能動レベ
ルとするものであってもよい。Note that although the active level has been described above as a high level ("l"), the active level may be a low level (0") conversely.
また、通過アドレストレース装置8に与えるアドレスバ
ス信号は、プルアップ抵抗6によりプルアップしないも
のであってもよい。Further, the address bus signal applied to the passing address trace device 8 may not be pulled up by the pull-up resistor 6.
以上の通り、この発明によれば、アドレスバスの信号を
プルアップ抵抗を介して受信し、受信信号の全ビットが
能動レベルであるときダミーサイクルであることを検出
するようにしたので、ダミーサイクルのときのアドレス
バス信号を除外して、有効バスサイクルのアドレスバス
信号のみを正確にトレースすることができるようになる
。という優れた効果を奏する。As described above, according to the present invention, an address bus signal is received via a pull-up resistor, and a dummy cycle is detected when all bits of the received signal are at active level. By excluding the address bus signal at the time of , it becomes possible to accurately trace only the address bus signal of the valid bus cycle. It has this excellent effect.
第1図はこの発明の一実施例を示すブロック図、第2図
は第1図におけるダミーサイクル検出回路の一例を示す
ブロック図、である。
1・・・被測定装置、2・・・マイクロプロセッサ、3
・・・プログラムトレーサ、4・・・アドレスバスケー
ブル、5・・・受信回路、6・・・プルアップ抵抗、7
・・・受信アンプ素子、8・・・通過アドレストレース
装置、9・・・ダミーサイクル検出回路。FIG. 1 is a block diagram showing an embodiment of the present invention, and FIG. 2 is a block diagram showing an example of the dummy cycle detection circuit in FIG. 1. 1... Device under test, 2... Microprocessor, 3
...Program tracer, 4...Address bus cable, 5...Receiving circuit, 6...Pull-up resistor, 7
. . . Reception amplifier element, 8 . . . Passing address tracing device, 9 . . . Dummy cycle detection circuit.
Claims (1)
報を逐次入力し、該プログラムの通過アドレスをトレー
スするコンピュータプログラムトレース装置において、 前記コンピュータのアドレスバスから取り出した信号を
プルアップ抵抗を介して受信する受信回路と、 前記受信回路の出力が全ビット能動レベルのときダミー
サイクル信号を出力し、該ダミーサイクル信号に対応し
て前記アドレスバスに現われた信号を前記コンピュータ
の通過アドレス情報としてトレースすることを禁止する
ダミーサイクル検出回路と を具えたコンピュータプログラムトレース装置における
ダミーサイクル検出方式。[Scope of Claims] A computer program tracing device that sequentially inputs address information of a program being executed in a computer and traces the addresses passed by the program, comprising: a signal taken out from an address bus of the computer via a pull-up resistor; a receiving circuit for receiving data; and a dummy cycle signal is output when all bits of the output of the receiving circuit are at an active level, and a signal appearing on the address bus corresponding to the dummy cycle signal is traced as passing address information of the computer. A dummy cycle detection method in a computer program tracing device, comprising a dummy cycle detection circuit that prohibits dummy cycle detection.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2165552A JPH0455948A (en) | 1990-06-26 | 1990-06-26 | Dummy cycle detection system for computer program tracing device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2165552A JPH0455948A (en) | 1990-06-26 | 1990-06-26 | Dummy cycle detection system for computer program tracing device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0455948A true JPH0455948A (en) | 1992-02-24 |
Family
ID=15814540
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2165552A Pending JPH0455948A (en) | 1990-06-26 | 1990-06-26 | Dummy cycle detection system for computer program tracing device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0455948A (en) |
-
1990
- 1990-06-26 JP JP2165552A patent/JPH0455948A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| KR940001146B1 (en) | System for checking comparison check function of information processing device | |
| JPS6222199B2 (en) | ||
| JPH0455948A (en) | Dummy cycle detection system for computer program tracing device | |
| JPS6342299B2 (en) | ||
| US10872030B2 (en) | Control system and method of to perform an operation | |
| KR100316182B1 (en) | Error Detection Device | |
| KR20180008629A (en) | Method and apparatus for providing test response | |
| JPH0713806A (en) | Bus tracing device for microprocessor | |
| JP3695196B2 (en) | Data processing device | |
| JP2715740B2 (en) | Bus monitoring circuit for information processing equipment | |
| JP3100458B2 (en) | Coverage tester | |
| JPS63753A (en) | Test system for memory error checking and correcting circuit | |
| JPH0326416B2 (en) | ||
| JPH0553929A (en) | Central processing unit with fault information preserving function | |
| JPS605355A (en) | Program route recording device | |
| JPS5856050A (en) | Interdevice data signal tracing device | |
| JPS60251438A (en) | Self-diagnosis method of control memory | |
| JPH04364552A (en) | Memory circuit with parity monitor circuit | |
| JPS61267143A (en) | Information processor | |
| JPH04120644A (en) | Storage device | |
| JPH049343B2 (en) | ||
| JPS58105359A (en) | Measuring system of program processing time | |
| JPS60171547A (en) | information recording device | |
| JPH03102435A (en) | Testing method for device mounted with processor | |
| JPS62111330A (en) | Program transfer device |