JPS5927358A - Hardware tracing device - Google Patents

Hardware tracing device

Info

Publication number
JPS5927358A
JPS5927358A JP57135438A JP13543882A JPS5927358A JP S5927358 A JPS5927358 A JP S5927358A JP 57135438 A JP57135438 A JP 57135438A JP 13543882 A JP13543882 A JP 13543882A JP S5927358 A JPS5927358 A JP S5927358A
Authority
JP
Japan
Prior art keywords
trace
output
register
memory
clock signal
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
JP57135438A
Other languages
Japanese (ja)
Inventor
Yasuhisa Watanabe
渡邊 康久
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
Nippon Electric 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 NEC Corp, Nippon Electric Co Ltd filed Critical NEC Corp
Priority to JP57135438A priority Critical patent/JPS5927358A/en
Publication of JPS5927358A publication Critical patent/JPS5927358A/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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To execute tracing by keeping correctly a time interval, by inputting a trace timing signal by clock signals of opposite phase to each other by two FFs, and tracing it together with a trace data. CONSTITUTION:A trace data input signal and a trace timing signal are inputted to a register 1 and an FF4 by a clock signal on a clock signal line 108, respectively. Also, each output is sent to a memory address of a trace memory 2 addressed by an output of an address register 7, and is written by a clock 1. On the other hand, the trace timing signal is inputted to an FF5 by opposite polarity of a clock signal 109. At the same time, the output of the register 7 is inputted to a register 9, too. An output of the FF5 is sent to a memory address of a trace memory 6 addressed by the register 9, and is written by a clock 2. When reading out a trace data, an output of the memory 2 and an output of the memory 6 are read out to a register 3 by a positive polarity clock signal.

Description

【発明の詳細な説明】 (発明の属する技術分野の説明) 本発明はデータ処理装置において障害探索やプログラム
デバッグなどを行うために使用され、ハードウェアの状
態を記録するためのハードウェアトレース装置に関する
DETAILED DESCRIPTION OF THE INVENTION (Description of the technical field to which the invention pertains) The present invention relates to a hardware tracing device used in data processing equipment to search for faults, debug programs, etc., and record the state of hardware. .

(従来技術の説明) 従来からデータ処理装置においてはハードウェアトレー
ス用に高速メモリを使用していたため、装置の高速化に
伴って装置のハードウェアのコストが非常に高くなると
云う欠点があった。
(Description of the Prior Art) Conventionally, data processing devices have used high-speed memories for hardware tracing, which has had the disadvantage that as the speed of the devices increases, the cost of the device's hardware increases significantly.

また、低速メモリ素子を使用して安価にトレース機能を
実現する場合には、一般的にトレースタイミング信号を
もとにして、そのトレースタイミング信号の到達タイミ
ングごとにトレースデータを記憶していた。このため、
トレースタイミング信号の周期がトレースデータを記憶
するためのクロック信号の整数倍であって、常に一定の
周期を有するものではない限り、時間間隔を正しく保っ
てトレースすることが困難であった。
Further, when a low-speed memory element is used to realize a trace function at low cost, trace data is generally stored based on a trace timing signal at each arrival timing of the trace timing signal. For this reason,
Unless the period of the trace timing signal is an integral multiple of the clock signal for storing trace data and always has a constant period, it is difficult to trace while keeping the time interval correct.

(発明の詳細な説明) 本発明の目的はトレースタイミング信号を第1および第
2のフリップフロップに互いに逆相のクロック信号によ
って取り込み、各クロック信号コトニトレースデータと
トレースタイミング信号とをそれぞれ第1および第2の
トレースメモリに記憶し、トレースデータの読出し時に
トレースタイミング信号のトレース状態に応じてトレー
スデータを補正することにょシ上記欠点を解決し、廉価
の低速メモリ素子を使用しながら時間間隔も正しく保っ
てトレースすることができるハードウェアトレース装置
を提供することKある。
(Detailed Description of the Invention) An object of the present invention is to input trace timing signals into first and second flip-flops using clock signals having opposite phases to each other, and to input each clock signal, the trace data, and the trace timing signal to the first and second flip-flops, respectively. By storing the trace data in the second trace memory and correcting the trace data according to the trace state of the trace timing signal when reading the trace data, the above disadvantages are solved, and the time interval is correct while using an inexpensive low-speed memory element. It is an object of the present invention to provide a hardware tracing device that can maintain and trace information.

(発明の構成) 本発明によるハードウェアトレース装置は入力レジスタ
と、第1および第2のフリップフロップと、第1および
第2のトレースメモリと、第1および第2のアドレスレ
ジスタとを具備したものである。
(Structure of the Invention) A hardware tracing device according to the present invention includes an input register, first and second flip-flops, first and second trace memories, and first and second address registers. It is.

