JPH01201740A - Microprocessor trace device - Google Patents

Microprocessor trace device

Info

Publication number
JPH01201740A
JPH01201740A JP63027094A JP2709488A JPH01201740A JP H01201740 A JPH01201740 A JP H01201740A JP 63027094 A JP63027094 A JP 63027094A JP 2709488 A JP2709488 A JP 2709488A JP H01201740 A JPH01201740 A JP H01201740A
Authority
JP
Japan
Prior art keywords
address
trace
microprocessor
trigger
value
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
JP63027094A
Other languages
Japanese (ja)
Inventor
Kazumi Yamada
和美 山田
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP63027094A priority Critical patent/JPH01201740A/en
Publication of JPH01201740A publication Critical patent/JPH01201740A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To apply a sequential trigger and to change trace conditions during a trace by programming data outputted by a condition generator beforehand. CONSTITUTION:When a microprocessor 1 operates, an upper limit trace address detector 6a and a lower limit trace address detector 6b respectively compare an address value 9 with a value inputted from a ROM 4 and output detection signals 14a and 14b within upper limit and lower limit address range. An AND circuit 7 obtains the AND of the signals 14a and 14b and outputs a trace enable signal 15 to a memory device 3. A trace memory controller 3 stores trace data 10 from the microprocessor 1 into the memory. A trigger address detector 5 compares the address value 9 from the microprocessor 1 with a trigger address value 12 inputted from the ROM 4 and outputs a trigger address detection signal 11.

Description

【発明の詳細な説明】 産業上の利用分野 本発明はマイクロプロセッサのデバッグ等に際して用い
られるマイクロプロセッサトレース装置に関するもので
ある。
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to a microprocessor tracing device used for debugging a microprocessor.

従来の技術 従来のマイクロプロセッサトレース装置としては、例え
ば次のようなものがある。第3図はこの従来のマイクロ
プロセッサトレース装置のブロック図を示すものであり
、1はマイクロプロセッサ、2はマイクロプロセッサl
に接続された主記憶である。3はマイクロプロセッサ1
のトレースデータをトレースメモ・りに記憶させるトレ
ースメモリ制御装置、9はマイクロプロセッサ1が出力
するアドレス値、lOはトレースデータ値、16はトリ
ガアドレスを記憶し出力する第一のレジスタ、17はト
レースアドレスの範囲を記憶し出力する第二のレジスタ
。18はレジスタ16の出力値とプロセッサlのアドレ
ス値を比較しトリガアドレス検出信号を出力するトリガ
アドレス検出器、19はレジスタ17の出力値とプロセ
ッサ1のアドレス値を比較し定められたアドレスの範囲
内かを検出しアドレス範囲検出信号を出力するアドレス
範囲検出器である。20はレジスタ16が出力するトリ
ガアドレス値、21は17レジスタが出力するアドレス
範囲データ値、22はトリガアドレス検出器18が出力
するトリガアドレス検出信号、23はアドレス範囲検出
器19が出力するアドレス範囲検出信号である。
2. Description of the Related Art Conventional microprocessor trace devices include, for example, the following. FIG. 3 shows a block diagram of this conventional microprocessor tracing device, where 1 is a microprocessor, and 2 is a microprocessor l.
It is the main memory connected to 3 is microprocessor 1
9 is an address value output by the microprocessor 1, IO is a trace data value, 16 is a first register that stores and outputs a trigger address, and 17 is a trace address. A second register that stores and outputs the range of . 18 is a trigger address detector which compares the output value of register 16 and the address value of processor 1 and outputs a trigger address detection signal; 19 compares the output value of register 17 with the address value of processor 1 and determines whether the address is within a predetermined address range. This is an address range detector that detects and outputs an address range detection signal. 20 is a trigger address value outputted by register 16, 21 is an address range data value outputted by register 17, 22 is a trigger address detection signal outputted by trigger address detector 18, and 23 is an address range detection signal outputted by address range detector 19. be.

