JPS59173848A - Tracing system - Google Patents

Tracing system

Info

Publication number
JPS59173848A
JPS59173848A JP4828783A JP4828783A JPS59173848A JP S59173848 A JPS59173848 A JP S59173848A JP 4828783 A JP4828783 A JP 4828783A JP 4828783 A JP4828783 A JP 4828783A JP S59173848 A JPS59173848 A JP S59173848A
Authority
JP
Japan
Prior art keywords
signal
trace
event
data
input
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
Application number
JP4828783A
Other languages
Japanese (ja)
Inventor
Osamu Takei
修 武井
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.)
Fuji Electric Co Ltd
Fuji Facom Corp
Original Assignee
Fuji Electric Co Ltd
Fuji Facom Corp
Fuji Electric Manufacturing 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 Fuji Electric Co Ltd, Fuji Facom Corp, Fuji Electric Manufacturing Co Ltd filed Critical Fuji Electric Co Ltd
Priority to JP4828783A priority Critical patent/JPS59173848A/en
Publication of JPS59173848A publication Critical patent/JPS59173848A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To utilize a trace memory effectively and to facilitate analysis of data by providing an event waiting loop judging section in a tracing device and writing only data of the first time and last time in a trace memory. CONSTITUTION:A reading command signal of a status register 20 of an input/ output controlling device 53 and a signal that indicates bit information of busy flag that indicate the state of event waiting or not of the status register 20 are inputted to an event waiting loop judging section 18. Output of the event waiting loop judging section 18 is inputted to AND gates 15-17, and only data that are related to the first and last event waiting loops are written in trace memories 9, 10.

Description

【発明の詳細な説明】 〔発明の属する技術分野〕 本発明はトレース方式、さらに詳しく言えば、計算機等
においてプログラムのデバッグ、障害解析、動作監視等
を目的とするプログラムの実行トレース方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Technical Field to which the Invention Pertains] The present invention relates to a tracing method, and more specifically, to a program execution tracing method for the purpose of program debugging, failure analysis, operation monitoring, etc. in a computer or the like.

〔従来技術とその問題点〕[Prior art and its problems]

この種のプログラムの実行トレースは、一般にから実行
データ・アドレスをトレースする方式が従来広く利用さ
れている。
Conventionally, a method of tracing execution data addresses has been widely used for tracing the execution of this type of program.

第1図において、51は演算処理装置、52は主記憶装
置、56は入出力制御装置、55はトレース装置、1は
上記各装置を接続する共通バス゛、56はトレース・デ
ータ表示装置、57は情報入力装置である。
In FIG. 1, 51 is an arithmetic processing unit, 52 is a main storage device, 56 is an input/output control device, 55 is a trace device, 1 is a common bus connecting the above devices, 56 is a trace data display device, and 57 is a trace data display device. It is an information input device.

第2図は、第1図のトレース装置55のデータ収集回路
の従来例のブロック図である。同図において1は第1図
の1に対応する共通バス、2.3.4はそれぞれ共通バ
ス1上のコントロール信号群、アドレス信号群およびデ
ータ信号群を示す。なお6はアドレス信号群ラッチ・レ
ジスタ、7pデ一タ信号群ラッチ・レジスタ、5はタイ
ミジグ制御部、8はトレース・メモリ・アドレス・カウ
ンタでその出力11はトレース・メモリ9,1oのアド
レス入力となり、12.13はそれぞれトレース・メモ
リ9および10に対する書込みイネーブル信号である。
FIG. 2 is a block diagram of a conventional example of the data collection circuit of the tracing device 55 of FIG. In the figure, 1 indicates a common bus corresponding to 1 in FIG. 1, and 2, 3, and 4 indicate a control signal group, an address signal group, and a data signal group on the common bus 1, respectively. Note that 6 is an address signal group latch register, 7p is a data signal group latch register, 5 is a timing jig control unit, 8 is a trace memory address counter, and its output 11 becomes the address input for trace memories 9 and 1o. , 12.13 are write enable signals for trace memories 9 and 10, respectively.

共通バス1から取シ込んだ実行データ(アドレス信号お
よびデータ信号)はラッチ・レジスタ6゜7を通じて、
プログラムの命令を実行する毎にトレース・メモリ・ア
ドレス・カウンタ8を歩進させながら、トレース・メモ
リ9,10へ順次に格納されて行く。
The execution data (address signal and data signal) taken in from the common bus 1 is passed through the latch register 6°7.
Each time a program instruction is executed, the trace memory address counter 8 is incremented, and the data is sequentially stored in the trace memories 9 and 10.

いま、第3図に示すような何らかの事象待ちループがあ
るプログラムの実行データを、従来方式でトレースを行
なうと、トレース・メモリ9,10に書込まれる内容は
第3図のプログラムの実行順に従って第4図に示すよう
に事象伜ちループが、事象成立に至って停止するまで、
繰返えして現われるデータを全部書込むこととなる。
If we trace the execution data of a program that has some kind of event waiting loop as shown in Figure 3 using the conventional method, the contents written to the trace memories 9 and 10 will be written in the order of execution of the program as shown in Figure 3. As shown in Figure 4, until the event or loop stops when an event occurs,
All data that appears repeatedly will be written.