入力レジスタはトレースデータの入力を同期化するため
の回路である。i 10) 7リツプフロツプはトレー
スデータのトレースタイミング信号を入力レジスタの駆
動のためのクロック信号と同一のクロック信号によりセ
ットするための回路である。第1のトレースメモリは入
力レジスタの出力、第1のフリップフロップの出力を共
に記憶するためのメモリ回路である。第1のアドレスレ
ジスタは第1のトレースメモリの内容を順次アドレスす
るための回路である。第2のフリッするための回路であ
る。第2のトレースメモリVi第2のフリップ70ツブ
の出力を記憶するためのメモリ回路である。第2のアド
レスレジス2りは第1のアドレスレジスタの出力を逆位
相のクロック信号によりセットし、第2のトレースメモ
リを順次アドレスするための回路である。
The input register is a circuit for synchronizing input of trace data. i10) The 7 lip-flop is a circuit for setting the trace timing signal of trace data with the same clock signal as the clock signal for driving the input register. The first trace memory is a memory circuit for storing both the output of the input register and the output of the first flip-flop. The first address register is a circuit for sequentially addressing the contents of the first trace memory. This is the second flipping circuit. Second trace memory Vi is a memory circuit for storing the output of the second flip 70 tube. The second address register 2 is a circuit for sequentially addressing the second trace memory by setting the output of the first address register using a clock signal of opposite phase.

(発明の原理と作用の説明) 本発明によるハードウェアトレース装置では、トレース
タイミング信号を第1、および第2の7リツプフロツプ
に互いに逆位相のクロック信号によって取込み、各クロ
ック毎にトレースデータとトレースタイミング信号とを
トレースするため、読出し時にはそれぞれ第1、および
第2のフリップフロップに割当てられたトレースタイミ
ング信号のトレース結果からトレースデータの時間補正
を行うことにより、1/2クロツクごとにトレースを実
施したものと等価になる。
(Description of the principle and operation of the invention) In the hardware tracing device according to the present invention, a trace timing signal is input to the first and second 7-lip-flops using clock signals having opposite phases to each other, and trace data and trace timing are input for each clock. In order to trace the signals, tracing was performed every 1/2 clock by correcting the time of the trace data from the trace results of the trace timing signals assigned to the first and second flip-flops respectively during readout. become equivalent to something.

(実施例の説明) 次に本発明について図面を参照して詳細に説明する。第
1図に本発明のハードウェアトレース装置のブロック図
を示す。第1図において、ハードウェアトレース装置は
入力レジスタ1と、第1および第2のトレースメモリ2
,6と、出力レジスタ3と、第1およびfs2の7リツ
プフロツプ4,5と、第1および第2のアドレスレジス
タ7.9と、インクレメント/デクレメント回路8と、
クロック信号ドライバ1oとを具備して構成されている
。第1図において、トレースデータ入力信号線101か
らのトレースデータハ入力レジスタ1へ入力され、入力
レジスタlから出力信号102を介してトレースデータ
は第1のトレースメモリ2に入力される。第1のトレー
スメモリ2からの出力信号線103に送出されたトレー
スデータは出力レジスタ3に入力され、出力レジスタ3
から出力信号線104を介して外部へ出力される。トレ
ースタイミング信号線105 F!第1のフリップフロ
ップ4と第2のフリップフロップ5とに入力され、第1
のフリップフロップ4の出力は信号線106を介して第
1のトレースメモリ2に入力される。第2のフリップフ
ロップの出力は信号線107を介して第2ノドレースメ
モ176に入力され、第2のトレースメモリ6の出力は
信号線113を介して出力レジスタ3に入力される。第
1のアドレスレジスタフの出力は信号線110を介して
第1のアドレスレジスタ7自身の内容をインクレメント
、あるいはデクレメントさせるためのインクレメント/
デクレメント回路8と、第2のアドレスレジスタ9と、
第1のトレースメモリ2とにそれぞれ接続されている。
(Description of Examples) Next, the present invention will be described in detail with reference to the drawings. FIG. 1 shows a block diagram of a hardware tracing device according to the present invention. In FIG. 1, the hardware tracing device includes an input register 1 and first and second trace memories 2.
, 6, an output register 3, first and fs2 seven lip-flops 4, 5, first and second address registers 7.9, an increment/decrement circuit 8,
It is configured to include a clock signal driver 1o. In FIG. 1, trace data is input from a trace data input signal line 101 to an input register 1, and trace data is input from an input register 1 to a first trace memory 2 via an output signal 102. The trace data sent to the output signal line 103 from the first trace memory 2 is input to the output register 3.
The signal is output from the output signal line 104 to the outside. Trace timing signal line 105 F! input to the first flip-flop 4 and the second flip-flop 5;
The output of the flip-flop 4 is input to the first trace memory 2 via the signal line 106. The output of the second flip-flop is input to the second trace memory 176 via the signal line 107, and the output of the second trace memory 6 is input to the output register 3 via the signal line 113. The output of the first address register 7 is sent via a signal line 110 to an increment/decrement signal for incrementing or decrementing the contents of the first address register 7 itself.
a decrement circuit 8, a second address register 9,
and a first trace memory 2, respectively.

