JPH0419579B2 - - Google Patents

Info

Publication number
JPH0419579B2
JPH0419579B2 JP61023885A JP2388586A JPH0419579B2 JP H0419579 B2 JPH0419579 B2 JP H0419579B2 JP 61023885 A JP61023885 A JP 61023885A JP 2388586 A JP2388586 A JP 2388586A JP H0419579 B2 JPH0419579 B2 JP H0419579B2
Authority
JP
Japan
Prior art keywords
queue
information
circuit
trace
bus cycle
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.)
Expired - Lifetime
Application number
JP61023885A
Other languages
Japanese (ja)
Other versions
JPS62182946A (en
Inventor
Yasuyuki Oguma
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.)
Anritsu Corp
Original Assignee
Anritsu 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 Anritsu Corp filed Critical Anritsu Corp
Priority to JP61023885A priority Critical patent/JPS62182946A/en
Publication of JPS62182946A publication Critical patent/JPS62182946A/en
Publication of JPH0419579B2 publication Critical patent/JPH0419579B2/ja
Granted legal-status Critical Current

Links

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、キユーバツフアを備えたCPUのバ
ス情報と、該CPUが出力するキユー情報をトレ
ースするトレース回路において、バスサイクルご
とにキユー情報をまとめて複数ビツトのキユーの
変化情報となし、該キユーの変化情報とバス情報
とをバスサイクルごとにトレースするトレース回
路に関するものである。
Detailed Description of the Invention (Industrial Application Field) The present invention provides a trace circuit that traces bus information of a CPU equipped with a queue buffer and queue information output by the CPU, which summarizes queue information for each bus cycle. The present invention relates to a trace circuit that uses a plurality of bits of queue change information to trace the queue change information and bus information for each bus cycle.

(従来の技術) 従来、キユーバツフアを備えたCPUのトレー
ス回路としては、第3図に示される回路が用いら
れていた。すなわち第3図において、1はトレー
ス回路であり、2はキユーバツフアを備えた
CPUである。CPU2が出力するバスの内容、バ
ス制御情報、キユー情報をトレースするトレース
回路1は、バストレースタイミング検出回路3、
キユー情報トレースタイミング検出回路4、トレ
ースクロツク・フレーム情報発生回路5、記憶回
路6で構成されている。バストレースタイミング
検出回路3はCPU2のバス制御情報が接続され
ており、複数クツロクから構成されるバスサイク
ルのトレースタイミングを作成している。キユー
情報トレースタイミング検出回路4は、クロツク
毎に変化するCPU2のキユー情報が接続されて
おり、キユー情報のトレースタイミングを作成し
ている。トレースクロツク・フレーム情報発生回
路5は、バストレースタイミング検出回路3から
出力されるバスサイクルのトレースタイミング信
号と、キユー情報トレースタイミング検出回路4
から出力されるキユー情報トレースタイミング信
号との両方からトレースクロツクを出力すると同
時に、該クロツクがバスのトレースタイミングか
キユー情報トレースタイミングかを区別するフレ
ーム情報を出力している。記憶回路6はトレース
クロツク毎に該記憶回路6のアドレスを更新しな
がら、CPU2が出力するバスの内容、バス制御
情報、キユー情報、フレーム情報をトレースして
いた。
(Prior Art) Conventionally, a circuit shown in FIG. 3 has been used as a trace circuit for a CPU equipped with a queue buffer. That is, in FIG. 3, 1 is a trace circuit, and 2 is a CPU equipped with a queue buffer. The trace circuit 1 that traces the bus contents, bus control information, and queue information output by the CPU 2 includes a bus trace timing detection circuit 3,
It consists of a queue information trace timing detection circuit 4, a trace clock/frame information generation circuit 5, and a storage circuit 6. The bus trace timing detection circuit 3 is connected to the bus control information of the CPU 2, and creates the trace timing of a bus cycle consisting of a plurality of clocks. The queue information trace timing detection circuit 4 is connected with the queue information of the CPU 2 which changes every clock, and creates the trace timing of the queue information. The trace clock/frame information generation circuit 5 receives the bus cycle trace timing signal output from the bus trace timing detection circuit 3 and the queue information trace timing detection circuit 4.
The trace clock is output from both the queue information trace timing signal output from the queue information trace timing signal output from the queue information trace timing signal outputted from the queue information trace timing signal, and at the same time, frame information for distinguishing whether the clock is a bus trace timing or a queue information trace timing is outputted. The memory circuit 6 traces the bus contents, bus control information, queue information, and frame information output by the CPU 2 while updating the address of the memory circuit 6 every trace clock.

