JPH0830484A - Trace circuit - Google Patents

Trace circuit

Info

Publication number
JPH0830484A
JPH0830484A JP6189888A JP18988894A JPH0830484A JP H0830484 A JPH0830484 A JP H0830484A JP 6189888 A JP6189888 A JP 6189888A JP 18988894 A JP18988894 A JP 18988894A JP H0830484 A JPH0830484 A JP H0830484A
Authority
JP
Japan
Prior art keywords
address
storage means
data
trigger signal
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
JP6189888A
Other languages
Japanese (ja)
Inventor
Atsushi Takahashi
淳 高橋
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.)
Shinko Seisakusho KK
Original Assignee
Shinko Seisakusho KK
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 Shinko Seisakusho KK filed Critical Shinko Seisakusho KK
Priority to JP6189888A priority Critical patent/JPH0830484A/en
Publication of JPH0830484A publication Critical patent/JPH0830484A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To obtain a trace circuit which records the logical state of a specific device each time the device is accessed by providing a trigger signal generating means, an address generating means, and a storage means. CONSTITUTION:The address generating means 22 increases address data ADw as a trigger signal St is inputted and supplies the data to the input-side address terminal group AD of the storage means 23. Therefore, the trigger signal St is supplied to the write terminal WR of the storage means 23 and the address data ADw are supplied to the address terminal group AD of the storage means 23, so that the logical states of an address bus AB and a data bus DB connected to the input-side data terminal group DA of the storage means 23 are written as write data Dw in the storage means 23. Thus, the logical state of the specific device can be recorded each time the device is accessed, which is therefore effective to the specific device at the time of debugging operation wherein trouble occurs very rarely.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、デバイスの論理状態を
記憶するトレース回路に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a trace circuit for storing a logic state of a device.

【0002】[0002]

【従来の技術】CPUを搭載した装置等において、ソフ
トウェアやハードウェアのデバッグの際には、各デバイ
スの論理状態を記録して解析する、いわゆるトレースが
必要となる。従来は、ロジックアナライザを使用してト
レースを行っている。
2. Description of the Related Art In a device equipped with a CPU or the like, when debugging software or hardware, a so-called trace for recording and analyzing the logical state of each device is required. Conventionally, a logic analyzer is used for tracing.

【0003】[0003]

【発明が解決しようとする課題】このようなロジックア
ナライザは、所定時間内における論理状態を記憶手段に
記録させるとともにその論理状態を解析したり表示した
りする。しかしながら、特定のデバイスの論理状態をそ
のデバイスに対するアクセスが発生する度に記録して解
析するといった用途には、記憶容量が不足であったり測
定条件が限られていたりするために不適であった。本発
明は、このような事情に基づいてなされたもので、その
目的は、特定のデバイスの論理状態をそのデバイスに対
するアクセスが発生する度に記録するトレース回路を提
供することにある。
Such a logic analyzer records the logical state within a predetermined time in the storage means and analyzes or displays the logical state. However, it is unsuitable for the purpose of recording and analyzing the logical state of a specific device each time an access to the device occurs, because the storage capacity is insufficient and the measurement conditions are limited. The present invention has been made under such circumstances, and an object thereof is to provide a trace circuit for recording the logical state of a specific device each time an access to the device occurs.

【0004】[0004]

【課題を解決するための手段】本発明のトレース回路
は、デバイスに与えられるアクセス信号からトリガ信号
を生成するトリガ信号生成手段と、トリガ信号を入力す
る度にアドレスデータを単位量だけ変化させるアドレス
生成手段と、トリガ信号をライト信号として、上記アド
レスデータに応じてデバイスの論理状態を記憶する記憶
手段とを有することを特徴としている。また、上記デバ
イスの論理状態とは、そのデバイスの各端子の論理状
態、すなわちデータ端子、アドレス端子、リード端子、
ライト端子、及びその他全ての制御端子等の論理状態を
含む。
The trace circuit of the present invention comprises a trigger signal generating means for generating a trigger signal from an access signal given to a device, and an address for changing address data by a unit amount each time the trigger signal is inputted. It is characterized in that it has a generating means and a storage means for storing the logical state of the device in accordance with the address data by using the trigger signal as a write signal. The logical state of the device means the logical state of each terminal of the device, that is, a data terminal, an address terminal, a read terminal,
It includes the logical states of the write terminal and all other control terminals.

