JPH05210534A - Instruction fetch trigger circuit - Google Patents

Instruction fetch trigger circuit

Info

Publication number
JPH05210534A
JPH05210534A JP4040477A JP4047792A JPH05210534A JP H05210534 A JPH05210534 A JP H05210534A JP 4040477 A JP4040477 A JP 4040477A JP 4047792 A JP4047792 A JP 4047792A JP H05210534 A JPH05210534 A JP H05210534A
Authority
JP
Japan
Prior art keywords
instruction fetch
cycle
signal
trigger
bus
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
JP4040477A
Other languages
Japanese (ja)
Inventor
Naoo Matsunuma
直郎 松沼
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.)
SOFUIA SYST KK
Original Assignee
SOFUIA SYST 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 SOFUIA SYST KK filed Critical SOFUIA SYST KK
Priority to JP4040477A priority Critical patent/JPH05210534A/en
Publication of JPH05210534A publication Critical patent/JPH05210534A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To detect a specific bus cycle in a specific routine by obtaining an instruction fetch trigger signal only in an instruction fetch cycle, ANDing it with a bus cycle coincidence signal, and obtaining a trigger signal. CONSTITUTION:An instruction fetch cycle detection part 13 detects whether a bus cycle generated with status information is the instruction fetch cycle or not. An address range detection part 14 detects whether or not the address of the generated bus cycle is within the range of a routine to be inspected. The contents of the address range detection part 14 are loaded in an instruction fetch trigger holding part 15 only in the instruction fetch cycle. The instruction fetch trigger signal generated by this instruction fetch trigger holding part 15 is used as a substitute for a sequence trigger together with the bus cycle coincidence signal and ANDed by an AND circuit 16 to obtain the trigger signal.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、マイクロプロセッサの
データ・バスの状況をサンプリングして、予め設定した
データと比較し、一致/不一致の状況を判断してトリガ
信号を得るためのトリガ回路であり、特に、インサーキ
ットエミュレータのトレース機能、またはステート・ア
ナライザに使用される命令フェッチ・トリガ回路に関す
るものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a trigger circuit for sampling the status of a data bus of a microprocessor, comparing it with preset data, and determining a match / mismatch status to obtain a trigger signal. In particular, the present invention relates to an in-circuit emulator trace function or an instruction fetch trigger circuit used in a state analyzer.

【0002】[0002]

【従来の技術】インサーキットエミュレータは、マイク
ロプロセッサの代わりにターゲットシステムに接続する
ことで、プログラムの任意の実行/停止、メモリ等資源
の読み/書き、実行のトレース機能等を有するマイクロ
プロセッサ開発支援装置として知られている。
2. Description of the Related Art An in-circuit emulator is a microprocessor development support having a function of arbitrarily executing / stopping a program, reading / writing of resources such as memory, and a trace function of execution by connecting to a target system instead of a microprocessor. Known as the device.

【0003】ところで、従来、このようなインサーキッ
トエミュレータのトレース機能、あるいはステート・ア
ナライザにおいては、バス・サイクル毎にマイクロプロ
セッサのデータ・バスの状況をサンプリングし、バス・
サイクル毎のデータ・バスの値と、外部から予め設定さ
れる値とを比較し、その一致/不一致の状況を判断して
各種トリガに用いていた。
By the way, conventionally, in the trace function of such an in-circuit emulator or the state analyzer, the status of the data bus of the microprocessor is sampled every bus cycle, and the bus
The value of the data bus for each cycle is compared with a value preset from the outside, and the condition of the match / mismatch is judged and used for various triggers.

【0004】[0004]

【発明が解決しようとする課題】ところが、このような
従来のやり方では、例えば、所定のサブルーチンA内で
の100番地へのメモリ・ライトをトリガにしたくと
も、このサブルーチンA内での100番地へのメモリ・
ライトなのか、それ以外のルーチンでのものなのかを区
別できなかった。
However, in such a conventional method, for example, even if it is desired to trigger a memory write to the address 100 in a predetermined subroutine A, the address 100 in the subroutine A can be written. Memory of
I couldn't tell if it was a light or something else.