(発明が解決しようとする問題点) しかしながら、このようなトレースクロツク毎
に記憶回路6を動作させる従来のトレース回路1
では、第4図に示された様にキユー情報、例えば
A,B,C,D等のCPUのクロツク毎に連続し
て発生する場合があるので、記憶回路6や記憶回
路6の制御回路部はその動作の高速性が要求さ
れ、CPUのクロツク1個でトレースを完了させ
ておかなければならない欠点があつた。またキユ
ー情報をトレースするタイミングでも、本来トレ
ースする必要のないバス情報や、バス制御情報を
もトレースしてしまうため、記憶回路6の使用効
率が悪い欠点があつた。
(Problems to be Solved by the Invention) However, the conventional trace circuit 1 operates the memory circuit 6 for each trace clock.
As shown in FIG. 4, cue information such as A, B, C, D, etc. may be generated continuously for each CPU clock, so the memory circuit 6 and the control circuit section of the memory circuit 6 may requires high-speed operation, and has the disadvantage that tracing must be completed with one CPU clock. Furthermore, even at the timing of tracing queue information, bus information and bus control information that do not originally need to be traced are also traced, resulting in a disadvantage that the storage circuit 6 is not used efficiently.

本発明は、上記の欠点を解決することを目的と
しており、バスサイクルの或る予め定められた特
異点から次のバスサイクルの前記特異点までに発
生した一連のキユー情報をキユーの変化情報とし
てとらえ、このキユーの変化情報をパターンとし
て複数ビツトのコードに変換し、前記特異点間毎
に前記キユーの変化情報としてとらえられ変換さ
れたコードを記憶回路にトレースすることによ
り、トレース回路の高速動作を低速動作にできる
とともに、記憶回路の使用効率を向上させるトレ
ース回路を提供することを目的としている。
The present invention aims to solve the above-mentioned drawbacks, and uses a series of queue information generated from a certain predetermined singular point of a bus cycle to the singular point of the next bus cycle as queue change information. By capturing this queue change information as a pattern and converting it into a multi-bit code, and tracing the converted code captured as the queue change information between the singular points to a storage circuit, high-speed operation of the trace circuit is achieved. It is an object of the present invention to provide a trace circuit that can operate at a low speed and improve the usage efficiency of the memory circuit.

(問題点を解決するための手段) そのため本発明のトレース回路はキユーバツフ
アを備えたCPUのキユーの変化情報をトレース
するトレース回路において、すべてのバスサイク
ルにそれぞれ一回だけ出現する特徴的な遷移状態
を示す特異点を検出する検出回路と、一つのバス
サイクルの特異点から次のバスサイクルの特異点
までに発生したキユーの変化情報を複数ビツトの
信号に表わし、この信号を前記バスサイクルの特
異点の後に出力するキユー情報変換回路と、該キ
ユー情報変換回路の出力を記憶する記憶回路とを
備えたことを特徴としている。
(Means for Solving the Problem) Therefore, the trace circuit of the present invention has a characteristic transition state that appears only once in every bus cycle in a trace circuit that traces queue change information of a CPU equipped with a queue buffer. A detection circuit that detects a singular point indicating a singularity of the bus cycle, and a detection circuit that expresses information on changes in queues that occur from a singular point of one bus cycle to a singular point of the next bus cycle in a multi-bit signal, and uses this signal to detect a singularity of the bus cycle. The present invention is characterized in that it includes a cue information conversion circuit that outputs the output after the point, and a storage circuit that stores the output of the cue information conversion circuit.