【0005】[0005]

【作用】トリガ信号生成手段は、デバイスに与えられる
アクセス信号からトリガ信号を生成する。アドレス生成
手段は、トリガ信号をを入力する度にアドレスデータを
単位量だけ変化させる。記憶手段は、トリガ信号をライ
ト信号として、上記アドレスデータに応じてデバイスの
論理状態を記憶する。これにより、トレース対象のデバ
イスにアクセスがある度にその論理状態を記憶手段に記
憶させることができる。
The trigger signal generating means generates a trigger signal from the access signal given to the device. The address generation means changes the address data by a unit amount each time the trigger signal is input. The storage means stores the logical state of the device according to the address data, using the trigger signal as a write signal. As a result, each time the device to be traced is accessed, its logical state can be stored in the storage means.

【0006】[0006]

【実施例】次に、本発明について図面を参照して説明す
る。図1は、本発明のトレース回路の一実施例を示す概
略回路図であり、図2は、図1に対応するタイミングチ
ャートである。
Next, the present invention will be described with reference to the drawings. 1 is a schematic circuit diagram showing an embodiment of a trace circuit of the present invention, and FIG. 2 is a timing chart corresponding to FIG.

【0007】10は、トレースの対象となるデバイスを
有する被測定回路である。なお、本明細書では、トレー
スの対象となるもの、すなわち装置、回路、及び素子等
を含めてデバイスと呼ぶ。被測定回路10は、CPU1
1、デコーダ12、メモリ素子13、I/Oコントロー
ラ14等を有して構成されている。ABはアドレスバス
であり、DBはデータバスである。また、RDは各素子
に対する読み出しを制御するリード信号であり、WRは
各素子に対する書き込みを制御するライト信号である。
Reference numeral 10 is a circuit under test having a device to be traced. In the present specification, what is to be traced, that is, a device, a circuit, an element, and the like are referred to as a device. The circuit under test 10 is the CPU 1
1, a decoder 12, a memory element 13, an I / O controller 14 and the like. AB is an address bus and DB is a data bus. Further, RD is a read signal that controls reading from each element, and WR is a write signal that controls writing from each element.

【0008】デコーダ12は、アドレスバスABのアド
レスデータをデコードして選択信号CS1,CS2,
…,CSnを生成し、CPU11の制御下にあるメモリ
素子13やI/Oコントローラ14に与える。メモリ素
子13及びI/Oコントローラ14は、アドレスバスA
B及びデータバスDBを介してCPU11とデータの授
受を行っており、トレース対象となるデバイスである。
The decoder 12 decodes the address data on the address bus AB to select signals CS1, CS2.
, CSn are generated and given to the memory element 13 and the I / O controller 14 under the control of the CPU 11. The memory device 13 and the I / O controller 14 use the address bus A
It is a device to be traced, which exchanges data with the CPU 11 via B and the data bus DB.

【0009】20は、トレース回路であり、トリガ信号
生成手段21、アドレス生成手段22、及び記憶手段2
3を有している。トリガ信号生成手段21は、デバイス
であるメモリ素子13に供給されるアクセス信号、すな
わち選択信号CS1、リード信号RD、及びライト信号
WRからトリガ信号Stを生成する。このトリガ信号生
成手段21は、図1に例示するように、リード信号RD
及びライト信号WRを入力する負論理のORゲート21
Aと、それの出力及び選択信号CS1を入力する負論理
のANDゲート21Bとから構成されている。したがっ
て、トリガ信号Stは、当該デバイスであるメモリ素子
13の選択信号CS1が有効であり、かつ、リード信号
RD又はライト信号WRが有効であるときに生成され
る。
Reference numeral 20 is a trace circuit, which is a trigger signal generating means 21, an address generating means 22, and a storage means 2.
Three. The trigger signal generation means 21 generates a trigger signal St from an access signal supplied to the memory element 13 which is a device, that is, a selection signal CS1, a read signal RD, and a write signal WR. The trigger signal generating means 21 is, as illustrated in FIG. 1, a read signal RD.
And a negative logic OR gate 21 for inputting the write signal WR
A and an AND gate 21B of negative logic for inputting the output thereof and the selection signal CS1. Therefore, the trigger signal St is generated when the selection signal CS1 of the memory element 13 that is the device is valid and the read signal RD or the write signal WR is valid.

