JPS62143143A - Branch trace control system - Google Patents

Branch trace control system

Info

Publication number
JPS62143143A
JPS62143143A JP60283711A JP28371185A JPS62143143A JP S62143143 A JPS62143143 A JP S62143143A JP 60283711 A JP60283711 A JP 60283711A JP 28371185 A JP28371185 A JP 28371185A JP S62143143 A JPS62143143 A JP S62143143A
Authority
JP
Japan
Prior art keywords
branch
output
address
lower limit
circuit
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.)
Granted
Application number
JP60283711A
Other languages
Japanese (ja)
Other versions
JPH0439097B2 (en
Inventor
Junji Nishioka
西岡 潤治
Masao 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 JP60283711A priority Critical patent/JPS62143143A/en
Publication of JPS62143143A publication Critical patent/JPS62143143A/en
Publication of JPH0439097B2 publication Critical patent/JPH0439097B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To reduce the quantity of hardware by checking whether a branching source address and a branched address are included within previously set upper and lower limit addresses by an existing arithmetic circuit. CONSTITUTION:The upper and lower limit addressed of the branching source address and the branched address are stored in an LS area 51 of a main storage in addition to a pointer and a byte counter. When a branching condition is formed and branching is executed, the branching source address and the branched address are set up on one input of the arithmetic circuit (ALU) 1 and the upper and lower limit addresses stored in the specific area are extracted and set up to the other input to execute four operations. A carry/output zero detecting circuit 9 inputs a carry output to be '1' when the calculated result of the ALU 1 is a negative value and a zero output to be '1' when the calculated result is zero to test the input.

Description

【発明の詳細な説明】 [概 要] 主としてデハソギングおよび診断等の目的に用いるブラ
ンチトレースの制御11において、分岐元アドレスおよ
び分岐先アドレスが予め設定した上限アドレスと下限ア
ドレスの範囲にあるか否かのチェックを既存の演算回路
により行うよう構成したもので、これによりハードウェ
アーtを削減することができる。
[Detailed Description of the Invention] [Summary] In the branch trace control 11 mainly used for the purpose of dehasogging and diagnosis, it is determined whether a branch source address and a branch destination address are within a preset upper limit address and lower limit address range. This check is performed using an existing arithmetic circuit, thereby reducing the amount of hardware required.

[産業上の利用分野コ 本発明は、主としてデハソギングおよび診断等の目的に
使用するため、分岐条件の成立で分岐元と分岐先の命令
アドレスを主記憶上に格納するブランチトレースのため
の制御方式に関する。
[Industrial Field of Application] The present invention is mainly used for dehasogging and diagnostic purposes, and is directed to a control method for branch tracing in which the instruction addresses of the branch source and branch destination are stored in the main memory when a branch condition is met. Regarding.

[従来の技術] ブランチトレース制御においては、分岐元および分岐先
のアドレスに特定のアドレス範囲を設けることが多く、
分岐命令により分岐したときの分岐元および分岐先のア
ドレスを、設定したアドレス範囲の上限アドレスおよび
下限アドレスと比較する必要がある。
[Prior Art] In branch trace control, specific address ranges are often set for branch source and branch destination addresses.
It is necessary to compare the branch source and branch destination addresses when branching by a branch instruction with the upper and lower limit addresses of the set address range.

従来技術においては、この分岐元および分岐先アドレス
と、上限および下限アドレスとの比較のために、専用の
比較回路を備える必要があった。
In the prior art, it was necessary to provide a dedicated comparison circuit to compare the branch source and branch destination addresses with the upper and lower limit addresses.

第5図は、ブランチトレース制御の従来方式のブロック
図である。
FIG. 5 is a block diagram of a conventional method of branch trace control.

第5図において、lは算術論理演算機構(ALU)であ
り、2はAレジスタ(AR) 、3はBレジスタ(BR
)であり、4は命令アドレスレジスタ(iAR)であり
、6はZレジスタ(ZR)であって、それぞれ中央処理
装置の主要構成要素のひとつである。
In FIG. 5, l is an arithmetic and logic unit (ALU), 2 is an A register (AR), and 3 is a B register (BR).
), 4 is an instruction address register (iAR), and 6 is a Z register (ZR), each of which is one of the main components of the central processing unit.

51および52は、主記憶(MS)5の一部領域を示し
、51はローカルストレージ(L S)と呼ばれる領域
で、52は分岐先および分岐元のアドレスを書き込むテ
ーブル(以下、BT子テーブル略記する)を書き込む領
域である。
51 and 52 indicate partial areas of the main memory (MS) 5, 51 is an area called local storage (LS), and 52 is a table (hereinafter abbreviated as BT child table) in which addresses of branch destination and branch source are written. This is the area in which to write.

81、82.83.および84は、ブランチトレースの
ために設けたレジスタおよび比較回路である。
81, 82.83. and 84 are registers and comparison circuits provided for branch tracing.

81は下限アドレスをセットするレジスタ(L−LMT
−REG)であり、82は上限アドレスをセットするレ
ジスタ(U−LMT−REG)である。
81 is a register (L-LMT) for setting the lower limit address.
-REG), and 82 is a register (U-LMT-REG) for setting the upper limit address.