以下図面を参照しながら本発明の一実施例を説
明する。
An embodiment of the present invention will be described below with reference to the drawings.

(実施例) 第1図は本発明に係るトレース回路の一実施例
構成、第2図はそのタイムチヤートを示してい
る。
(Embodiment) FIG. 1 shows the configuration of an embodiment of a trace circuit according to the present invention, and FIG. 2 shows its time chart.

第1図において、11はトレース回路、12は
検出回路、13はキユー情報変換回路、14は記
憶回路、15はCPUを表わしている。
In FIG. 1, 11 represents a trace circuit, 12 a detection circuit, 13 a queue information conversion circuit, 14 a storage circuit, and 15 a CPU.

トレース回路11はトレースの対象となつてい
るCPU15の動作過程をトレースするものであ
り、CPU15に接続されているバスに現われる
情報、すなわちアドレス及びデータ、CPU15
が出力するバス制御情報、キユー情報を必要に応
じ選択的に記憶回路14に記憶させる。トレース
回路11のトレース対象となつている該CPU1
5は、その内部に有限個のキユーバツフアを備え
ており、図示されていないROM等を介してバス
から取り込まれた命令コードを一度上記キユーバ
ツフアに入れ、該CPU15のバスサイクルとは
非同期にキユーバツフアの内容を順次実行してい
る。そして該CPU15はキユーバツフアの内容
が実行される過程を示すためキユー情報を出力し
ている。
The trace circuit 11 traces the operation process of the CPU 15, which is the object of tracing, and traces the information appearing on the bus connected to the CPU 15, that is, addresses and data, and the CPU 15.
The bus control information and queue information outputted by the controller are selectively stored in the storage circuit 14 as necessary. The CPU 1 that is being traced by the trace circuit 11
5 has a finite number of queue buffers inside it, and once the instruction code taken in from the bus via a ROM (not shown) is input into the queue buffer, the contents of the queue buffer are stored asynchronously with the bus cycle of the CPU 15. are executed sequentially. The CPU 15 outputs queue information to indicate the process by which the contents of the queue buffer are executed.

一方検出回路12はCPU15から出力される
バス制御情報を常時監視しており、CPU15の
すべてのバスサイクルの中に必ず発生し、かつそ
の発生回数が一度である特異点を検出している。
このバスサイクルの特異点としては、例えばバス
に現われたアドレスが有効であることを表示する
制御信号の立上り時点、バスに現われた上記アド
レスが無効であることを表示する制御信号の立下
り時点、或いはリード信号とライト号のオアをと
つた時点の信号出現時点等が存在する。前記検出
回路12がこの特異点を検出することによつて、
複数個のクロツクで構成されるバスサイクルを1
区間として区切ることができる。
On the other hand, the detection circuit 12 constantly monitors the bus control information output from the CPU 15, and detects a singular point that always occurs during every bus cycle of the CPU 15 and occurs only once.
Singular points in this bus cycle include, for example, the rising edge of a control signal indicating that the address appearing on the bus is valid, the falling edge of a control signal indicating that the address appearing on the bus is invalid, Alternatively, there is a signal output point at which the read signal and the write signal are ORed. By the detection circuit 12 detecting this singular point,
One bus cycle consists of multiple clocks.
It can be divided into sections.

第2図は、この特異点として上記バスサイクル
に現われたアドレスが無効となることを表示する
制御信号(アドレス有効信号)の立上り時点を選
んだときのタイムチヤートが示されており、検出
回路12は各バスサイクルの終りのクロツクでそ
の検出信号を出力している。今後この検出信号を
タイミング信号と呼ぶことにする。
FIG. 2 shows a time chart when the rise point of the control signal (address valid signal) indicating that the address appearing in the bus cycle becomes invalid is selected as this singular point, and the detection circuit 12 outputs its detection signal at the clock at the end of each bus cycle. From now on, this detection signal will be referred to as a timing signal.