以上のように構成された従来のマイクロプロセッサトレ
ース装置においては、マイクロプロセッサ1がプログラ
ムを実行する際、トリガアドレス検出器18とアドレス
範囲検出器19はマイクロプロセッサlが出力するアド
レス値9を入力しトリガアドレス検出器18はレジスタ
16が出力するトリガアドレス値20と比較しトリガア
ドレス検出信号22を出力する。アドレス範囲検出器1
9はレジスタ17が出力するアドレス範囲データ値21
と比較しアドレス範囲検出信号23を出力する。一方ト
レースメモリ制御装置3はトリガアドレス検出信号22
を入力するとアドレス範囲検出器19がイネーブルにな
った時のトレースデータ値10をトレースメモリに記憶
させる。
In the conventional microprocessor trace device configured as described above, when the microprocessor 1 executes a program, the trigger address detector 18 and the address range detector 19 input the address value 9 outputted by the microprocessor 1 and determine the trigger address. The detector 18 compares the trigger address value 20 outputted by the register 16 and outputs a trigger address detection signal 22. Address range detector 1
9 is the address range data value 21 output by register 17
The address range detection signal 23 is output. On the other hand, the trace memory control device 3 receives the trigger address detection signal 22
When the address range detector 19 is enabled, the trace data value 10 is stored in the trace memory.

発明が解決しようとする課題 しかしながら上記のような構成ではトリガアドレスの設
定は一点のみでシーケンシャルトリガを掛ける事やトレ
ースの途中でトレース条件を変更することは不可能であ
るという問題点を有していた。
Problems to be Solved by the Invention However, with the above configuration, there was a problem in that it was impossible to set the trigger address at only one point, apply a sequential trigger, or change the trace conditions during tracing. .

本発明はかかる点に鑑み、シーケンシャルトリガを掛け
る事やトレースの途中でトレース条件を変更するなど様
々なトレース制御が可能なマイクロプロセッサトレース
装置を提供することを目的とする。。
In view of the above, an object of the present invention is to provide a microprocessor tracing device capable of performing various trace controls such as applying a sequential trigger and changing trace conditions during tracing. .

課題を解決するための手段 本発明はマイクロプロセッサの出力するデータが各々定
められた条件を満たしていることを検出する複数個の検
出器と、前記検出器のうち特定の検出器が出力する検出
信号を入力し前記検出器全てに各々新な条件を出力する
条件発生器と、前記検出器のうち特定の検出器が出力す
る検出信号の結果により前記マイクロプロセッサのデー
タをトレースメモリに記憶させるトレースメモリ制御装
置とを備えたマイクロプロセッサトレース装置である。
Means for Solving the Problems The present invention includes a plurality of detectors for detecting that data output from a microprocessor each satisfies a predetermined condition, and a detector for detecting output from a specific detector among the detectors. a condition generator that inputs a signal and outputs new conditions to each of the detectors; and a trace that stores data of the microprocessor in a trace memory based on the result of a detection signal output from a specific one of the detectors. A microprocessor trace device having a memory control device.

作   用 本発明は前記した構成により、マイクロプロセッサがプ
ログラムを実行する際に、複数の検出器はマイクロプロ
セッサからのデータと条件発生器からのデータを各々人
力比較し検出信号を出力する。前記検出器の出力信号線
のうちある定・められた信号線は条件発生器に接続され
、条件発生器は入力した信号線の結果から出力データの
値を変更する。一方トレースメモリ制御装置は別に定め
られた前記検出器の出力信号線の結果から前記マイクロ
プロセッサからトレースデータを人力しトレースメモリ
に記憶する。以上のようにすれば前記条件発生器が出力
するデータをあらかじめプログラムしておくことにより
シーケンシャルトリガ等の様々なトレース制御が可能に
なる。
Operation According to the above-described configuration, when the microprocessor executes a program, the plurality of detectors manually compare the data from the microprocessor and the data from the condition generator, and output detection signals. A certain determined signal line among the output signal lines of the detector is connected to a condition generator, and the condition generator changes the value of output data based on the result of the input signal line. On the other hand, the trace memory control device manually inputs trace data from the microprocessor based on the results of the separately determined output signal line of the detector and stores it in the trace memory. By doing the above, by programming the data output from the condition generator in advance, various trace controls such as sequential triggering become possible.