83は比較回路1であり、命令アドレスレジスタ(iA
R)4の内容とL−LMT−REG 81の内容とを比
較し、84は比較回路2であり、命令アドレスレジスタ
(iAR)4の内容とU−LMT−REG 82の内容
とを比較する。
83 is a comparison circuit 1, which is an instruction address register (iA
The contents of R) 4 and the contents of L-LMT-REG 81 are compared, and 84 is a comparison circuit 2, which compares the contents of instruction address register (iAR) 4 and the contents of U-LMT-REG 82.

ブランチトレースを行うに当っては、まず主記憶のLS
領域51内に、分岐先アドレスおよび分岐元アドレスを
記憶させておくBT子テーブル2上の先頭アドレスを示
すポインタと、BT子テーブル残り領域を示すバイトカ
ウントを書き込み、分岐元および分岐先アドレスの下限
アドレスをL−LMT−RIEG 81に、上限アドレ
スをU−LMT−REG 82にセットする。
When performing a branch trace, first the main memory LS
A pointer indicating the start address on the BT child table 2 where the branch destination address and branch source address are to be stored and a byte count indicating the remaining area of the BT child table are written in the area 51, and the lower limit of the branch source and branch destination address is written. Set the address to L-LMT-RIEG 81 and the upper limit address to U-LMT-REG 82.

命令アドレスレジスタiARの内容は、比較回路lで下
限アドレス以上であるかをチェックされ、比較回路2で
上限アドレス以下であるかをチェックし、その両方が成
立したときは、ANDゲート85が開かれ、BTオーケ
ー(+BT−OK)が1″となる。
The contents of the instruction address register iAR are checked by a comparator circuit 1 to see if they are greater than or equal to the lower limit address, and by a comparator circuit 2 to see if they are less than or equal to the upper limit address, and if both are true, an AND gate 85 is opened. , BT OK (+BT-OK) becomes 1''.

BTイネーブル(+BT−ENB)信号は、操作者が任
意にセントできる信号であって、分岐させ度いときは“
1”にセットしておく。
The BT enable (+BT-ENB) signal is a signal that the operator can arbitrarily send, and when it is desired to branch,
Set it to 1".

BTイネーブルが“1゛にセットしてあり、BTオーケ
ーか“1”となれば、ANDゲート7が開かれ、LS5
1中のポインタの示すBTテーブルアドレスに分岐元お
よび分岐先アドレスが書き込まれ、書込みデータのバイ
ト数だけポインタが加算され、バイトカウントはバイト
数だけ減算されて、次の先頭アドレスおよび残りのバイ
ト数を示すように更新される。
If BT enable is set to "1" and BT OK is "1", AND gate 7 is opened and LS5
The branch source and branch destination addresses are written to the BT table address indicated by the pointer in 1, the pointer is added by the number of bytes of write data, the byte count is subtracted by the number of bytes, and the next start address and the number of remaining bytes are written. will be updated to show.

このように、従来方式ではブランチトレースのために専
用のレジスタL−LMT−REGおよびU−LMT−R
EGlならびに比較回路1.2を必要とする。
In this way, in the conventional method, dedicated registers L-LMT-REG and U-LMT-R are used for branch tracing.
EG1 and comparator circuit 1.2 are required.

[発明が解決しようとする問題点] 上記のように、従来方式ではブランチトレースのために
専用のレジスタおよび比較回路を必要とするものであっ
た。
[Problems to be Solved by the Invention] As described above, the conventional method requires a dedicated register and comparison circuit for branch tracing.

