JPS61131132A - Tracer circuit - Google Patents

Tracer circuit

Info

Publication number
JPS61131132A
JPS61131132A JP59251953A JP25195384A JPS61131132A JP S61131132 A JPS61131132 A JP S61131132A JP 59251953 A JP59251953 A JP 59251953A JP 25195384 A JP25195384 A JP 25195384A JP S61131132 A JPS61131132 A JP S61131132A
Authority
JP
Japan
Prior art keywords
circuit
data
input
register
output
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
JP59251953A
Other languages
Japanese (ja)
Inventor
Kazuhiro Kawada
和博 川田
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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP59251953A priority Critical patent/JPS61131132A/en
Publication of JPS61131132A publication Critical patent/JPS61131132A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software

Abstract

PURPOSE:To attain accurate trace of data history even when the capacity of a storage circuit is small by counting number of same consecutive data of a trace input data at a counter circuit, writing a count to the storage circuit together with the 1st data. CONSTITUTION:When a consecutive data is inputted as an input data signal 102, a positive output 105 of a comparison coincidence detection circuit 4 is logical 1 and a negative output 106 is logical 0. Thus, an output 107 of an AND circuit 5 is logical 0, an output 104 of an input register 2 is not written in a storage circuit 3 and the value of an address register circuit 9 is unchanged. A negative output 116 of a logical circuit 11 is logical 1 at the same time, the counter circuit 10 is incremented by 1 and when the same consecutive data is intermittent, the output 104 of the register 2 and an output 114 of the counter circuit 10 are written in the storage circuit 3 at the same time. While the same consecutive data continues, the operation is kept, the value of the circuit 9 is unchanged, the counter circuit 10 continues increment of 1 and no data is written to a temporary storage circuit 3.

Description

【発明の詳細な説明】 意東上の利用分野 本発明はデータ処理装置におけるトレーサ回路に関する
ものである。
DETAILED DESCRIPTION OF THE INVENTION Field of Application The present invention relates to a tracer circuit in a data processing device.

従来の技術 従来、この糎のトレーサ回路は、トレース開始信号がア
クティブになると、トレースする入力信号を直接記憶回
路に入力して、その入力した順に記憶していた。この方
式によると、希望するトレースデータを記憶するには大
容量の記憶回路が会費でるり、ハードウェア量も増大し
高価となる欠点があった。
BACKGROUND OF THE INVENTION Conventionally, when a trace start signal becomes active, the tracer circuit directly inputs the input signals to be traced to a storage circuit and stores them in the order in which they are input. This method has the disadvantage that a large capacity storage circuit is required to store the desired trace data, and the amount of hardware increases and becomes expensive.

また、ハードウェア量を減らすために、同一データが連
続して入力した場合に、最初のデータのみ記憶して、続
いて入力する向−データを記憶回路に記憶させない方式
もあるが、この場合同一データが何回続いたかが検出で
きないという欠点があった。
In addition, in order to reduce the amount of hardware, there is a method that stores only the first data when the same data is input continuously, and does not store the next data to be input in the memory circuit. The drawback was that it was not possible to detect how many times the data continued.

発明が解決しようとする問題点 本発明の目的は、上記の欠点、すなわちトレースデータ
を記憶するのに大容量の記憶回路が必要となったシ、同
一連続デー・夕を省略する場合正確なデータが検出でき
ないという問題点を解決したトレーサ回路を提供するこ
とにある0 問題点を解決するための手段 本発明は上述の問題点を解決するために、入力データを
格納するレジスタ回路1と、これに接続するレジスタ回
路2と、これらレジスタ回路1および2の出力を比較す
る比較回路と、同一連続データがある場合、これをカウ
ントする計数回路と、レジスタ回路2および計数回路の
出力を格納する記憶回路と、この記憶回路にアドレスを
供給するトレースアドレスレジスタ回路と、同一連続デ
ータを検出した時に、最初のデータのみを記憶回路に書
き込み、続く同一データの簀き込みを禁止する制御回路
とを有する構成を採用するものである。。
Problems to be Solved by the Invention The purpose of the present invention is to solve the above-mentioned drawbacks, namely, that a large-capacity storage circuit is required to store trace data, and to eliminate accurate data if the same continuous data is omitted. It is an object of the present invention to provide a tracer circuit which solves the problem of inability to detect the tracer circuit. a register circuit 2 connected to the register circuit 2, a comparison circuit that compares the outputs of these register circuits 1 and 2, a counting circuit that counts the same continuous data when it is present, and a memory that stores the outputs of the register circuit 2 and the counting circuit. a trace address register circuit that supplies an address to this memory circuit, and a control circuit that writes only the first data to the memory circuit when the same continuous data is detected, and prohibits subsequent merging of the same data. The configuration is adopted. .