【0005】このような事態を回避するために、最近で
は、シーケンス・トリガという機能を用いている。この
シーケンス・トリガは、バス・サイクルの発生のシーケ
ンスを順次追跡し、現在どのようなシーケンスであるか
を示す信号である。この信号と、バス・サイクル毎の比
較結果を総合することにより、バス・サイクルが発生し
た状況を特定するものである。例えば、上記のサブルー
チンA内での100番地へのメモリ・ライトをトリガに
する例で言えば、サブルーチンAの入口と出口をシーケ
ンスの切り替わりとして設定し、この入口を通過後出口
にいたるまでの間に発生した100番地へのメモリ・ラ
イトを検出することによって目的を果たそうとするもの
である。
In order to avoid such a situation, recently, a function called a sequence trigger is used. This sequence trigger is a signal that sequentially tracks the sequence of bus cycle occurrences and indicates what the sequence is currently. By summing this signal and the comparison result for each bus cycle, the situation in which the bus cycle occurs is specified. For example, in the example where the memory write to the address 100 in the above-mentioned subroutine A is used as a trigger, the entrance and the exit of the subroutine A are set as the switching of the sequence, and after passing through this entrance, until the exit is reached. The purpose of this is to detect the memory write to the 100th address that has occurred in the above step.

【0006】しかしながら、この従来のシーケンス・ト
リガでは、シーケンスの検出が複雑になる場合には、有
効でなくなることがあった。例えば、サブルーチンAの
入口や出口が複数ある場合、あるいはハードウェア割り
込みによって他のルーチンに移ってしまったことを検出
することは難しく、また、設定も複雑になる欠点があっ
た。
However, this conventional sequence trigger may not be effective when the sequence detection becomes complicated. For example, it is difficult to detect that there are a plurality of entrances and exits of the subroutine A or that the routine is moved to another routine due to a hardware interrupt, and the setting becomes complicated.

【0007】そこで本発明は、特定ルーチン内における
特定のバス・サイクルの検出ができる命令フェッチ・ト
リガ回路を提供することを目的とする。
Therefore, an object of the present invention is to provide an instruction fetch trigger circuit capable of detecting a specific bus cycle in a specific routine.

【0008】[0008]

【課題を解決するための手段】上記目的を達成するため
に、本発明の命令フェッチ・トリガ回路は、マイクロプ
ロセッサのデータ・バスの状況をサンプリングして、予
め設定した比較データと比較し、一致/不一致の状況を
判断してトリガ信号を得る命令フェッチ・トリガ回路に
おいて、前記マイクロプロセッサの発生したバス・サイ
クル情報と検出を行うために外部から設定される比較バ
ス・サイクル情報とにより、その一致を検出してバス・
サイクル一致信号を出力するバス・サイクル検出手段
と、前記マイクロプロセッサのステータス情報により、
発生したバス・サイクルが命令フェッチ・サイクルであ
るかどうかを検出して命令フェッチ・サイクル信号を出
力する命令フェッチ・サイクル検出手段と、前記マイク
ロプロセッサの発生したアドレス情報と外部から設定さ
れる比較アドレス情報とを比較して検査対象の範囲に入
っているかを検出し、アドレス範囲内/外信号を出力す
るアドレス範囲検出手段と、前記命令フェッチ・サイク
ル信号とアドレス範囲内/外信号とにより、該命令フェ
ッチ・サイクル信号の場合のみアドレス範囲内/外信号
の結果をロードし、それ以外のサイクルが発生した場合
には前の結果を保持し、その内容を命令フェッチ・トリ
ガ信号として出力する命令フェッチ・トリガ保持手段
と、前記バス・サイクル一致信号と命令フェッチ・トリ
ガ信号とのアンドを算出してトリガ信号を出力するアン
ド回路とを備えたものである。
In order to achieve the above object, an instruction fetch trigger circuit of the present invention samples the status of the data bus of a microprocessor, compares it with a preset comparison data, and makes a match. / In the instruction fetch trigger circuit for determining the mismatch condition and obtaining the trigger signal, the match is made by the bus cycle information generated by the microprocessor and the comparison bus cycle information set externally for detection. Detect the bus
By the bus cycle detection means for outputting a cycle coincidence signal and the status information of the microprocessor,
Instruction fetch cycle detecting means for detecting whether or not the generated bus cycle is an instruction fetch cycle and outputting an instruction fetch cycle signal, and address information generated by the microprocessor and a comparison address externally set The address range detecting means for comparing the information with the information to detect whether it is in the range to be inspected and outputting the address inside / outside signal, and the instruction fetch cycle signal and the address inside / outside signal, An instruction fetch that loads the result of the address inside / outside signal only for the instruction fetch cycle signal, retains the previous result when other cycles occur, and outputs the content as the instruction fetch trigger signal And AND between the trigger holding means and the bus cycle match signal and the instruction fetch trigger signal Those having an AND circuit for outputting a trigger signal out.