本発明は、このような専用のレジスタおよび比較回路を
必要とせず、ハードウェア量を削減した新規なブランチ
トレース制御方式を提供しようとするものである。
The present invention aims to provide a novel branch trace control method that does not require such dedicated registers and comparison circuits and reduces the amount of hardware.

[問題点を解決するための手段] 第1図は本発明のブランチトレース制御方式の原理ブロ
ック図を示す。
[Means for Solving the Problems] FIG. 1 shows a block diagram of the principle of the branch trace control method of the present invention.

第1図において、第5図と同一の符号同一の対象物を示
す。
In FIG. 1, the same reference numerals as in FIG. 5 indicate the same objects.

ブランチトレースを行うに当っては、まず上記taのL
S領域51に、ポインタおよびハイドカウントの外に、
分岐元および分岐先アドレスの上限アドレスおよび下限
アドレスを格納しておく。これは、いわゆるサービスプ
ロセッサのような補助プロセッサにより実行させる。
When performing a branch trace, first set the L of ta above.
In the S area 51, in addition to the pointer and hide count,
Store the upper and lower limit addresses of the branch source and branch destination addresses. This is performed by an auxiliary processor, such as a so-called service processor.

分岐条件が成立し分岐が行われたとき、演算回路(AL
U)lの一方の入力に分岐元アドレス、次いで分岐先ア
ドレスをセットし、その各々に対して他方の入力に前記
特定領域に格納した上限アドレスと下限アドレスとを取
り出しセットして、■(下限アドレス)−(分岐元アド
レス)、■(上限アドレス)−(分岐元アドレス)、■
(下限アドレス)−(分岐先アドレス)、■(上限アド
レス)−(分岐先アドレス)、の4回の演算を実行させ
る。
When the branch condition is satisfied and the branch is executed, the arithmetic circuit (AL
U) Set the branch source address and then the branch destination address to one input of l, retrieve and set the upper limit address and lower limit address stored in the specific area to the other input for each of them, and address) - (branch source address), ■ (upper limit address) - (branch source address), ■
The following four operations are executed: (lower limit address) - (branch destination address), (2) (upper limit address) - (branch destination address).

9は桁上げ及び出力ゼロ検査回路であって、演算回路(
ALU)1の演算結果がマイナスのとき1”となる桁上
げ出力、および演算結果がゼロのとき“1”となるゼロ
出力を入力して、つぎの検査を行う。
9 is a carry and output zero check circuit, which is an arithmetic circuit (
The following test is performed by inputting a carry output, which becomes "1" when the operation result of ALU)1 is negative, and a zero output, which becomes "1" when the operation result is zero.

即ち、■および■の演算の結果で桁上げ出力が51”で
あるか又はゼロ出力が“1”であり、且つ■および■の
演算の結果で桁上げ出力が“O”であるか又はゼロ出力
が“1”である条件が総て満足されたとき、BTオーケ
ー信号を1”とする。
That is, the carry output is "51" or the zero output is "1" as a result of the operations of ■ and ■, and the carry output is "O" or zero as the result of the operations of ■ and ■. When all the conditions for the output to be "1" are satisfied, the BT OK signal is set to "1".

BTイネーブルがl1t11にセットしてあり、BTオ
ーケーが“1”となれば、ANDゲート7が開かれ、L
S51中のポインタの示すBTテーブルアドレスに分岐
元および分岐先アドレスが書き込まれ、書込みデータの
バイト数だけポインタが加算され、バイトカウントはバ
イト数だけ減算されて、次の先頭アドレスおよび残りの
バイト数を示すように更新されることは従来例と同様で
ある。
If BT enable is set to l1t11 and BT OK becomes "1", AND gate 7 is opened and L
The branch source and branch destination addresses are written to the BT table address indicated by the pointer in S51, the pointer is added by the number of bytes of write data, the byte count is subtracted by the number of bytes, and the next start address and the number of remaining bytes are written. This is the same as in the conventional example.

[作用] 上記構成により、分岐元および分岐先アドレスがセット
された上限および下限アドレス内にあるか否かの検査が
できることを、次に説明する。
[Operation] It will be explained below that the above configuration allows checking whether the branch source and branch destination addresses are within the set upper and lower limit addresses.

