JPH08179965A - Event detection circuit - Google Patents

Event detection circuit

Info

Publication number
JPH08179965A
JPH08179965A JP6322831A JP32283194A JPH08179965A JP H08179965 A JPH08179965 A JP H08179965A JP 6322831 A JP6322831 A JP 6322831A JP 32283194 A JP32283194 A JP 32283194A JP H08179965 A JPH08179965 A JP H08179965A
Authority
JP
Japan
Prior art keywords
event
signal
event detection
circuit
combination
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
JP6322831A
Other languages
Japanese (ja)
Inventor
Tadayuki Akatsuki
忠之 赤月
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.)
Renesas Design Corp
Mitsubishi Electric Corp
Mitsubishi Electric Semiconductor Systems Corp
Original Assignee
Renesas Design Corp
Mitsubishi Electric Corp
Mitsubishi Electric Semiconductor Systems Corp
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 Renesas Design Corp, Mitsubishi Electric Corp, Mitsubishi Electric Semiconductor Systems Corp filed Critical Renesas Design Corp
Priority to JP6322831A priority Critical patent/JPH08179965A/en
Publication of JPH08179965A publication Critical patent/JPH08179965A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE: To provide a superior function as an event detecting function and to provide a high-degree event combination with a low cost and at high speed by detecting the occurrence of prescribed combination of input information by combining information outputted in parallel from an information storage means. CONSTITUTION: Each set data of designated condition to detect each input intended event is stored corresponding to each of the addresses 21a-21d of a detection event designation register 21. Comparators 20a-20d compare designation data from the corresponding addresses of the detection event designation register 21 with an address and data inputted from a bus 9 and executed by a target microcomputer, and detect a prescribed event by detecting coincidence between the data. Each shift registers 23a-23d performs one-bit shift setting the corresponding comparison output of the comparators 20a-20d as input data, and each data is outputted to a combinational logic circuit 24 for detection simultaneously and in parallel as parallel data, and the combination of set events is detected.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、マイクロプロセッサ応
用システム等のハードウェア及びソフトウェアのデバッ
グを行うためのデバッグ装置等に使用されるイベント検
出回路に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an event detection circuit used in a debug device for debugging hardware and software of a microprocessor application system or the like.

【0002】[0002]

【従来の技術】マイクロプロセッサ応用システムの処理
動作をデバッグする場合、該システムの設計時に意図し
た動作と異なる動作に対してその原因、対策を検討する
ため、実際の動作現象を把握する必要がある。このため
には問題となる現象の発生時点での動作状態を把握する
ために、マイクロプロセッサの動作を監視して、特定の
条件で目的とする処理を停止させる機能が要求される。
この場合、指定する特定の条件をイベントと表現し、デ
バッグ装置には、該イベントを検出するイベント検出機
能を備えている。
2. Description of the Related Art When debugging the processing operation of a microprocessor application system, it is necessary to grasp the actual operation phenomenon in order to study the cause and countermeasure for the operation different from the operation intended at the time of designing the system. . For this purpose, a function of monitoring the operation of the microprocessor and stopping the target processing under a specific condition is required in order to grasp the operation state at the time of occurrence of the problematic phenomenon.
In this case, the specified specific condition is expressed as an event, and the debug device has an event detection function for detecting the event.

【0003】図11は、従来のシーケンシャルイベント
検出機能を備えたイベント検出回路の概略ブロック図で
ある。図11において、コンパレータ部100は、コン
パレータ100a,100b,100c,100dから
なり、コンパレータ100a,100b,100c,1
00dの一方の入力はそれぞれ、デバッグ対象となるマ
イコン応用システム(以下ターゲットシステムと呼ぶ)
で使用されるデバッグ対象のマイコン(以下ターゲット
マイコンと呼ぶ)のバス101に接続されている。
FIG. 11 is a schematic block diagram of an event detection circuit having a conventional sequential event detection function. In FIG. 11, the comparator unit 100 is composed of comparators 100a, 100b, 100c, 100d, and comparators 100a, 100b, 100c, 1
One input of 00d is a microcomputer application system to be debugged (hereinafter referred to as a target system)
Is connected to a bus 101 of a microcomputer to be debugged (hereinafter referred to as a target microcomputer).

【0004】また、検出したいイベントを記憶させた検
出イベント指定レジスタ102には、上記コンパレータ
100a〜100dの他方の入力がそれぞれ接続されて
おり、検出したい各イベントが上記レジスタ102の各
アドレスに記憶され、上記コンパレータ100a〜10
0dは、該アドレスに記憶された状態データと、上記バ
ス101から入力される状態(アドレス、情報データな
ど)のデータと比較して、該データとの一致を検出す
る。
Further, the other inputs of the comparators 100a to 100d are connected to the detection event designation register 102 which stores the event to be detected, and each event to be detected is stored in each address of the register 102. , The comparators 100a to 10
0d compares the status data stored in the address with the status data (address, information data, etc.) input from the bus 101, and detects a match with the data.

【0005】ここでは例として、上記コンパレータ10
0aの他方の入力には上記レジスタ102のアドレス1
に記憶されたイベントの状態データが、上記コンパレー
タ100bの他方の入力には上記レジスタ102のアド
レス2に記憶されたイベントの状態データが、上記コン
パレータ100cの他方の入力には上記レジスタ102
のアドレス3に記憶されたイベントの状態データが、上
記コンパレータ100dの他方の入力には上記レジスタ
102のアドレス4に記憶されたイベントの状態データ
が、入力されるようになっている。更に、上記各コンパ
レータ100a〜100dの出力はそれぞれ、シーケン
スの組合せを構成して指定するためのイベント検出シー
ケンサ103に接続されている。
Here, as an example, the comparator 10 is used.
The other input of 0a is the address 1 of the register 102.
The event state data stored in the comparator 100b is stored in the other input of the comparator 100b, and the event state data stored in the address 2 of the register 102 is stored in the other input of the comparator 100b.
The event state data stored at address 3 of the register is input to the other input of the comparator 100d, and the event state data stored at address 4 of the register 102 is input. Further, the outputs of the comparators 100a to 100d are connected to an event detection sequencer 103 for forming and designating a combination of sequences.

【0006】上記のような構成において、上記イベント
検出シーケンサ103は初期状態として状態S1に設定
されており、上記コンパレータ100aから一致検出信
号がイベント検出シーケンサ103に入力されると、イ
ベント検出シーケンサ103は状態S1から状態S2へ
遷移する。同様にして上記コンパレータ100bから一
致検出信号がイベント検出シーケンサ103に入力され
ると、イベント検出シーケンサ103は状態S2から状
態S3に遷移し、状態S3からは、上記コンパレータ1
00dの一致検出信号によって状態S4に遷移する。イ
ベント検出シーケンサ103の内部状態が状態S4にな
ったとき、該イベント検出シーケンサ103は、イベン
ト検出信号を出力する。
In the above configuration, the event detection sequencer 103 is set to the state S1 as an initial state, and when the coincidence detection signal is input from the comparator 100a to the event detection sequencer 103, the event detection sequencer 103 The state S1 transits to the state S2. Similarly, when the coincidence detection signal is input from the comparator 100b to the event detection sequencer 103, the event detection sequencer 103 transits from state S2 to state S3, and from state S3, the comparator 1
The coincidence detection signal 00d causes a transition to state S4. When the internal state of the event detection sequencer 103 reaches the state S4, the event detection sequencer 103 outputs an event detection signal.

【0007】また、上記イベント検出シーケンサ103
が状態S2のときに、上記コンパレータ102dから一
致検出信号がイベント検出シーケンサ103に入力され
ると、イベント検出シーケンサ103は状態S2から状
態S4に遷移してイベント検出信号を出力する。
The event detection sequencer 103 is also provided.
When the match detection signal is input from the comparator 102d to the event detection sequencer 103 in the state S2, the event detection sequencer 103 transits from the state S2 to the state S4 and outputs the event detection signal.

【0008】このように、コンパレータ100a〜10
0dによって、上記検出イベント指定レジスタ102の
各アドレスに記憶された状態データと、上記バス101
から入力される状態(アドレス、情報データなど)のデ
ータとが比較されることにより、ターゲットマイコンの
バスアクセスが、上記検出イベント指定レジスタ102
におけるアドレス1からアドレス2更にアドレス4、又
はアドレス1からアドレス4といった一連の記憶内容の
処理が発生したことを上記イベント検出シーケンサ10
3が検出したことになる。
Thus, the comparators 100a-10a
0d, the status data stored in each address of the detection event designation register 102 and the bus 101
By comparing with the data of the state (address, information data, etc.) input from the target microcomputer, the bus access of the target microcomputer can be performed by the detection event designation register 102.
The event detection sequencer 10 indicates that processing of a series of stored contents such as address 1 to address 2 and address 4 or address 1 to address 4 has occurred.
3 is detected.

【0009】[0009]

【発明が解決しようとする課題】しかしながら上記のよ
うに、従来においては、シーケンスの組合せはイベント
検出シーケンサ103の構成で指定されるため、一般に
イベント検出シーケンサ103の構成を一定として、コ
ンパレータ部100へのイベント指定を必要なシーケン
スに従って設定することで意図するシーケンシャルイベ
ント検出を指定していた。このため、イベント管理が複
雑になり、ハードウェア及びソフトウェアの構成が複雑
になると共に、イベント検出シーケンサ103における
検出すべきシーケンスの段数が増加することは、該イベ
ント検出シーケンサ103の回路増大を必要とするた
め、6段程度のシーケンスを実現するのみであった。
However, as described above, since the combination of sequences is conventionally designated by the configuration of the event detection sequencer 103, the configuration of the event detection sequencer 103 is generally fixed and the comparator unit 100 is operated. The intended sequential event detection was specified by setting the event specification of in accordance with the required sequence. For this reason, the event management becomes complicated, the hardware and software configurations become complicated, and the increase in the number of stages of sequences to be detected in the event detection sequencer 103 requires an increase in the circuit of the event detection sequencer 103. Therefore, only the sequence of about 6 steps was realized.

【0010】本発明は、上記のような課題を解決するた
めになされたものであり、マイクロプロセッサ応用シス
テムのデバッグを支援するデバッグ装置の機能のうち、
ブレイクポイント検出等に用いられるイベント検出機能
を高機能にすると共に、高度なイベント組合せを低コス
トでかつ高速に実現するための手段を得るものである。
The present invention has been made to solve the above problems, and among the functions of a debugging device that supports debugging of a microprocessor application system,
(EN) A means for enhancing an event detection function used for breakpoint detection or the like and realizing an advanced event combination at low cost and at high speed.

【0011】[0011]

【課題を解決するための手段】本発明は、入力された情
報を時系列に記憶し、該記憶した時系列の情報を同時に
並列に出力する情報記憶手段と、該情報記憶手段から並
列に出力された情報を組み合わせて、上記入力情報の所
定の組合せの発生を検出する組合せ検出手段とを備え
た、所定の事象を検出するイベント検出回路を提供する
ものである。
According to the present invention, input information is stored in time series, and the stored time series information is simultaneously output in parallel, and the information storage means outputs the information in parallel. An event detection circuit for detecting a predetermined event is provided, which is provided with a combination detection means for detecting the occurrence of a predetermined combination of the input information by combining the generated information.

【0012】本願の特許請求の範囲の請求項2に記載の
発明において、上記請求項1の情報記憶手段は、少なく
とも1つのシフトレジスタからなることを特徴とする。
The invention according to claim 2 of the present application is characterized in that the information storage means according to claim 1 comprises at least one shift register.

【0013】本願の特許請求の範囲の請求項3に記載の
発明において、上記請求項1及び請求項2の組合せ検出
手段は、上記入力情報をANDアレイ部への入力とする
PLA構造をなすことを特徴とする。
In the invention according to claim 3 of the present application, the combination detecting means according to claim 1 and claim 2 has a PLA structure in which the input information is input to the AND array section. Is characterized by.