作用 本発明は上述のとお仄構成したので、トレースする入力
データはレジスタ回路1および2t−介して記憶回路に
入力するが、レジスタ回路1および2の出力を比較回路
が比較し同一データと検出した場合には、制御回路がそ
のデータの記憶回路への誓き込みを禁止し、同一連続デ
ータの数を計数回路がカウントして、記憶回路に最初の
データと共にカウントした数値を書き込むようにする。
Operation Since the present invention is constructed as described above, the input data to be traced is input to the memory circuit through the register circuits 1 and 2t, but the comparator circuit compares the outputs of the register circuits 1 and 2 and detects that they are the same data. In this case, the control circuit prohibits the data from being committed to the storage circuit, the counting circuit counts the number of identical consecutive data, and writes the counted value together with the first data to the storage circuit.

したがって記憶回路の容量が小さくても正確なデータ履
歴をトレースすることができる。
Therefore, accurate data history can be traced even if the capacity of the storage circuit is small.

実施例 久に本発明の実施例について図面を参照して説明する。Example Embodiments of the present invention will now be described with reference to the drawings.

本発明の一笑施例をブロック図で示す第1図を参照する
と、本発明のトレーサ回路は、入力レジスタ回路lと、
入力レジスタ回路2と、記憶回路3と、比較一致検出回
路4と、記憶回路3の書込       1み情号を制
御する制御回路としての論理積回路5と、計数回路10
のカウント信号を制御する論理積回路6と、トレース開
始指示7リツグフロツプ回路7と、否定回路8と、記憶
回路3にアドレスを供給するアドレスレジスタ回路9と
、同一連続データを計数する計数回路10と、アドレス
レジスタ回路9の計数を制御する論理積回路11と、記
憶回路3の出力データを格納する出力データレジスタ回
路12とから構成されている。
Referring to FIG. 1, which shows a block diagram of an exemplary embodiment of the present invention, the tracer circuit of the present invention includes an input register circuit l;
An input register circuit 2, a memory circuit 3, a comparison match detection circuit 4, an AND circuit 5 as a control circuit for controlling write information in the memory circuit 3, and a counting circuit 10.
an AND circuit 6 for controlling the count signal of , an AND circuit 11 that controls the counting of the address register circuit 9, and an output data register circuit 12 that stores the output data of the memory circuit 3.