さらに詳しく説明すれは、第6図は事象待ちループをも
つプログラムのループの部分のフローチャートを例示す
るものである。図においてαは入出力制御装置等のステ
ータス・レジスタの読出し命令(RD −5TR)  
を実行するステップ、bは読出したステータス・レジス
タの事象待ちか否かの状態を示すEUSI!: 7ラグ
のビット情報が10”か11”かのテスト命令(TBi
T BUSY)を実行するステップ、Cはステップbに
おけるフラグ・テスト命令の実行の結果によシ、BUS
Yフラグが11”であればA番地ヘジャンプし、10″
であれはジャンプしない条件ジャンプ命令の実行ステッ
プである。図から容易に判明するように、EUSYフラ
グが一1″のときA番地にジャンプして事象待ちループ
に入シ、EUSYフラグか10”と1つたときは、待っ
ていた事象が成立したので、ループを作らすEの方向に
進み、ループはなくなる。
More specifically, FIG. 6 illustrates a flowchart of a loop portion of a program having an event waiting loop. In the figure, α is a read command (RD-5TR) for the status register of the input/output control device, etc.
Step b is EUSI!, which indicates whether or not the read status register is waiting for an event. : Test instruction (TBi
T BUSY), C depends on the result of execution of the flag test instruction in step b, BUS
If the Y flag is 11", jump to address A and 10"
This is the execution step of a conditional jump instruction that does not jump. As can be easily seen from the figure, when the EUSY flag is 11'', it jumps to address A and enters the event waiting loop, and when the EUSY flag is 10'', the event for which it was waiting has occurred. Proceed in the direction of E, which creates a loop, and the loop will disappear.

第4図は、このときトレース・メモリ1oに書込まれた
状態を示すもので1回のル′−プが発生したとき、図示
のようにステータス・レジスタの読出し命令(RD 5
TR) 、BUSY 7ラグノテスト命令(TEiT 
RUBY)およびA番地への条件ジャンプ命令(BPA
)がn回繰返見し書込まれる。
FIG. 4 shows the state written to the trace memory 1o at this time. When one loop occurs, the status register read command (RD5) is executed as shown in the figure.
TR), BUSY 7 Ragno Test Instruction (TEiT
RUBY) and conditional jump instruction to address A (BPA
) is viewed and written n times.

一般には、このようなループ・ステップは1回トレース
するだけで、上記したプログラムのデバッグ、障害解析
、動作監視等を行なうには十分であ9複数回トレースす
る必要がないにも拘らず、このようにループ・ステップ
を複数回、一般には極めて多数回、トレースすることに
なシ、トレース・メモリの有効利用率を極端に下げるこ
ととなシネ利である。
In general, tracing such a loop step once is sufficient for debugging the program, analyzing failures, monitoring the operation, etc. described above.9 Although tracing such a loop step multiple times is not necessary, Therefore, it is unnecessary to trace a loop step multiple times, generally a very large number of times, and the effective utilization rate of the trace memory is extremely reduced.

また、ループ・ステップを複数回(一般には極めて多数
回)トレースすることにょシトレース・メモリの大部分
が占有され、必要とするデータをトレース・メモリに書
込めなくなるおそれがあシ、そのため必要なデータをト
レースできるまで、何度かトレースしなおさなければな
らない欠点がある。
Also, tracing a loop step multiple times (typically a very large number of times) can occupy a large portion of the trace memory and may prevent you from writing the data you need to the trace memory. The disadvantage is that you have to retrace the trace several times until you can trace it.

また、ループ・ステップが複数回(多数回)トレースさ
れていることにょシトレースしたデータ解析の際、必要
なデータを多数のデータ中からさがし出さなければなら
ないので手間がかがる欠点がある。
Furthermore, when analyzing traced data in which a loop step is traced multiple times (many times), the necessary data must be searched for from a large amount of data, which is time-consuming.

〔発明の目的〕[Purpose of the invention]

本発明は上記の従来技術によるトレース方式の上記の不
利な点および欠点を除去し、ループ・ステップのトレー
スに際し、トレース・メモリの有効利用を可能とし、2
操作性を向上させ、また必要なデータをトレース・メモ
リから捜し出す作業を簡単にし、ひいてはデータの解析
を容易とし、効率のよいトレース方式を提供することを
目的とする。
The present invention eliminates the above-mentioned disadvantages and shortcomings of the above-mentioned prior art tracing schemes, enables efficient use of trace memory in tracing loop steps, and 2.
It is an object of the present invention to provide an efficient tracing method that improves operability, simplifies the task of searching for necessary data from a trace memory, and facilitates data analysis.

〔発明の実施例〕[Embodiments of the invention]

以下、本発明の実施例を図面について詳糺に説明する。 Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.