後に説明するキユーの深さ情報とCPU15か
ら出力されるキユー情報とをキユー情報変換回路
13は検出回路12から出力されるタイミング信
号によつて区切り、該タイミング信号によつて区
切られる1区間内の前記キユー情報、キユー情報
の順序、キユーの深さ情報の少なくとも一つの情
報が容易に推測できるパターンとしてとらえ、こ
のパターンを複数ビツトでコード化し、キユーの
変化情報として出力する。ここでキユーの深さ情
報とはCPU15のキユーバツフア内にあつて、
実行されるべき命令コードの数をいい、キユー情
報とバス制御情報とから得られるキユーバツフア
の現在使用数の情報をいう。
The queue information conversion circuit 13 divides queue depth information, which will be described later, and queue information output from the CPU 15 using a timing signal output from the detection circuit 12, and divides the queue depth information and the queue information output from the CPU 15 into sections within one section divided by the timing signal. At least one of the cue information, the order of the cue information, and the cue depth information is taken as a pattern that can be easily guessed, and this pattern is encoded with a plurality of bits and output as cue change information. Here, the queue depth information is within the queue buffer of the CPU 15,
This refers to the number of instruction codes to be executed, and refers to information on the number of queue buffers currently in use obtained from queue information and bus control information.

記憶回路14はキユー情報変換回路13で得ら
れた1区間についてのキユーの変化情報とその他
のバス情報とを1つの区間を区切るタイミング信
号ごとに記憶する回路である。そして該記憶回路
14は、複数個のクロツクで構成される次の1区
間の早いクロツクで前記キユーの変化情報等を記
憶する。
The storage circuit 14 is a circuit that stores the queue change information for one section obtained by the queue information conversion circuit 13 and other bus information for each timing signal that separates one section. Then, the memory circuit 14 stores the cue change information, etc. using the next faster clock of one section, which is composed of a plurality of clocks.

次に、本発明の一実施例の動作を第2図のタイ
ムチヤートとともに説明する。
Next, the operation of one embodiment of the present invention will be explained with reference to the time chart shown in FIG.

検出回路12は第1図で説明した如く、バスサ
イクルの特異的をバス制御情報から検出してお
り、上記の例ではバスに現われたアドレスが無効
となるアドレス有効信号の立上り時点を特異点と
して検出している。従つて該検出回路12は第1
のクロツク、第6のクロツク及び第12のクロツク
の各立下りにタイミング信号を出力する。このタ
イミング信号によつて複数のクロツクで構成され
るバスサイクルが、バスサイクル1、バスサイク
ル2という様に1区間として区切られる。
As explained in FIG. 1, the detection circuit 12 detects the peculiarity of the bus cycle from the bus control information, and in the above example, the singular point is the rising edge of the address valid signal at which the address appearing on the bus becomes invalid. Detected. Therefore, the detection circuit 12
A timing signal is output at each falling edge of the 1st clock, the 6th clock, and the 12th clock. By this timing signal, a bus cycle composed of a plurality of clocks is divided into one section, such as bus cycle 1 and bus cycle 2.

CPU15はクロツクごとにキユー情報を出力
するが、トレース回路11はバスサイクルで生じ
るCPU15の実行過程を対象にトレースするも
のであるから、バスサイクル1として区切られた
バスサイクルにおけるCPU15が出力するキユ
ー情報を今A,B,C,Dとし、またバスサイク
ル2として区切られたバスサイクルにおける
CPU15が出力するキユー情報をB,C,A,
Cとする。キユー情報変換回路13は、区切られ
たバスサイクル1内に送られてくるバスサイクル
についてのシリーズのキユー情報A,B,C,D
を1つのパターンとしてとらえ、すなわち「A,
B,C,D」というパターン(A,B,C,Dと
いう順序も含む)をキユーの変化情報として複数
のビツトでコード化し、該「A,B,C,D」と
いうキユーの変化情報のコードを記憶回路14に
記憶させる。同様に、区切られたバスサイクル2
内に送られてくるバスサイルについてのシリーズ
のキユー情報B,C,A,Cがパターン「B,
C,A,C」すなわち「B,C,A,C」という
キユーの変化情報のコードに変化され、この変換
されたコードが記憶回路14に記憶される。
The CPU 15 outputs queue information for each clock, but since the trace circuit 11 traces the execution process of the CPU 15 that occurs in a bus cycle, the queue information output by the CPU 15 in a bus cycle divided as bus cycle 1 are now A, B, C, D, and the queue information output by the CPU 15 in the bus cycle divided as bus cycle 2 is B, C, A,
Let it be C. The queue information conversion circuit 13 converts series queue information A, B, C, D regarding the bus cycle sent within the divided bus cycle 1.
is regarded as one pattern, that is, “A,
The pattern "B, C, D" (including the order of A, B, C, D) is encoded with multiple bits as cue change information, and the cue change information "A, B, C, D" is encoded as cue change information. The code is stored in the storage circuit 14. Similarly, delimited bus cycle 2
The queue information B, C, A, C of the series about the bussail sent within is the pattern "B,
C, A, C", that is, "B, C, A, C", and this converted code is stored in the storage circuit 14.