クロック信号100はトレース開始指示7リツプフロツ
プ回路7と論理積回路6および11と入力レジスタ回路
1と入力レジスタ回路2と計数回路10とアドレスレジ
スタ回路9および出力データレジスタ回路12に入力し
、入力データ信号102は入力レジスタ回路lに入力し
、入力レジスタ回路1の出力信号103は入力レジスタ
回路2と比較−玖検出回路4に入力し、入力レジスタ回
路2の出力信号104は記憶回M3と比較一致検出回路
4に入力し、比較一致検出回路4の正出力信号105は
論理積回路6に入力し、同じく負出力信号106は論理
積回路5と論理積回路11に入力し、論理積回路5の出
力信号107は記憶回路3に入力し、論理積回路6の出
力信号108は計数回路10に入力し、入力信号109
は否定回路8およびトレース開始指示クリップ70ツブ
回路7に入力し、ま友入力信号110も前記トレース開
始指示7す°ツブフロ21回路7に入力し、否定回路8
の出力信号111はアドレスレジスタ回路9と計数回路
10に入力し、トレース開始指示フリップフロップ回路
7の出力信号112は論理積回路5および6に入力し、
アドレスレジスタ回路9の出力信号113は記憶回路3
に入力し、計数回路10の出力信号114も記憶回路3
に入力し、論理積回路110正出力信号115はアドレ
スレジスタ回路9に入力し、同じく負出力信号116は
計数回路10に入力し、記憶回路3の出力信号117は
出力データレジスタ回路12に入力し、前記出力データ
レジスタ回路12の出力信号118は他の論理回路を経
由してトレースデータとして処理され、書込み信号10
1は論理積回路5に入力する。
The clock signal 100 is input to the trace start instruction 7, the lip-flop circuit 7, the AND circuits 6 and 11, the input register circuit 1, the input register circuit 2, the counting circuit 10, the address register circuit 9, and the output data register circuit 12, and outputs the input data signal. 102 is input to the input register circuit 1, the output signal 103 of the input register circuit 1 is compared with the input register circuit 2 and input to the detection circuit 4, and the output signal 104 of the input register circuit 2 is compared with the memory circuit M3 to detect a match. The positive output signal 105 of the comparison match detection circuit 4 is input to the AND circuit 4, and the negative output signal 106 is input to the AND circuit 5 and the AND circuit 11, and the output of the AND circuit 5 is input to the AND circuit 5. The signal 107 is input to the memory circuit 3, the output signal 108 of the AND circuit 6 is input to the counting circuit 10, and the input signal 109
is input to the inverter 8 and the trace start instruction clip 70 tube circuit 7, and the friend input signal 110 is also input to the trace start instruction clip 70 tube flow 21 circuit 7, and the inverter 8
The output signal 111 of is input to the address register circuit 9 and the counting circuit 10, the output signal 112 of the trace start instruction flip-flop circuit 7 is input to the AND circuits 5 and 6,
The output signal 113 of the address register circuit 9 is the memory circuit 3
The output signal 114 of the counting circuit 10 is also input to the memory circuit 3.
The positive output signal 115 of the AND circuit 110 is input to the address register circuit 9, the negative output signal 116 is input to the counting circuit 10, and the output signal 117 of the memory circuit 3 is input to the output data register circuit 12. , the output signal 118 of the output data register circuit 12 is processed as trace data via another logic circuit, and the output signal 118 of the output data register circuit 12 is processed as trace data.
1 is input to the AND circuit 5.

次に第1図のブロック図と第2図のタイミングチャート
図を参照して動作を説明する。まずトレース開始指示フ
リップフロップ回路7がアクティブとなり出力信号11
2が111となっている時、入力データ信号102を入
力レジスタ回路1および入力レジスタ回路2を畦由して
両レジスタ回路の出力信号103.lQ4を比較一致検
出回路に入力し、比較一致していない時、負出力信号1
06が111とな)、入力データは同一データでないと
解釈して、記憶回路3に入力レジスタ回路2の出力信号
104は書込まれる。それと同時にアドレスレジスタ回
路9は+1加算される。その時、計数回路10は動作し
ない。しかしながら入力データ信号102に同一連続デ
ータが入力してくると、比較一致検出回路40正出力信
号105は 。
Next, the operation will be explained with reference to the block diagram of FIG. 1 and the timing chart of FIG. 2. First, the trace start instruction flip-flop circuit 7 becomes active and the output signal 11
2 is 111, the input data signal 102 is passed through the input register circuit 1 and the input register circuit 2 to output the output signal 103.2 of both register circuits. lQ4 is input to the comparison match detection circuit, and when the comparison does not match, the negative output signal 1
06 becomes 111), the input data are interpreted as not being the same data, and the output signal 104 of the input register circuit 2 is written into the storage circuit 3. At the same time, +1 is added to the address register circuit 9. At that time, the counting circuit 10 does not operate. However, when the same continuous data is input to the input data signal 102, the positive output signal 105 of the comparison match detection circuit 40 becomes as follows.

01”となシ、負出力信号106唸’O’となる。01'', the negative output signal 106 becomes 'O'.