【0009】[0009]

【作用】本発明によれば、命令フェッチ・サイクル検出
手段による命令フェッチ・サイクル信号と、アドレス範
囲検出手段によるアドレス範囲内/外信号とに基づい
て、命令フェッチ・トリガ保持手段で命令フェッチ・サ
イクルのときのみアドレス範囲内/外信号を保持して命
令フェッチ・トリガ信号を得、この命令フェッチ・トリ
ガ信号をシーケンス・トリガの代わりに、バス・サイク
ル一致信号と共に用い、アンド回路でアンドを算出して
トリガ信号を得ることで、特定ルーチン内の特定バス・
サイクルが検出される。
According to the present invention, based on the instruction fetch cycle signal by the instruction fetch cycle detecting means and the address range inside / outside signal by the address range detecting means, the instruction fetch cycle is held by the instruction fetch trigger holding means. Only when the address range inside / outside signal is held, the instruction fetch trigger signal is obtained, and this instruction fetch trigger signal is used together with the bus cycle match signal instead of the sequence trigger, and the AND circuit calculates AND. To get the trigger signal,
The cycle is detected.

【0010】[0010]

【実施例】以下、本発明を図示の一実施例により具体的
に説明する。図2は本発明実施例の命令フェッチ・トリ
ガ回路の構成を説明する図である。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be specifically described below with reference to an embodiment shown in the drawings. FIG. 2 is a diagram for explaining the configuration of the instruction fetch trigger circuit of the embodiment of the present invention.

【0011】同図において、本実施例の命令フェッチ・
トリガ回路11は、バス・サイクル検出手段12と、命
令フェッチ・サイクル検出手段13と、アドレス範囲検
出手段14と、命令フェッチ・トリガ保持手段15と、
アンド回路16とから構成されている。
In the figure, the instruction fetch and
The trigger circuit 11 includes a bus cycle detecting means 12, an instruction fetch / cycle detecting means 13, an address range detecting means 14, an instruction fetch / trigger holding means 15, and
It is composed of an AND circuit 16.

【0012】バス・サイクル検出手段12は、バス・サ
イクル情報と比較バス・サイクル情報との一致を検出し
てバス・サイクル一致信号を出力する手段である。命令
フェッチ・サイクル検出手段13は、ステータス情報か
ら命令フェッチ・サイクルを検出して命令フェッチ・サ
イクル信号を出力する手段である。アドレス範囲検出手
段14は、アドレス情報と比較アドレス情報とにより検
査対象の範囲に入っているかを検出し、アドレス範囲内
/外信号を出力する手段である。命令フェッチ・トリガ
保持手段15は、命令フェッチ・サイクル信号とアドレ
ス範囲内/外信号とにより、命令フェッチ・サイクル信
号の場合のみアドレス範囲内/外信号の結果をロード
し、その内容を命令フェッチ・トリガ信号として出力す
る手段である。アンド回路16は、バス・サイクル一致
信号と命令フェッチ・トリガ信号とのアンドを得てトリ
ガ信号を出力する回路である。
The bus cycle detecting means 12 is means for detecting a match between the bus cycle information and the comparison bus cycle information and outputting a bus cycle match signal. The instruction fetch cycle detecting means 13 is means for detecting an instruction fetch cycle from the status information and outputting an instruction fetch cycle signal. The address range detection means 14 is a means for detecting whether or not it is within the range of the inspection target based on the address information and the comparison address information, and outputting an address range inside / outside signal. The instruction fetch / trigger holding unit 15 loads the result of the address range inside / outside signal only in the case of the instruction fetch cycle signal by the instruction fetch cycle signal and the address range inside / outside signal, and fetches the contents of the instruction fetch cycle signal. It is a means for outputting as a trigger signal. The AND circuit 16 is a circuit that obtains the AND of the bus cycle match signal and the instruction fetch trigger signal and outputs the trigger signal.