分岐元(分岐先についても同様)アドレス(Xとする)
は、下限および上限アドレス(L−LMT、 U−LM
T)に対して、第2図(alに示すように次の5つの場
合がある。
Branch source (same as branch destination) address (set to X)
are the lower and upper limit addresses (L-LMT, U-LM
T), there are the following five cases as shown in FIG. 2 (al).

■X < l−LMT。■X < l-LMT.

■x  =  L−LMT。■x = L-LMT.

■L−LMT< x <  II−L旧\■x=U−L
肘、 ■ Ll−LMT<  x 。
■L-LMT< x < II-L old\■x=U-L
Elbow, ■ Ll-LMT< x.

上記5つの各々の場合に対する(L−LMT) −x及
び(11−LMT) −x  の演算結果に対する桁上
げ出力およびゼロ出力は、第2図(blに示すようにな
る。
The carry output and zero output for the operation results of (L-LMT)-x and (11-LMT)-x for each of the above five cases are as shown in FIG. 2 (bl).

従って、分岐元または分岐先アドレスXが、上限および
下限アドレス内にあるとき、即ち■、■、■にあるとき
の(L−LMT) −x  及び(U−LMT) −x
の演算結果に対する桁上げ出力およびゼロ出力の共通の
オーケー条件は、第2図(b)の最下欄のとおりであり
、4つの演算でこれが満足されれば、BTオーケーとな
る。
Therefore, (L-LMT) -x and (U-LMT) -x when the branch source or branch destination address X is within the upper and lower limit addresses, that is, at ■, ■, ■.
The common OK conditions for carry output and zero output for the operation results are as shown in the bottom column of FIG. 2(b), and if these are satisfied by the four operations, BT is OK.

上記のようにして、既存の演算回路を使用して比較演算
を行うことにより、従来例に81〜84で示した4バイ
ト程度の専用のレジスタおよび比較回路を必要とせず、
9で示した1ビツトの極めて小さい回路で済み、ハード
ウェア量を大いに削減できる。
By performing the comparison operation using the existing arithmetic circuit as described above, there is no need for a dedicated register of about 4 bytes and a comparison circuit as shown in 81 to 84 in the conventional example.
This requires only an extremely small 1-bit circuit as shown in 9, and the amount of hardware can be greatly reduced.

し実施例] 以下第3図および第4図に示す実施例により、本発明を
さらに具体的に説明する。
EXAMPLES] The present invention will be described in more detail below with reference to examples shown in FIGS. 3 and 4.

第3図は本発明の実施例のブロック図である。FIG. 3 is a block diagram of an embodiment of the invention.

第4図は本発明の実施例のタイムチャートである。FIG. 4 is a time chart of an embodiment of the present invention.

第3図において、第4図と同一の符号は同一の対象物を
示す。
In FIG. 3, the same reference numerals as in FIG. 4 indicate the same objects.

91〜95は、第1図に示した桁上げおよびゼロ出力検
査回路9の内容の実施例回路である。
Reference numerals 91 to 95 designate example circuits of the contents of the carry and zero output test circuit 9 shown in FIG.

91は排他的論理和回路(EOR)であり、演算回路(
ALU)1の桁上げ出力と、サイクル・カラント92の
出力を入力としている。
91 is an exclusive OR circuit (EOR), which is an arithmetic circuit (
The carry output of ALU) 1 and the output of cycle current 92 are input.

サイクル・カウント91は、クロックで→−1カウント
し、自己出力で“0”にリセットする回路であり、従っ
て第4図のタイムチャートで示すように、サイクル毎に
“0”、“1”を繰り返す。
The cycle counter 91 is a circuit that counts -1 by a clock and resets it to "0" by its own output. Therefore, as shown in the time chart of Fig. 4, "0" and "1" are counted every cycle. repeat.

93はORゲートであり、EOR91の出力と演算回路
(ALU)1のゼロ出力を入力とする。
Reference numeral 93 denotes an OR gate, which receives the output of the EOR 91 and the zero output of the arithmetic unit (ALU) 1 as inputs.

94はANDゲートであり、ORゲート93の出力と回
路95の出力を入力とする。
94 is an AND gate, which receives the output of the OR gate 93 and the output of the circuit 95 as inputs.

回路95は、ORゲート93の出力により“1”にリセ
ットされ、次のサイクルで“0”になる回路である。
The circuit 95 is a circuit that is reset to "1" by the output of the OR gate 93 and becomes "0" in the next cycle.

最初のサイクル■で、サイクルカウント92が“0”で
あり、桁上げ出力が“l”であるとすると、EOR92
の出力は“1″となる。
In the first cycle ■, if the cycle count 92 is "0" and the carry output is "l", then EOR92
The output of is "1".