キユー情報変換回路13でキユーの変化情報に
変換されたコードは、次のキユーの変換情報に変
換されたコードがキユー情報変換回路13に発生
する前までに記憶回路14に記憶しておけばよい
ので、記憶回路14の高速性が緩和される。すな
わち、低速動作が可能となる。
The code converted into cue change information by the cue information conversion circuit 13 may be stored in the storage circuit 14 before the code converted to the next cue conversion information is generated in the cue information conversion circuit 13. Therefore, the high speed performance of the memory circuit 14 is relaxed. In other words, low-speed operation is possible.

内部にキユーバツフアを備えたCPU15にお
いて、キユーバツフアのキユーの深さ、すなわち
キユーバツフアに入つている有効なデータの数
は、キユー情報変換回路13で次のように処理さ
れる。すなわち該キユー情報変換回路13にはキ
ユーバツフアの記憶段数に対応した数のビツト列
(例えばレジスタ等を使用)が用意されており、
かつキユーバツフアの各記憶段は上記ビツト列に
それぞれ1対1に対応付けられている。
In the CPU 15 having an internal queue buffer, the queue depth of the queue buffer, that is, the number of valid data stored in the queue buffer, is processed by the queue information conversion circuit 13 as follows. That is, the queue information conversion circuit 13 is prepared with a number of bit strings (using registers, etc., for example) corresponding to the number of storage stages of the queue buffer.
In addition, each storage stage of the queue buffer is in one-to-one correspondence with the above-mentioned bit string.

そして第2図に示されたバスサイクル1、バス
サイクル2の各最終クロツク時において、キユー
情報変換回路13内の上記ビツト列の内容が記憶
回路14へ転送され記憶される。
Then, at each final clock of bus cycle 1 and bus cycle 2 shown in FIG. 2, the contents of the bit string in the queue information conversion circuit 13 are transferred to the storage circuit 14 and stored therein.

上記の説明ではキユーの変化情報とキユーの深
さとを別々に説明したが、これらはキユー情報変
換回路13で同時に、すなわち区切られたバスサ
イクル1、バスサイクル2内でそれぞれキユーの
変化情報とキユーの深さ情報とが1個のデータと
して記憶回路14に記憶される。これから明らか
な様に区切られたバスサイクル毎に1つのデータ
として記憶されるので記憶回路14が有効に使用
されることになる。
In the above explanation, queue change information and queue depth were explained separately, but these are simultaneously processed in the queue information conversion circuit 13, that is, queue change information and queue depth, respectively, in separated bus cycles 1 and 2. depth information is stored in the storage circuit 14 as one piece of data. As is clear from this, since one piece of data is stored for each divided bus cycle, the storage circuit 14 is effectively used.

(発明の効果) 以上説明した如く、本発明によれば、バスサイ
クルの特異点で区切られバスサイクル毎にキユー
の変化情報及びキユーの深さをまとめた1データ
としてトレースするようにしたので、トレース回
路の高速動作を低速動作にすることができるとと
もに、記憶回路の使用効率を向上させることがで
きる。
(Effects of the Invention) As explained above, according to the present invention, the queue change information and the queue depth are traced as one data that is divided at the singular point of the bus cycle and summarized for each bus cycle. The high-speed operation of the trace circuit can be reduced to a low-speed operation, and the usage efficiency of the memory circuit can be improved.

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