インクレメント/デクレメント回路8の出力は信号線1
11を介して第1のアドレスレジスタ7に接続され、さ
らに第2のアドレスレジスタ9の出力tt(、%帰線1
12を介して第2のトレースメモリ6に接続されている
The output of the increment/decrement circuit 8 is the signal line 1
11 to the first address register 7, and further the output tt(, % return line 1
12 to the second trace memory 6.

クロック信号にクロック信号ドライバ10に加えられ、
クロック信号ドライバ10の正出力端子108が入力レ
ジスタ1と、出力レジスタ3と、第1のフリップフロッ
プ4と、第1のアドレスレジスタ7とに接続されている
。いっぽう、クロック信号ドライバ10の負出力端子1
09ハ第2のフリップフロップ5と第2のアドレスレジ
スタ9とに接続されている。また、第1の書込みクロッ
ク信号が第iのトレーサメモリ2に、第2の書込みクロ
ック信号が第2トレーサメモリ6にそれぞれ供給されて
いる。トレースデータ入力信号線101とトレースタイ
ミング信号線105とを介して、それぞれの信号はクロ
ック信号線108上のクロック信号によりそれぞれ入力
レジスタ1と第1のフリップフロップ4とに取込まれる
。また、それぞれの出力1−を第1のアドレスレジスタ
7の出力(i帰線110によってアドレスされた第1の
トレースメモリ2のメモリ番地へ第1の書込みクロック
により書込まれる。いっぽう、トレースタイミング信号
線105上のトレースタイミング信号ばクロック信号線
109上の逆極性のクロック信号により第2のフリップ
フロップ5に取込まれる。このとき、同時に第1のアド
レスレジスタ7の出力は信号線110を介して第2のア
ドレスレジスタ9にも取込1れる。
a clock signal applied to the clock signal driver 10;
A positive output terminal 108 of the clock signal driver 10 is connected to the input register 1 , the output register 3 , the first flip-flop 4 and the first address register 7 . On the other hand, the negative output terminal 1 of the clock signal driver 10
09 C is connected to the second flip-flop 5 and the second address register 9. Further, the first write clock signal is supplied to the i-th tracer memory 2, and the second write clock signal is supplied to the second tracer memory 6. The respective signals are taken into the input register 1 and the first flip-flop 4 via the trace data input signal line 101 and the trace timing signal line 105 by the clock signal on the clock signal line 108, respectively. In addition, each output 1- is written to the memory address of the first trace memory 2 addressed by the output (i retrace line 110) of the first address register 7 by the first write clock.On the other hand, the trace timing signal The trace timing signal on the line 105 is taken into the second flip-flop 5 by the clock signal of opposite polarity on the clock signal line 109.At this time, the output of the first address register 7 is simultaneously sent via the signal line 110. It is also taken into the second address register 9 as 1.

第2のフリップフロップ5の出力は信号線107ヲ介し
、第2のアドレスレジスタ9の出力によりアドレスされ
た@2のトレースメモリ6のメモリ番地へ、第2の書込
みクロックにより4)込まれる。トレース終了後、トレ
ースデータを読出f8合には、第1のトレースメモリ2
の出力と第2のトレースメモリ6の出力とを正極クロッ
ク信号により出力レジスタ3に読出す。
The output of the second flip-flop 5 is input via the signal line 107 to the memory address of the @2 trace memory 6 addressed by the output of the second address register 9 by the second write clock 4). After tracing is completed, if the trace data is read f8, it is stored in the first trace memory 2.
and the output of the second trace memory 6 are read out to the output register 3 using a positive clock signal.

次に第2図に示すタイミングチャートによってトレース
のタイミングについて説明する。第2図において、それ
ぞれaはクロック信号、bはトレースデータ入力、Cは
トレースタイミング信号、dHH2O7リツプフロツプ
4の状態値、ei;i第2のフリップフロップ5の状態
値、fは入力レジスタ1に入力されるトレースデータ、
gは第1の書込みクロック信号、hは第1のトレースメ
モリ2の入力、iF′i第2の書込みクロック信号、j
は第2のトレースメモリ6の入力データ、ktlj)レ
ースメモリ読出し後の補正信号である。第2図中におい
ては、クロック信号線108上のクロック信号aによっ
てトレースデータ入力すがbl 、 b2 、 b3 
、 b4 、 ))5 。
Next, the timing of tracing will be explained with reference to the timing chart shown in FIG. In FIG. 2, a is a clock signal, b is a trace data input, C is a trace timing signal, dHH2O7 state value of flip-flop 4, ei; i state value of second flip-flop 5, and f is input to input register 1. trace data,
g is the first write clock signal, h is the input of the first trace memory 2, iF'i is the second write clock signal, j
is the input data of the second trace memory 6, ktlj) is the correction signal after reading the trace memory. In FIG. 2, trace data is input by the clock signal a on the clock signal line 108, bl, b2, b3.
, b4, ))5.