EOR92の出力が“1”となるとゼロ出力の値に関係
なく、ORゲート93の出力は“1”となり、回路95
は初期状態で“1”であるから、ANDゲート94の出
力は“l”となり、回路95は“l”にリセットされる
When the output of EOR92 becomes "1", the output of OR gate 93 becomes "1" regardless of the value of zero output, and circuit 95
is "1" in the initial state, the output of the AND gate 94 becomes "l", and the circuit 95 is reset to "l".

次のサイクル■ではサイクルがラント92は“1”とな
り、桁上げ出力が“0”であれば、EOR91の出力は
“l”となる。
In the next cycle (2), the cycle runt 92 becomes "1", and if the carry output is "0", the output of the EOR 91 becomes "1".

従って、ANDゲート94の出力は“1”となり、回路
95は“1”にリセットされる。
Therefore, the output of the AND gate 94 becomes "1" and the circuit 95 is reset to "1".

次のサイクル■ではサイクルカウント92は再び“0”
となり、サイクル■と同様なことが行われる。
In the next cycle ■, the cycle count 92 is “0” again.
Then, the same thing as in cycle (■) is performed.

次のサイクル■ではサイクルカウント92は再び“1”
となり、サイクル■と同様なことが行われ、ANDゲー
ト94からはBT−OK“1”として出力される。
In the next cycle ■, cycle count 92 is “1” again
Then, the same thing as in cycle (2) is performed, and the AND gate 94 outputs BT-OK "1".

以上の各サイクルで、ゼロ出力が“1”となれば、EO
R91の出力が0”であってもANDゲート94の出力
は“1”となる。
In each cycle above, if the zero output becomes "1", EO
Even if the output of R91 is 0, the output of AND gate 94 is 1.

以上の■、■、■、■の4回のサイクルのうち、1回で
もORゲート93の出力が“0″のサイクルがあると、
ANDゲート94の出力は“0”となり、回路95は“
1”にリセットされず、ANDゲート94の出力は“O
”となってしまう。
If there is even one cycle in which the output of the OR gate 93 is "0" among the four cycles of ■, ■, ■, ■ above,
The output of the AND gate 94 becomes "0", and the circuit 95 becomes "0".
1” and the output of the AND gate 94 is “O”.
”.

第3図の回路において分岐条件が成立し分岐が行われる
とき、ブランチトレースが実行される状況は第4図のタ
イムチャートに示すとおり、次のようになる。
When the branch condition is satisfied and a branch is taken in the circuit of FIG. 3, the situation in which branch tracing is executed is as follows, as shown in the time chart of FIG. 4.

(1)Aレジスタ(AR)にLSからL−LMTがセン
トされ、Bレジスタ(BR)には分岐元アドレスがセッ
トされる。このときのサイクル・カウントは“0″であ
る。
(1) L-LMT is sent from LS to the A register (AR), and a branch source address is set to the B register (BR). The cycle count at this time is "0".

(2)次のサイクルで、ALUにおいて、AR−BRの
演算が行われ、その演算結果の桁上げおよびセロ出力が
91〜95の回路で検査される。
(2) In the next cycle, the AR-BR calculation is performed in the ALU, and the carry and cello output of the calculation result is checked by circuits 91 to 95.

(3)ARにはLSからU−LMTがセントされる。サ
イクル・カウントは1″となる。
(3) U-LMT is sent to the AR from the LS. The cycle count will be 1''.

(4)次のサイクルで、ALUにおいて、AR−BRの
演算が行われ、その演算結果の桁上げおよびセロ出力が
91〜95の回路で検査される。
(4) In the next cycle, the AR-BR calculation is performed in the ALU, and the carry and cello output of the calculation result is checked by circuits 91 to 95.

(5)BRには命令アドレスレジスタ(iAR)から分
岐先アドレスがセットされ、ARにはLSからL−L訂
がセットされる。サイクル・カウントは“0”となる。
(5) The branch destination address is set from the instruction address register (iAR) in BR, and the LL revision from LS is set in AR. The cycle count becomes "0".

(6)次のサイクルで、ALUにおいて、AR−BRの
演算が行われ、その演算結果の桁上げおよびゼロ出力が
91〜95の回路で検査される。
(6) In the next cycle, the AR-BR operation is performed in the ALU, and the carry and zero output of the operation result is checked in the circuits 91 to 95.