【0013】図1は本発明実施例の命令フェッチ・トリ
ガ回路の全体ブロック図である。このブロック図は、図
2の命令フェッチ・トリガ回路をさらに具体的に説明す
るものであり、対応する部分は同一の符号を記す。
FIG. 1 is an overall block diagram of an instruction fetch trigger circuit according to an embodiment of the present invention. This block diagram more specifically explains the instruction fetch / trigger circuit of FIG. 2, and the corresponding portions bear the same reference numerals.

【0014】同図において、非検査対象回路は、マイク
ロプロセッサ(CPU)21と、周辺回路22とから構
成されている。このCPU21は、例えば、広いデータ
・バス幅を有し長いデータ長を扱うことができる32ビ
ットCPUであり、それぞれアドレス情報、データ・バ
ス有効情報、ステータス情報、ダイナミック・バス・サ
イジング情報、データ情報をそれぞれ与えるラインで周
辺回路22に接続されている。アドレス情報は、発生し
たバス・サイクルのアドレス内容を示す情報である。デ
ータ・バス有効情報は、発生したバス・サイクルのデー
タ・バス上のどのバイト境界に有効な情報が存在するか
を示しており、例えば、通常の32ビットCPUにおい
ては、32ビットのデータ・バスが4つのバイトに分か
れており、各バイトを選択するバス・イネーブル信号
と、アドレス信号の下位2ビットとの組み合わせによっ
て、8、16、32等の任意の長さのデータを有効とす
ることができるようになっている。ステータス情報は、
発生したバス・サイクルのバス・ステータス情報を示
し、例えば、読み出すことを要求するリード、あるいは
書き込むことを要求するライト等のバス・サイクル定義
に関する情報である。ダイナミック・バス・サイジング
情報は、発生したバス・サイクルでどのようなダイナミ
ック・バス・サイジングが発生したかを示す情報であ
り、周辺回路22からCPU21へ入力される情報であ
る。データ情報は、データ・バスの内容を示す情報であ
る。
In FIG. 1, the non-inspection target circuit is composed of a microprocessor (CPU) 21 and a peripheral circuit 22. The CPU 21 is, for example, a 32-bit CPU that has a wide data bus width and can handle a long data length, and has address information, data bus valid information, status information, dynamic bus sizing information, and data information, respectively. Are connected to the peripheral circuit 22 by lines that respectively supply the. The address information is information indicating the address content of the generated bus cycle. The data bus valid information indicates which byte boundary on the data bus of the generated bus cycle has valid information. For example, in a normal 32-bit CPU, a 32-bit data bus is used. Is divided into 4 bytes, and a data of any length such as 8, 16, 32, etc. can be made effective by combining a bus enable signal for selecting each byte and the lower 2 bits of the address signal. You can do it. Status information is
It shows the bus status information of the generated bus cycle, and is, for example, information related to the bus cycle definition such as read requesting to read or write requesting to write. The dynamic bus sizing information is information indicating what dynamic bus sizing has occurred in the generated bus cycle, and is information input from the peripheral circuit 22 to the CPU 21. The data information is information indicating the contents of the data bus.