【0014】本願の特許請求の範囲の請求項4に記載の
発明は、マイクロプロセッサのバス状態を監視して、指
定された状態を検出すると所定の検出信号を出力するバ
ス状態検出手段と、該バス状態検出手段から上記検出信
号が出力されると所定の信号を出力する信号出力手段
と、該信号出力手段からの所定の信号により上記バス状
態検出手段からの出力信号を時系列に記憶すると共に、
該記憶した時系列の信号情報を同時に並列に出力する機
能を有する記憶手段と、該記憶手段から並列に出力され
た信号情報を組み合わせて、該信号情報の所定の組合せ
の発生を検出することにより、上記マイクロプロセッサ
における特定の事象を検出する組合せ検出手段とを備え
た、マイクロプロセッサ応用システム等のデバッグを行
うデバッグ装置におけるイベント検出回路を提供するも
のである。
According to a fourth aspect of the present invention, there is provided bus state detection means for monitoring a bus state of a microprocessor and outputting a predetermined detection signal when a designated state is detected, and the bus state detection means. A signal output means for outputting a predetermined signal when the detection signal is output from the bus state detection means, and a predetermined signal from the signal output means for storing the output signal from the bus state detection means in time series. ,
By combining the storage means having the function of simultaneously outputting the stored time-series signal information in parallel and the signal information output in parallel from the storage means, and detecting the occurrence of a predetermined combination of the signal information. The present invention provides an event detection circuit in a debug device for debugging a microprocessor application system or the like, which comprises a combination detection means for detecting a specific event in the microprocessor.

【0015】本願の特許請求の範囲の請求項5に記載の
発明において、上記請求項4の記憶手段は、複数のシフ
トレジスタからなることを特徴とする。
In the invention according to claim 5 of the present application, the storage means according to claim 4 comprises a plurality of shift registers.

【0016】本願の特許請求の範囲の請求項6に記載の
発明において、上記請求項4及び請求項5の組合せ検出
手段は、上記信号情報をANDアレイ部への入力とする
PLA構造をなすことを特徴とする。
In the invention according to claim 6 of the present application, the combination detecting means according to claims 4 and 5 has a PLA structure in which the signal information is input to the AND array section. Is characterized by.

【0017】本願の特許請求の範囲の請求項7に記載の
発明は、マイクロプロセッサのバス状態を監視して、該
バス状態と指定された状態を比較して、一致した場合に
所定の信号を出力する複数のコンパレータ回路と、該各
コンパレータ回路のいずれかから上記所定の信号が出力
された場合にパルス信号を出力するコンパレータパルス
出力回路と、該コンパレータパルス出力回路からのパル
ス信号によってシフトし、上記各コンパレータ回路から
の出力状態をそれぞれ記憶し、該各記憶情報を同時に並
列に出力する機能を備えた複数のシフトレジスタと、該
各シフトレジスタからのそれぞれの並列に出力された信
号情報を組み合わせて、該信号情報の所定の組合せの発
生を検出することにより、マイクロプロセッサにおける
特定のバス状態を検出する組合せ論理回路とを備えた、
マイクロプロセッサ応用システム等のデバッグを行うデ
バッグ装置におけるイベント検出回路を提供するもので
ある。
The invention according to claim 7 of the present application monitors the bus state of the microprocessor, compares the bus state with a designated state, and when a match occurs, outputs a predetermined signal. A plurality of comparator circuits to output, a comparator pulse output circuit that outputs a pulse signal when the predetermined signal is output from any one of the comparator circuits, and shifted by the pulse signal from the comparator pulse output circuit, A plurality of shift registers having a function of storing the output states from the comparator circuits and outputting the stored information in parallel at the same time, and a combination of the signal information output from the shift registers in parallel. By detecting the occurrence of a predetermined combination of the signal information, a specific bus state in the microprocessor is detected. And a combinational logic circuit output,
An event detection circuit in a debug device for debugging a microprocessor application system or the like.

【0018】本願の特許請求の範囲の請求項8に記載の
発明において、上記請求項7の組合せ論理回路は、上記
信号情報をANDアレイ部の入力とするPLA構造をな
すことを特徴とする。
The invention according to claim 8 of the present application is characterized in that the combinational logic circuit according to claim 7 has a PLA structure in which the signal information is input to an AND array section.

【0019】[0019]

【作用】特許請求の範囲の請求項1に記載のイベント検
出回路は、情報記憶手段で、入力された情報を時系列に
記憶して、該記憶した時系列の情報を同時に並列に出力
し、組合せ検出手段で、該情報記憶手段から並列に出力
された情報を組み合わせて、上記入力情報の所定の組合
せの発生を検出する。
In the event detection circuit according to claim 1, the information storage means stores the input information in time series, and outputs the stored time series information simultaneously in parallel. The combination detection means combines the information output in parallel from the information storage means to detect the occurrence of a predetermined combination of the input information.

【0020】特許請求の範囲の請求項2に記載のイベン
ト検出回路においては、請求項1に記載の情報記憶手段
が、少なくとも1つのシフトレジスタからなる。
In the event detection circuit according to claim 2 of the invention, the information storage means according to claim 1 comprises at least one shift register.

【0021】特許請求の範囲の請求項3に記載のイベン
ト検出回路においては、請求項1及び請求項2に記載の
組合せ検出手段が、上記入力情報をANDアレイ部への
入力とするPLA構造をなす。
In the event detection circuit according to claim 3 of the invention, the combination detection means according to claims 1 and 2 has a PLA structure in which the input information is input to the AND array section. Eggplant

【0022】特許請求の範囲の請求項4に記載のイベン
ト検出回路は、バス状態検出手段で、マイクロプロセッ
サのバス状態を監視して、指定された状態を検出すると
所定の検出信号を出力し、信号出力手段で、該バス状態
検出手段から上記検出信号が出力されると所定の信号を
出力し、記憶手段で、上記信号出力手段からの所定の信
号により上記バス状態検出手段からの出力信号を時系列
に記憶すると共に、該記憶した時系列の信号情報を同時
に並列に出力し、組合せ検出手段で、上記記憶手段から
並列に出力された信号情報を組み合わせて、該信号情報
の所定の組合せの発生を検出することにより、上記マイ
クロプロセッサにおける特定の事象を検出する。
According to another aspect of the present invention, in the event detecting circuit, the bus state detecting means monitors the bus state of the microprocessor and outputs a predetermined detection signal when the designated state is detected. The signal output means outputs a predetermined signal when the detection signal is output from the bus state detection means, and the storage means outputs the output signal from the bus state detection means according to the predetermined signal from the signal output means. Along with storing in time series, the stored time series signal information is simultaneously output in parallel, and the combination detecting means combines the signal information output in parallel from the storage means to obtain a predetermined combination of the signal information. By detecting the occurrence, a specific event in the microprocessor is detected.

【0023】特許請求の範囲の請求項5に記載のイベン
ト検出回路においては、請求項4に記載の記憶手段が、
複数のシフトレジスタから構成されている。
In the event detection circuit according to claim 5 of the invention, the storage means according to claim 4 is:
It is composed of a plurality of shift registers.

【0024】特許請求の範囲の請求項6に記載のイベン
ト検出回路においては、請求項4及び請求項5に記載の
組合せ検出手段が、上記信号情報をANDアレイ部への
入力とするPLA構造をなす。
In the event detection circuit according to claim 6, the combination detection means according to claims 4 and 5 has a PLA structure in which the signal information is input to the AND array section. Eggplant

【0025】特許請求の範囲の請求項7に記載のイベン
ト検出回路は、各コンパレータ回路で、マイクロプロセ
ッサのバス状態を監視して、該バス状態と指定された状
態を比較し、一致した場合に所定の信号を出力し、コン
パレータパルス出力回路で、上記各コンパレータ回路の
いずれかから上記所定の信号が出力された場合にパルス
信号を出力し、各シフトレジスタで、上記コンパレータ
パルス出力回路からのパルス信号によってシフトし、上
記各コンパレータ回路からの出力状態をそれぞれ記憶
し、該各記憶情報を同時に並列に出力し、組合せ論理回
路で、上記各シフトレジスタからのそれぞれの並列に出
力された信号情報を組み合わせて、該信号情報の所定の
組合せの発生を検出することにより、マイクロプロセッ
サにおける特定のバス状態を検出する。
According to another aspect of the event detection circuit of the present invention, each comparator circuit monitors the bus state of the microprocessor and compares the bus state with a designated state. Outputs a predetermined signal and outputs a pulse signal when the comparator pulse output circuit outputs the predetermined signal from any of the comparator circuits, and each shift register outputs a pulse from the comparator pulse output circuit. Shifted by a signal, store the output states from the comparator circuits, respectively, output the stored information in parallel at the same time, and the combinational logic circuit outputs the signal information output in parallel from the shift registers. In combination, the occurrence of a predetermined combination of the signal information is detected to detect a particular bar in the microprocessor. State to detect.

【0026】特許請求の範囲の請求項8に記載のイベン
ト検出回路においては、請求項7に記載の組合せ論理回
路が、上記信号情報をANDアレイ部の入力とするPL
A構造をなす。
In the event detection circuit according to claim 8 of the present invention, the combinational logic circuit according to claim 7 uses the signal information as an input to the AND array section.
Form A structure.

【0027】[0027]

【実施例】次に、図面に示す実施例に基づき、本発明に
ついて詳細に説明する。 実施例1.図1は、マイクロプロセッサのバス情報を取
り込み記録する機能を有し、マイクロプロセッサ応用シ
ステム等のデバッグを行う、本発明の第1実施例のイベ
ント検出回路を使用したデバッグ装置の例を示す概略ブ
ロック図であり、最初に図1を用いて本発明の第1実施
例のイベント検出回路を使用するデバッグ装置の概略を
説明する。
The present invention will now be described in detail with reference to the embodiments shown in the drawings. Example 1. FIG. 1 is a schematic block diagram showing an example of a debug device using the event detection circuit according to the first embodiment of the present invention, which has a function of capturing and recording bus information of a microprocessor and debugs a microprocessor application system or the like. FIG. 1 is a diagram. First, an outline of a debug device using the event detection circuit of the first embodiment of the present invention will be described with reference to FIG.

【0028】図1において、デバッグ装置1は、ターゲ
ットマイコンと同種のマイコン又はデバッグ用機能を付
加したマイコンを一般的に使用しデバッグ装置1内でタ
ーゲットマイコンの機能を実現するエミュレーションマ
イコン2と、該エミュレーションマイコン2の動作を制
御しターゲットシステムでの動作とデバッグ装置1での
動作を切り換えるエミュレーションマイコン制御回路3
と、ターゲットマイコンの動作を監視しターゲットマイ
コンの実行したアドレスやアクセスしたデータである指
定条件の発生を検出するイベント検出回路4a及び4b
と、該イベント検出回路4aで検出した条件に基づいて
エミュレーションマイコン制御回路の割込み制御機能を
制御するための機能を有するブレイク回路5とを備え
る。
In FIG. 1, a debug device 1 generally uses a microcomputer of the same type as the target microcomputer or a microcomputer to which a debugging function is added, and an emulation microcomputer 2 for realizing the function of the target microcomputer in the debug device 1. Emulation microcomputer control circuit 3 for controlling the operation of the emulation microcomputer 2 and switching between the operation in the target system and the operation in the debug device 1.
And event detection circuits 4a and 4b that monitor the operation of the target microcomputer and detect the occurrence of a specified condition that is the address executed by the target microcomputer or the data accessed.
And a break circuit 5 having a function of controlling the interrupt control function of the emulation microcomputer control circuit based on the condition detected by the event detection circuit 4a.