b6 、 b7の様に、1/!nTの間隔で入力されて
いる。ここでnFi整数、Tflクロック周期である。
Like b6, b7, 1/! It is input at intervals of nT. Here nFi is an integer and Tfl is a clock period.

トレースタイミング信号cod本実施例ではトレースデ
ータ入力すの後半の1/!Tの期間に与えられている。
In this embodiment, the trace timing signal cod is the second half of the trace data input. It is given in period T.

゛クロック信号の立上りエツジで動作する第1のフリッ
プフロップ4uEx。
``The first flip-flop 4uEx operates on the rising edge of the clock signal.

E2 、E4 、E5を取込む。その結果、第1のフリ
ップフロップ4の出力が状態値dに示す様な値になる。
Take in E2, E4, and E5. As a result, the output of the first flip-flop 4 becomes a value as indicated by the state value d.

いっぽう、第2のフリップフロップ5には逆極性のクロ
ック信号が信号線109を介して与えられているため、
第2のフリップフロップ5の出力に、ハ状態値eに示す
様にE3とE6とが取込まれる。入力レジスタ1には入
力データfに示す様に、周期Tでトレースデータがザン
ブリングされて取込まれる。第1のフリップフロップ4
の出力の状態値と入力レジスタ1の入カドレースデータ
fの内容とが、第1の書込みクロックgにより第1のト
レースメモリ7の与えられた番地へ順に入力データ11
として書込まれる。また、第2のフリップフロップ5の
出力が第2の書込みクロックiにより第2のトレースメ
モリ6の与えられた番地へ入力データJとして順に書込
1れる。
On the other hand, since the second flip-flop 5 is supplied with a clock signal of opposite polarity via the signal line 109,
E3 and E6 are taken into the output of the second flip-flop 5 as shown by the state value e. As shown by input data f, trace data is zumbling and taken into the input register 1 at a period T. first flip-flop 4
The state value of the output of and the contents of the input trace data f of the input register 1 are transferred to the input data 11 in order to the given address of the first trace memory 7 by the first write clock g.
written as . Further, the output of the second flip-flop 5 is sequentially written as input data J to a given address of the second trace memory 6 by the second write clock i.

第1および第2のトレースメモリ2,6の内容を読出し
た後、第2図の補正に示す様に、第1のトレースメモリ
2に対応した第1のフリップ70ツ7’4の内容と第2
のトレースメモリ2の内容との両者によりトレースタイ
ミング信号を再生し、自身のトレースタイミング信号の
後縁で直前のトレースタイミング信号の後縁からの時間
を区切ることによシ、第1のトレースメモリ2の内容を
本来のトレースデータとして再生することができる。
After reading the contents of the first and second trace memories 2 and 6, as shown in the correction in FIG. 2
By reproducing the trace timing signal based on both the contents of the first trace memory 2 and the contents of the first trace memory 2, and dividing the time from the trailing edge of the immediately preceding trace timing signal by the trailing edge of its own trace timing signal. The contents can be reproduced as original trace data.

(発明の詳細な説明) 本発明はり、上説明した様にトレースタイミング信号を
第1および第2のフリップフロップにより互いに逆位相
のクロック信号で取込み、これをトレースデータととも
にトレースすることにより、経済性が良好で確度の高い
ハードウェアトレース装置を実現できると云う効果があ
る。
(Detailed Description of the Invention) As explained above, the present invention takes in the trace timing signal as a clock signal with opposite phases to each other by the first and second flip-flops, and traces this together with the trace data, thereby achieving economic efficiency. This has the effect that it is possible to realize a hardware tracing device with good performance and high accuracy.

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