(7)ARにはLSからU−LMTがセットされる。サ
イクル・カウントは1”となる。
(7) U-LMT is set in AR from LS. The cycle count will be 1”.

(8)次のサイクルで、ALUにおいて、AR−BRの
演算が行われ、その演算結果の桁上げおよびゼロ出力が
91〜95の回路で検査される。
(8) In the next cycle, the AR-BR operation is performed in the ALU, and the carry and zero output of the operation result is checked in the circuits 91 to 95.

(9) A’NDゲート94の出力、即ちBT−OKが
“1”であれば、Zレジスタ(ZR)にある分岐元アド
レス、およびBRにある分岐先アドレスがBT子テーブ
ル書き込まれる。
(9) If the output of the A'ND gate 94, ie, BT-OK, is "1", the branch source address in the Z register (ZR) and the branch destination address in BR are written into the BT child table.

(10) A RにはLS力1らハイドカウントがセッ
トされ、BRには8″がセットされる。”8”の値はB
T子テーブル書き込まれる分岐元および分岐先アドレス
デークが8ハイドであるからである。
(10) The hide count from LS force 1 is set in A R, and 8" is set in BR. The value of "8" is B
This is because the branch source and branch destination address data written in the T child table is 8 hides.

(11)次のサイクルで、A +−Uにおいて、A R
−+3Rの演算が行われ、その結果によってLS内のハ
イドカウントの値を更新する。
(11) In the next cycle, at A + - U, A R
An operation of -+3R is performed and the value of hide count in LS is updated by the result.

(12) A RにはLSからポインタがセットされる
(12) A pointer is set in AR from LS.

(13)次のサイクルで、ALUにおいて、AR+BR
の演算が行われ、その結果によってL S内のポインタ
の値を更新する。
(13) In the next cycle, in ALU, AR+BR
is performed, and the value of the pointer in LS is updated according to the result.

以上で1回のブランチトレースが終り、次のブランチト
レースのための準備が整ったことになる。
This completes one branch trace, and preparations for the next branch trace are complete.

[発明の効果] 以上説明のように本発明によれば、既存の演算回路を利
用してアドレス比較を行うため、ハードウェア星を削減
することができ、その実用上の効果はきわめて大である
[Effects of the Invention] As explained above, according to the present invention, since address comparison is performed using existing arithmetic circuits, hardware stars can be reduced, and the practical effects thereof are extremely large. .

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

第1図は本発明の原理ブロック図、 第2図はBTオーケー条件を示す図、 第3図は本発明の実施例のブロック図、第4図は本発明
の実施例のタイムチャート、第5図は従来例のブロック
図である。 図面において、 1は演算回路(A L U)、 2は、ヘレジスタ(AR)、 3はBレジスタ(BR)、 4は命令アドレスレジスタ(iAR)、5は主記憶、 
     6はZレジスタ(ZR)、7はANDゲート
、 9は桁上げ及びゼロ出力検査回路、 51はLS領域、    52はBT子テーブル域、8
1、82はレジスタ、  83.84は比較回路、85
はANDゲート、 91は排他的論理和回路(EOR)、 92はサイクルカウント、93はORゲート、94はA
NDゲート、  95はリセット1回路、をそれぞれ示
す。 本発明の原理ブロック図 第1図 (b) BTオーケー灸゛←を示す7 第 2 関
Fig. 1 is a principle block diagram of the present invention, Fig. 2 is a diagram showing BT okay conditions, Fig. 3 is a block diagram of an embodiment of the present invention, Fig. 4 is a time chart of an embodiment of the present invention, and Fig. 5 is a diagram showing the BT OK condition. The figure is a block diagram of a conventional example. In the drawing, 1 is an arithmetic circuit (ALU), 2 is an address register (AR), 3 is a B register (BR), 4 is an instruction address register (iAR), 5 is a main memory,
6 is the Z register (ZR), 7 is the AND gate, 9 is the carry and zero output check circuit, 51 is the LS area, 52 is the BT child table area, 8
1, 82 are registers, 83.84 are comparison circuits, 85
is an AND gate, 91 is an exclusive OR circuit (EOR), 92 is a cycle count, 93 is an OR gate, 94 is an A
ND gate, 95 indicates a reset circuit, and 95 indicates a reset circuit. Principle block diagram of the present invention Fig. 1(b)

Claims (1)