【0010】アドレス生成手段22は、例えば2進カウ
ンタ素子から構成されるものであり、クリア端子CLR
が有効となった際にリセットされ、上記トリガ信号St
が入力する度に出力Qをインクリメントしてアドレスデ
ータADwとして記憶手段23のアドレス端子ADに与
える。
The address generating means 22 is composed of, for example, a binary counter element, and has a clear terminal CLR.
Is reset when is enabled and the trigger signal St
Output Q is incremented each time is input to the address terminal AD of the storage means 23 as address data ADw.

【0011】記憶手段23は、1以上のデュアルポート
メモリを並列接続して構成されている。記憶手段23の
入力側には、アドレス生成手段22からアドレスデータ
ADwを入力するアドレス端子群AD、上記トリガ信号
Stを入力するライト端子WR、及び入力側の動作を能
動状態にする選択信号CSwを入力する選択端子CSが
設けられている。一方、記憶手段23の出力側には、読
み出し時のアドレスADrを入力するためのアドレス端
子群AD、読み出しデータRDrのためのデータ端子群
RD、出力側の動作を能動状態にする選択信号CSrを
入力するための選択端子CSが備えられている。
The storage means 23 is constructed by connecting one or more dual port memories in parallel. On the input side of the storage means 23, there are provided an address terminal group AD for inputting the address data ADw from the address generation means 22, a write terminal WR for inputting the trigger signal St, and a selection signal CSw for activating the operation on the input side. A selection terminal CS for inputting is provided. On the other hand, on the output side of the storage means 23, an address terminal group AD for inputting an address ADr at the time of reading, a data terminal group RD for read data RDr, and a selection signal CSr for activating the operation on the output side. A selection terminal CS for inputting is provided.

【0012】なお、記憶手段23の入力側のデータ端子
群DAには、前述したアドレスバスAB、データバスD
B、リード信号RD、及びライト信号WRが接続され
て、それらの論理状態を示すデータ(以下、総括して書
き込みデータDwということがある)が書き込まれるよ
うになっており、書き込まれたデータは、出力側のデー
タ端子群DAから読み出しデータDrとして読み出され
るようになっている。
In the data terminal group DA on the input side of the storage means 23, the above-mentioned address bus AB and data bus D are provided.
B, the read signal RD, and the write signal WR are connected to write data indicating their logical states (hereinafter, may be collectively referred to as write data Dw), and the written data is , Read data Dr is read from the data terminal group DA on the output side.

【0013】また、トレース回路20は、後で詳述する
解析手段30に接続されており、アドレス生成手段22
をクリアするクリア信号CLR、記憶手段23への選択
信号CSw,CSr及びリード信号RDrは、上記解析
手段30からトレース回路20に供給されるようになっ
ており、記憶手段23から読み出されるデータも上記解
析手段30へ出力されるようになっている。
The trace circuit 20 is connected to an analyzing means 30 which will be described in detail later, and an address generating means 22.
The clear signal CLR for clearing, the selection signals CSw and CSr to the storage means 23, and the read signal RDr are supplied from the analysis means 30 to the trace circuit 20, and the data read from the storage means 23 is also the above. The data is output to the analysis means 30.