実施例 第1図は本発明のマイクロプロセッサトレース装置の構
成図である。第1図において1はマイクロプロセッサ、
2は主記憶、3はマイクロプロセッサlのトレース結果
を記憶するトレースメモリ制御装置、4はトリガ条件お
よび各種トレース条件を出力するROM、5はマイクロ
プロセッサ1が出力するアドレス値とROM4が出力す
るトリガ条件の値からトリガポイントを検出するトリガ
アドレス検出器、6aはマイクロプロセッサ1が出力す
るアドレス値とROM4が出力する上限トレースアドレ
ス値からトレースアドレスの上限値を越えていない事を
示す信号を出力する上限トレースアドレス検出器、6b
はマイクロプロセッサlが出力するアドレス値とROM
4が出力する下限トレースアドレス値からトレースアド
レスの下限値を越えていない事を示す信号を出力する下
限トレースアドレス検出器、7は上限トレースアドレス
検出器6aと下限トレースアドレス検出器6bが出力す
るトレース条件が成立したことを示す信号が全てイネー
ブルになっていることを検出するAND回路、8はトリ
ガアドレス検出器5と上限トレースアドレス検出器6a
と下限トレースアドレス検出器6bとAND回路7を含
みトレースメモリ制御装置3にトレースを行なうよう信
号を出力するトレース制御装置、9はマイクロプロセッ
サlが出力するアドレス値、10はトレースメモリに記
憶させるトレースデータ、11はトリガアドレス検出信
号、12はトリガアドレス値、13aは上限トレースア
ドレス値、13bは下限トレースアドレス値、14aは
上限アドレス範囲内検出信号、14bは下限アドレス範
囲内検出信号、15はトレースイネーブル信号である。
Embodiment FIG. 1 is a block diagram of a microprocessor tracing device according to the present invention. In FIG. 1, 1 is a microprocessor;
2 is a main memory, 3 is a trace memory control device that stores the trace results of the microprocessor 1, 4 is a ROM that outputs trigger conditions and various trace conditions, and 5 is an address value output by the microprocessor 1 and a trigger output from the ROM 4. A trigger address detector 6a detects a trigger point from a condition value, and 6a is an upper limit that outputs a signal indicating that the upper limit of the trace address is not exceeded from the address value output by the microprocessor 1 and the upper limit trace address value output by the ROM 4. Trace address detector, 6b
is the address value output by microprocessor l and the ROM
A lower limit trace address detector 4 outputs a signal indicating that the lower limit trace address value outputted does not exceed the lower limit value of the trace address, and 7 is a trace outputted by the upper limit trace address detector 6a and the lower limit trace address detector 6b. An AND circuit that detects that all signals indicating that a condition is satisfied are enabled; 8 is a trigger address detector 5 and an upper limit trace address detector 6a;
A trace control device includes a lower limit trace address detector 6b and an AND circuit 7 and outputs a signal to the trace memory control device 3 to perform tracing, 9 is an address value output by the microprocessor l, and 10 is a trace to be stored in the trace memory. data, 11 is a trigger address detection signal, 12 is a trigger address value, 13a is an upper limit trace address value, 13b is a lower limit trace address value, 14a is an upper limit address range detection signal, 14b is a lower limit address range detection signal, 15 is a trace enable signal It is.

以上のように構成されたこの実施例について、以下にそ
の動作を説明する。
The operation of this embodiment configured as described above will be explained below.