【0015】検査側回路は、本実施例の命令フェッチ・
トリガ回路11と、バス・サイクル希望トリガ内容設定
部23と、フェッチ・トリガ希望トリガ内容設定部24
とから構成されている。この命令フェッチ・トリガ回路
11は、バス・サイクル検出部12、命令フェッチ・サ
イクル検出部13、アドレス範囲検出部14、命令フェ
ッチ・トリガ保持部15、及びアンド回路16からな
る。バス・サイクル希望トリガ内容設定部23は、希望
するトリガ内容を設定する部分であり、検出を行うバス
・サイクルの比較用のアドレス/データ/ステータス情
報の全てが予め設定され、これらの情報が比較バス・サ
イクル情報として、バス・サイクル検出部12に与えら
れる。フェッチ・トリガ希望トリガ内容設定部24は、
希望するトリガ内容を設定する部分であり、比較対象と
する所定のルーチンが配置されているアドレスの範囲が
予め設定され、この情報が比較アドレス情報としてアド
レス範囲検出部14に与えられる。
The inspection side circuit is the instruction fetch / fetch circuit of this embodiment.
Trigger circuit 11, bus cycle desired trigger content setting unit 23, fetch trigger desired trigger content setting unit 24
It consists of and. The instruction fetch / trigger circuit 11 includes a bus cycle detection unit 12, an instruction fetch / cycle detection unit 13, an address range detection unit 14, an instruction fetch / trigger holding unit 15, and an AND circuit 16. The bus cycle desired trigger content setting section 23 is a section for setting desired trigger content, and all address / data / status information for comparison of the bus cycle to be detected is preset, and these information are compared. It is given to the bus cycle detection unit 12 as bus cycle information. The fetch trigger desired trigger content setting section 24
This is a part for setting desired trigger contents, and a range of addresses in which a predetermined routine to be compared is arranged is set in advance, and this information is given to the address range detector 14 as comparison address information.

【0016】バス・サイクル検出部12は、発生したバ
ス・サイクル情報としてCPU21側から与えられるア
ドレス情報、データ・バス有効情報、ステータス情報、
ダイナミック・バス・サイジング情報、データ情報、及
びバス・サイクル希望トリガ内容設定部23から与えら
れる比較バス・サイクル情報に基づき、バス・サイクル
の一致を検出して、バス・サイクル一致信号を出力する
機能を有する部分である。
The bus cycle detector 12 receives address information, data bus valid information, status information, which is given from the CPU 21 side as the generated bus cycle information.
A function of detecting a bus cycle match based on the dynamic bus sizing information, the data information, and the comparison bus cycle information provided from the bus cycle desired trigger content setting section 23, and outputting a bus cycle match signal. Is a part having.

【0017】命令フェッチ・サイクル検出部13は、C
PU21側から与えられるステータス情報により、発生
したバス・サイクルが命令フェッチ・サイクルであるか
どうかを検出し、その結果として命令フェッチ・サイク
ル信号を出力する機能を有する部分である。
The instruction fetch / cycle detection unit 13 uses C
It is a part having a function of detecting whether or not the generated bus cycle is an instruction fetch cycle based on the status information given from the PU 21 side and outputting an instruction fetch cycle signal as a result.

【0018】アドレス範囲検出部14は、CPU21側
から与えられるアドレス情報、データ・バス有効情報、
ダイナミック・バス・サイジング情報、及びトリガ希望
トリガ内容設定部25から与えられる比較アドレス情報
に基づき、発生したバス・サイクルのアドレスが検査対
象のルーチンの範囲に入っているかどうかを検出し、そ
の結果をアドレス範囲内または外の信号として出力する
機能を有する部分である。
The address range detector 14 is provided with address information, data bus valid information, which is provided from the CPU 21 side.
Based on the dynamic bus sizing information and the comparison address information provided from the trigger desired trigger content setting unit 25, it is detected whether the address of the generated bus cycle is within the range of the routine to be inspected, and the result is detected. It is a part having a function of outputting as a signal within or outside the address range.

【0019】命令フェッチ・トリガ保持部15は、命令
フェッチ・サイクル信号とアドレス範囲内/外信号とを
比較し、命令フェッチ・サイクルの場合にのみアドレス
範囲検出部14の結果をロードし、命令フェッチ・サイ
クル以外のサイクルが発生した場合には前の結果を保持
し、その内容を命令フェッチ・トリガ信号として出力す
る機能を有する部分である。
The instruction fetch / trigger holding unit 15 compares the instruction fetch cycle signal with the address range inside / outside signal, loads the result of the address range detecting unit 14 only in the case of the instruction fetch cycle, and fetches the instruction fetch. When a cycle other than the cycle occurs, the previous result is held and the content is output as an instruction fetch trigger signal.