【0014】次に、図1のメモリ素子13の論理状態を
トレースする場合の動作について、図2を参照して説明
する。図2に示すように、時点t1でメモリ素子13を
選択する選択信号CS1が有効状態となり、次いで、時
点t2から時点t3の期間、ライト信号WRが有効状態
となったとすると、トリガ信号生成手段21は、上記選
択信号CS1及びライト信号WRからトリガ信号Stを
生成して、アドレス生成手段22及び記憶手段23に供
給する。
Next, the operation for tracing the logic state of the memory element 13 of FIG. 1 will be described with reference to FIG. As shown in FIG. 2, if the selection signal CS1 for selecting the memory element 13 is in the valid state at the time point t1, and then the write signal WR is in the valid state for the period from the time point t2 to the time point t3, the trigger signal generating means 21. Generates a trigger signal St from the selection signal CS1 and the write signal WR, and supplies the trigger signal St to the address generation means 22 and the storage means 23.

【0015】アドレス生成手段22は、トリガ信号St
の入力に応じてアドレスデータADwをインクリメント
して記憶手段23の入力側のアドレス端子群ADに与え
る。したがって、トリガ信号Stが記憶手段23のライ
ト端子WRに、上記アドレスデータADwが記憶手段2
3のアドレス端子群ADにそれぞれ入力されることによ
り、記憶手段23の入力側のデータ端子群DAに接続さ
れているアドレスバスAB及びデータバスDBにおける
論理状態が書き込みデータDwとして記憶手段23に書
き込まれる。
The address generating means 22 has a trigger signal St.
The address data ADw is incremented in accordance with the input of and is given to the input side address terminal group AD of the storage means 23. Therefore, the trigger signal St is stored in the write terminal WR of the storage means 23, and the address data ADw is stored in the storage means 2
By being respectively input to the address terminal group AD of No. 3, the logical state in the address bus AB and the data bus DB connected to the input side data terminal group DA of the storage means 23 is written in the storage means 23 as the write data Dw. Be done.

【0016】すなわち、デバイスであるメモリ素子13
に対するアクセスがなされたときの論理状態(アドレス
バス及びデータバスの状態)が記憶手段23に書き込ま
れる。アクセスが発生する度に、上述と同様に、論理状
態がアドレス生成手段22によって生成されるアドレス
の順番に従って記憶手段23に書き込まれる。このよう
に、デバイスにアクセスがなされた時点での論理状態の
みが記憶手段23に順次記憶される。つまり、アクセス
がなされない限り記憶手段23にはデータが書き込まれ
ないので、多くの論理状態を記憶することができる。
That is, the memory element 13 which is a device
The logical state (the state of the address bus and the data bus) at the time of access to is written in the storage means 23. Each time an access occurs, the logical state is written in the storage means 23 in the order of the addresses generated by the address generation means 22, as described above. Thus, only the logical state at the time when the device is accessed is sequentially stored in the storage means 23. In other words, since no data is written in the storage means 23 unless it is accessed, many logical states can be stored.

【0017】必要期間のトレース動作が終了した後は、
解析手段30から種々の制御信号が与えられて、必要な
データが上記解析手段30に読み出される。すなわち、
記憶手段23の出力側の選択端子CSには有効状態の選
択信号CSrが与えられ、リード端子RDには有効状態
のリード信号RDrが与えられるとともに、アドレス端
子ADに与えるアドレスデータADrを読み出すべきア
ドレスに応じてインクリメントされることにより、出力
側のデータ端子DAからデバイスの論理状態が解析手段
30へ読み出されて解析される。
After the trace operation for the required period is completed,
Various control signals are given from the analyzing means 30 and necessary data are read out to the analyzing means 30. That is,
The selection signal CSr in the valid state is given to the selection terminal CS on the output side of the storage means 23, the read signal RDr in the valid state is given to the read terminal RD, and the address data ADr to be given to the address terminal AD is to be read. Is incremented in accordance with the above, the logical state of the device is read from the data terminal DA on the output side to the analysis means 30 and analyzed.

【0018】図2では、デバイスに与えるライト信号W
Rのみを示したが、リード信号RDでも同様にトレース
動作がなされることはもちろんである。
In FIG. 2, the write signal W given to the device is
Although only R is shown, it goes without saying that the trace operation is similarly performed with the read signal RD.