【0029】更に、上記デバッグ装置1は、ターゲット
マイコンのバス動作を記録するためのトレースメモリ6
と、ターゲットマイコン(デバッガ内ではエミュレーシ
ョンマイコン)のバス動作を記録するトレース機能を有
し、上記トレースメモリ6において、アドレスを制御す
ると共に上記イベント検出回路4bで設定された条件に
従って記録開始又は終了動作を制御するトレース制御回
路7と、デバッグ装置1内の制御を行いデバッガコマン
ドを実行するためのデバッガ内部の設定及びデータ処理
を行うために使用するバスであるエミュレータ制御MP
Uバス8とを備える。
The debug device 1 further includes a trace memory 6 for recording the bus operation of the target microcomputer.
And a trace function for recording the bus operation of the target microcomputer (emulation microcomputer in the debugger), controlling the address in the trace memory 6 and recording start or end operation according to the conditions set by the event detection circuit 4b. And a trace control circuit 7 for controlling the emulator, and an emulator control MP which is a bus used for performing settings inside the debugger and data processing for executing the debugger commands by controlling the inside of the debug device 1.
And a U-bus 8.

【0030】また、上記エミュレーションマイコン2、
イベント検出回路4a,4b及びトレースメモリ6は、
アドレスバスやデータバスやコントロールバス等からな
るバス9でターゲットシステムと接続され、上記イベン
ト検出回路4a,4b、上記ブレイク回路5、上記トレ
ースメモリ6及び上記トレース制御回路7は、それぞれ
エミュレータ制御MPUバス8を介して上記エミュレー
ションマイコン制御回路3に接続され、更に、これとは
別に上記ブレイク回路5はエミュレーションマイコン制
御回路3に接続されている。なお、上記イベント検出回
路4aは、ブレイク回路5内に設けられ、上記イベント
検出回路4bはトレース制御回路7内に設けられてい
る。
Further, the emulation microcomputer 2,
The event detection circuits 4a and 4b and the trace memory 6 are
The event detection circuits 4a and 4b, the break circuit 5, the trace memory 6 and the trace control circuit 7 are connected to the target system by a bus 9 including an address bus, a data bus, a control bus, etc. Further, the break circuit 5 is connected to the emulation microcomputer control circuit 3 via 8, and the break circuit 5 is connected to the emulation microcomputer control circuit 3 separately. The event detection circuit 4a is provided in the break circuit 5, and the event detection circuit 4b is provided in the trace control circuit 7.

【0031】上記のような構成において、デバッグ装置
1において、デバッグを行う動作は公知であり、ここで
は、ターゲットマイコンの動作制御及び動作観測を行う
動作について簡単に説明する。最初に、図1で示したデ
バッグ装置1における、ターゲットマイコンの動作制御
を行う動作について説明する。ターゲットマイコンの動
作制御のうち主な機能は、ターゲットマイコンがターゲ
ットシステム上で実行するソフトウェアであるターゲッ
トプログラム実行中に指定した条件を検出し、該条件を
検出するとターゲットマイコンに対してターゲットプロ
グラムの実行を中断させることである。
In the above-described configuration, the debug operation of the debug apparatus 1 is known, and the operation of controlling and observing the operation of the target microcomputer will be briefly described here. First, the operation of controlling the operation of the target microcomputer in the debug device 1 shown in FIG. 1 will be described. The main function of the target microcomputer operation control is to detect the conditions specified during execution of the target program, which is the software that the target microcomputer executes on the target system. When the conditions are detected, the target program is executed to the target microcomputer. Is to interrupt.

【0032】図2は、図1におけるデバッグ装置1によ
るターゲットマイコンの動作制御を行う動作を示したフ
ローチャートであり、図2のフローチャート用いてデバ
ッグ装置1によるターゲットマイコンの動作制御を行う
動作を説明する。図2において、最初にステップS1で
上記エミュレーションマイコン制御回路3は、上記イベ
ント検出回路4aに対して検出したい条件のデータをエ
ミュレータ制御MPUバス8を介して入力して条件設定
を行い、ステップS2でイベント検出回路4aは、該設
定された指定条件とバス9から入力されるターゲットマ
イコンが実行したアドレスやデータとを比較して上記指
定条件の検出を行う。
FIG. 2 is a flow chart showing the operation for controlling the operation of the target microcomputer by the debug device 1 in FIG. 1. The operation for controlling the operation of the target microcomputer by the debug device 1 will be described with reference to the flow chart of FIG. . In FIG. 2, first, in step S1, the emulation microcomputer control circuit 3 inputs data of a condition to be detected to the event detection circuit 4a via the emulator control MPU bus 8 to set the condition, and in step S2. The event detection circuit 4a detects the specified condition by comparing the specified condition set with the address and data executed by the target microcomputer input from the bus 9.

【0033】次にステップS3でイベント検出回路4a
が上記指定条件を検出した場合(YES)、ステップS
4でイベント検出回路4aは、ブレイク回路5に対して
指定条件を検出したことを示す信号を出力し、ステップ
S5でブレイク回路5は、イベント検出回路4aからの
該信号を受けて、エミュレーションマイコン制御回路3
に対して、例えばエミュレーションマイコン2に割り込
みを発生させるといった所定の割り込み制御機能を作動
させるためのブレイク要求信号を出力し、ステップS6
でエミュレーションマイコン制御回路3は、エミュレー
ションマイコン2に例えばターゲットシステムにおける
ターゲットプログラムの実行を中断させるといった所定
の割り込み動作を行わせて本フローは終了する。
Next, at step S3, the event detection circuit 4a
If the above specified condition is detected (YES), step S
In step 4, the event detection circuit 4a outputs a signal indicating that the specified condition is detected to the break circuit 5, and in step S5, the break circuit 5 receives the signal from the event detection circuit 4a and controls the emulation microcomputer. Circuit 3
On the other hand, for example, a break request signal for operating a predetermined interrupt control function such as generating an interrupt in the emulation microcomputer 2 is output, and step S6
Then, the emulation microcomputer control circuit 3 causes the emulation microcomputer 2 to perform a predetermined interrupt operation such as interrupting the execution of the target program in the target system, and this flow ends.

【0034】また、ステップS3でイベント検出回路4
aが上記指定条件を検出しなかった場合(NO)、ステ
ップS2に戻り、イベント検出回路4aは、指定条件を
検出するまで該検出動作を行う。なお、エミュレーショ
ンマイコン制御回路3は、検出したい条件のデータをエ
ミュレータ制御MPUバス8を介してイベント検出回路
4aに入力して条件設定を行うことができるため、イベ
ント検出回路4aに対して随時、検出したい指定条件を
変更して設定を行うものである。
In step S3, the event detection circuit 4
If a does not detect the specified condition (NO), the process returns to step S2, and the event detection circuit 4a performs the detection operation until the specified condition is detected. Since the emulation microcomputer control circuit 3 can input the data of the condition to be detected to the event detection circuit 4a via the emulator control MPU bus 8 to set the condition, the emulation microcomputer control circuit 3 detects the event detection circuit 4a at any time. The desired condition is changed and the setting is performed.

【0035】次に、図1で示したデバッグ装置1おけ
る、ターゲットマイコンの動作観測を行う動作について
説明する。ターゲットマイコンの動作観測のうち主な機
能は、ターゲットマイコンが実行したソフトウェアによ
るバスサイクルを記録するトレース機能である。図3
は、図1におけるデバッグ装置1によるターゲットマイ
コンの動作観測を行う動作を示したフローチャートであ
り、図3のフローチャートを用いてデバッグ装置1によ
るターゲットマイコンの動作観測を行う動作を説明す
る。
Next, the operation of observing the operation of the target microcomputer in the debug device 1 shown in FIG. 1 will be described. The main function of the target microcomputer operation observation is the trace function that records the bus cycle by the software executed by the target microcomputer. FIG.
3 is a flowchart showing the operation of observing the operation of the target microcomputer by the debug device 1 in FIG. 1, and the operation of observing the operation of the target microcomputer by the debug device 1 will be described using the flowchart of FIG.

【0036】図3において、最初にステップS10で上
記エミュレーションマイコン制御回路3は、上記イベン
ト検出回路4bに対してターゲットマイコンのバス動作
において記録したい範囲を指定するデータをエミュレー
タ制御MPUバス8を介して入力して範囲設定を行うた
めの条件指定、すなわちターゲットマイコンのバスサイ
クルにおける検出したい範囲のアドレスデータを指定
し、ステップS11でイベント検出回路4bは、該条件
指定の条件とバス9から入力されるターゲットマイコン
のバスサイクルにおけるアドレスデータとを比較して上
記指定された条件の検出を行う。
In FIG. 3, first, in step S10, the emulation microcomputer control circuit 3 sends data specifying a range to be recorded in the bus operation of the target microcomputer to the event detection circuit 4b via the emulator control MPU bus 8. The condition for inputting and setting the range, that is, the address data of the range to be detected in the bus cycle of the target microcomputer is specified, and in step S11, the event detecting circuit 4b receives the condition specifying condition and the bus 9 from the bus 9. The address data in the bus cycle of the target microcomputer is compared to detect the specified condition.

【0037】次にステップS12でイベント検出回路4
bが上記指定条件、すなわち記録を開始する条件を検出
した場合(YES)、ステップS13でイベント検出回
路4bは、トレース制御回路7に対して記録を開始する
条件を検出したことを示す信号を出力し、ステップS1
4でトレース制御回路7は、イベント検出回路4bから
の該信号を受けて、トレースメモリ6のアドレスを制御
すると共に、トレースメモリ6に対して記録を開始する
信号を出力し、ステップS15に進む。また、上記ステ
ップS12でイベント検出回路4bが記録を開始する条
件を検出しなかった場合(NO)は、ステップS11に
戻り、イベント検出回路4bは、指定条件を検出するま
で該検出動作を行う。
Next, at step S12, the event detection circuit 4
When b specifies the specified condition, that is, the condition to start recording (YES), the event detection circuit 4b outputs a signal indicating that the condition to start recording is detected to the trace control circuit 7 in step S13. And step S1
At 4, the trace control circuit 7 receives the signal from the event detection circuit 4b, controls the address of the trace memory 6 and outputs a signal to start recording to the trace memory 6, and proceeds to step S15. If the event detection circuit 4b does not detect the recording start condition in step S12 (NO), the process returns to step S11, and the event detection circuit 4b performs the detection operation until the specified condition is detected.

【0038】ステップS15で上記トレースメモリ6
は、トレース制御回路7からの上記記録開始信号を受け
て、バス9から入力されるターゲットマイコンのバス動
作を指定されたアドレスに記録し続ける。次にステップ
S16でイベント検出回路4bは、指定された条件、す
なわち記録を終了する条件の検出を行い、ステップS1
7でイベント検出回路4bが記録を終了する条件を検出
した場合(YES)、ステップS18でイベント検出回
路4bは、トレース制御回路7に対して記録を終了する
条件を検出したことを示す信号を出力して、ステップS
19に進む。
In step S15, the trace memory 6
Receives the recording start signal from the trace control circuit 7, and continues recording the bus operation of the target microcomputer input from the bus 9 at the designated address. Next, in step S16, the event detection circuit 4b detects the specified condition, that is, the condition for ending the recording, and the step S1
When the event detection circuit 4b detects the condition for ending the recording in 7 (YES), the event detection circuit 4b outputs a signal indicating that the condition for ending the recording is detected to the trace control circuit 7 in step S18. And step S
Proceed to 19.