第5図は本発明の一実施例のブロック構成図である。第
5図において参照数字は第1図および第4図に示すもの
と同一のものを示す。なお、図において15.16.1
7 はアンド・ゲート、18は事象待ちルーズ判定部、
23は制御信号で’I’LOCK信号と称するもの、2
4はインバータを示し、々お入出力制御装置53の20
はステータス・レジスタ、21はステータス・レジスタ
2oの読取指示信号、22はステータス・レジスタST
R中のEUSYフラグ(1ビツト)が11”がJ+″が
を示す信号である。
FIG. 5 is a block diagram of an embodiment of the present invention. In FIG. 5, reference numerals are the same as those shown in FIGS. 1 and 4. In addition, 15.16.1 in the figure
7 is an AND gate, 18 is an event waiting loose judgment unit,
23 is a control signal called 'I'LOCK signal; 2
4 indicates an inverter, and 20 of the input/output control device 53
is a status register, 21 is a read instruction signal of status register 2o, and 22 is a status register ST.
The EUSY flag (1 bit) in R is a signal indicating that 11'' is J+''.

第6図は第5図における事象待ちループ判定部18の接
続構成の7詳細を示す図、第7図は第6図の事象待ちル
ープ判定部18の動作タイムチャートである。
6 is a diagram showing details of the connection configuration of the event waiting loop determining section 18 in FIG. 5, and FIG. 7 is an operation time chart of the event waiting loop determining section 18 in FIG. 6.

第5図において、事象待ちループ判定部1Bの出力する
制御信号すなわちTLOCK信号26が’o”の場合は
、該信号′o#がインバータ24により否定されて#1
″となってアンド・グー) 15.L6,17の一方の
入力端に入力して該アンド・ゲート15゜16.17を
導通状態とするため、第5図のトレース装置55は第2
図に示したトレース装置55と全く同一の接続状態とな
シ、第2図のトレース装置55°と全く同様に動作する
In FIG. 5, when the control signal, that is, the TLOCK signal 26 output from the event waiting loop determining unit 1B is 'o', the signal 'o# is negated by the inverter 24 and the signal #1
15. In order to make the AND gate 15.
It has exactly the same connection state as the trace device 55 shown in the figure, and operates in exactly the same way as the trace device 55° shown in FIG.

しかし、上記TLOCK信号25が11#となると、イ
ンバータ24によって否定された1o”がアンド・グー
 ト15,16.17の一方の入力端に入力し、咳アン
ド・ゲート15,16.17を非導通状態とするため、
トレース・メモリ・アドレス・カウンタ8の歩進、トレ
ース・メモリ9,1oへの書込みは停止される。
However, when the TLOCK signal 25 becomes 11#, 1o'', which is negated by the inverter 24, is input to one input terminal of the AND gates 15, 16.17, and the gates 15, 16.17 are turned off. To make it conductive,
Incrementing of trace memory address counter 8 and writing to trace memories 9 and 1o are stopped.

このよ゛うにτLOCK信号23を1o″または11”
とすることによシ、トレース・メモリ9.同に格納する
データを選択することができる。
In this way, set the τLOCK signal 23 to 1o'' or 11''
By doing so, the trace memory 9. You can select the data to be stored at the same time.

第5図の入出力制御装置53において、そのステータス
・レジスタ(STR) 20の読取シ指令信号21はR
D STR命令(第3図、第4図参照)を実行する時に
有効(′1”)となる。RUB Y信号22はステータ
ス・レジスタ(STR) 20の中の1つのビットすな
わちEUSY フラグが′0″か〆1″かに従って10
”が11″かをとる。第3図におけるプログラムではこ
のEUSY信号22が′o#となるまでループステップ
を繰返えす。
In the input/output control device 53 in FIG. 5, the reading command signal 21 of the status register (STR) 20 is R.
It becomes valid ('1') when executing the D STR instruction (see Figures 3 and 4).The RUB Y signal 22 is set when one bit in the status register (STR) 20, that is, the EUSY flag, is '0'. 10 according to ``or 〆1''
``is 11''. In the program shown in FIG. 3, the loop steps are repeated until this EUSY signal 22 becomes 'o#.

第6図は第5図のトレース装置55中に本発明によって
設けられた事象待ちループ判定部18の接続構成の一例
のブロック図である。
FIG. 6 is a block diagram of an example of a connection configuration of the event waiting loop determining section 18 provided in the tracing device 55 of FIG. 5 according to the present invention.

第6図において、30.35はインバータ、31,32
゜33.36はアンド・ゲート、34はオア・グー、ト
、37 、38は7リツプフロツプであシ、21,22
.23  はそれぞれステータス・レジスタ・リード指
示信号(STRR)EUSY 7ラグの状態を示す信号
(BUSY)、およびアンド・ゲート15.16.17
を制御するTLOCK信号を示す。
In Figure 6, 30.35 is an inverter, 31, 32
゜33.36 is and gate, 34 is or goo, g, 37, 38 is 7 lip flop, 21, 22
.. 23 are the status register read instruction signal (STRR), the signal indicating the state of EUSY 7 lag (BUSY), and the AND gate 15.16.17.
This shows the TLOCK signal that controls the TLOCK signal.

