JPH04283842A - Tracing control system - Google Patents

Tracing control system

Info

Publication number
JPH04283842A
JPH04283842A JP3048043A JP4804391A JPH04283842A JP H04283842 A JPH04283842 A JP H04283842A JP 3048043 A JP3048043 A JP 3048043A JP 4804391 A JP4804391 A JP 4804391A JP H04283842 A JPH04283842 A JP H04283842A
Authority
JP
Japan
Prior art keywords
interval
trace
data
register
number register
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.)
Withdrawn
Application number
JP3048043A
Other languages
Japanese (ja)
Inventor
Toru Watabe
徹 渡部
Takahito Noda
敬人 野田
Yuji Kamisaka
裕士 神阪
Kazuyasu Nonomura
一泰 野々村
Takumi Maruyama
拓巳 丸山
Takumi Takeno
巧 竹野
Shinya Kato
慎哉 加藤
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 JP3048043A priority Critical patent/JPH04283842A/en
Publication of JPH04283842A publication Critical patent/JPH04283842A/en
Withdrawn legal-status Critical Current

Links

Abstract

PURPOSE:To freely trace a large range by setting a necessary tracing interval value in an interval register. CONSTITUTION:A number register 14 counts up and is updated at a specific period and a number register decoding circuit 12 decodes the data in the number register 14 and outputs an internal write enable signal when the data in the interval register 11 coincides with the data of the interval counter 13. A trace data holding circuit 16 holds trace data with the internal write enable signal, the interval register 11 holds the trace interval, and the interval counter 13 is updated every time a trace indication is made. Therefore, only when the values of the interval register 11 and interval counter 13 match each other, the trace data are held. Thus, a constant amount of trace data can be held at free intervals, so the data are rather rough, but the large range can be traced.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明は、情報処理装置における
トレース制御方式に関する。情報処理装置においては、
装置内部の各種データのトレース情報を採取する必要が
ある。このため、少ないハード量で効率の良いトレース
を行うトレース制御方式が求められている。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a trace control method in an information processing apparatus. In information processing equipment,
It is necessary to collect trace information of various data inside the device. Therefore, there is a need for a trace control method that performs efficient tracing with a small amount of hardware.

【0002】0002

【従来の技術】従来のトレース制御方式としては、例え
ば図4に示すようなものがある。図4において、まず、
初期データがナンバーレジスタ1にセットされる。外部
から供給される外部ライトイネーブル信号とナンバーレ
ジスタ1のデータがナンバーレジスタデコード回路2に
入力し、ナンバーレジスタデコード回路2は入力された
データにより内部ライトイネーブル信号0〜3を生成す
る。
2. Description of the Related Art As a conventional trace control method, there is one shown in FIG. 4, for example. In Figure 4, first,
Initial data is set in number register 1. An external write enable signal supplied from the outside and data of number register 1 are input to number register decoding circuit 2, and number register decoding circuit 2 generates internal write enable signals 0 to 3 based on the input data.

【0003】なお、ナンバーレジスタ1は外部ライトイ
ネーブル信号がオンになるたびに、ナンバーレジスタ更
新回路3により+1だけカウントアップされる。トレー
スデータ保持回路4は、内部ライトイネーブル信号によ
り、入力トレースデータを保持する。保持されたトレー
スデータは、ナンバーレジスタデコード回路2により生
成された出力選択信号により出力トレースデータ選択回
路5で選択され、外部に出力される。
[0003] The number register 1 is incremented by +1 by the number register update circuit 3 every time the external write enable signal is turned on. The trace data holding circuit 4 holds input trace data using an internal write enable signal. The held trace data is selected by the output trace data selection circuit 5 based on the output selection signal generated by the number register decoding circuit 2, and is output to the outside.