【0020】アンド回路16は、バス・サイクル一致信
号と命令フェッチ・トリガ信号のアンドを算出し、トリ
ガ信号を得る回路である。
The AND circuit 16 is a circuit that calculates the AND of the bus cycle match signal and the instruction fetch trigger signal to obtain the trigger signal.

【0021】次に、上記構成の命令フェッチ・トリガ回
路11の動作を説明する。まず、バス・サイクル検出部
12では、アドレス情報、データ・バス有効情報、ステ
ータス情報、ダイナミック・バス・サイジング情報、デ
ータ情報、及び比較バス・サイクル情報に基づき、現在
発生中のバス・サイクルの一致が検出される。命令フェ
ッチ・サイクル検出部13では、ステータス情報により
発生したバス・サイクルが命令フェッチ・サイクルであ
るかどうかが検出される。アドレス範囲検出部14で
は、アドレス情報、データ・バス有効情報、ダイナミッ
ク・バス・サイジング情報、及び比較アドレス情報に基
づき、発生したバス・サイクルのアドレスが検査対象の
ルーチンの範囲に入っているかどうかが検出される。命
令フェッチ・トリガ保持部15では、命令フェッチ・サ
イクルのときのみアドレス範囲検出部14の結果がロー
ドされ、命令フェッチ・サイクル以外のサイクルが発生
した場合には前の結果が保持される。この命令フェッチ
・トリガ保持部15から生成される命令フェッチ・トリ
ガ信号は、現在発生中のバス・サイクルが検出対象のル
ーチン内か外かを示す。この命令フェッチ・トリガ信号
は、検出対象ルーチンの存在が範囲として認識されるこ
とを示しているため、ルーチンの入口や出口が多数あっ
てもその設定方法は変わらず、また、ハードウェア割り
込み等がルーチンから抜け出てしまった場合でも、割り
込みルーチンの最初の命令フェッチ・サイクルで命令フ
ェッチ・トリガ信号が範囲外を示すため検出が可能にな
る。従って、命令フェッチ・トリガ信号をシーケンス・
トリガの代わりに、バス・サイクル一致信号と共に用
い、アンド回路16でアンドを算出し、トリガ信号を得
ることで、特定ルーチン内の特定バス・サイクルを検出
することが可能となる。
Next, the operation of the instruction fetch / trigger circuit 11 having the above configuration will be described. First, the bus cycle detection unit 12 matches the currently occurring bus cycle based on the address information, the data bus valid information, the status information, the dynamic bus sizing information, the data information, and the comparison bus cycle information. Is detected. The instruction fetch cycle detection unit 13 detects whether the bus cycle generated by the status information is an instruction fetch cycle. The address range detection unit 14 determines whether the address of the generated bus cycle is within the range of the routine to be inspected, based on the address information, the data bus valid information, the dynamic bus sizing information, and the comparison address information. To be detected. The instruction fetch / trigger holding unit 15 loads the result of the address range detection unit 14 only during the instruction fetch cycle, and holds the previous result when a cycle other than the instruction fetch cycle occurs. The instruction fetch trigger signal generated from the instruction fetch trigger holding unit 15 indicates whether the bus cycle currently being generated is inside or outside the routine to be detected. Since this instruction fetch trigger signal indicates that the existence of the detection target routine is recognized as a range, the setting method does not change even if there are many entrances and exits of the routine, and hardware interrupts etc. Even if the routine is exited, detection is possible because the instruction fetch trigger signal indicates out of range in the first instruction fetch cycle of the interrupt routine. Therefore, the instruction fetch trigger signal
It is possible to detect a specific bus cycle in a specific routine by using the AND circuit 16 instead of the trigger and calculating AND with the AND circuit 16 and obtaining the trigger signal.