【0039】ステップS19でトレース制御回路7は、
イベント検出回路4bからの上記信号を受けて、トレー
スメモリ6に対して記録を終了する信号を出力し、ステ
ップS20でトレースメモリ6はバス9から入力される
ターゲットマイコンのバス動作の記録を終了して本フロ
ーは終了する。また、上記ステップS17でイベント検
出回路4bが記録を終了する条件を検出しなかった場合
(NO)は、ステップS16に戻り、イベント検出回路
4bは、上記記録を終了する指定条件を検出するまで該
検出動作を行う。
In step S19, the trace control circuit 7
In response to the above signal from the event detection circuit 4b, a signal for ending the recording is output to the trace memory 6, and the trace memory 6 ends the recording of the bus operation of the target microcomputer input from the bus 9 in step S20. This flow ends. When the event detection circuit 4b does not detect the condition for ending the recording in step S17 (NO), the process returns to step S16, and the event detection circuit 4b continues the operation until the specified condition for ending the recording is detected. Perform detection operation.

【0040】次に図4は、上記図1で示したブレイク回
路5及びトレース制御回路7に設けられたイベント検出
回路4a,4bに使用するための本発明のイベント検出
回路における第1実施例を示したシーケンシャルイベン
ト検出回路のブロック図であり、図1のブレイク回路5
に使用した場合を例にして、本発明における第1実施例
のイベント検出回路の説明を図4を用いて行う。なお、
図4において、図1のデバッグ装置の概略ブロック図で
示したものと同じものは同じ符号で示しており、ここで
はその説明を省略する。
Next, FIG. 4 shows a first embodiment of the event detection circuit of the present invention for use in the event detection circuits 4a and 4b provided in the break circuit 5 and the trace control circuit 7 shown in FIG. FIG. 2 is a block diagram of the sequential event detection circuit shown in FIG.
The event detection circuit according to the first embodiment of the present invention will be described with reference to FIG. In addition,
4, the same components as those shown in the schematic block diagram of the debug device in FIG. 1 are designated by the same reference numerals, and the description thereof will be omitted here.

【0041】図4において、イベント検出回路4a,4
bは、バス状態検出手段をなすコンパレータ部20及び
検出イベント指定レジスタ21、信号出力手段をなすコ
ンパレータパルス発生回路22、情報検出手段及び記憶
手段をなすイベントシフトレジスタ23、並びに組合せ
検出手段をなすイベント検出用組合せ論理回路24から
なる。コンパレータ部20は、コンパレータ20a,2
0b,20c,20dからなり、コンパレータ20a,
20b,20c,20dの一方の入力はそれぞれ、バス
9に接続されている。
In FIG. 4, event detection circuits 4a, 4
Reference numeral b is a comparator section 20 and a detection event designation register 21 which form a bus state detecting means, a comparator pulse generating circuit 22 which forms a signal outputting means, an event shift register 23 which forms an information detecting means and a storing means, and an event which forms a combination detecting means. It is composed of a detection combinational logic circuit 24. The comparator unit 20 includes comparators 20a and 2a.
0b, 20c, 20d, and the comparator 20a,
One input of each of 20b, 20c and 20d is connected to the bus 9.

【0042】また、意図する各イベントを検出するため
のそれぞれの指定条件の設定データを記憶させた検出イ
ベント指定レジスタ21には、上記コンパレータ20a
〜20dの他方の入力がそれぞれ接続されており、意図
する各イベントを検出するための指定条件における上記
設定データが上記レジスタ21の各アドレスに記憶さ
れ、上記コンパレータ20a〜20dは、該アドレスに
記憶された各設定データと、上記バス9から入力される
状態(アドレス、情報データなど)のデータと比較し
て、該データとの一致を検出する。
Further, the detected event designation register 21 in which setting data of respective designated conditions for detecting each intended event is stored is provided in the comparator 20a.
To 20d are connected to the other inputs respectively, the setting data under the specified condition for detecting each intended event is stored in each address of the register 21, and the comparators 20a to 20d store in that address. The set data thus obtained is compared with the data in the state (address, information data, etc.) input from the bus 9 to detect a match with the data.

【0043】ここでは例として、上記コンパレータ20
aの他方の入力には上記レジスタ21のアドレス21a
に記憶された、意図するイベントを検出するための上記
設定データが入力され、上記コンパレータ20bの他方
の入力には上記レジスタ21のアドレス21bに記憶さ
れた、他の意図するイベントを検出するための上記設定
データが入力されるようになっている。更に、上記コン
パレータ20cの他方の入力には上記レジスタ21のア
ドレス21cに記憶された、他の意図するイベントを検
出するための上記設定データが入力され、上記コンパレ
ータ20dの他方の入力には上記レジスタ21のアドレ
ス21cに記憶された、他の意図するイベントを検出す
るための上記設定データが入力されるようになってい
る。
Here, as an example, the comparator 20 is used.
The other input of a is the address 21a of the register 21.
The setting data for detecting the intended event, which is stored in, is input to the other input of the comparator 20b for detecting the other intended event stored in the address 21b of the register 21. The setting data is input. Further, the other input of the comparator 20c receives the setting data stored in the address 21c of the register 21 for detecting another intended event, and the other input of the comparator 20d receives the register. The setting data for detecting another intended event stored at the address 21c of 21 is input.

【0044】また、上記各コンパレータ20a〜20d
の出力は、複数のシフトレジスタ、ここでは例として4
つのシフトレジスタ23a,23b,23c,23dか
ら構成されたイベントシフトレジスタ23に接続されて
おり、コンパレータ20aの出力はシフトレジスタ23
aに、コンパレータ20bの出力はシフトレジスタ23
bに、コンパレータ20cの出力はシフトレジスタ23
cに、コンパレータ20dの出力はシフトレジスタ23
dにそれぞれ接続され、一連のイベントの発生を上記イ
ベントシフトレジスタ23の各シフトレジスタ23a〜
23dの内部情報として記憶される。
The comparators 20a to 20d are also provided.
Outputs multiple shift registers, here 4 as an example.
The output of the comparator 20a is connected to the event shift register 23 composed of two shift registers 23a, 23b, 23c and 23d.
a, the output of the comparator 20b is the shift register 23
b, the output of the comparator 20c is the shift register 23
c, the output of the comparator 20d is the shift register 23
each of the shift registers 23a to 23d of the event shift register 23 is connected to
It is stored as internal information of 23d.

【0045】更に、上記コンパレータ20a〜20dの
出力はまた、該コンパレータ20a〜20dより出力さ
れるそれぞれの一致検出信号を検出するとパルス信号を
出力するコンパレータパルス発生回路22に接続され
る。該コンパレータパルス発生回路22の出力は、上記
シフトレジスタ23a〜23dにそれぞれ接続され、コ
ンパレータパルス発生回路22から出力されるパルス信
号は、各シフトレジスタ23a〜23dのシフトクロッ
ク信号をなす。
Further, the outputs of the comparators 20a to 20d are also connected to a comparator pulse generating circuit 22 which outputs a pulse signal when detecting the respective coincidence detection signals output from the comparators 20a to 20d. The outputs of the comparator pulse generating circuit 22 are connected to the shift registers 23a to 23d, respectively, and the pulse signals output from the comparator pulse generating circuit 22 form shift clock signals of the shift registers 23a to 23d.

【0046】上記各シフトレジスタ23a〜23dの出
力はイベント検出用組合せ論理回路24に接続されてい
る。該イベント検出用組合せ論理回路24はPLA構造
をなし、必要な組合せを選択することで目的とするイベ
ントの組合せを検出することができる。上記各シフトレ
ジスタ23a〜23dに記憶された各データは、パラレ
ルデータとして同時に上記イベント検出用組合せ論理回
路24に出力される。
The outputs of the shift registers 23a-23d are connected to the event detection combinational logic circuit 24. The event detection combination logic circuit 24 has a PLA structure and can detect a target event combination by selecting a necessary combination. The respective data stored in the shift registers 23a to 23d are simultaneously output as parallel data to the event detection combinational logic circuit 24.

【0047】これらのシフトレジスタのデータビットを
マトリックスに見た場合、該マトリックスには、指定し
た複数のイベント発生に関するAND、OR及びシーケ
ンシャルの組合せをすべて含んでおり、上記マトリック
スから上記イベント検出用組合せ論理回路24のPLA
構造により、必要な組合せを選択することで目的とする
イベントの組合せを検出すると共に、該組合せを検出す
ると該検出信号を図1で示したブレイク回路5に出力す
る。
When the data bits of these shift registers are viewed in a matrix, the matrix includes all combinations of AND, OR, and sequential relating to the occurrence of a plurality of designated events, and the combination for event detection is selected from the matrix. PLA of logic circuit 24
Depending on the structure, a desired combination of events is detected by selecting a necessary combination, and when the combination is detected, the detection signal is output to the break circuit 5 shown in FIG.

【0048】上記のような構成において、各コンパレー
タ20a〜20dで検出するイベントは等価であること
から、該各コンパレータ20a〜20dへのイベント設
定は、目的とするイベントの組合せを意識することなく
設定できると共に、イベント検出用組合せ論理回路24
に使用するPLA構造におけるPLA平面は、SRAM
ベースのスイッチマトリックスでその論理構造を変更す
る構成を採用することができるため、検出すべきイベン
トの組合せをソフトウェアによって随時変更することが
でき、本実施例においては、エミュレーションマイコン
制御回路3により、エミュレータ制御MPUバス8を介
してイベント検出用組合せ論理回路24で検出するイベ
ントの組合せを随時変更される。
In the above configuration, since the events detected by the comparators 20a to 20d are equivalent, the event setting to each of the comparators 20a to 20d is set without paying attention to the intended combination of events. A combinational logic circuit 24 for event detection
The PLA plane in the PLA structure used for
Since it is possible to adopt a configuration in which the logical structure of the base switch matrix is changed, the combination of events to be detected can be changed at any time by software. In the present embodiment, the emulation microcomputer control circuit 3 causes the emulator to change. Through the control MPU bus 8, the combination of events detected by the event detection combination logic circuit 24 is changed at any time.

【0049】次に、図4で示した本発明のイベント検出
回路におけるイベントの組合せを検出する動作を図5の
フローチャートを用いて説明する。図5において、最初
にステップS30でエミュレーションマイコン制御回路
3からエミュレータ制御MPUバス8を介して入力され
た、各意図するイベントを検出するためのそれぞれの指
定条件の各設定データが、上記検出イベント指定レジス
タ21の各アドレス21a〜21dに対応して記憶さ
れ、ステップS31で各コンパレータ20a〜20d
は、それぞれ、対応する検出イベント指定レジスタ21
のアドレスからの設定データと、バス9から入力される
ターゲットマイコンが実行したアドレスやデータとを比
較して、該データとの一致を検出して所定のイベントの
検出を行う。
Next, the operation of detecting a combination of events in the event detection circuit of the present invention shown in FIG. 4 will be described with reference to the flowchart of FIG. In FIG. 5, first, in step S30, each set data of each specified condition for detecting each intended event, which is input from the emulation microcomputer control circuit 3 via the emulator control MPU bus 8, is the detected event designation. It is stored corresponding to each address 21a to 21d of the register 21, and in step S31, each comparator 20a to 20d is stored.
Respectively correspond to the detection event designation registers 21
Setting data from this address is compared with the address and data executed by the target microcomputer input from the bus 9, and the coincidence with the data is detected to detect a predetermined event.

【0050】次に、ステップS32に進み、各コンパレ
ータ20a〜20dの少なくとも1つが所定のイベント
を検出し、イベント検出信号を出力した場合(YE
S)、ステップS33でコンパレータパルス発生回路2
2は、各コンパレータ20a〜20dの出力が変化した
ことを検出し、該検出パルス信号を上記イベントシフト
レジスタ23の各シフトレジスタ23a〜23dへシフ
トクロック信号として出力して、ステップS34に進
む。また、ステップS32で各コンパレータ20a〜2
0dのすべてが所定のイベントを検出しなかった場合
(NO)は、ステップS31に戻る。
Next, in step S32, when at least one of the comparators 20a to 20d detects a predetermined event and outputs an event detection signal (YE
S), the comparator pulse generation circuit 2 in step S33
2 detects that the outputs of the comparators 20a to 20d have changed, outputs the detection pulse signal to the shift registers 23a to 23d of the event shift register 23 as shift clock signals, and proceeds to step S34. In step S32, the comparators 20a-2
When all of 0d do not detect the predetermined event (NO), the process returns to step S31.