第5図の入出力制御装置56において、事象待ちの状態
でなければ信号22、(BUSY )は“0”を示す。
In the input/output control device 56 of FIG. 5, the signal 22 (BUSY) indicates "0" if it is not in an event wait state.

事象待ちループ判定部18(第6図)において入力端2
2に・0”が入力していれば、(事象待ち状態でなけれ
ば)入力端21の入力の110Zg1”の如何に拘らず
アンド・ゲート31 は非導通で、その出力は10″で
ある。従って、アンド・ゲート33の出力は“0”とな
シ、また平常状態τはフリップフロラ7’ 38 (F
F−2)はリセット状態にあるのでその出力Qは10″
であシ、アンド・ゲート33の出力10″と7リツプフ
ロツプ38の出力Qの#0″を2人力とするオア・ゲー
ト34の出力は10”であるので、アンド・ゲート36
の出力信号25 (TLOCK信号)は10”となシ、
前記したように、アンド・ゲート15.16.17は導
通状態に保持され、トレース・メモリ9,10に書込み
が行なわれる。
In the event waiting loop determination unit 18 (FIG. 6), the input terminal 2
If *0'' is input to 2, the AND gate 31 is non-conductive and its output is 10'' regardless of the input 110Zg1'' of the input terminal 21 (unless it is in the event wait state). Therefore, the output of the AND gate 33 is "0", and the normal state τ is the flip Flora 7' 38 (F
Since F-2) is in the reset state, its output Q is 10''
Yes, the output of the OR gate 34 which uses the output 10'' of the AND gate 33 and #0'' of the output Q of the 7 lip-flop 38 is 10'', so the AND gate 36
The output signal 25 (TLOCK signal) is 10”,
As mentioned above, AND gates 15, 16, 17 are held conductive and trace memories 9, 10 are written.

事象待ち状態となれば、第5図の入出力制御装置53に
おいて信号22 (BUSY信号)が11”となる。
When the event wait state is entered, the signal 22 (BUSY signal) in the input/output control device 53 of FIG. 5 becomes 11''.

事象待ちル・−プ判定部18(第6図)において、入力
端22 (EUSY )に11”が入力する。
In the event waiting loop determining section 18 (FIG. 6), 11'' is input to the input terminal 22 (EUSY).

このとき、入出力制御装置53において、ステータス・
レジスタ・読取シ指示信号が発せられてお、らず、すな
わち事象待ちループ判定部18(第6図)の入力端21
 には引き続き信号IIO”が入力しているものとする
At this time, in the input/output control device 53, the status
The register/read command signal is not issued, that is, the input terminal 21 of the event waiting loop determining section 18 (FIG. 6)
It is assumed that the signal "IIO" continues to be input to.

第7図は第6図の事象待うループ判定部18の動作タイ
ム・チャートで、入力端21.22に加えられる信号2
1= (STRR信号)および信号22(BUSY′信
号)によシフリップフロップ67(FF−1)、 38
(FF−2)の状態およびTLOCK信号の変化する状
況を示す図である。
FIG. 7 is an operation time chart of the event waiting loop determination unit 18 in FIG.
1 = (STRR signal) and signal 22 (BUSY' signal) shift flip-flop 67 (FF-1), 38
It is a figure which shows the state of (FF-2) and the situation where a TLOCK signal changes.

第7図において、時点t□において事象待合せをしなけ
ればならない状態となシ信号21 (5TRR信号)が
′0”のまま、信号22 (EUSY信号)が10”か
ら#1′に変化したとする。そうすると、アンド・ゲー
ト62は、一方の入力端に信号22のIIO″のインバ
ータ50で否定された#1”が入力するが、他方の入力
端には信号21のto”が入力しているので、その出力
は相変らず10”でおる。この場合も時点t1以前の信
号22 (BUSY )が′0”のときと同様オア・ゲ
ート34の出力は′0”であるので信号25(TLOC
K信号)は#0″である。
In FIG. 7, at time t□, it is necessary to wait for an event, and while signal 21 (5TRR signal) remains '0', signal 22 (EUSY signal) changes from 10'' to #1'. do. Then, in the AND gate 62, #1" which is negated by the inverter 50 of IIO" of the signal 22 is inputted to one input terminal, but since "to" of the signal 21 is inputted to the other input terminal. , its output is still 10". In this case as well, the output of the OR gate 34 is '0' as in the case when the signal 22 (BUSY) is '0' before time t1, so the signal 25 (TLOC
K signal) is #0''.

との状態で、ステータス・レジスタ・読取シ指示信号が
発せられ信号21が一定時間g1”となったとする。第
6図において、第7図の時点t、で示すように信号21
 (5TRR信号)が一定時間・1″となる。従って、