負出力信号106がMOmとなると、論理積回路5の出
力信号107は10壷となシ、人カレジスタ回路20出
力信号104は記憶回路3には書きこまれない。ま九ア
ドレスレジスタ回路9の+1加算信号を出力する論理積
回路11の出力信号115は101となり、アドレスレ
ジスタ回路9の値は変化しない。また同時に前記論理回
路11の負出力信号116は111となシ、計数回路l
Oは+1加算される。計数回路10は同一連続データが
何回続いているかを計数する機詫金有している。そして
同一連続データがとぎれた時に、入力データレジスタ回
路2の出力信号104と計数回路10の出力信号114
が同時に記憶回路3に畳込まれる。同一連続データが続
いている間は以上の動作が連続して、アドレスレジスタ
回路90値は変化せず、計数回路は+1動作を続行し、
また一時記憶回路3にはデータは書込まれない。
When the negative output signal 106 becomes MOm, the output signal 107 of the AND circuit 5 becomes 10, and the output signal 104 of the human register circuit 20 is not written into the memory circuit 3. The output signal 115 of the AND circuit 11 which outputs the +1 addition signal of the address register circuit 9 becomes 101, and the value of the address register circuit 9 does not change. At the same time, the negative output signal 116 of the logic circuit 11 becomes 111, and the counting circuit l
+1 is added to O. The counting circuit 10 has a compensation circuit that counts how many times the same continuous data continues. When the same continuous data is interrupted, the output signal 104 of the input data register circuit 2 and the output signal 114 of the counting circuit 10
are convoluted into the memory circuit 3 at the same time. As long as the same continuous data continues, the above operations continue, the address register circuit 90 value does not change, and the counting circuit continues the +1 operation.
Further, no data is written to the temporary storage circuit 3.

そして同一連続データが終了すると、比較一致検出回路
4の正の出力信号105は101に、負出力信号106
は11′に変化し、記憶回路3に書込み動作が行なわれ
る。
When the same continuous data ends, the positive output signal 105 of the comparison match detection circuit 4 becomes 101, and the negative output signal 106 becomes 101.
changes to 11', and a write operation is performed in the memory circuit 3.

書込まれたトレースデータは読出しモード時に    
 1出力デ一タレジスタ回路12Km出され、出力デー
タレジスタ回路12の出力信号118にてトレースデー
タとして送出され、出力される。
The written trace data is stored in read mode.
One output data register circuit 12Km is outputted, and the output signal 118 of the output data register circuit 12 is sent as trace data and output.

このように同一連続データが入力した時には、−[のみ
七のデータを誉込み、また同時に連続した回数をデータ
と一緒に記憶しておくことにより、入力データが変化し
た時のみ記憶回路3に誉込むこととし、また同時に連続
した回路を計数回路10で計数した結果を同時に記憶回
路3に書込む方式にすることによ)、トレース本来の機
能をそこねることなく、ま九記憶回wrt−よシ有効に
使用でき、よう安価とすることができる利点が生じる。
In this way, when the same continuous data is input, by storing the data of -[ only 7 and simultaneously storing the consecutive number of times together with the data, the data is stored in the memory circuit 3 only when the input data changes. By simultaneously writing the results of counting successive circuits in the counting circuit 10 into the memory circuit 3), it is possible to increase the number of memory cycles without impairing the original trace function. It has the advantage of being able to be used effectively and being inexpensive.

発明の効果 以上に説明したように、本発明によれば、トレースする
入力データが同一連続データの時は1にのみ記憶回路に
書込み、また同時に連続した回数を計数し、その値も同
時に誉込むことにより、本来のトレース機能をそこなう
ことなく、記憶回路の有効利用が可能となり、安価なト
レース回路を提供できる効果がるる0   ゛
Effects of the Invention As explained above, according to the present invention, when the input data to be traced is the same continuous data, only 1 is written into the memory circuit, and the number of consecutive times is counted at the same time, and the value is also recorded at the same time. This makes it possible to effectively utilize the memory circuit without impairing the original trace function, and has the effect of providing an inexpensive trace circuit.

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