【0051】ステップS34で各シフトレジスタ23a
〜23dは、対応する各コンパレータ20a〜20dの
比較出力を入力データとして1ビットシフトし、ステッ
プS35で、イベントシフトレジスタ23における各シ
フトレジスタ23a〜23dの各データが同時に並列に
パラレルデータとしてイベント検出用組合せ論理回路2
4に出力され、ステップS36に進む。
In step S34, each shift register 23a
23d are 1 bit shifted by using the comparison output of the corresponding comparators 20a to 20d as input data, and in step S35, the data of the shift registers 23a to 23d in the event shift register 23 are detected in parallel as parallel data at the same time. Combinational logic circuit 2
4 and the process proceeds to step S36.

【0052】イベント検出用組合せ論理回路24は、ス
テップS36で、設定されたイベントの組合せの検出を
行い、ステップS37で設定されたイベント組合せを検
出した場合(YES)、ステップS38で、設定された
イベント組合せを検出したことを示すイベント組合せ検
出信号を図1のブレイク回路5に出力して本フローは終
了する。また、ステップS37でイベント検出用組合せ
論理回路24が設定されたイベント組合せを検出しなか
った場合(NO)は、ステップS30に戻って、ステッ
プS30以降の処理を行う。
The event detection combination logic circuit 24 detects the combination of the set events in step S36, and if the event combination set in step S37 is detected (YES), the combination is set in step S38. The event combination detection signal indicating that the event combination has been detected is output to the break circuit 5 in FIG. 1, and this flow ends. If the event detection combination logic circuit 24 does not detect the set event combination in step S37 (NO), the process returns to step S30 to perform the processing of step S30 and thereafter.

【0053】次に、図6は、図4で示した本発明の第1
実施例のイベント検出回路において、検出イベント数が
4、シーケンシャル段数が6の構成のシーケンシャルイ
ベント検出回路を示したブロック図であり、図6を用い
て、イベントシフトレジスタ23の動作をもう少し具体
的に説明する。なお、図4で示したものと同じものは同
じ符号で示しており、ここではその説明を省略する。
Next, FIG. 6 shows the first embodiment of the present invention shown in FIG.
FIG. 7 is a block diagram showing a sequential event detection circuit having a configuration in which the number of detected events is 4 and the number of sequential stages is 6 in the event detection circuit of the embodiment, and the operation of the event shift register 23 will be described more concretely with reference to FIG. explain. The same components as those shown in FIG. 4 are designated by the same reference numerals, and the description thereof will be omitted here.

【0054】図6において、コンパレータパルス発生回
路22は、コンパレータ部20のいずれかのコンパレー
タが指定されたイベントを検出すると、パルス信号を出
力し、該パルス信号はイベントシフトレジスタ23の各
シフトレジスタ23a〜23dにシフトクロック信号と
して入力される。このため、その時のコンパレータ20
a〜20dの出力状態が対応する各シフトレジスタにそ
れぞれ1ビットのデータとして取り込まれ、4ビットの
コンパレータ状態が記憶されたことになる。このときに
取り込まれた上記4ビットのデータには、4つの各イベ
ントにおけるAND,OR情報を含んでいる。
In FIG. 6, the comparator pulse generation circuit 22 outputs a pulse signal when one of the comparators in the comparator section 20 detects a designated event, and the pulse signal is output to each shift register 23 a of the event shift register 23. 23d to 23d are input as shift clock signals. Therefore, the comparator 20 at that time
The output states of a to 20d are fetched as 1-bit data into the corresponding shift registers, and the 4-bit comparator state is stored. The 4-bit data fetched at this time includes AND and OR information for each of the four events.

【0055】更に、またコンパレータパルス発生回路2
2は、コンパレータ部20のいずれかのコンパレータが
指定されたイベントを検出すると、各シフトレジスタ2
3a〜23dにパルス信号を出力し、この時のコンパレ
ータ20a〜20dの出力状態が対応するシフトレジス
タにそれぞれ1ビットのデータとしてシフトして記憶さ
れる。このようにシフトレジスタ23a〜23dのシフ
ト機能により、指定されたイベント発生の時系列情報が
イベントシフトレジスタ23に記憶される。本実施例の
場合、各シフトレジスタ23a〜23dは6ビットで構
成されているとすると、最大6段のシーケンシャルイベ
ントの発生を検出することができる。
Furthermore, the comparator pulse generation circuit 2
2 detects each of the shift registers 2 when one of the comparators of the comparator unit 20 detects the designated event.
A pulse signal is output to 3a to 23d, and the output states of the comparators 20a to 20d at this time are shifted and stored as 1-bit data in the corresponding shift registers. In this way, the shift function of the shift registers 23a to 23d causes the event shift register 23 to store the time-series information of the designated event occurrence. In the case of the present embodiment, assuming that each of the shift registers 23a to 23d is composed of 6 bits, it is possible to detect the occurrence of a maximum of 6 stages of sequential events.

【0056】ここで、コンパレータ20aで検出される
イベントをE1、コンパレータ20bで検出されるイベ
ントをE2、コンパレータ20cで検出されるイベント
をE3、コンパレータ20dで検出されるイベントをE
4とし、シフトレジスタ23aのパラレルデータ各ビッ
トをB10,B11,B12,B13,B14,B15とし、
シフトレジスタ23bのパラレルデータ各ビットをB2
0,B21,B22,B23,B24,B25とし、シフトレ
ジスタ23cのパラレルデータ各ビットをB30,B3
1,B32,B33,B34,B35とし、シフトレジスタ
23dのパラレルデータ各ビットをB40,B41,B4
2,B43,B44,B45とし、各添字の0から5の方へシ
フトするとした場合、(E1&E2&E3&E4)とい
うイベントの組合せは、(B10&B20&B30&B4
0)という組合せ論理で検出することができる。なお、
&はAND指定を示している。
Here, the event detected by the comparator 20a is E1, the event detected by the comparator 20b is E2, the event detected by the comparator 20c is E3, and the event detected by the comparator 20d is E.
4, each bit of the parallel data of the shift register 23a is B10, B11, B12, B13, B14, B15,
Set each bit of parallel data of the shift register 23b to B2
0, B21, B22, B23, B24, B25, and the parallel data bits of the shift register 23c are set to B30, B3.
1, B32, B33, B34, B35, and the parallel data bits of the shift register 23d are B40, B41, B4.
If we set 2, B43, B44, B45 and shift from 0 to 5 of each subscript, the combination of events (E1 & E2 & E3 & E4) is (B10 & B20 & B30 & B4
It can be detected by the combinational logic of 0). In addition,
& Indicates AND designation.

【0057】更に、>がシーケンシャル指定を示してい
るとすると、{E1>E3>(E2&E4)}というイ
ベントの組合せは、(B12&B31&B20&B40)と
いう組合せ論理で検出することができる。また、更に#
がOR指定を示しているとすると、シーケンスが5の場
合の例として、{(E1#E2)>(E2&E3&E
4)>E1>E4>(E3#E4)>E1}というイベ
ントの組合せは、{(B15#B25)&(B24&B34
&B44)&B13&B42&(B31#B41)&B10}
という組合せ論理で検出することができ、また、この組
合せ論理は、更に、{(B25&B24&B34&B44&
B13&B42&B41&B10)#(B15&B24&B3
4&B44&B13&B42&B41&B10)#(B25&
B24&B34&B44&B13&B42&B31&B10)
#(B15&B24&B34&B44&B13&B42&B3
1&B10)}という組合せ論理で検出することができ
る。
Further, if> indicates sequential designation, the combination of events {E1>E3> (E2 & E4)} can be detected by the combination logic (B12 & B31 & B20 & B40). And also #
Is an OR designation, as an example of the case where the sequence is 5, {(E1 # E2)> (E2 & E3 & E
The combination of events 4)>E1>E4> (E3 # E4)> E1} is {(B15 # B25) & (B24 & B34)
& B44) & B13 & B42 & (B31 # B41) & B10}
Can be detected by the combinational logic, and this combinational logic can be further detected by {(B25 & B24 & B34 & B44 &
B13 & B42 & B41 & B10) # (B15 & B24 & B3
4 & B44 & B13 & B42 & B41 & B10) # (B25 &
B24 & B34 & B44 & B13 & B42 & B31 & B10)
# (B15 & B24 & B34 & B44 & B13 & B42 & B3
1 & B10)} can be detected by the combinational logic.

【0058】上記のように、イベントの組合せは、AN
D−OR論理によって検出できるため、各シフトレジス
タ23a〜23dからのパラレルデータをPLA構造を
なすイベント検出用組合せ論理回路24に入力し、該イ
ベント検出用組合せ論理回路24のPLAによる組合せ
論理で、検出したいイベントの組合せを高速に検出する
ことができる。また、イベント検出用組合せ論理回路2
4の回路規模としては、PLA構造で実現できるため、
高集積化が可能である。
As described above, the combination of events is AN
Since it can be detected by the D-OR logic, the parallel data from each of the shift registers 23a to 23d is input to the event detection combination logic circuit 24 having the PLA structure, and the combination logic by the PLA of the event detection combination logic circuit 24 The combination of events to be detected can be detected at high speed. Also, a combinational logic circuit 2 for event detection
Since the circuit scale of 4 can be realized by the PLA structure,
High integration is possible.

【0059】図7は、上記シーケンス5の場合の例にお
けるイベントの組合せを検出するための、イベント検出
用組合せ論理回路24におけるAND−OR論理による
PLAの接続情報を示したPLAマップの例を示した図
である。図7において、信号線の交点にある「/」は、
該交点が接続されていることを示し、OR論理の出力が
イベント検出用組合せ論理回路24の出力になる。
FIG. 7 shows an example of a PLA map showing connection information of PLA by AND-OR logic in the event detection combination logic circuit 24 for detecting the combination of events in the case of the above sequence 5. It is a figure. In FIG. 7, "/" at the intersection of the signal lines is
It indicates that the intersection is connected, and the output of the OR logic becomes the output of the event detection combinational logic circuit 24.

【0060】また、図7のPLAマップ例は、各コンパ
レータ20a〜20dにおいて一致検出した場合、一致
検出したコンパレータの出力からは「H」の信号が出力
され、該「H」信号が入力されたシフトレジスタには
「1」が記憶されて、それ以外は各コンパレータ20a
〜20dからは「L」の信号が出力され、該「L」信号
が入力されたシフトレジスタには「0」が記憶されるよ
うにした場合のものであり、設定されたイベントの組合
せが検出されると、図7におけるOR論理の出力は
「1」となる。なお、図7で示したPLAマップを示し
た図は、イベント検出用組合せ論理回路24の一部を示
したものであり、イベント検出用組合せ論理回路24の
入力が本実施例のように24ある場合は、図7で示した
AND論理の回路は24回路あることになる。
Further, in the PLA map example of FIG. 7, when the comparators 20a to 20d detect the coincidence, the signal of "H" is output from the output of the comparator which detects the coincidence, and the "H" signal is input. "1" is stored in the shift register, and otherwise, each comparator 20a
20d outputs an "L" signal, and "0" is stored in the shift register to which the "L" signal is input. A combination of set events is detected. Then, the output of the OR logic in FIG. 7 becomes "1". The diagram showing the PLA map shown in FIG. 7 shows a part of the event detection combination logic circuit 24, and the input of the event detection combination logic circuit 24 is 24 as in this embodiment. In this case, there are 24 AND logic circuits shown in FIG.