アンド・ゲート31  の出力は#1”となシ、フリッ
プ・フロップ37 (FF−1)のセ゛/ト端子Sに1
1″が入力し、また、アンド・ゲート32の出力ダ0”
が同じくリセット端子Rに入力する。
Suppose that in this state, the status register read command signal is issued and the signal 21 remains at g1 for a certain period of time.In FIG. 6, as shown at time t in FIG.
(5TRR signal) becomes 1″ for a certain period of time. Therefore,
The output of the AND gate 31 is #1'', and the output of the flip-flop 37 (FF-1) is 1.
1" is input, and the output of AND gate 32 is 0".
is also input to the reset terminal R.

信号21 (STRR信号)が′1”でおる期間中のあ
る時ロックが与えられ、該スリップフロップ37(FF
−1)はセットされ、その出力Qはメトとなる。
At some point during the period when the signal 21 (STRR signal) is at '1', lock is applied and the slip-flop 37 (FF
-1) is set, and its output Q becomes met.

時点t、においてアンド・ゲート33は、その2 人力
がいずれも11”となシ11”を出力するが、時点t4
において信号21 (5TRR信号)が10′にな夛、
アンド・ゲート61 の出力が10″となると、アンド
・グー’) 33.は一方の入力が′0”となるので1
0′を出力するようになる。時点t、と1.との短時間
の間、アンド・ゲート33とオア・ゲート34の出力が
′1”となシ、従ってアンド・?−ト3bの出力すなわ
ち信号23 (TLOCK信号)が・1″となるが短時
間であるので、トレース・メモIJ9,10への書込み
動作に影響はない。なお時点’fi+’4  間で信号
23 (TLOCK信号)がぎ1”となることは、必要
があれは回路栴成の少しの変更例えば遅延回路の挿入等
によシ防止することができる。
At time t, the AND gate 33 outputs 11" for both of the two inputs, but at time t4
When signal 21 (5TRR signal) becomes 10',
When the output of AND gate 61 becomes 10'', one input of AND gate 61 becomes 10'', so one input of 33. becomes 1.
It will now output 0'. Time t, and 1. For a short period of time, the outputs of the AND gate 33 and the OR gate 34 are not ``1'', and therefore the output of the AND gate 3b, that is, the signal 23 (TLOCK signal) is ``1'', but for a short period of time. Since this is the time, there is no effect on the write operation to the trace memos IJ9 and IJ10. Note that the fact that the signal 23 (TLOCK signal) becomes 1'' between time points 'fi+'4 can be prevented by making a slight change in the circuit structure, such as inserting a delay circuit, if necessary.