ROM4は第2図のようにデータが格納され、はじめは
トリガアドレスAがトリガアドレス検出器5に上限トレ
ースアドレスAが上限トレースアドレス検出器6aに下
限トレースアドレスAが下限、トレースアドレス検出器
6bに各々出力される。
Data is stored in the ROM 4 as shown in Figure 2, and initially the trigger address A is output to the trigger address detector 5, the upper limit trace address A is output to the upper limit trace address detector 6a, and the lower limit trace address A is output to the lower limit and trace address detector 6b. be done.

そしてマイクロプロセッサlがプログラムを実行する際
に、上限トレースアドレス検出器6aと下限トレースア
ドレス検出器6bはマイクロプロセッサlからアドレス
値9とROM4から入力した値を各々比較し上限アドレ
ス範囲内検出信号14aと下限アドレス範囲内検出信号
14bを出力する。AND回路7は上限アドレス範囲内
検出信号14aと下限アドレス範囲内検出信号14bの
論理積をとりトレースメモリ制yI装置3に対してトレ
ースイネーブル信号15を出力する。トレースメモリ制
御装置3はトレースイネーブル信号15を人力するとマ
イクロプロセッサ1からのトレースデータ10をメモリ
に記憶する。またトリガアドレス検出器5はマイクロプ
ロセッサ1からアドレス値9とROM4から人力した値
を比較しトリガアドレス検出信号11を出力する。検出
信号11が出力されるとROM4は新にトリガアドレス
Bと上限トレースアドレスBと下限トレースアドレスB
を各々トリガアドレス検出器5と上限トレースアドレス
検出器6aと下限トレースアドレス検出器6bを出力す
る。
When the microprocessor l executes the program, the upper limit trace address detector 6a and the lower limit trace address detector 6b respectively compare the address value 9 from the microprocessor l and the value input from the ROM 4, and output an upper limit address within range detection signal 14a. and outputs the lower limit address range detection signal 14b. The AND circuit 7 performs a logical product of the upper limit address range detection signal 14a and the lower limit address range detection signal 14b, and outputs a trace enable signal 15 to the trace memory control yI device 3. The trace memory control device 3 stores the trace data 10 from the microprocessor 1 in the memory when the trace enable signal 15 is input manually. Further, the trigger address detector 5 compares the address value 9 from the microprocessor 1 with the manually input value from the ROM 4 and outputs a trigger address detection signal 11. When the detection signal 11 is output, the ROM 4 newly stores the trigger address B, upper limit trace address B, and lower limit trace address B.
are output from the trigger address detector 5, upper limit trace address detector 6a, and lower limit trace address detector 6b, respectively.

以上のように本実施例によれば、トリガアドレス値と上
限トレースアドレス値と下限トレースアドレス値を出力
しトリガアドレス検出信号を入力すると新なトリガアド
レス値と上限トレースアドレス値と下限トレースアドレ
ス値を出力するROM4を設けることにより、トリガア
ドレスAがプロセッサlから出力されるまではトレース
メモリに、L限トレースアドレスA以下下限トレースア
ドレスへ以上のトレースデータが書き込まれトリガアド
レスBがプロセッサlから出力されるまではトレースメ
モリに上限トレースアドレスB以下下限トレースアドレ
スB以上のトレースデータが書き込まれるというように
トレースの途中でトレース条件を変更することができる
As described above, according to this embodiment, the ROM 4 outputs a trigger address value, an upper limit trace address value, and a lower limit trace address value, and outputs a new trigger address value, upper limit trace address value, and lower limit trace address value when a trigger address detection signal is input. By providing , the trace data is written to the trace memory until the trigger address A is output from the processor l, and the trace data is written to the lower limit trace address below the L limit trace address A, and the trace data is stored in the trace memory until the trigger address B is output from the processor l. The trace conditions can be changed during tracing, such that trace data below the upper limit trace address B and above the lower limit trace address B is written.