【0004】この従来のタイムチャートを図5に示す。 図5において、ナンバーレジスタ1は、0,1,2,3
とカウントアップを行った後に更新され、0のとき、内
部ライトイネーブル信号0がオン、1のとき、内部ライ
トイネーブル信号1がオンとなり、同様にカウントが2
,3のとき、内部ライトイネーブル信号2,3がオンに
なる。
FIG. 5 shows this conventional time chart. In FIG. 5, number register 1 is 0, 1, 2, 3.
When the count is 0, the internal write enable signal 0 is on, and when it is 1, the internal write enable signal 1 is on, and the count is 2.
, 3, internal write enable signals 2 and 3 are turned on.

【0005】内部ライトイネーブル信号0〜3により保
持回路4−0,4−1,4−2,4−3にはデータA,
B,C,Dが保持され、ナンバーレジスタ1による次の
周期のカウントアップでデータE,F,G,Hが保持回
路4−0,4−1,4−2,4−3に保持される。
[0005] Data A,
B, C, and D are held, and when number register 1 counts up in the next cycle, data E, F, G, and H are held in holding circuits 4-0, 4-1, 4-2, and 4-3. .

【0006】[0006]

【発明が解決しようとする課題】しかしながら、このよ
うな従来のトレース制御方式にあっては、トレースデー
タのトレースはトレース回路に供給される外部ライトイ
ネーブル信号とクロック信号に同期して毎サイクルごと
に行われるようになっており、また、一般的にトレース
データの保持回路は、かなりのハード量(FF、メモリ
など)が必要で、一度にトレース可能なトレースデータ
の量は、ハード量によりある程度自動的に決まってしま
っているため、あまり大きくない範囲を細かくトレース
したい場合は問題ないが、ある程度荒くても良いが、そ
のかわり大きな範囲を自由にトレースしたときは、必要
なトレースデータを保持することができないという問題
点があった。
[Problems to be Solved by the Invention] However, in such a conventional trace control method, trace data is traced every cycle in synchronization with an external write enable signal and a clock signal supplied to the trace circuit. In addition, the trace data holding circuit generally requires a considerable amount of hardware (FF, memory, etc.), and the amount of trace data that can be traced at one time depends on the amount of hardware. If you want to trace a not-too-large range in detail, there is no problem, but it may be rough to some extent, but instead, when tracing a large range freely, it is necessary to retain the necessary trace data. The problem was that it was not possible.

【0007】本発明は、このような従来の問題点に鑑み
てなされたものであって、大きな範囲を自由にトレース
することができるトレース制御方式を提供することを目
的とする。
The present invention has been made in view of these conventional problems, and an object of the present invention is to provide a trace control method that can freely trace a large range.

【0008】[0008]

【課題を解決するための手段】図1は本発明の原理説明
図である。図1において、14はカウントアップを行う
とともに所定周期で更新されるナンバーレジスタ、12
はインターバルレジスタ11のデータとインターバルカ
ウンタ13のデータが一致したとき、ナンバーレジスタ
14のデータをデコードして内部ライトイネーブル信号
を出力するナンバーレジスタデコード回路、16は前記
内部ライトイネーブル信号により入力トレースデータを
保持するトレースデータ保持回路、11はトレース間隔
を保持するインターバルレジスタ、13はトレース指示
のたびに更新されるインターバルカウンタである。
[Means for Solving the Problems] FIG. 1 is a diagram illustrating the principle of the present invention. In FIG. 1, numeral 14 is a number register that counts up and is updated at a predetermined period;
16 is a number register decoding circuit that decodes the data in the number register 14 and outputs an internal write enable signal when the data in the interval register 11 and the data in the interval counter 13 match; 16 is a number register decoding circuit that decodes the data in the number register 14 and outputs an internal write enable signal; A trace data holding circuit 11 holds a trace interval, an interval register 13 holds a trace interval, and an interval counter 13 is updated every time a trace instruction is issued.

【0009】[0009]