【0061】また、本第1実施例のイベント検出回路に
おいて、上記図1のトレース制御回路7に使用した場合
においても、検出するイベントの内容が異なるだけで動
作原理は上記説明したブレイク回路5に使用した場合と
同じであるので、その説明を省略する。
Further, in the event detection circuit of the first embodiment, even when used in the trace control circuit 7 of FIG. 1, the operation principle is the same as that of the break circuit 5 described above except that the content of the detected event is different. The description is omitted because it is the same as when it is used.

【0062】実施例2.次に図8は、マイクロプロセッ
サのバス情報を取り込み記録する機能を有し、マイクロ
プロセッサ応用システム等のデバッグを行う、本発明の
第2実施例のイベント検出回路を使用したデバッグ装置
の例を示した概略ブロック図であり、最初に図8を用い
て本発明の第2実施例のイベント検出回路を使用するデ
バッグ装置の概略を説明する。なお、図8において、図
1で示したものと同じものは同じ符号で示しており、こ
こではその説明を省略すると共に、図1との相違点のみ
説明する。
Example 2. Next, FIG. 8 shows an example of a debug device which has a function of capturing and recording bus information of a microprocessor and debugs a microprocessor application system or the like using the event detection circuit of the second embodiment of the present invention. FIG. 9 is a schematic block diagram. First, the outline of a debug device using the event detection circuit of the second embodiment of the present invention will be described with reference to FIG. In FIG. 8, the same components as those shown in FIG. 1 are designated by the same reference numerals, and the description thereof will be omitted and only the differences from FIG. 1 will be described.

【0063】図8における図1との相違点は、図1にお
けるイベント検出回路4aを本発明の第2実施例におけ
るイベント検出回路40に置き換え、それに伴ってブレ
イク回路5をブレイク回路50にしたことと、図1にお
けるトレース制御回路7に設けられた本発明の第1実施
例におけるイベント検出回路4bをなくし、それに伴っ
てトレース制御回路7をトレース制御回路70に置き換
えたことと、トレース制御回路70をイベント検出回路
40に接続したことにあり、これらのことから、デバッ
グ装置1をデバッグ装置10にしたことにある。
8 is different from FIG. 1 in that the event detection circuit 4a in FIG. 1 is replaced with the event detection circuit 40 in the second embodiment of the present invention, and the break circuit 5 is replaced with the break circuit 50 accordingly. 1, the event detection circuit 4b according to the first embodiment of the present invention provided in the trace control circuit 7 in FIG. 1 is eliminated, and accordingly, the trace control circuit 7 is replaced with the trace control circuit 70, and the trace control circuit 70. Is connected to the event detection circuit 40, and therefore, the debug device 1 is changed to the debug device 10.

【0064】図8において、イベント検出回路40は、
ターゲットマイコンの動作を監視しターゲットマイコン
の実行したアドレスやアクセスしたデータである指定条
件の発生を検出し、ブレイク回路50は、該イベント検
出回路40で検出した条件に基づいてエミュレーション
マイコン制御回路の割込み制御機能を制御するための機
能を有する。
In FIG. 8, the event detection circuit 40 is
The operation of the target microcomputer is monitored and the occurrence of a specified condition, which is the address executed by the target microcomputer or the accessed data, is detected, and the break circuit 50 interrupts the emulation microcomputer control circuit based on the condition detected by the event detection circuit 40. It has a function for controlling the control function.

【0065】また、トレース制御回路70は、設定され
た条件に従って指定条件の発生を検出し、ターゲットマ
イコン(デバッガ内ではエミュレーションマイコン)の
バス動作を記録するトレース機能を有し、上記トレース
メモリ6において、アドレスを制御すると共に設定され
た条件に従って記録開始又は終了動作を制御する。な
お、上記トレース制御回路70において、従来のイベン
ト検出回路又は上記第1実施例のイベント検出回路4b
を備えているが、ここでは本第2実施例のイベント検出
回路の説明を分かりやすくするために図示せずに、イベ
ント検出機能を備えた回路として1つのブロックで説明
する。
The trace control circuit 70 has a trace function of detecting the occurrence of the specified condition according to the set condition and recording the bus operation of the target microcomputer (emulation microcomputer in the debugger). , Controlling the address and controlling the recording start or end operation according to the set conditions. In the trace control circuit 70, the conventional event detection circuit or the event detection circuit 4b of the first embodiment described above is used.
In order to make the description of the event detection circuit of the second embodiment easier to understand, a circuit having an event detection function will be described here as a single block.

【0066】また、上記イベント検出回路40及びトレ
ース制御回路70は、アドレスバスやデータバスやコン
トロールバス等からなるバス9でターゲットシステムと
接続され、上記イベント検出回路40、上記ブレイク回
路50及び上記トレース制御回路70は、それぞれエミ
ュレータ制御MPUバス8を介して上記エミュレーショ
ンマイコン制御回路3に接続され、更に、これとは別に
上記ブレイク回路50はエミュレーションマイコン制御
回路3に接続されている。なお、上記イベント検出回路
40は、ブレイク回路50内に設けられ、上記トレース
制御回路70は、イベント検出回路40に接続されてお
り、上記トレースメモリ6に書き込み信号を出力すると
同時に上記イベント検出回路40に対してシフトクロッ
ク信号を出力する。
The event detection circuit 40 and the trace control circuit 70 are connected to the target system by a bus 9 composed of an address bus, a data bus, a control bus, etc., and the event detection circuit 40, the break circuit 50 and the trace are connected. The control circuit 70 is connected to the emulation microcomputer control circuit 3 via the emulator control MPU bus 8, and the break circuit 50 is connected to the emulation microcomputer control circuit 3 separately. The event detection circuit 40 is provided in the break circuit 50, and the trace control circuit 70 is connected to the event detection circuit 40, and outputs the write signal to the trace memory 6 and at the same time the event detection circuit 40. To the shift clock signal.

【0067】上記のような構成において、図9は、図8
で示したイベント検出回路40に使用するための本発明
のイベント検出回路における第2実施例を示したシーケ
ンシャルイベント検出回路を図8のトレースメモリ6及
びトレース制御回路70を交えて示したブロック図であ
り、図9を用いて、図8で示したデバッグ装置10にお
ける動作制御及び動作観測を行う動作を説明しながら本
発明における第2実施例のイベント検出回路の説明を行
う。なお、図9において、上記図1のデバッグ装置の概
略ブロック図で示したものと同じものは同じ符号で示し
ており、ここではその説明を省略する。
In the configuration as described above, FIG.
8 is a block diagram showing a sequential event detection circuit showing a second embodiment of the event detection circuit of the present invention for use in the event detection circuit 40 shown in FIG. 8 together with the trace memory 6 and the trace control circuit 70 of FIG. Therefore, the event detection circuit of the second embodiment of the present invention will be described while explaining the operation of performing operation control and operation observation in the debug device 10 shown in FIG. 8 with reference to FIG. In FIG. 9, the same components as those shown in the schematic block diagram of the debug device of FIG. 1 are designated by the same reference numerals, and the description thereof will be omitted here.

【0068】図9で示したイベント検出回路40は、図
4で示した第1実施例のイベント検出回路と異なり、イ
ベントを検出する対象がコンパレータ回路からの出力信
号ではなく、バス9から直接、トレースを行うデータを
シフトレジスタに記憶するもので、情報記憶手段をなす
シフトレジスタ23Aと、組合せ検出手段をなすイベン
ト検出用組合せ論理回路24Aからなり、該シフトレジ
スタ23Aへのシフトクロック信号は、トレースメモリ
6への書き込み信号と共通化されている。
The event detection circuit 40 shown in FIG. 9 is different from the event detection circuit of the first embodiment shown in FIG. 4 in that the target of event detection is not the output signal from the comparator circuit, but the signal directly from the bus 9. Data to be traced is stored in a shift register, which comprises a shift register 23A forming an information storage means and an event detecting combination logic circuit 24A forming a combination detecting means. The shift clock signal to the shift register 23A is a trace It is shared with the write signal to the memory 6.

【0069】図9において、トレースメモリ6を形成し
ターゲットプログラム実行中の動作を記録するトレース
機能回路30、及び上記トレース制御回路70内にあり
該トレース機能回路30への記録開始又は停止を制御す
るトレース機能制御用書き込み回路31はバス9に接続
され、該トレース機能制御用書き込み回路31は、指定
されたイベントの条件を検出すると上記トレース機能回
路30への記録開始又は停止を制御する。
In FIG. 9, a trace function circuit 30 which forms a trace memory 6 and records an operation during execution of a target program, and a trace control circuit 70 which controls the start or stop of recording in the trace function circuit 30. The trace function control write circuit 31 is connected to the bus 9, and when the trace function control write circuit 31 detects the condition of a designated event, it controls the start or stop of recording in the trace function circuit 30.

【0070】また、バス9は複数のシフトレジスタ23
A1〜23An(nは正の整数であり、シフトレジスタの
総数を示す)からなるイベントシフトレジスタ23Aの
それぞれのシフトレジスタ23A1〜23Anに接続され
ており、更に該イベントシフトレジスタ23Aの各シフ
トレジスタ23A1〜23Anは上記トレース機能制御用
書き込み回路31に接続されており、トレース機能制御
用書き込み回路31からトレース機能回路30への記録
開始信号がイベントシフトレジスタ23Aの各シフトレ
ジスタ23A1〜23Anに入力されると共に、該記録開
始信号がイベントシフトレジスタ23Aの各シフトレジ
スタ23A1〜23Anに対するシフトクロック信号をな
す。
The bus 9 is composed of a plurality of shift registers 23.
Each of the event shift registers 23A1 to 23An of A1 to 23An (n is a positive integer indicating the total number of shift registers) is connected to each of the shift registers 23A1 to 23An, and each of the shift registers 23A1 of the event shift register 23A is connected. 23 to 23An are connected to the trace function control write circuit 31, and a recording start signal from the trace function control write circuit 31 to the trace function circuit 30 is input to each shift register 23A1 to 23An of the event shift register 23A. At the same time, the recording start signal forms a shift clock signal for the shift registers 23A1-23An of the event shift register 23A.

【0071】上記イベントシフトレジスタ23Aの各シ
フトレジスタ23A1〜23Anの出力は、イベント検出
用組合せ論理回路24Aに接続されている。該イベント
検出用組合せ論理回路24AはPLA構造をなし、必要
な組合せを選択することで目的とするイベントの組合せ
を検出することができる。上記各シフトレジスタ23A
1〜23Anに記憶された各イベントデータは、パラレル
データとして同時に上記イベント検出用組合せ論理回路
24Aに出力される。イベントシフトレジスタ23Aに
おける各シフトレジスタ23A1〜23Anは、バス9か
ら入力されるイベントデータのビット数だけ設けられて
おり、例えばバス9から入力されるイベントデータが8
ビットの場合、上記23Anのnは8となり8つのシフト
レジスタが設けられていることになる。
The outputs of the shift registers 23A1-23An of the event shift register 23A are connected to the event detection combinational logic circuit 24A. The event detection combination logic circuit 24A has a PLA structure, and a desired combination of events can be detected by selecting a necessary combination. Each of the shift registers 23A
The respective event data stored in 1 to 23An are simultaneously output as parallel data to the event detecting combinational logic circuit 24A. Each of the shift registers 23A1 to 23An in the event shift register 23A is provided as many as the number of bits of the event data input from the bus 9. For example, the number of event data input from the bus 9 is 8
In the case of a bit, n of 23An is 8 and eight shift registers are provided.