尚、上限アドレス範囲内検出信号14aと下限アドレス
範囲内検出信号14bが同時に成立しないようにRAM
4上限トレースアドレスと下限トレースアドレス値を設
定する。例えば第二図の上限トレースアドレスへの値を
下限トレースアドレスAより小さい値にし上限トレース
アドレスBの値も同じように下限トレースアドレスBよ
り小さい値にする。すると、トレースメモリにはトリガ
アドレスA後に現れたトリガアドレスBからトリガーア
ドレスCまで上限トレースアドレスC以下下限トレース
アドレスC以上のトレースデータが書き込まれるという
ようにシーケンシャルトリガによるトレースを実現する
ことができる。
Note that the RAM is
4 Set the upper limit trace address and lower limit trace address values. For example, the value to the upper limit trace address in FIG. 2 is set to a smaller value than the lower limit trace address A, and the value to the upper limit trace address B is similarly set to a smaller value than the lower limit trace address B. Then, tracing by sequential triggering can be realized such that trace data from the trigger address B that appears after the trigger address A to the trigger address C, which is less than the upper limit trace address C and more than the lower limit trace address C, is written in the trace memory.

発明の詳細 な説明したように、本発明によれば、トレースの途中で
トレース条件を変更する事やシーケンシャルトリガを掛
けるなど様々なトレース制御が可能になりその実用的効
果は大きい。
As described in detail, the present invention enables various trace controls such as changing trace conditions during tracing and applying sequential triggers, and has great practical effects.

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

第1図は本発明の一実施例におけるマイクロプロセッサ
トレース装置の構成を示すブロック図、第2図は同実施
例におけるROMの記憶内容を説明する説明図、第3図
は従来のマイクロプロセッサトレース装置の構成を示す
ブロック図である。 l・・・マイクロプロセッサ、2・・・主記憶、3・・
・トレースメモリ制御装置、4・・・ROM、5.18
・・・トリガアドレス検出器、6a・・・上限トレース
アドレス検出器、6b・・・下限トレースアドレス検出
器、7・・・AND回路、8・・・トレース制御装置、
9・・・アドレス値、10・・・トレースデータ値、l
l、22・・・トリガアドレス検出信号、12.20・
・・トリガアドレス値、 13a・・・上限トレースアドレス値、13b・・・下
限トレースアドレス値、14a・・・上限アドレス範囲
内検出信号、14b・・・下限アドレス範囲内検出信号
、15・・・トレースイネーブル信号、 16.17・・・レジスタ、 19・・・アドレス範囲検出器、 21・・・アドレス範囲データ値、 23・・・アドレス範囲検出信号。 代理人の氏名 弁理士 中尾敏男 はか1名第1図
FIG. 1 is a block diagram showing the configuration of a microprocessor tracing device according to an embodiment of the present invention, FIG. 2 is an explanatory diagram illustrating the storage contents of a ROM in the same embodiment, and FIG. 3 is a conventional microprocessor tracing device. FIG. 2 is a block diagram showing the configuration of FIG. l...Microprocessor, 2...Main memory, 3...
・Trace memory control device, 4...ROM, 5.18
...Trigger address detector, 6a... Upper limit trace address detector, 6b... Lower limit trace address detector, 7... AND circuit, 8... Trace control device,
9...Address value, 10...Trace data value, l
l, 22...Trigger address detection signal, 12.20.
...Trigger address value, 13a...Upper limit trace address value, 13b...Lower limit trace address value, 14a...Upper limit address range detection signal, 14b...Lower limit address range detection signal, 15...Trace Enable signal, 16.17...Register, 19...Address range detector, 21...Address range data value, 23...Address range detection signal. Name of agent: Patent attorney Toshio Nakao (1 person) Figure 1

Claims (1)