【作用】本発明においては、トレース間隔を保持するイ
ンターバルレジスタと、トレース指示のたびに更新され
るインターバルカウンタの値が一致したときのみ、ナン
バーレジスタのデータをデコードし、内部ライトイネー
ブル信号を生成し、生成された内部ライトイネーブル信
号により、トレースデータ保持回路に入力トレースデー
タを保持する。
[Operation] In the present invention, the data in the number register is decoded and an internal write enable signal is generated only when the value of the interval register that holds the trace interval matches the value of the interval counter that is updated every time a trace instruction is issued. , the input trace data is held in the trace data holding circuit by the generated internal write enable signal.

【0010】このように、自由な間隔で一定量のトレー
スデータを保持することができるため、ある程度荒いが
、その代りに大きな範囲をトレースすることができる。
[0010] In this way, since a certain amount of trace data can be held at free intervals, it is possible to trace a large range, although it is rough to some extent.

【0011】[0011]

【実施例】以下、本発明の実施例を図面に基づいて説明
する。図2および図3は本発明の一実施例を示す図であ
る。図2において、11はインターバルレジスタであり
、インターバルレジスタ11にはトレース間隔値がセッ
トされる。トレース間隔値は、必要に応じて選択される
Embodiments Hereinafter, embodiments of the present invention will be explained based on the drawings. 2 and 3 are diagrams showing an embodiment of the present invention. In FIG. 2, 11 is an interval register, and a trace interval value is set in the interval register 11. Trace spacing values are selected as needed.

【0012】インターバルレジスタ11の出力値(トレ
ース間隔値)はナンバーレジスタデコード回路12およ
びインターバルカウンタ13にそれぞれ出力される。イ
ンターバルカウンタ13は、外部ライトイネーブル信号
がオンになるたびに+1だけカウントアップされる。し
かし、更新前のインターバルカウンタ13のデータが、
インターバルレジスタ11のデータと一致したときは、
+1されるのでなく0がセットされる。
The output value (trace interval value) of the interval register 11 is output to a number register decode circuit 12 and an interval counter 13, respectively. The interval counter 13 is incremented by +1 every time the external write enable signal is turned on. However, the data of the interval counter 13 before updating is
When the data matches the interval register 11,
Instead of being added +1, it is set to 0.

【0013】インターバルカウンタ13のカウント値は
ナンバーレジスタデコード回路12に出力される。14
はナンバーレジスタであり、ナンバーレジスタ14は、
外部ライトイネーブル信号がオンになり、かつ、インタ
ーバルレジスタ11のデータとインターバルカウンタ1
3のデータが一致したときに、ナンバーレジスタ更新回
路15により+1だけカウントアップされ、また、所定
の周期で0がセットされる。
The count value of the interval counter 13 is output to the number register decoding circuit 12. 14
is a number register, and number register 14 is
The external write enable signal turns on, and the data in interval register 11 and interval counter 1
When the data of 3 match, the number register update circuit 15 counts up by +1, and also sets 0 at a predetermined period.

【0014】ナンバーレジスタ14のデータはナンバー
レジスタデコード回路12に出力され、また、ナンバー
レジスタ14にはナンバーレジスタデコード回路12か
らナンバーレジスタ更新信号が入力する。ナンバーレジ
スタデコード回路12は、インターバルレジスタ11の
データと、インターバルカウンタ13のデータが一致し
たときのみ、ナンバーレジスタ14のデータをデコード
し、外部ライトイネーブル信号により、内部ライトイネ
ーブル信号0〜3を生成し、トレースデータ保持回路1
6に出力する。
The data of the number register 14 is outputted to the number register decoding circuit 12, and a number register update signal is inputted to the number register 14 from the number register decoding circuit 12. The number register decoding circuit 12 decodes the data of the number register 14 only when the data of the interval register 11 and the data of the interval counter 13 match, and generates internal write enable signals 0 to 3 based on the external write enable signal. , trace data holding circuit 1
Output to 6.