【0019】なお、I/Oコントローラ14をトレース
対象のデバイスとする場合には、それに対応する選択信
号CS2をトレース回路20のトリガ信号生成回路21
に与えるように結線すればよい。また、デバイスとして
は、本実施例で示したメモリ素子やI/Oコントローラ
に限定されるものではなく、CPU11からアクセスし
得るデバイスであればよく、その際には当該デバイスの
選択信号をトリガ信号生成回路21に与えればよい。
When the I / O controller 14 is a device to be traced, the trigger signal generating circuit 21 of the trace circuit 20 outputs the corresponding selection signal CS2.
You can connect it to Further, the device is not limited to the memory element and the I / O controller shown in the present embodiment, and any device that can be accessed by the CPU 11 may be used. In that case, the selection signal of the device is a trigger signal. It may be given to the generation circuit 21.

【0020】なお、トレース回路20に接続される解析
手段30としては、例えばパソコン等を使用することが
できる。トレース回路20をパソコンの拡張スロットに
接続収納し得るように構成すれば、解析手段30とトレ
ース回路20との間における制御信号及びデータの授受
が容易である。これにより、解析手段30によって、ト
レース回路20の記憶手段23に記録されたデバイスの
論理状態を読み出し、デバイスの端子及び論理状態を時
系列的に配置した一覧表を作成して解析することが可能
である。すなわち、解析手段30及びトレース回路20
によってトレース装置を構成することができる。
A personal computer or the like can be used as the analysis means 30 connected to the trace circuit 20. If the trace circuit 20 is constructed so that it can be connected and stored in the expansion slot of the personal computer, it is easy to exchange control signals and data between the analyzing means 30 and the trace circuit 20. As a result, the analysis unit 30 can read the logic state of the device recorded in the storage unit 23 of the trace circuit 20, create a list in which the terminals and logic states of the device are arranged in time series, and analyze the list. Is. That is, the analysis unit 30 and the trace circuit 20
The trace device can be configured by.

【0021】記憶手段23としては、RAM等のリード
ライト可能なメモリを使用することも可能であるが、デ
ュアルポートメモリの場合と異なり、一組のデータバス
及びアドレスバスしかないので、バスの調停回路等が必
要となり回路構成が複雑となってしまう。
Although a readable / writable memory such as a RAM can be used as the storage means 23, unlike the dual port memory, since there is only one set of data bus and address bus, bus arbitration is performed. A circuit or the like is required and the circuit configuration becomes complicated.

【0022】トレース回路20とデバイスとの接続は、
ロジックアナライザ等で使用されているクリップ端子
(プローブ)と同様なものを使用すればよい。
The connection between the trace circuit 20 and the device is
A clip terminal (probe) similar to that used in a logic analyzer or the like may be used.

【0023】また、トリガ信号生成手段21は、当業者
が任意の論理回路によって実現できるものであり、本実
施例に限定されるものではない。
Further, the trigger signal generating means 21 can be realized by those skilled in the art by an arbitrary logic circuit, and is not limited to this embodiment.

【0024】前述したように、本実施例のトレース回路
20においては、特定のデバイスがアクセスされたとき
に限り、上記特定デバイスの論理状態が記憶手段23に
書き込まれ、他のデバイスの論理状態は書き込まれない
ので、所要のデバイスについては比較的多くの論理状態
を記憶することができる。したがって、特定のデバイス
において、ごくまれに不具合が発生するような場合のデ
バッグ作業の際に特に有効である。
As described above, in the trace circuit 20 of this embodiment, the logical state of the specific device is written in the storage means 23 only when the specific device is accessed, and the logical states of the other devices are Since it is not written, relatively many logical states can be stored for the required device. Therefore, it is particularly effective for debugging work in the case where a failure occurs in a specific device in a very rare case.