第1図は本発明によるハードウェアトレース装置の一実
施例の構成を示すブロック図、第2図は第1図に示した
ハードウェアトレース装置の動作を示すタイミング図で
ある。 1・・・入力レジスタ  2,6・・・トレースメモリ
3・・・出力レジスタ 4.5・・・フリップ70ツブ 7.9・・・アドレスレジスタ 8・・・インクレメント/デクレメント回路10・・・
クロック信号ドライバ 101〜113・・・信号線 特許出願人 日本電気株式会社 代理人 弁理士 井ノロ 壽
FIG. 1 is a block diagram showing the configuration of an embodiment of a hardware tracing device according to the present invention, and FIG. 2 is a timing diagram showing the operation of the hardware tracing device shown in FIG. 1... Input register 2, 6... Trace memory 3... Output register 4.5... Flip 70 knob 7.9... Address register 8... Increment/decrement circuit 10...・
Clock signal drivers 101 to 113...Signal line patent applicant Hisashi Inoro, agent for NEC Corporation, patent attorney

Claims (1)

【特許請求の範囲】[Claims] トレースデータの入力を同期化するための入力レシスタ
ト、前記トレースデータのトレースタイミング信号を前
記入力レジスタの駆動のためのクロック信号と同一のク
ロック信号によりセットするための第1のフリップフロ
ップと、前記入力レジスタの出力、ならびに前記第1の
フリップフロップの出力を共に記憶するための第1のト
レースメモリと、前記第1のトレースメモリの内容を順
次アドレスするための第1のアドレスレジスタと、前記
トレースタイミング信号を前記クロック信号とは逆位相
のクロック信号によってセットするための第2のフリッ
プ70ツブと、前記第2のフリップフロップの出力を記
憶するための第2のトレースメモリと、前記第1のアド
レスレジスタの出力を前記逆位相のクロック信号KJ:
F)セットし、前記第2のトレースメモリを順次アドレ
スするための第2のアドレスレジスタとを具備したこと
を特徴とするハードウェアトレース装置。
an input register for synchronizing the input of trace data; a first flip-flop for setting the trace timing signal of the trace data by the same clock signal as the clock signal for driving the input register; and the input register. a first trace memory for storing both the output of the register and the output of the first flip-flop; a first address register for sequentially addressing the contents of the first trace memory; and the trace timing. a second flip-flop 70 for setting the signal with a clock signal having an opposite phase to the clock signal; a second trace memory for storing the output of the second flip-flop; and the first address. The output of the register is converted into the opposite phase clock signal KJ:
F) a second address register for setting and sequentially addressing the second trace memory.
JP57135438A 1982-08-03 1982-08-03 Hardware tracing device Pending JPS5927358A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP57135438A JPS5927358A (en) 1982-08-03 1982-08-03 Hardware tracing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP57135438A JPS5927358A (en) 1982-08-03 1982-08-03 Hardware tracing device

Publications (1)

Publication Number Publication Date
JPS5927358A true JPS5927358A (en) 1984-02-13

Family

ID=15151717

Family Applications (1)

Application Number Title Priority Date Filing Date
JP57135438A Pending JPS5927358A (en) 1982-08-03 1982-08-03 Hardware tracing device

Country Status (1)

Country Link
JP (1) JPS5927358A (en)

Similar Documents

Publication Publication Date Title
JPS5884681U (en) Digital display for command copier
JP2522258B2 (en) Signal processor
GB1487121A (en) Text editing apparatus
JPS5927358A (en) Hardware tracing device
JPS58159636U (en) Data signal deskewing device for multi-track recording device
JPS6323581B2 (en)
SU489124A1 (en) Device for recording information
JP2786033B2 (en) Time measuring device
SU1210134A1 (en) Device for magnetic recording-reproducing of digital information
JP2595707B2 (en) Memory device
SU630645A1 (en) Buffer storage
JPH046024B2 (en)
JPS5919376B2 (en) Buffer memory control method
SU1580378A1 (en) Device for interfacing external device with trunk
SU493805A1 (en) Buffer storage device
SU1387042A1 (en) Buffer storage device
SU1587517A1 (en) Device for addressing buffer memory
SU507897A1 (en) Memory device
SU949720A1 (en) Device for checking information recorded in storage units
JPS63256991A (en) Editing memory
JPH01112449A (en) Speed converting memory device
JPH04319597A (en) Initialization circuit for storage circuit
JPH03268293A (en) Semiconductor memory device
JPS6230662B2 (en)
JPH02214099A (en) Pointer resetting system