【0015】トレースデータ保持回路16は、複数の保
持回路16−0,16−1,16−2,16−3により
構成され、内部ライトイネーブル信号0〜3により、入
力トレースデータを保持する。トレースデータ保持回路
16に保持されたトレースデータは、ナンバーレジスタ
14のデータがナンバーレジスタデコード回路12によ
りデコードされ、生成された出力選択信号0〜3により
、出力トレースデータ選択回路17で選択されて、外部
に出力される。
The trace data holding circuit 16 is composed of a plurality of holding circuits 16-0, 16-1, 16-2, and 16-3, and holds input trace data using internal write enable signals 0 to 3. The trace data held in the trace data holding circuit 16 is selected by the output trace data selection circuit 17 by the data in the number register 14 being decoded by the number register decoding circuit 12 and generated output selection signals 0 to 3. Output to the outside.

【0016】次に、本実施例のタイムチャートを図3に
示す。図3において、ここではインターバルレジスタ1
4にトレース間隔値2がセットされる。インターバルカ
ウンタ13は外部ライトイネーブル信号がオンになるた
びに0,1,2とカウントアップし、カウント値2とイ
ンターバルレジスタ11のトレース間隔値2が一致した
とき、0がセットされる。
Next, a time chart of this embodiment is shown in FIG. In FIG. 3, interval register 1 is shown here.
The trace interval value 2 is set to 4. The interval counter 13 counts up 0, 1, and 2 each time the external write enable signal is turned on, and is set to 0 when the count value 2 and the trace interval value 2 of the interval register 11 match.

【0017】ナンバーレジスタ14は、外部ライトイネ
ーブル信号のオンよりカウントを開始し、インターバル
レジスタ11の出力値2とインターバルカウンタ13の
カウント値2とが一致したとき、0,1,2,3とカウ
ントアップし、次の周期で0がセットされる。インター
バルレジスタ11の出力値2とインターバルカウンタ1
3のカウント値2が一致したとき、ナンバーレジスタ1
4の出力値0,1,2,3をデコードし、内部ライトイ
ネーブル信号0〜3がオンになる。
The number register 14 starts counting when the external write enable signal is turned on, and when the output value 2 of the interval register 11 and the count value 2 of the interval counter 13 match, the number register 14 counts 0, 1, 2, 3. and is set to 0 in the next cycle. Output value 2 of interval register 11 and interval counter 1
When count value 2 of 3 matches, number register 1
The output values 0, 1, 2, and 3 of 4 are decoded, and internal write enable signals 0 to 3 are turned on.

【0018】内部ライトイネーブル信号0〜3により保
持回路16−0,16−1,16−2,16−3にはデ
ータC,F,I,Lがそれぞれ保持される。このように
、必要に応じてトレース間隔をセットするようにしたた
め、大きな範囲を自由にトレースすることができ、必要
なトレースデータを保持することができる。
Data C, F, I, and L are held in holding circuits 16-0, 16-1, 16-2, and 16-3 by internal write enable signals 0 to 3, respectively. In this way, since the trace interval is set as necessary, a large range can be freely traced and necessary trace data can be retained.

【0019】[0019]

【発明の効果】以上説明してきたように、インターバル
レジスタに必要なトレース間隔値をセットし、インター
バルレジスタのデータとインターバルカウンタのデータ
が一致したとき、ナンバーレジスタのデータをデコード
して、入力トレースデータを保持するようにしたため、
大きな範囲を自由にトレースすることができ、必要なト
レースデータを自由にトレースすることができる。
[Effects of the Invention] As explained above, the necessary trace interval value is set in the interval register, and when the data in the interval register and the data in the interval counter match, the data in the number register is decoded and the input trace data is Because we decided to keep
You can freely trace a large range, and you can freely trace the trace data you need.

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

【図1】本発明の原理説明図[Fig. 1] Diagram explaining the principle of the present invention

【図2】本発明の一実施例を示す図[Fig. 2] A diagram showing an embodiment of the present invention.

【図3】動作を説明するタイムチャート[Figure 3] Time chart explaining operation

【図4】従来例
を示す図
[Figure 4] Diagram showing a conventional example