【0022】すなわち、従来の方法ではプログラムの流
れを、あるバス・サイクルの発生から他のバス・サイク
ルの発生というように、バス・サイクル毎の事象の発生
の間として捉えようとしたのに対して、本実施例では範
囲検出とその結果の保持により、プログラムの流れを面
として捉えることで問題が解決される。
That is, in the conventional method, the flow of the program is to be understood as between the occurrence of an event for each bus cycle, such as the occurrence of one bus cycle to the occurrence of another bus cycle. In this embodiment, the problem is solved by detecting the flow of the program as a surface by detecting the range and holding the result.

【0023】なお、上記各実施例において、32ビット
CPUを中心に説明したが、これに限ることなく8ビッ
ト、16ビット、64ビットのCPUにも適用できる。
In each of the above embodiments, a 32-bit CPU has been mainly described, but the present invention is not limited to this and can be applied to 8-bit, 16-bit and 64-bit CPUs.

【0024】[0024]

【発明の効果】以上説明したように本発明によれば、命
令フェッチ・サイクル検出手段による命令フェッチ・サ
イクル信号と、アドレス範囲検出手段によるアドレス範
囲内/外信号とに基づいて、命令フェッチ・トリガ保持
手段で命令フェッチ・サイクルのときのみアドレス範囲
内/外信号を保持して命令フェッチ・トリガ信号を得、
この命令フェッチ・トリガ信号をシーケンス・トリガの
代わりに、バス・サイクル一致信号と共に用い、アンド
回路でアンドを算出し、トリガ信号を得ているため、特
定ルーチン内の特定バス・サイクルを検出することが可
能となる効果がある。
As described above, according to the present invention, the instruction fetch trigger is generated based on the instruction fetch cycle signal by the instruction fetch cycle detecting means and the address range inside / outside signal by the address range detecting means. The holding means holds the address range inside / outside signal only during the instruction fetch cycle to obtain the instruction fetch trigger signal,
This instruction fetch trigger signal is used in place of the sequence trigger together with the bus cycle match signal, and is calculated by the AND circuit, and the trigger signal is obtained, so that the specific bus cycle in the specific routine is detected. There is an effect that becomes possible.

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

【図1】本発明実施例の命令フェッチ・トリガ回路の全
体ブロック図である。
FIG. 1 is an overall block diagram of an instruction fetch trigger circuit according to an embodiment of the present invention.

【図2】本発明実施例の命令フェッチ・トリガ回路の構
成を説明する図である。
FIG. 2 is a diagram illustrating a configuration of an instruction fetch / trigger circuit according to an embodiment of the present invention.

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