【0025】なお、本実施例では、記憶手段23に書き
込む論理状態は、データバスDB、アドレスバスAB、
リード信号RD、及びライト信号WRであったが、本発
明のトレース回路は、これに限定されるものではない。
記憶手段に書き込む論理状態としては、上述した以外に
各種の制御信号等も含まれる。
In this embodiment, the logical states written in the storage means 23 are the data bus DB, the address bus AB,
Although the read signal RD and the write signal WR are used, the trace circuit of the present invention is not limited to this.
The logic states written in the storage means include various control signals and the like in addition to the above.

【0026】[0026]

【発明の効果】以上詳述したように、本発明のトレース
回路によれば、特定のデバイスの論理状態をそのデバイ
スに対するアクセスが発生する度に記録することができ
るので、特定のデバイスにおいて、ごくまれに不具合が
発生するような場合のデバッグ作業の際に特に有効であ
る。
As described above in detail, according to the trace circuit of the present invention, the logical state of a specific device can be recorded each time an access to the device occurs, so that the trace state of the specific device can be very small. This is especially useful for debugging when a problem occurs in rare cases.

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

【図1】本発明のトレース回路の一実施例を示す概略回
路図である。
FIG. 1 is a schematic circuit diagram showing an embodiment of a trace circuit of the present invention.

【図2】同実施例のタイムチャートである。FIG. 2 is a time chart of the same embodiment.

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

13 メモリ素子(デバイス) 14 I/Oコントローラ(デバイス) 21 トリガ信号生成手段 22 アドレス生成手段 23 記憶手段 30 解析手段30 ADw アドレスデータ St トリガ信号 13 memory device (device) 14 I / O controller (device) 21 trigger signal generation means 22 address generation means 23 storage means 30 analysis means 30 ADw address data St trigger signal

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】デバイスに与えられるアクセス信号からト
リガ信号を生成するトリガ信号生成手段と、 前記トリガ信号を入力する度にアドレスデータを単位量
だけ変化させるアドレス生成手段と、 前記トリガ信号をライト信号として、前記アドレスデー
タに応じて前記デバイスの論理状態を記憶する記憶手段
とを有すること、 を特徴とするトレース回路。
1. A trigger signal generating means for generating a trigger signal from an access signal given to a device, an address generating means for changing address data by a unit amount each time the trigger signal is input, and a write signal for the trigger signal. And a storage unit that stores the logical state of the device according to the address data.
JP6189888A 1994-07-20 1994-07-20 Trace circuit Pending JPH0830484A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6189888A JPH0830484A (en) 1994-07-20 1994-07-20 Trace circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6189888A JPH0830484A (en) 1994-07-20 1994-07-20 Trace circuit

Publications (1)

Publication Number Publication Date
JPH0830484A true JPH0830484A (en) 1996-02-02

Family

ID=16248866

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6189888A Pending JPH0830484A (en) 1994-07-20 1994-07-20 Trace circuit

Country Status (1)

Country Link
JP (1) JPH0830484A (en)

Similar Documents

Publication Publication Date Title
JPS63106997A (en) Test method and apparatus for megabit memory module
JPH08221319A (en) Semiconductor memory device
JPH0830484A (en) Trace circuit
JPS59197946A (en) Memory device
JP3014424B2 (en) Test method for multiport memory
JPH0581087A (en) Processor monitoring system
JPS61160900A (en) Writing and reading circuit of ram
JPH04248641A (en) Memory controller
JPH0322041A (en) Real-time tracer
JPS59158450A (en) Program test device
JP2505571B2 (en) Storage device diagnostic method
JPH02216565A (en) Memory testing device
JPH01163860A (en) Input/output controller
JPS6375848A (en) Debugging log recording system
JPS63158637A (en) Memory tracing system
JPH0194455A (en) System for accessing storage device
KR970022700A (en) Program Device and Method of Nonvolatile Memory
JPS59226954A (en) Type-based recorder of memory access
JPH0218647A (en) Cache memory test method
JPH0358240A (en) Register access recording circuit
JP2002091795A (en) Cache controller
JPH0553929A (en) Central processing unit with fault information preserving function
JPH04106647A (en) Memory diagnostic system
JPH04243086A (en) Storage device
JPH04130943A (en) Memory diagnostic system