【図5】従来のタイムチャート[Figure 5] Conventional time chart

【符号の説明】[Explanation of symbols]

11:インターバルレジスタ 12:ナンバーレジスタデコード回路 13:インターバルカウンタ 14:ナンバーレジスタ 15:ナンバーレジスタ更新回路 16:トレースデータ保持回路 16−0〜16−3:保持回路 17:出力トレースデータ選択回路 11: Interval register 12: Number register decoding circuit 13: Interval counter 14: Number register 15: Number register update circuit 16: Trace data holding circuit 16-0 to 16-3: Holding circuit 17: Output trace data selection circuit

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】カウントアップを行うとともに所定周期で
更新されるナンバーレジスタ(14)と、該ナンバーレ
ジスタ(14)のデータをデコードして内部ライトイネ
ーブル信号を出力するナンバーレジスタデコード回路(
12)と、前記内部ライトイネーブル信号により入力ト
レースデータを保持するトレースデータ保持回路(16
)を備えた情報処理装置において、トレース間隔を保持
するインターバルレジスタ(11)と、トレース指示の
たびに更新されるインターバルカウンタ(13)を具備
し、インターバルレジスタ(11)と、インターバルカ
ウンタ(13)の値が一致したときのみ、入力トレース
データを保持することを特徴とするトレース制御方式。
1. A number register (14) that counts up and is updated at a predetermined period, and a number register decode circuit (14) that decodes data in the number register (14) and outputs an internal write enable signal.
12), and a trace data holding circuit (16) that holds input trace data by the internal write enable signal.
), the information processing device includes an interval register (11) that holds a trace interval, and an interval counter (13) that is updated every time a trace instruction is issued, and the interval register (11) and the interval counter (13) A trace control method characterized by retaining input trace data only when the values of match.
JP3048043A 1991-03-13 1991-03-13 Tracing control system Withdrawn JPH04283842A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3048043A JPH04283842A (en) 1991-03-13 1991-03-13 Tracing control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3048043A JPH04283842A (en) 1991-03-13 1991-03-13 Tracing control system

Publications (1)

Publication Number Publication Date
JPH04283842A true JPH04283842A (en) 1992-10-08

Family

ID=12792298

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3048043A Withdrawn JPH04283842A (en) 1991-03-13 1991-03-13 Tracing control system

Country Status (1)

Country Link
JP (1) JPH04283842A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6961872B2 (en) 2001-09-03 2005-11-01 Renesas Technology Corp. Microcomputer and debugging system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6961872B2 (en) 2001-09-03 2005-11-01 Renesas Technology Corp. Microcomputer and debugging system

Similar Documents

Publication Publication Date Title
EP0267612A3 (en) Timer/counter using a register block
JPH04283842A (en) Tracing control system
KR910017759A (en) Sequence Action Logic Device
JPH0658617B2 (en) Timer operation method
US4764687A (en) Variable timing sequencer
JPH0284812A (en) Duty factor discrimination circuit
JPS5663628A (en) Data processing device
JPH0534409A (en) Test mode control signal generating circuit
JP2694401B2 (en) Timer circuit
JPH02288796A (en) Integrated circuit for remote control transmission
SU1113845A1 (en) Device for digital magnetic recording
JPS62241044A (en) History information collecting device
SU1437874A1 (en) Device for analyzing graph parameters
SU1642472A1 (en) Device for checking the sequence of operatorъs actions
RU1837274C (en) Device for preliminary information processing
JPS59231624A (en) Timing signal generating circuit
SU1314330A1 (en) Device for preprocessing information
SU1513622A1 (en) Code-to-time interval converter
JPH02206085A (en) Data setting circuit
JPS60236336A (en) Frame signal processor
JPS5679595A (en) Display system of line status for terminal device
JPH02192315A (en) Pulse generator
KR920000047A (en) Sound data output circuit
JPH06314968A (en) Read control method for counter
JPH04102939A (en) Shift pass control circuit

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 19980514