【0072】上記のような構成において、トレース機能
制御用書き込み回路31が指定された条件、例えばバス
9から指定された条件のイベントのデータを検出する
と、トレース制御回路30に対して記録開始信号を出力
すると共に、該信号をイベントシフトレジスタ23Aに
シフトクロック信号として出力する。記録開始信号を受
けたトレース機能回路30は記録終了信号が入力される
までバス9から入力されるデータを記録し、シフトクロ
ック信号を受けたイベントシフトレジスタ23Aの各シ
フトレジスタ23A1〜23Anには、バス9から入力さ
れるイベントデータが各シフトレジスタ23A1〜23
Anに1ビットずつ記録され、例えば、バス9から入力
されるデータが8ビットの場合、8つのシフトレジスタ
に該8ビットの信号の内の1ビットずつが時系列に記憶
される。
In the above structure, when the trace function controlling write circuit 31 detects the data of the event of the specified condition, for example, the event of the specified condition from the bus 9, the recording start signal is sent to the trace control circuit 30. At the same time, the signal is output to the event shift register 23A as a shift clock signal. The trace function circuit 30 receiving the recording start signal records the data input from the bus 9 until the recording end signal is input, and the shift register 23A1 to 23An of the event shift register 23A receiving the shift clock signal, Event data input from the bus 9 is transferred to each shift register 23A1-23A.
One bit is recorded in An and, for example, when the data input from the bus 9 is 8 bits, one bit of the 8-bit signal is stored in time series in the eight shift registers.

【0073】上記イベント検出用組合せ論理回路24A
においては、イベントシフトレジスタ23Aの各シフト
レジスタ23A1〜23Anに1ビットずつ時系列に記憶
されたものを1つのデータとして扱うと共に、該データ
の必要な組合せを検出するようにPLA構造を使用して
設定されている。イベント検出用組合せ論理回路24A
は、指定された組合せを検出すると、ブレイク回路50
に検出信号を出力し、該ブレイク回路50は、エミュレ
ーションマイコン制御回路3にブレイク要求信号を出力
する。
The event detection combinational logic circuit 24A
In the above, in the event shift register 23A, each one of the shift registers 23A1 to 23An stored in time series is treated as one data, and the PLA structure is used to detect a necessary combination of the data. It is set. Event detection combinational logic circuit 24A
Detects the specified combination, the break circuit 50
The break circuit 50 outputs a break request signal to the emulation microcomputer control circuit 3.

【0074】上記第1実施例と同様に、イベント検出用
組合せ論理回路24Aに使用するPLA構造におけるP
LA平面は、SRAMベースのスイッチマトリックスで
その論理構造を変更する構成を採用することができるた
め、検出すべきイベントの組合せをソフトウェアによっ
て随時変更することができ、本実施例においても、エミ
ュレーションマイコン制御回路3により、エミュレータ
制御MPUバス8を介してイベント検出用組合せ論理回
路24Aで検出するイベントの組合せを随時変更され
る。なお、イベント検出用組合せ論理回路24Aにおけ
るイベント組合せの指定方法は、上記第1実施例と同様
の手法で行われることから、ここではその説明を省略す
る。
As in the first embodiment, P in the PLA structure used in the event detecting combinational logic circuit 24A.
Since the LA plane can adopt a configuration in which its logical structure is changed by an SRAM-based switch matrix, the combination of events to be detected can be changed at any time by software. Also in this embodiment, emulation microcomputer control The circuit 3 changes the combination of events detected by the event detection combination logic circuit 24A via the emulator control MPU bus 8 at any time. The method of designating the event combination in the event detection combination logic circuit 24A is performed by the same method as in the first embodiment, and therefore its explanation is omitted here.

【0075】次に、図9で示した第2実施例のイベント
検出回路を使用してイベントの組合せを検出する動作
を、図8のデバッグ装置10の動作制御及び動作観測に
おける動作を交えながら図10のフローチャートを用い
て説明する。図10において、最初にステップS50
で、トレース機能制御用書き込み回路31においては、
意図するイベントを検出するためのそれぞれの指定条件
の各データが、イベント検出回路40においては、検出
したいイベント組合せが、エミュレーションマイコン制
御回路3によってエミュレータ制御MPUバス8を介し
て設定され、ステップS51でトレース機能制御用書き
込み回路31は、上記設定された設定データと、バス9
から入力されるターゲットマイコンが実行したアドレス
やデータとを比較して、該設定データとの一致を検出し
て所定のイベントの検出を行う。
Next, the operation of detecting a combination of events using the event detection circuit of the second embodiment shown in FIG. 9 will be described with the operation control and operation observation of the debug device 10 of FIG. This will be described with reference to the flowchart of 10. In FIG. 10, first, in step S50
In the trace function control write circuit 31,
In the event detection circuit 40, the event combination to be detected is set by the emulation microcomputer control circuit 3 via the emulator control MPU bus 8 for each data of the respective specified conditions for detecting the intended event. The trace function control write circuit 31 uses the set data set above and the bus 9
A target event is compared with the address and data executed by the target microcomputer, and if a match with the setting data is detected, a predetermined event is detected.

【0076】次に、ステップS52に進み、トレース機
能制御用書き込み回路31が所定のイベントを検出した
場合(YES)、ステップS53でトレース機能制御用
書き込み回路31は、トレース機能回路30に記録開始
信号を出力すると共に、イベントシフトレジスタ23A
にイベント検出パルス信号、すなわちシフトクロック信
号を出力して、ステップS54に進む。また、ステップ
S52でトレース機能制御用書き込み回路31が所定の
イベントを検出しなかった場合(NO)は、ステップS
51に戻る。
Next, in step S52, when the trace function control write circuit 31 detects a predetermined event (YES), the trace function control write circuit 31 sends a recording start signal to the trace function circuit 30 in step S53. And the event shift register 23A
Then, the event detection pulse signal, that is, the shift clock signal is outputted to step S54. If the trace function control write circuit 31 does not detect a predetermined event in step S52 (NO), step S52 is performed.
Return to 51.

【0077】ステップS54で、トレース機能回路30
は、トレース機能制御用書き込み回路31が記録終了条
件を検出して記録終了信号が入力されるまでバス9から
のデータを記憶すると共に、イベントシフトレジスタ2
3Aの各シフトレジスタ23A1〜23Anは、バス9か
ら入力されるイベントデータを各シフトレジスタ23A
1〜23Anに1ビットずつシフトして記録し、ステップ
S55で、イベントシフトレジスタ23Aにおける各シ
フトレジスタ23A1〜23Anの各データが同時に並列
にパラレルデータとしてイベント検出用組合せ論理回路
24Aに出力され、ステップS56に進む。
In step S54, the trace function circuit 30
Stores the data from the bus 9 until the trace function control write circuit 31 detects the recording end condition and the recording end signal is input, and the event shift register 2
Each of the shift registers 23A1 to 23An of 3A receives the event data input from the bus 9 from each shift register 23A.
The data is shifted one bit at a time from 1 to 23An and recorded, and in step S55, each data in each shift register 23A1 to 23An in the event shift register 23A is simultaneously output in parallel as parallel data to the event detection combination logic circuit 24A, and in step S55. Proceed to S56.

【0078】イベント検出用組合せ論理回路24Aは、
ステップS56で、設定されたイベントの組合せの検出
を行い、ステップS57で、設定されたイベント組合せ
を検出した場合(YES)、ステップS58で設定され
たイベント組合せを検出したことを示すイベント組合せ
検出信号をブレイク回路50に出力して本フローは終了
する。また、ステップS57でイベント検出用組合せ論
理回路24Aが設定されたイベント組合せを検出しなか
った場合(NO)は、ステップS50に戻って、ステッ
プS50以降の処理を行う。
The combination logic circuit 24A for event detection is
If the set event combination is detected in step S56 and the set event combination is detected in step S57 (YES), an event combination detection signal indicating that the event combination set in step S58 is detected. Is output to the break circuit 50, and the present flow ends. If the event detection combination logic circuit 24A does not detect the set event combination in step S57 (NO), the process returns to step S50 to perform the processing of step S50 and thereafter.

【0079】上記のように、第2実施例のイベント検出
回路を使用したデバッグ装置においては、トレース機能
によりターゲットマイコンの状態変化を記録しながら、
その状態変化の中で指定した条件の発生を検出すること
でイベント検出が実現できるものであり、ターゲットプ
ログラム動作のうち、特定アドレスに対するデータアク
セス時のデータ変化が一連の変化を生じる場合をイベン
トとして検出することができる。
As described above, in the debug device using the event detection circuit of the second embodiment, while recording the state change of the target microcomputer by the trace function,
Event detection can be realized by detecting the occurrence of a specified condition in the state change, and when the data change at the time of data access to a specific address in the target program operation causes a series of changes, it is regarded as an event. Can be detected.

【0080】また、上記第1及び第2実施例において、
イベント検出用組合せ論理回路24及び24AにPLA
構造をなしたデバイスを使用したが、該デバイスの代わ
りにRAMを使用してもよく、更に、上記第2実施例に
おいて、トレースメモリ6の記録ステップ数と同じサイ
ズのシフトレジスタを用意することがハードウェア的に
困難な場合、シフトクロックを発生させる回路にコンパ
レータ回路を使用することにより、限定した範囲での高
度なイベント検出機能を提供する構成も考えられる。こ
のように、本発明のイベント検出回路は上記実施例に限
定されるものではなく、様々な変形例が考えられ、本発
明の範囲は、特許請求の範囲によって定められるべきも
のであることは言うまでもない。
In the first and second embodiments,
PLA for combinational logic circuits 24 and 24A for event detection
Although the structured device is used, a RAM may be used instead of the device, and in the second embodiment, a shift register having the same size as the number of recording steps of the trace memory 6 can be prepared. When it is difficult in terms of hardware, a configuration that provides a high-level event detection function within a limited range by using a comparator circuit for the circuit that generates the shift clock is also conceivable. As described above, the event detection circuit of the present invention is not limited to the above embodiment, and various modifications are conceivable, and it goes without saying that the scope of the present invention should be defined by the claims. Yes.

【0081】[0081]

【発明の効果】以上の説明から明らかなように、本発明
は、イベントの組合せが、AND−OR論理によって検
出できるため、各シフトレジスタからのパラレルデータ
をPLA構造をなすイベント検出用組合せ論理回路に入
力し、該イベント検出用組合せ論理回路のPLAによる
組合せ論理で、検出したいイベントの組合せを高速に検
出することができる。また、イベント検出用組合せ論理
回路の回路規模としては、PLA構造で実現できるた
め、高集積化が可能であることから、従来の技術と比較
して高速化及び高機能化が容易であると共に、回路規模
をコンパクトにすることができる。
As is apparent from the above description, according to the present invention, since the combination of events can be detected by AND-OR logic, the parallel data from each shift register has a PLA structure for event detection combination logic circuit. , And the combination logic of the event detecting combination logic circuit by the PLA can detect the combination of the events to be detected at high speed. Further, the circuit scale of the event detection combinational logic circuit can be realized with a PLA structure, and thus high integration is possible, so that it is easy to achieve high speed and high functionality as compared with the conventional technology. The circuit scale can be made compact.

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

【図1】 本発明の第1実施例のイベント検出回路を使
用したデバッグ装置の例を示す概略ブロック図である。
FIG. 1 is a schematic block diagram showing an example of a debug device using an event detection circuit according to a first embodiment of the present invention.

【図2】 図1で示したデバッグ装置によるターゲット
マイコンの動作制御を行う動作を示したフローチャート
である。
FIG. 2 is a flowchart showing an operation for controlling the operation of a target microcomputer by the debug device shown in FIG.

【図3】 図1で示したデバッグ装置によるターゲット
マイコンの動作観測を行う動作を示したフローチャート
である。
FIG. 3 is a flowchart showing an operation of observing the operation of the target microcomputer by the debug device shown in FIG.