稟1図は本発明の実施例の基本ブロック図、第2図は本
発明の実施例の基本タイミングチャート図である。 1・・・・・・入力レジスタ回路、2・・・・・・入力
レジスタ回路、3・・・・・・記憶回路、4・・・・・
・比較(一致検出)回路、5・・・・・・論理積回路、
6・・・・・・論理積回路、7・・−・・・トレース開
始指示クリップ70ツブ(ロ)路、8・・・・・−否定
回路、9・・・・・・アドレスレジスタ回路、10・・
・・・・計数回路、11・・・・−・論理積回路、12
・・・・・・出力データレジスタ回路、100・・・・
・・クロック信号、101・・・・・・書込み信号、1
02・・・・・・入力データ信号。
Figure 1 is a basic block diagram of an embodiment of the present invention, and Figure 2 is a basic timing chart diagram of an embodiment of the present invention. 1... Input register circuit, 2... Input register circuit, 3... Memory circuit, 4...
・Comparison (match detection) circuit, 5......AND circuit,
6...AND circuit, 7...Trace start instruction clip 70 block, 8...NOT circuit, 9...Address register circuit, 10...
...Counting circuit, 11 ...--Logic AND circuit, 12
...Output data register circuit, 100...
...Clock signal, 101...Write signal, 1
02...Input data signal.

Claims (1)

【特許請求の範囲】[Claims] トレースする入力データを格納するレジスタ回路1と、
前記レジスタ回路1に接続するレジスタ回路2と、前記
レジスタ回路1およびレジスタ回路2の出力を比較する
比較回路と、前記レジスタ回路2の出力を格納する記憶
回路と、前記記憶回路はアドレスを供給するトレースア
ドレスレジスタ回路と、前記比較回路により同一連続デ
ータを検出した時に、前記記憶回路への書き込みを禁止
する制御回路とを有するトレーサ回路において、前記比
較回路が同一連続データを検出した時に、その回数を計
数する計数回路を設け、前記記憶回路に最初のデータの
書き込みを行ったのち、前記計数回路の計数出力を記憶
回路に格納するようにしたことを特徴とするトレーサ回
路。
a register circuit 1 that stores input data to be traced;
a register circuit 2 connected to the register circuit 1; a comparison circuit that compares the outputs of the register circuit 1 and the register circuit 2; a memory circuit that stores the output of the register circuit 2; and the memory circuit supplies an address. In a tracer circuit having a trace address register circuit and a control circuit that prohibits writing to the storage circuit when the same continuous data is detected by the comparison circuit, the number of times when the comparison circuit detects the same continuous data What is claimed is: 1. A tracer circuit comprising: a counting circuit for counting , and after writing initial data into said memory circuit, the counting output of said counting circuit is stored in said memory circuit.
JP59251953A 1984-11-30 1984-11-30 Tracer circuit Pending JPS61131132A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59251953A JPS61131132A (en) 1984-11-30 1984-11-30 Tracer circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59251953A JPS61131132A (en) 1984-11-30 1984-11-30 Tracer circuit

Publications (1)

Publication Number Publication Date
JPS61131132A true JPS61131132A (en) 1986-06-18

Family

ID=17230438

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59251953A Pending JPS61131132A (en) 1984-11-30 1984-11-30 Tracer circuit

Country Status (1)

Country Link
JP (1) JPS61131132A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009163325A (en) * 2007-12-28 2009-07-23 Panasonic Corp Information processor

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009163325A (en) * 2007-12-28 2009-07-23 Panasonic Corp Information processor

Similar Documents

Publication Publication Date Title
EP0468454B1 (en) Interrupt controller
JPS61118850A (en) Microprocessor
US4480277A (en) Information processing system
JPS61131132A (en) Tracer circuit
US20020004861A1 (en) DMA controller in which bus access ratio can be set
JPH07210468A (en) Semiconductor auxiliary memory
JPS61269751A (en) Apparatus and method for using auxiliary data memory in data processing memory having independent program memory unit and data memory unit
JPH0222748A (en) Non-volatile memory control circuit
JPS62241044A (en) History information collecting device
JPS6184746A (en) Tracer memory data recording circuit
JPS6391756A (en) Partial write instruction processing system for storage device
JPH0447350A (en) Main storage read/response control
JPH03100851A (en) Fifo storage device
JPS61237145A (en) Controlling system for store buffer
JPS6145359A (en) Information processor
SU630645A1 (en) Buffer storage
JPH0261721A (en) Buffer memory controller
SU1376091A1 (en) Device for interfacing users with computer
JPS61161560A (en) Memory device
JPS60239871A (en) Vector data processor
JPS61246848A (en) Operation hysteresis storage circuit
JPS60221857A (en) Microprocessor system
JPH03142774A (en) Memory applying circuit
JPH1068761A (en) Fail search circuit
JPS62130436A (en) Trace controller