【特許請求の範囲】[Claims] マイクロプロセッサの出力するデータが各々定められた
条件を満たしていることを検出する複数個の検出器と、
前記検出器のうち特定の検出器が出力する検出信号を入
力し前記検出器全てに各々新たな条件を出力する条件発
生器と、前記検出器のうち特定の検出器が出力する検出
信号の結果により前記マイクロプロセッサのデータをト
レースメモリに記憶させるトレースメモリ制御装置とを
備えたことを特徴とするマイクロプロセッサトレース装
置。
a plurality of detectors each detecting that data output from the microprocessor satisfies predetermined conditions;
a condition generator that inputs a detection signal output from a specific one of the detectors and outputs a new condition to each of the detectors; and a result of the detection signal output from a specific one of the detectors. and a trace memory control device for storing data of the microprocessor in a trace memory.
JP63027094A 1988-02-08 1988-02-08 Microprocessor trace device Pending JPH01201740A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63027094A JPH01201740A (en) 1988-02-08 1988-02-08 Microprocessor trace device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63027094A JPH01201740A (en) 1988-02-08 1988-02-08 Microprocessor trace device

Publications (1)

Publication Number Publication Date
JPH01201740A true JPH01201740A (en) 1989-08-14

Family

ID=12211493

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63027094A Pending JPH01201740A (en) 1988-02-08 1988-02-08 Microprocessor trace device

Country Status (1)

Country Link
JP (1) JPH01201740A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1083326A (en) * 1996-05-01 1998-03-31 Internatl Business Mach Corp <Ibm> Trace data collecting method and computer readable code
US6467083B1 (en) 1998-09-30 2002-10-15 Nec Corporation Debugging system for computer program, method for checking target program and information storage medium for storing checking program
JP2005301616A (en) * 2004-04-09 2005-10-27 Ricoh Co Ltd Debugging system
WO2007099273A1 (en) * 2006-03-03 2007-09-07 Arm Limited Monitoring values of signals within an integrated circuit
US7937535B2 (en) 2007-02-22 2011-05-03 Arm Limited Managing cache coherency in a data processing apparatus
US8099556B2 (en) 2005-09-13 2012-01-17 Arm Limited Cache miss detection in a data processing apparatus

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1083326A (en) * 1996-05-01 1998-03-31 Internatl Business Mach Corp <Ibm> Trace data collecting method and computer readable code
US6467083B1 (en) 1998-09-30 2002-10-15 Nec Corporation Debugging system for computer program, method for checking target program and information storage medium for storing checking program
JP2005301616A (en) * 2004-04-09 2005-10-27 Ricoh Co Ltd Debugging system
US8099556B2 (en) 2005-09-13 2012-01-17 Arm Limited Cache miss detection in a data processing apparatus
WO2007099273A1 (en) * 2006-03-03 2007-09-07 Arm Limited Monitoring values of signals within an integrated circuit
US8185724B2 (en) 2006-03-03 2012-05-22 Arm Limited Monitoring values of signals within an integrated circuit
US7937535B2 (en) 2007-02-22 2011-05-03 Arm Limited Managing cache coherency in a data processing apparatus

Similar Documents

Publication Publication Date Title
US5359608A (en) Apparatus for activation and deactivation of instruction tracing through use of conditional trace field in branch instructions
JPH01201740A (en) Microprocessor trace device
US4841454A (en) Display controller with a variable scrolling speed, and method for operating same
JPH01297738A (en) Computer testing device
JPS5914005A (en) Sequence controlling system by microcomputer
JPH0530225B2 (en)
JPH08313602A (en) Test pattern generator for lsi
JPS6037043A (en) Display device for program state
JPS6385940A (en) Testing system for information processor
JPH05297913A (en) Programmable controller
JPS6370346A (en) Test program control system
JPS5626237A (en) Engine monitor device
JPH01175046A (en) Operation history storage device
JPS6238746B2 (en)
JPH0193835A (en) Device for controlling microprogram
JPS57132255A (en) Program tracing system
JPS54140072A (en) Sequence controller trouble detection system
JPH04310138A (en) Debugging method for data transmitter
JPS6367648A (en) Program trace control system
JPS5453931A (en) Control unit for computer interface
JPS6336011B2 (en)
JPH04344947A (en) Program controller
JPH01243141A (en) Information processor
JPS60201444A (en) Interrupting signal generating system
JPS6222158A (en) Microcomputer