【特許請求の範囲】 分岐条件が成立したとき分岐元および分岐先の命令アド
レスを主記憶装置の特定領域上に格納するブランチトレ
ース機能を備えたデータ処理装置において、 分岐元アドレスおよび分岐先アドレスの上限と下限アド
レスを主記憶の特定領域にセットする手段と、 分岐条件が成立したとき、データ処理装置の備える演算
回路の一方の入力に分岐元アドレス、次いで分岐先アド
レスをセットし、その各々に対して他方の入力に前記特
定領域に格納した上限アドレスと下限アドレスとを取り
出しセットして、4回の演算を実行させる制御手段と、 前記演算回路の桁上げ出力とゼロ出力とを入力とし、前
記各演算の結果における前記桁上げ出力ならびにゼロ出
力を検査し、前記各回の演算結果総てが、所定の条件を
満足したときブランチトレースを許容する信号を出力す
る、桁上げおよびゼロ出力検査回路とを備え、 前記分岐元および分岐先アドレスの、前記上限値および
下限値との比較演算を前記データ処理装置の備える演算
回路により行うよう構成したことを特徴とするブランチ
トレース制御方式。
[Claims] In a data processing device equipped with a branch trace function that stores instruction addresses of a branch source and a branch destination in a specific area of a main storage device when a branch condition is satisfied, means for setting upper and lower limit addresses in specific areas of main memory; On the other hand, control means takes out and sets the upper limit address and lower limit address stored in the specific area to the other input, and executes four calculations; the carry output and the zero output of the calculation circuit are input; a carry and zero output inspection circuit that inspects the carry output and zero output in the results of each operation, and outputs a signal permitting branch tracing when all the operation results of each operation satisfy a predetermined condition; A branch trace control method, comprising: a computation operation for comparing the branch source and branch destination addresses with the upper limit value and the lower limit value using an arithmetic circuit included in the data processing device.
JP60283711A 1985-12-17 1985-12-17 Branch trace control system Granted JPS62143143A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60283711A JPS62143143A (en) 1985-12-17 1985-12-17 Branch trace control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60283711A JPS62143143A (en) 1985-12-17 1985-12-17 Branch trace control system

Publications (2)

Publication Number Publication Date
JPS62143143A true JPS62143143A (en) 1987-06-26
JPH0439097B2 JPH0439097B2 (en) 1992-06-26

Family

ID=17669090

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60283711A Granted JPS62143143A (en) 1985-12-17 1985-12-17 Branch trace control system

Country Status (1)

Country Link
JP (1) JPS62143143A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5323244A (en) * 1976-08-16 1978-03-03 Hitachi Ltd Information processing unit
JPS5694449A (en) * 1979-12-27 1981-07-30 Toshiba Corp Trace system in computer

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5323244A (en) * 1976-08-16 1978-03-03 Hitachi Ltd Information processing unit
JPS5694449A (en) * 1979-12-27 1981-07-30 Toshiba Corp Trace system in computer

Also Published As

Publication number Publication date
JPH0439097B2 (en) 1992-06-26

Similar Documents

Publication Publication Date Title
US5038348A (en) Apparatus for debugging a data flow program
JPS5886648A (en) Tracing device
US4028670A (en) Fetch instruction for operand address calculation
JP3211423B2 (en) Branch instruction execution method and branch instruction execution device
JPS62143143A (en) Branch trace control system
JPH0528431B2 (en)
JPH02211535A (en) Computer processor execution apparatus
JPH0831033B2 (en) Data processing device
JPH02181236A (en) Debug device
JP2534314B2 (en) Semiconductor integrated circuit
KR100246465B1 (en) Apparatus and method for reducing cycle of microprocessor stack order
JPS61241833A (en) Instruction code access controller
KR920008212B1 (en) Two-dimensional fast fourier transform (FFT) processor using a mixed shuffle connection method (MSCM).
JPS59188900A (en) Data processor
JPH02188840A (en) Data processor
JPS63188230A (en) Information processor
JPH0258128A (en) Data processor
JPS58195255A (en) Data processing device
JPS61151745A (en) Interruption processing system
JPS6282439A (en) False trouble generating system
JPH01271876A (en) Comparison arithmetic processor
JPH0243626A (en) Apparatus for controlling execution speed of computer processor
JPS6355646A (en) Controlling system for symbolic debugger
JPH0378832A (en) Data processor
JPH0552938U (en) Pipeline arithmetic unit