第1図は本発明に係るトレース回路の一実施例
構成、第2図はそのタイムチヤート、第3図は従
来のトレース回路の構成例、第4図はそのタイム
チヤートである。 図中、11はトレース回路、12は検出回路、
13はキユー情報変換回路、14は記憶回路、1
5はCPUである。
FIG. 1 shows the configuration of an embodiment of the trace circuit according to the present invention, FIG. 2 shows its time chart, FIG. 3 shows an example of the configuration of a conventional trace circuit, and FIG. 4 shows its time chart. In the figure, 11 is a trace circuit, 12 is a detection circuit,
13 is a cue information conversion circuit, 14 is a storage circuit, 1
5 is a CPU.

Claims (1)

【特許請求の範囲】 1 キユーバツフアを備えたCPUのキユーの変
化情報をトレースするトレース回路において、 すべてのバスサイクルにそれぞれ一回だけ出現
する特徴的な遷移状態を示す特異点を検出する検
出回路12と、 一つのバスサイクルの特異点から次のバスサイ
クルの特異点までに発生したキユーの変化情報を
複数ビツトの信号に表わし、この信号を前記バス
サイクルの特異点の後に出力するキユー情報変換
回路13と、 該キユー情報変換回路の出力を記憶する記憶回
路14とを備えたトレース回路。
[Claims] 1. A detection circuit 12 that detects a singular point indicating a characteristic transition state that appears only once in every bus cycle in a trace circuit that traces queue change information of a CPU equipped with a queue buffer. and a queue information conversion circuit that expresses information on queue changes occurring from the singular point of one bus cycle to the singular point of the next bus cycle in a multi-bit signal, and outputs this signal after the singular point of the bus cycle. 13; and a storage circuit 14 for storing the output of the queue information conversion circuit.
JP61023885A 1986-02-07 1986-02-07 Tracing circuit Granted JPS62182946A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61023885A JPS62182946A (en) 1986-02-07 1986-02-07 Tracing circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61023885A JPS62182946A (en) 1986-02-07 1986-02-07 Tracing circuit

Publications (2)

Publication Number Publication Date
JPS62182946A JPS62182946A (en) 1987-08-11
JPH0419579B2 true JPH0419579B2 (en) 1992-03-30

Family

ID=12122900

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61023885A Granted JPS62182946A (en) 1986-02-07 1986-02-07 Tracing circuit

Country Status (1)

Country Link
JP (1) JPS62182946A (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2804934B2 (en) * 1989-08-04 1998-09-30 株式会社日立超エル・エス・アイ・システムズ System development equipment

Also Published As

Publication number Publication date
JPS62182946A (en) 1987-08-11

Similar Documents

Publication Publication Date Title
US20020026466A1 (en) Arithmetic unit and data processing unit
JP2002163127A (en) Trace control circuit
JPH0419579B2 (en)
JPH02159624A (en) First-in first-out register device
JPH01103341A (en) Address detecting circuit
US20020004881A1 (en) Data transfer apparatus and data transfer method
JP2689755B2 (en) Destuff control circuit
JPS5776604A (en) Numeric controller
SU1084800A2 (en) Parity check device for binary code
JP2536489B2 (en) Compressed data decoding device
JP2504974B2 (en) Sequencer high-speed processing method
SU1223346A1 (en) Non-recursive digital filter
JPH036705A (en) Sequence controller
KR100557933B1 (en) Structure of write buffer for raise the efficiency of bus
SU1383327A1 (en) Device for delaying digital information
SU1387004A2 (en) N-sensors-to-computer interface
JPH03209544A (en) Memory control circuit
SU1429122A2 (en) Device for interfacing n sensors with computer
JP2764024B2 (en) Storage device table indexing method and indexing device
JP2005250951A (en) Data column shaping device
JPH0419578B2 (en)
JPS6376641A (en) Synchronizing pattern detecting circuit
JPH0432922A (en) Interface control circuit
JPS61224731A (en) Changing point detection system
JPS6229812B2 (en)