11 命令フェッチ・トリガ回路 12 バス・サイクル検出手段 13 命令フェッチ・サイクル検出手段 14 アドレス範囲検出手段 15 命令フェッチ・トリガ保持手段 16 アンド回路 21 CPU 22 周辺回路 23 バス・サイクル希望トリガ内容設定部 24 フェッチ・トリガ希望トリガ内容設定部 11 instruction fetch / trigger circuit 12 bus cycle detecting means 13 instruction fetch / cycle detecting means 14 address range detecting means 15 instruction fetch / trigger holding means 16 AND circuit 21 CPU 22 peripheral circuit 23 bus cycle desired trigger content setting section 24 fetch・ Trigger desired trigger content setting section

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 マイクロプロセッサのデータ・バスの状
況をサンプリングして、予め設定した比較データと比較
し、一致/不一致の状況を判断してトリガ信号を得る命
令フェッチ・トリガ回路において、 前記マイクロプロセッサの発生したバス・サイクル情報
と検出を行うために外部から設定される比較バス・サイ
クル情報とにより、その一致を検出してバス・サイクル
一致信号を出力するバス・サイクル検出手段と、 前記マイクロプロセッサのステータス情報により、発生
したバス・サイクルが命令フェッチ・サイクルであるか
どうかを検出して命令フェッチ・サイクル信号を出力す
る命令フェッチ・サイクル検出手段と、 前記マイクロプロセッサの発生したアドレス情報と外部
から設定される比較アドレス情報とを比較して検査対象
の範囲に入っているかを検出し、アドレス範囲内/外信
号を出力するアドレス範囲検出手段と、 前記命令フェッチ・サイクル信号とアドレス範囲内/外
信号とにより、該命令フェッチ・サイクル信号の場合の
みアドレス範囲内/外信号の結果をロードし、それ以外
のサイクルが発生した場合には前の結果を保持し、その
内容を命令フェッチ・トリガ信号として出力する命令フ
ェッチ・トリガ保持手段と、 前記バス・サイクル一致信号と命令フェッチ・トリガ信
号とのアンドを算出してトリガ信号を出力するアンド回
路とを備えたことを特徴とする命令フェッチ・トリガ回
路。
1. An instruction fetch trigger circuit for sampling the status of a data bus of a microprocessor, comparing it with preset comparison data, and determining a match / mismatch status to obtain a trigger signal. Bus cycle detecting means for detecting a match between the generated bus cycle information and the comparison bus cycle information externally set for detection, and outputting a bus cycle match signal; The instruction fetch cycle detecting means for detecting whether the generated bus cycle is the instruction fetch cycle or not and outputting the instruction fetch cycle signal, and the address information generated by the microprocessor and the external device. The range of the inspection target is compared by comparing with the comparison address information that is set. The address range detection means for detecting whether the address is within the range and outputting the address range inside / outside signal, and the instruction fetch cycle signal and the address range inside / outside signal, the address only in the case of the instruction fetch cycle signal Instruction fetch trigger holding means for loading the result of the in-range / outside signal, holding the previous result when another cycle occurs, and outputting the content as an instruction fetch trigger signal; An instruction fetch trigger circuit comprising: an AND circuit that calculates an AND of a cycle match signal and an instruction fetch trigger signal and outputs a trigger signal.
JP4040477A 1992-01-31 1992-01-31 Instruction fetch trigger circuit Pending JPH05210534A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4040477A JPH05210534A (en) 1992-01-31 1992-01-31 Instruction fetch trigger circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4040477A JPH05210534A (en) 1992-01-31 1992-01-31 Instruction fetch trigger circuit

Publications (1)

Publication Number Publication Date
JPH05210534A true JPH05210534A (en) 1993-08-20

Family

ID=12581702

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4040477A Pending JPH05210534A (en) 1992-01-31 1992-01-31 Instruction fetch trigger circuit

Country Status (1)

Country Link
JP (1) JPH05210534A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016186707A (en) * 2015-03-27 2016-10-27 富士通株式会社 Debug circuit, semiconductor device, and debugging method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016186707A (en) * 2015-03-27 2016-10-27 富士通株式会社 Debug circuit, semiconductor device, and debugging method

Similar Documents

Publication Publication Date Title
US6925584B2 (en) Systems and methods for testing processors
US6145123A (en) Trace on/off with breakpoint register
US5675729A (en) Method and apparatus for performing on-chip measurement on a component
EP0702297B1 (en) A data processor with breakpoint circuit
JP2000112783A (en) Program inspection method, program inspector and storage medium storing program inspection program
US4747045A (en) Information processing apparatus having an instruction prefetch circuit
EP0530816A2 (en) Microprocessor with cache memory and trace analyzer therefor
US6052801A (en) Method and apparatus for providing breakpoints on a selectable address range
JPH05210534A (en) Instruction fetch trigger circuit
JP2525492B2 (en) Programmable controller
JPH06202907A (en) Debug support device
JPS57164347A (en) Undefined instruction detector for one chip microcomputer
KR100297224B1 (en) Microcomputer loaded with prom and data read-out testing method for same
KR100705847B1 (en) Data processor with a debug circuit
JP3590289B2 (en) Event detection circuit
KR0164930B1 (en) Emulator program stop method
JPH11167500A (en) Event circuit and debug system for emulator device
JPH05210531A (en) Comparing circuit regarding data bus
JP3100458B2 (en) Coverage tester
CN117290211A (en) Method and device for detecting system memory of computer, operating system and storage medium
JPH0581052A (en) Microprocessor runaway check circuit
JPH0736735A (en) Debugging device
JPH05189267A (en) Operation control system for microprocessor and emulator
JPS58105359A (en) Measuring system of program processing time
JPH0236423A (en) Saving/restoring register address generation circuit