【図4】 本発明の第1実施例のイベント検出回路を示
したブロック図である。
FIG. 4 is a block diagram showing an event detection circuit according to the first exemplary embodiment of the present invention.

【図5】 図4で示した本発明のイベント検出回路にお
けるイベントの組合せを検出する動作を示したフローチ
ャートである。
5 is a flowchart showing an operation of detecting a combination of events in the event detection circuit of the present invention shown in FIG.

【図6】 図4で示した本発明の第1実施例のイベント
検出回路における構成例を示したブロック図である。
FIG. 6 is a block diagram showing a configuration example of the event detection circuit of the first exemplary embodiment of the present invention shown in FIG.

【図7】 イベント検出用組合せ論理回路におけるAN
D−OR論理によるPLAの接続情報を示したPLAマ
ップの例を示した図である。
FIG. 7: AN in combinational logic circuit for event detection
It is the figure which showed the example of the PLA map which showed the connection information of PLA by D-OR logic.

【図8】 本発明の第2実施例のイベント検出回路を使
用したデバッグ装置の例を示す概略ブロック図である。
FIG. 8 is a schematic block diagram showing an example of a debug device using the event detection circuit of the second exemplary embodiment of the present invention.

【図9】 本発明の第2実施例のイベント検出回路を示
したブロック図である。
FIG. 9 is a block diagram showing an event detection circuit according to a second embodiment of the present invention.

【図10】 図9で示した本発明のイベント検出回路に
おけるイベントの組合せを検出する動作を示したフロー
チャートである。
10 is a flowchart showing an operation of detecting a combination of events in the event detection circuit of the present invention shown in FIG.

【図11】 従来のイベント検出回路を示したブロック
図である。
FIG. 11 is a block diagram showing a conventional event detection circuit.

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

1,10 デバッグ装置、2 エミュレーションマイコ
ン、3 エミュレーションマイコン制御回路、4a,4
b,40 イベント検出回路、5,50 ブレイク回
路、6 トレースメモリ、7,70 トレース制御回
路、8 エミュレータ制御MPUバス、9 バス、20
コンパレータ部、20a,20b,20c,20d
コンパレータ、21 検出イベント指定レジスタ、22
コンパレータパルス発生回路、23,23A イベン
トシフトレジスタ、23a,23b,23c,23d,
23A1〜23An シフトレジスタ、24,24A イ
ベント検出用組合せ論理回路30 トレース機能回路、
31 トレース機能制御用書き込み回路
1, 10 Debugging device, 2 Emulation microcomputer, 3 Emulation microcomputer control circuit, 4a, 4
b, 40 event detection circuit, 5, 50 break circuit, 6 trace memory, 7, 70 trace control circuit, 8 emulator control MPU bus, 9 bus, 20
Comparator section, 20a, 20b, 20c, 20d
Comparator, 21 Detection event specification register, 22
Comparator pulse generation circuit, 23, 23A event shift register, 23a, 23b, 23c, 23d,
23A1 to 23An shift register, 24, 24A combination logic circuit 30 for event detection, trace function circuit,
31 Trace function control write circuit

Claims (8)

【特許請求の範囲】[Claims] 【請求項1】 所定の事象を検出するイベント検出回路
において、 入力された情報を時系列に記憶し、該記憶した時系列の
情報を同時に並列に出力する情報記憶手段と、 該情報記憶手段から並列に出力された情報を組み合わせ
て、上記入力情報の所定の組合せの発生を検出する組合
せ検出手段とを備えたことを特徴とするイベント検出回
路。
1. An event detection circuit for detecting a predetermined event, which stores input information in time series, and outputs the stored time series information at the same time in parallel, and from the information storage means. An event detection circuit comprising: combination detection means for detecting the occurrence of a predetermined combination of the input information by combining the information output in parallel.
【請求項2】 請求項1に記載のイベント検出回路にし
て、上記情報記憶手段は、少なくとも1つのシフトレジ
スタからなることを特徴とするイベント検出回路。
2. The event detection circuit according to claim 1, wherein the information storage means comprises at least one shift register.
【請求項3】 請求項1又は請求項2のいずれかに記載
のイベント検出回路にして、上記組合せ検出手段は、上
記入力情報をANDアレイ部への入力とするPLA構造
をなすことを特徴とするイベント検出回路。
3. The event detection circuit according to claim 1, wherein the combination detection means has a PLA structure in which the input information is input to an AND array section. Event detection circuit.
【請求項4】 マイクロプロセッサのバス情報を取り込
み記録する機能を有し、マイクロプロセッサ応用システ
ム等のデバッグを行うデバッグ装置におけるイベント検
出回路において、 マイクロプロセッサのバス状態を監視して、指定された
状態を検出すると所定の検出信号を出力するバス状態検
出手段と、 該バス状態検出手段から上記検出信号が出力されると所
定の信号を出力する信号出力手段と、 該信号出力手段からの所定の信号により上記バス状態検
出手段からの出力信号を時系列に記憶すると共に、該記
憶した時系列の信号情報を同時に並列に出力する機能を
有する記憶手段と、 該記憶手段から並列に出力された信号情報を組み合わせ
て、該信号情報の所定の組合せの発生を検出することに
より、上記マイクロプロセッサにおける特定の事象を検
出する組合せ検出手段とを備えたことを特徴とするイベ
ント検出回路。
4. An event detection circuit in a debug device having a function of fetching and recording bus information of a microprocessor and performing debugging of a microprocessor application system or the like, monitors the bus state of the microprocessor, and specifies a specified state. Bus state detection means for outputting a predetermined detection signal when detecting the signal, a signal output means for outputting a predetermined signal when the detection signal is output from the bus state detection means, and a predetermined signal from the signal output means Storage means having a function of storing the output signals from the bus state detecting means in time series, and simultaneously outputting the stored time series signal information in parallel, and the signal information output in parallel from the storage means. In the microprocessor by detecting the occurrence of a predetermined combination of the signal information. Event detection circuit, characterized in that a combination detection means for detecting the constant event.
【請求項5】 請求項4に記載のイベント検出回路にし
て、上記記憶手段は、複数のシフトレジスタからなるこ
とを特徴とするイベント検出回路。
5. The event detection circuit according to claim 4, wherein the storage means comprises a plurality of shift registers.
【請求項6】 請求項4又は請求項5のいずれかに記載
のイベント検出回路にして、上記組合せ検出手段は、上
記信号情報をANDアレイ部への入力とするPLA構造
をなすことを特徴とするイベント検出回路。
6. The event detecting circuit according to claim 4, wherein the combination detecting means has a PLA structure in which the signal information is input to an AND array section. Event detection circuit.
【請求項7】 マイクロプロセッサのバス情報を取り込
み記録する機能を有し、マイクロプロセッサ応用システ
ム等のデバッグを行うデバッグ装置におけるイベント検
出回路において、 マイクロプロセッサのバス状態を監視して、該バス状態
と指定された状態を比較して、一致した場合に所定の信
号を出力する複数のコンパレータ回路と、 該各コンパレータ回路のいずれかから上記所定の信号が
出力された場合にパルス信号を出力するコンパレータパ
ルス出力回路と、 該コンパレータパルス出力回路からのパルス信号によっ
てシフトし、上記各コンパレータ回路からの出力状態を
それぞれ記憶し、該各記憶情報を同時に並列に出力する
機能を備えた複数のシフトレジスタと、 該各シフトレジスタからのそれぞれの並列に出力された
信号情報を組み合わせて、該信号情報の所定の組合せの
発生を検出することにより、マイクロプロセッサにおけ
る特定のバス状態を検出する組合せ論理回路とを備えた
ことを特徴とするイベント検出回路。
7. An event detection circuit in a debug device having a function of capturing and recording bus information of a microprocessor and performing debugging of a microprocessor application system or the like, monitors a bus state of the microprocessor, and detects the bus state. A plurality of comparator circuits that compare specified states and output a predetermined signal when they match, and a comparator pulse that outputs a pulse signal when one of the comparator circuits outputs the predetermined signal. An output circuit, a plurality of shift registers having a function of shifting by a pulse signal from the comparator pulse output circuit, respectively storing output states from the comparator circuits, and simultaneously outputting the stored information in parallel, Signal information output in parallel from each shift register Combination, by detecting the occurrence of a predetermined combination of the signal information, the event detection circuit, characterized in that it includes a combination logic circuit for detecting a particular bus state in the microprocessor.
【請求項8】 請求項7に記載のイベント検出回路にし
て、上記組合せ論理回路は、上記信号情報をANDアレ
イ部の入力とするPLA構造をなすことを特徴とするイ
ベント検出回路。
8. The event detection circuit according to claim 7, wherein the combinational logic circuit has a PLA structure in which the signal information is input to an AND array section.
JP6322831A 1994-12-26 1994-12-26 Event detection circuit Pending JPH08179965A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6322831A JPH08179965A (en) 1994-12-26 1994-12-26 Event detection circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6322831A JPH08179965A (en) 1994-12-26 1994-12-26 Event detection circuit

Publications (1)

Publication Number Publication Date
JPH08179965A true JPH08179965A (en) 1996-07-12

Family

ID=18148097

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6322831A Pending JPH08179965A (en) 1994-12-26 1994-12-26 Event detection circuit

Country Status (1)

Country Link
JP (1) JPH08179965A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20010018243A (en) * 1999-08-18 2001-03-05 김영환 Register mapping method for micro processor
JP2008071339A (en) * 2006-08-21 2008-03-27 Intel Corp Technology for performing memory reference filtering
JP2015516100A (en) * 2012-05-07 2015-06-04 マイクロチップ テクノロジー インコーポレイテッドMicrochip Technology Incorporated Processor device with instruction trace capability

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20010018243A (en) * 1999-08-18 2001-03-05 김영환 Register mapping method for micro processor
JP2008071339A (en) * 2006-08-21 2008-03-27 Intel Corp Technology for performing memory reference filtering
JP2015516100A (en) * 2012-05-07 2015-06-04 マイクロチップ テクノロジー インコーポレイテッドMicrochip Technology Incorporated Processor device with instruction trace capability

Similar Documents

Publication Publication Date Title
US4999837A (en) Programmable channel error injection
JP4987182B2 (en) Computer system
US7840842B2 (en) Method for debugging reconfigurable architectures
US4718065A (en) In-line scan control apparatus for data processor testing
CA2380077C (en) Programmable event counter system
EP0528585B1 (en) Data processing system with internal instruction cache
US6668339B1 (en) Microprocessor having a debug interruption function
US8635497B2 (en) Data processing system having a sequence processing unit and method of operation
US20030110430A1 (en) Method and system for use of a field programmable gate array (FPGA) function within an application specific integrated circuit (ASIC) to enable creation of a debugger client within the ASIC
US20030154430A1 (en) On-chip instrumenation
US20050257089A1 (en) Breakpoint logic unit, debug logic and breakpoint method for a data processing apparatus
US20070011492A1 (en) Generation of trace data
JPH0212541A (en) Computing system and operation thereof
JP4865943B2 (en) Computer system
JPH08320808A (en) Emulation system
US20130007533A1 (en) Data processing system having a sequence processing unit and method of operation
JP2001154876A (en) Microcomputer debug architecture and method
KR20010013275A (en) Digital circuit using memory for monitoring signals for occurrences of predefined breakpoint conditions
US7647485B2 (en) Data processing system for debugging utilizing halts in a parallel device
JPS63155336A (en) Data processor
JPH08179965A (en) Event detection circuit
JP2000293394A (en) Processor with bist function
WO2003034226A2 (en) Debugging of processors
JP4044455B2 (en) Debug support device
US7293258B1 (en) Data processor and method for using a data processor with debug circuit