このように、第1回の待ちループ(第4図参照)の間は
信号23 (’rLOcK信号)は10″であってトレ
ース・メモリ9,10に書込まれる。
Thus, during the first wait loop (see FIG. 4), the signal 23 ('rLOcK signal) is 10'' and is written into the trace memories 9, 10.

第2回目の待ちループの当初において、すなわち、第7
図の時点t、において、信号21 (STRR)が再び
′1″になったとする。そうすると、アンド・ゲート3
1の出力が11″となシ、フリップフロップ37 (F
F−1)はセット状態にあってその出力Qは“1″でお
り、アンド・ゲート33は上記の2つの出力′1”が入
力するため′1”を出力する。
At the beginning of the second waiting loop, i.e. at the seventh
Assume that the signal 21 (STRR) becomes '1' again at time t in the figure. Then, the AND gate 3
1 output is 11'', flip-flop 37 (F
F-1) is in the set state and its output Q is "1", and the AND gate 33 outputs '1' because the above two outputs '1' are input.

この出カメ1″はオア・ゲート54を通多アンド・ゲー
ト3乙に入力し、従ってアンド・ゲート5乙の出力は1
1”となシ、信号23 (TLOCK信号)は11”と
なり、すなわち時点t、以降トレース・メモIJ9,1
0への誉込みを禁止する。
This output camera 1'' inputs the OR gate 54 to the AND gate 3, and therefore the output of the AND gate 5 is 1.
1", signal 23 (TLOCK signal) becomes 11", that is, at time t, trace memo IJ9,1
Praise for 0 is prohibited.

上記のアンド・ゲート33の出力″1”はまたフリップ
フロップ5B (FF−2)のセット入力端子Sに達し
、一方そのリセット入力端子Rにはアンド・ゲート62
の出力′0″が入力しているから、時点t6においてス
リップフロップ38がクロックを受けるとセットされ、
その出力Qは11”と麦る。こ。
The output "1" of the above AND gate 33 also reaches the set input terminal S of the flip-flop 5B (FF-2), while its reset input terminal R is connected to the AND gate 62.
Since the output '0'' is input, the slip-flop 38 is set when it receives the clock at time t6,
Its output Q is 11".

の際、信号21 (5TRR信号)が0”に復帰した後
は、信号23 (TLO’CK 7号)はフリップフロ
ップ38の出力Qの′1”によシ、′1”に保持される
At this time, after the signal 21 (5TRR signal) returns to 0'', the signal 23 (TLO'CK No. 7) is held at '1' by the output Q of the flip-flop 38 at '1'.

このようにして第2回目以降の待合せループについては
トレース・メモリ9.10への書込みが禁止される。
In this way, writing to the trace memory 9.10 is prohibited for the second and subsequent waiting loops.

この状態、すなわち、フリップフロップ37 (FF−
1)および38 (77F−2)がセット状態にあシ、
かつ信号22がgO”である間は、信号21(STRR
信号)の10”、′1”に拘らず信号23 (TLOC
K信号)は11”を保持する。換言すれば、第1回目の
事象待合せループのデータをトレース・メモリ9,10
に書込んだ後は、上記の状態を続ける限り第2回目以降
のループのデータの書込みは行なわれない。
In this state, that is, the flip-flop 37 (FF-
1) and 38 (77F-2) are set,
And while the signal 22 is gO'', the signal 21 (STRR
Signal 23 (TLOC
In other words, the data of the first event waiting loop is stored in the trace memories 9 and 10.
After writing into the loop, data will not be written in the second and subsequent loops as long as the above state continues.

°いま、状態の変化によシ、事象待合せが不要となシ、
処理を進行させ得る状態となれば、上記RUBγフ4ラ
グは10″となυ信号22は10”となる。
° Now, due to changes in the state, there is no need to wait for an event.
When the process is ready to proceed, the RUBγ flag 4 becomes 10'' and the υ signal 22 becomes 10''.

第7図の時点1.においてこの状態になったとする。Time point 1 in Figure 7. Suppose that this state is reached.

その後時点t、において゛、ステータス・レジスタ・読
取シ指示信号が発せられ信号21 (5TRR信号)が
〆1”になったとする。
It is assumed that thereafter, at time t, a status register read command signal is issued and the signal 21 (5TRR signal) becomes 1.

信号21が′1”、信号22が〆0”であるので、アン
ドゲート31の出力はダ0″、続くアンド・ゲート63
の出力は10”、さらに続くオア・ゲート54 の出力
は、フリップ70ツブ38 (FF−2)の出力Qの#
1″を通過させるため11″であり、これがアンド・ゲ
ート66の一方の入力となる。
Since the signal 21 is '1' and the signal 22 is '0', the output of the AND gate 31 is '0', followed by the AND gate 63.
The output of the OR gate 54 is 10'', and the output of the OR gate 54 is the # of the output Q of the flip 70 tube 38 (FF-2).
11'' to pass 1'', which becomes one input of AND gate 66.

またアンド・ゲート62の出力は、その入力端の一方に
は信号21の11″が、他方には信号22の10′のイ
ンバータ60によって否定された′1”が入力するため
、′1”となる。この出カメ1”は線69を紅てインバ
ータ65に入力し、否定されて′0”となってアンド・
ゲート36に入力する。
Also, the output of the AND gate 62 is ``1'' because 11'' of the signal 21 is input to one of its input terminals, and ``1'' which is negated by the inverter 60 of the 10' of the signal 22 is input to the other input terminal. This output camera 1" is input to the inverter 65 through the line 69, and is negated and becomes '0", which is AND.
input to gate 36;

従って、アンド・ゲート66は10”を出力し、これは
信号23 (TLOCK信号)として、アンド・グー)
 15,16.17に達し、これ等のゲートを導通させ
、トレース・メモlJ9,10への書込みが開始される
Therefore, the AND gate 66 outputs 10'', which is the signal 23 (TLOCK signal)
15, 16, and 17, their gates become conductive, and writing to the trace memories IJ9 and IJ10 begins.

この事象待合せループが終了すれば、第6図のステップ
Cを終了したとき、アドレスAにジャンプせず、ループ
は終了(E)する。
If this event waiting loop ends, the loop ends (E) without jumping to address A when step C in FIG. 6 is completed.

従って、上記において事象待合せループのデータは、そ
の第1回目と最終′回(第n回目)のものがトレース・
メモI) 9.10に書込まれ、途中のループのデータ
は書き込まれない。
Therefore, in the above data of the event waiting loop, the first and last (nth) data are traced.
Memo I) Data written in 9.10 and intermediate loops are not written.

第7図において、時点t8以後の、信号21(STRR
信号)が未だz1″である間は、フリップ70ツブ37
(FF−1)と38(FF−2)のセット入力端子Sに
はそれぞれ′0”が、またリセット入力端子Rにはそれ
ぞれ′12が入力しているので、信号21 (STR,
R信号)が未だ′1”である期間中の時点t、において
、上記7リツプフロツプ37.3Bはクロックを受けて
リセットされる。
In FIG. 7, the signal 21 (STRR
While the signal) is still z1'', flip 70 knob 37
Since '0' is input to the set input terminal S of (FF-1) and 38 (FF-2), and '12' is input to each of the reset input terminal R, the signal 21 (STR,
At time t during the period when the R signal) is still '1', the seven lip-flop 37.3B is clocked and reset.

信号21 (STRR信号)が10”に復帰すれはアン
ド・ゲート32の出力(線39上の信号)も#0″に復
帰し、事象待合ループ判定部18は平常状態となる。
When the signal 21 (STRR signal) returns to 10'', the output of the AND gate 32 (signal on line 39) also returns to #0'', and the event waiting loop determining section 18 enters the normal state.

そして信号25(TLO(l信号)として10″を出力
する。
Then, it outputs 10'' as a signal 25 (TLO (l signal)).

第8図は、上記のようにして、事象待ちループに関する
データをトレース・メモリに書込んだ結果を示すもので
、第3図に示すRD STR,TBiTBUSY、 B
PAのステップのループの第1回目に続いて、間をあけ
ることなく最後の回(第n回目)をトレース・メモリ1
0に書き込んだことを示している。
FIG. 8 shows the result of writing data related to the event waiting loop to the trace memory as described above.
Following the first loop of the PA steps, the last loop (nth loop) is traced to memory 1 without any pause.
This indicates that it has been written to 0.

事象待ちループ判定部18の構成は第6図に示すものに
限定されず、種々の変形が可能である。
The configuration of the event waiting loop determination unit 18 is not limited to that shown in FIG. 6, and various modifications are possible.

〔発明の効果〕〔Effect of the invention〕

本発明によれば、計算機の共通バスに接続されているト
レース装置に事象待ちループ判定部を設け、第3図に示
すような事象待ちループのあるプログラムの、該事象待
ちループの前後をトレースする場合、該事象の対象とな
る装置のステータス・レジスタの読出し指示信号と、事
象の状態を示す信号とを事象待ちループ判定部に入力さ
せ、第1回目および最後の回の事象待ちループに関する
データのみをトレース・メモリに書込むようにした。
According to the present invention, an event waiting loop determination section is provided in a tracing device connected to a common bus of a computer, and a program having an event waiting loop as shown in FIG. 3 is traced before and after the event waiting loop. In this case, the read instruction signal of the status register of the device subject to the event and the signal indicating the state of the event are input to the event waiting loop determination unit, and only data regarding the first and last event waiting loop is input. is now written to the trace memory.

従って、トレース・メモリカ\゛事象待ちループのステ
ップのデータだけでうめつくされ、他の必要なデータの
トレースができなくなることが回避され、トレース・メ
モリの有効利用、利用効率を向上させる効果がある。事
象待ちループについては、第1回目と最後の回のデータ
をトレース・メ1モリに書込むので、十分なデータが得
られるとともに、後刻トレースする場合の必要データを
さがし出す処理が簡単となシ操作性を向上し得る効果が
ある。
Therefore, it is avoided that the trace memory is filled with only the data of the step of the event waiting loop, making it impossible to trace other necessary data, and this has the effect of improving the effective use and utilization efficiency of the trace memory. . As for the event waiting loop, since the first and last data are written to the trace memory, sufficient data can be obtained and the process of searching for the necessary data when tracing later is simplified. This has the effect of improving operability.

さらに、事象待ちループの第1回目と最終回とをトレー
スするのに、特別なプログラムによシ特別な処理(演算
処理装置からの命令によシトレース動作の起動停止の制
御を行い、事象待ち状態のときはトレースを禁止する等
の処理)を行なう必要がなく、簡単なハードウェアの付
加によシ可能となる効果がある。
Furthermore, in order to trace the first and final times of the event waiting loop, a special program is used to perform special processing (starting and stopping of the trace operation is controlled by instructions from the processing unit, and the event waiting state is In this case, there is no need to perform processing such as prohibiting tracing, and the effect is that it can be done by simply adding hardware.

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

第1図は従来技術によるトレース装置を設けた一般的の
計算機システムの構成を示す図、第2図は従来技術によ
るトレース装置の一例のブロック構成図、第3図は事象
待ちループのプログラムの一例の動作フロー図、第4図
は従来技術によシ事象待ちループのデータを書込んだト
レース・メモリの状態を示す図、第5図は本発明の一実
施例の一ブロック構成図、第6図は第5図の実施例に本
発明によって設けた事象ii孝ループ判定部の回路構成
の一例を示す図、第7図は第6図の事象^舎ループ判定
部の動作タイム・チャート、第8図は本発明により事象
待ちループのデータを書込んだトレース・メモリの状態
を示す図である。 51・・・演算処理装置、52・・・主記憶装置、 5
6・・・入出力制御装置、55・・・トレース装置、 
1・・・共通バス、5・・・タイミング制御回路、6・
・・アドレス信号群ラッチ・レジスタ、7・・・データ
信号群ラッチ・レジスタ、8・・・トレー号・メモリ・
アドレス・カウンタ、9,10・・・トレース・メモリ
、15,16,17゜20・・・ステータス・レジスタ
、り7,3B・・・フリップフロップ 特許出願人 富士電機製造株式会社(外1名)代理人弁
理士玉蟲久五部(外3名) 特開昭59−173848 (6) 第 1 図 第4図 第3図 第2図 第6図 迎− 第7図 FIQ FF:?Q TLOC尺 L □ 第 8 図
Fig. 1 is a diagram showing the configuration of a general computer system equipped with a trace device according to the prior art, Fig. 2 is a block diagram of an example of a trace device according to the prior art, and Fig. 3 is an example of an event waiting loop program. 4 is a diagram showing the state of the trace memory in which data of the event waiting loop is written according to the prior art. FIG. 5 is a block configuration diagram of an embodiment of the present invention. The figure is a diagram showing an example of the circuit configuration of the event loop determining section provided in the embodiment of FIG. 5 according to the present invention, and FIG. FIG. 8 is a diagram showing the state of the trace memory into which data of the event waiting loop is written according to the present invention. 51... Arithmetic processing unit, 52... Main storage device, 5
6... Input/output control device, 55... Trace device,
1... Common bus, 5... Timing control circuit, 6.
...Address signal group latch register, 7...Data signal group latch register, 8...Tray number/memory...
Address counter, 9,10...Trace memory, 15,16,17゜20...Status register, 7,3B...Flip-flop Patent applicant Fuji Electric Manufacturing Co., Ltd. (1 other person) Representative Patent Attorney Gobe Tamamushi (3 others) JP-A-59-173848 (6) Figure 1 Figure 4 Figure 3 Figure 2 Figure 6 Welcome - Figure 7 FIQ FF:? Q TLOC scale L □ Fig. 8

Claims (1)

【特許請求の範囲】[Claims] 演算処理装置、主記憶装置、入出力制御装置を含み、上
記装置を共通バスによ多接続して構成した計算機システ
ムにおいて、上記共通バスからプログラムの実行データ
、アドレスを取シ込みトレース・メモリに格納するトレ
ース装置を具備し、該トレース装置は、上記入出力制御
装置のステータス・レジスタの読取シ指示信号および上
記ステータス・レジスタ中の事象待ちか否かの状態を示
すビジー・フラグのビット情報を示す信号を入力とする
事象待合せループ判定部を有し、該事象待合せループ判
定部は上記の2つの信号に基いて制御信号を送出し、該
制御信号によシブログラムの第1回目の事象待ちループ
のデータと上記事象待ち状態を示すビジービットが事象
待ちでないことを示す状態に転じたときの最後のループ
のデータとのみを′トレース・メモリに格納することを
特徴とするトレース方式。
In a computer system that includes an arithmetic processing unit, a main memory unit, and an input/output control unit, and is configured by connecting multiple of the above devices to a common bus, program execution data and addresses are transferred from the common bus to the trace memory. The trace device stores a read instruction signal of the status register of the input/output control device and bit information of a busy flag in the status register indicating whether or not to wait for an event. The event waiting loop determining section has an event waiting loop determining section which inputs a signal shown in FIG. and the data of the last loop when the busy bit indicating the event waiting state changes to the state indicating not waiting for an event are stored in the trace memory.
JP4828783A 1983-03-23 1983-03-23 Tracing system Pending JPS59173848A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4828783A JPS59173848A (en) 1983-03-23 1983-03-23 Tracing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4828783A JPS59173848A (en) 1983-03-23 1983-03-23 Tracing system

Publications (1)

Publication Number Publication Date
JPS59173848A true JPS59173848A (en) 1984-10-02

Family

ID=12799217

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4828783A Pending JPS59173848A (en) 1983-03-23 1983-03-23 Tracing system

Country Status (1)

Country Link
JP (1) JPS59173848A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2946815A1 (en) * 2009-06-12 2010-12-17 Thales Sa METHOD FOR ACQUIRING A PLURALITY OF LOGIC SIGNALS WITH CONFIRMATION OF STATE VALIDITY

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2946815A1 (en) * 2009-06-12 2010-12-17 Thales Sa METHOD FOR ACQUIRING A PLURALITY OF LOGIC SIGNALS WITH CONFIRMATION OF STATE VALIDITY
US8095843B2 (en) 2009-06-12 2012-01-10 Thales Method of acquiring a plurality of logic signals, with confirmation of state validity

Similar Documents

Publication Publication Date Title
US5056013A (en) In-circuit emulator
JPS6239780B2 (en)
US5689694A (en) Data processing apparatus providing bus attribute information for system debugging
JPS63291134A (en) Logically integrated circuit
US5497459A (en) System for testing instruction queue circuit and central processing unit having the system
US4758949A (en) Information processing apparatus
US5218688A (en) Data processing system with memory-access priority control
US3480917A (en) Arrangement for transferring between program sequences in a data processor
JPS59173848A (en) Tracing system
JPS603045A (en) Detector for program address malfunction
JPS58107977A (en) Accessing system for storage device
JPS61269751A (en) Apparatus and method for using auxiliary data memory in data processing memory having independent program memory unit and data memory unit
JP3040599B2 (en) Automatic generation of instruction sequence for pipeline operation verification
KR0150161B1 (en) Device for displaying register and ram data
JPS5834856B2 (en) Kiokuseigiyosouchi
JPS58182200A (en) Storage device
JPS58149540A (en) Control storage device
US20040111654A1 (en) Memory device with debug mode
JPS6248865B2 (en)
JPS5936853A (en) Operation processor
JPH0784827A (en) Trace device
JPH0128965B2 (en)
JPS60193046A (en) Detecting system for instruction exception
JPS6319897B2 (en)
JPH04162150A (en) Watchdog timer control circuit