JP2002215421A - Debugging device and breaking method for debugging device - Google Patents

Debugging device and breaking method for debugging device

Info

Publication number
JP2002215421A
JP2002215421A JP2001006237A JP2001006237A JP2002215421A JP 2002215421 A JP2002215421 A JP 2002215421A JP 2001006237 A JP2001006237 A JP 2001006237A JP 2001006237 A JP2001006237 A JP 2001006237A JP 2002215421 A JP2002215421 A JP 2002215421A
Authority
JP
Japan
Prior art keywords
microprocessor
signal
break
address
microprocessors
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
JP2001006237A
Other languages
Japanese (ja)
Inventor
Shinji Osaki
真司 大崎
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 Micro Systems Co Ltd
Original Assignee
Renesas Micro Systems Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Renesas Micro Systems Co Ltd filed Critical Renesas Micro Systems Co Ltd
Priority to JP2001006237A priority Critical patent/JP2002215421A/en
Publication of JP2002215421A publication Critical patent/JP2002215421A/en
Pending legal-status Critical Current

Links

Landscapes

  • Advance Control (AREA)
  • Debugging And Monitoring (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a debugging device capable of normally executing program debug even though the operation clock frequencies of microprocessors are different from each other, and a breaking method. SOLUTION: In this debugging device 1a provided with a plurality of microprocessors 10a and 20a which transmit and receive the data of a predetermined instruction through a shared temporary storing means 30a and in which an interrupting means 60a controls operation stop for debugging when a breakpoint detecting means 40a detects a breakpoint, the operation clock frequencies of the microprocessors 10a and 20a are different from each other, and the microprocessor 10a reads contents stored in the shared register 30a when the microprocessor 10a performs an instruction just before stop to be able to perform normal debugging because the microprocessor 20a writes predetermined desired data in the shared register 30a before the microprocessor 20a is stopped even though the microprocessor 20a is stopped for debugging.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、マイクロコンピュ
ータに搭載するプログラムのデバッグ装置に係わり、特
に複数プロセッサそれぞれの動作クロック周波数および
パイプライン段数が異なる場合に、複数プロセッサのデ
バッグ対象プログラムをブレークさせる際に発生させる
ブレーク信号の割り込み発生回路の動作を改善したデバ
ッグ装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an apparatus for debugging a program mounted on a microcomputer, and more particularly to a method for breaking a program to be debugged on a plurality of processors when the operating clock frequency and the number of pipeline stages of the processors are different. The present invention relates to a debugging device in which the operation of an interrupt generation circuit for a break signal to be generated is improved.

【0002】[0002]

【従来の技術】近年、マイクロプロセッサを搭載する制
御システムではマルチプロセッサ化が進み、複数プロセ
ッサ相互間の情報交換には共有レジスタを備え、各々の
プロセッサとしては、必要な機能を実現するために最も
適したプロセッサを選択することにより、システム全体
としての性能を高めることが必要になってきた。
2. Description of the Related Art In recent years, control systems equipped with microprocessors have become multiprocessors. Information exchange among a plurality of processors is provided with a shared register, and each processor is most required to realize necessary functions. It has become necessary to increase the performance of the entire system by selecting a suitable processor.

【0003】例えば、信号処理演算も制御も必要とし、
さらに消費電力も低減する必要があるとされるシステム
には、消費電力が少なくて済み、かつ演算性能が高いD
SP(Digital Signal Process
or)と制御用のマイクロコンピュータとを組み合わせ
ることにより、必要な性能および必要な機能を満たした
システムを組み上げている。
[0003] For example, both signal processing calculation and control are required,
A system that needs to further reduce power consumption requires a low power consumption and has high computational performance.
SP (Digital Signal Process)
or) and a microcomputer for control to assemble a system that satisfies required performance and required functions.

【0004】このようなシステムでは、DSPのクロッ
ク周波数とマイクロコンピュータのクロック周波数とが
異なり、命令実行のパイプラインの段数も異なっている
のが一般的である。
In such a system, the clock frequency of the DSP is different from the clock frequency of the microcomputer, and the number of pipelines for executing instructions is also generally different.

【0005】上述したようなマルチプロセッサシステム
を対象とするプログラムデバッグ装置の一例が、特開平
6−75820号公報に開示されている。同公報記載の
マルチプロセッサシステムにおける割り込み装置の構成
を本発明に対応させて示した図5参照すると、この割り
込み装置は、第1のプロセッサ11,第2のプロセッサ
21と、プロセッサ11に接続されブレークポイントテ
ーブル44を含む第1のアドレス監視装置43と、プロ
セッサ21に接続されブレークポイントテーブル54を
含む第2のアドレス監視装置53と、プロセッサ11,
21がそれぞれ占有する第1、第2のローカルメモリ4
7,57と、プロセッサ番号マスク72を含む割り込み
装置71とを有する。
[0005] An example of a program debugging apparatus for the above-described multiprocessor system is disclosed in Japanese Patent Application Laid-Open No. 6-75820. Referring to FIG. 5, which shows a configuration of an interrupt device in a multiprocessor system described in the publication in correspondence with the present invention, the interrupt device includes a first processor 11, a second processor 21, and a breaker connected to the processor 11. A first address monitoring device 43 including a point table 44; a second address monitoring device 53 connected to the processor 21 and including a breakpoint table 54;
First and second local memories 4 respectively occupied by 21
7 and 57, and an interrupt device 71 including a processor number mask 72.

【0006】この装置は、例えばアドレス監視装置42
のブレークポイントテーブル44に、あらかじめプログ
ラムをブレークするためのアドレスを格納しておき、そ
のブレークアドレスとプロセッサ11が信号線141を
介して出力するアドレスとを、アドレス監視装置42が
比較し、一致すると割り込み信号線143を介して割り
込み信号を割り込み装置61に出力する。プロセッサ2
1とアドレス監視装置52の場合も同様に動作する。
This device is, for example, an address monitoring device 42
An address for breaking a program is stored in advance in the break point table 44 of the above, and the address monitoring device 42 compares the break address with the address output by the processor 11 via the signal line 141, and when they match, An interrupt signal is output to the interrupt device 61 via the interrupt signal line 143. Processor 2
1 and the address monitoring device 52 operate similarly.

【0007】割り込み信号を受けた割り込み装置71
は、プロセッサ番号マスク72にあらかじめ設定されて
いるプロセッサが、例えばプロセッサ11であれば、プ
ロセッサ11に対して割り込み信号線145を介してブ
レーク信号を出力し、ブレーク信号を受けたプロセッサ
11の動作を停止させることによりデバッグモードにす
る。あらかじめ設定されているプロセッサが、プロセッ
サ21であれば、プロセッサ21をデバッグモードにす
る。
The interrupt device 71 which has received the interrupt signal
If the processor preset in the processor number mask 72 is, for example, the processor 11, a break signal is output to the processor 11 via the interrupt signal line 145, and the operation of the processor 11 receiving the break signal is performed. Debug mode by stopping. If the processor set in advance is the processor 21, the processor 21 is set to the debug mode.

【0008】従って、複数プロセッサが、ブレーク後に
プログラムデバッグに必要なレジスタダンプ、メモリダ
ンプを行なうことができるようにしたものである。
Therefore, a plurality of processors can perform register dump and memory dump necessary for program debugging after a break.

【0009】しかし、上述した従来の割り込み装置は、
複数プロセッサのクロック周波数がそれぞれ異なる場合
については何も開示していない。
However, the above-mentioned conventional interrupt device is
Nothing is disclosed about the case where the clock frequencies of a plurality of processors are different from each other.

【0010】一方、従来の他のデバッグ装置の構成の概
要を示した図6を参照すると、第1のプロセッサ12お
よび第2のプロセッサ22の間に、同図中に点線で示し
た共有レジスタ31を挿入接続して追加するとともに、
プロセッサ12は10MHz、プロセッサ22は50M
Hzのように、それぞれ異なるクロック周波数で動作さ
せるものである。
On the other hand, referring to FIG. 6 showing an outline of the configuration of another conventional debugging device, a shared register 31 shown by a dotted line in the figure between a first processor 12 and a second processor 22 is shown. Insert and connect to add
Processor 12 is 10 MHz, processor 22 is 50M
It operates at different clock frequencies, such as Hz.

【0011】共有レジスタ31は、第1のプロセッサ1
2との間では信号線157を介して、第2のプロセッサ
22との間では信号線158を介して、それぞれ信号の
受け渡しを行う。
The shared register 31 stores the first processor 1
The signal is transmitted to and from the second processor 22 via a signal line 157, and is transmitted to and from the second processor 22 via a signal line 158.

【0012】すなわち、共有レジスタ書き込み命令に応
答して、第2のプロセッサ22から出力する第2の共有
レジスタ信号158のデータを入力して保持する。ま
た、共有レジスタ読み込み命令に応答して、保持データ
を第1のプロセッサ12に転送する。
That is, in response to the shared register write command, the data of the second shared register signal 158 output from the second processor 22 is input and held. In addition, the stored data is transferred to the first processor 12 in response to the shared register read instruction.

【0013】同様に、第1のプロセッサ12との間にお
いても、共有レジスタ書き込み命令に応答して、第1の
プロセッサ12が出力する第1の共有レジスタ信号15
7のデータを入力して保持する。また、共有レジスタ読
み出し命令に応答して、第2のプロセッサ22に保持デ
ータを転送する。
Similarly, the first shared register signal 15 output from the first processor 12 in response to the shared register write command is also sent to the first processor 12.
7 is inputted and held. In addition, in response to the shared register read command, the stored data is transferred to the second processor 22.

【0014】上述した従来例は、ブレーク時にはいずれ
も複数プロセッサを同時に停止させるが、複数プロセッ
サ間で共有レジスタを有する例では、共有レジスタ31
に対して、複数プロセッサが同時にアクセスしないよう
に動作する。
In the above-described conventional example, a plurality of processors are simultaneously stopped at the time of a break. However, in an example having a shared register among a plurality of processors, the shared register 31 is used.
To prevent simultaneous access by multiple processors.

【0015】[0015]

【発明が解決しようとする課題】上述したように、複数
プロセッサ間で共有レジスタを有し、プロセッサのクロ
ック周波数が互いに異なる従来例では、複数プロセッサ
は同時に共有レジスタをアクセスしないように動作する
が、プログラムデバッグのためにプロセッサを停止させ
るタイミングによっては、プログラムデバッグが出来な
くなってしまうという問題がある。
As described above, in a conventional example in which a plurality of processors have a shared register and the clock frequencies of the processors are different from each other, the plurality of processors operate so as not to access the shared register at the same time. There is a problem that program debugging cannot be performed depending on the timing at which the processor is stopped for program debugging.

【0016】例えば、共有レジスタを有する従来例の動
作説明用のタイミングチャートを示した図7を参照する
と、まず、プロセッサを停止させない動作の場合、第2
のプロセッサ22が、K命令実行後に第2の共有レジス
タ信号線により共有レジスタ31へデータ書き込みを行
う。その後に、共有レジスタ31に書き込まれたデータ
を、第1のプロセッサ12は命令実行ステージ(EX)
においてA命令実行時に第1の共有レジスタ信号線に読
み出した命令を入力し実行する。
For example, referring to FIG. 7 showing a timing chart for explaining the operation of a conventional example having a shared register, first, in the case of an operation without stopping the processor, the second
After executing the K instruction, the processor 22 writes data to the shared register 31 through the second shared register signal line. Thereafter, the first processor 12 transmits the data written to the shared register 31 to the instruction execution stage (EX).
At the time of execution of the A instruction, the read instruction is input to the first shared register signal line and executed.

【0017】プログラムデバッグ時は、プログラムデバ
ッグのために複数プロセッサに対して同時に第1および
第2のブレーク信号156を与えると、第2のプロセッ
サ22の方が第1のプロセッサ21よりも高いクロック
周波数で動作しているので、第2のプロセッサ22は第
2のブレーク信号156を入力したことで、命令フェッ
チステージ(IF)において命令Iのフェッチ動作を停
止し、命令Hの命令実行までで停止する。すなわち、第
1のプロセッサ21よりも先に動作を停止する。
At the time of program debugging, when the first and second break signals 156 are simultaneously applied to a plurality of processors for program debugging, the second processor 22 has a higher clock frequency than the first processor 21. Therefore, the second processor 22 stops the fetch operation of the instruction I in the instruction fetch stage (IF) and stops until the execution of the instruction H by receiving the second break signal 156. . That is, the operation is stopped before the first processor 21.

【0018】共有レジスタ31へのデータ書き込み命令
である命令Kの前の命令Hで停止したことで、第1のプ
ロセッサ12が共有レジスタ31からデータを読み出し
て入力しA命令を実行しても、プロセッサ22がH命令
で停止してしまっているため、共有レジスタ31の保持
内容がプロセッサを停止させないときの内容とは異なっ
ているので、動作も異なってしまい、プログラムデバッ
グが出来なくなってしまうという問題がある。パイプラ
イン段数が異なることでも上述した例と同様の問題が発
生することは明白であるので、ここでの説明は省略す
る。
When the first processor 12 reads and inputs data from the shared register 31 and executes the A instruction because the first processor 12 stops at the instruction H before the instruction K which is a data write instruction to the shared register 31, Since the processor 22 is stopped by the H instruction, the contents held in the shared register 31 are different from the contents when the processor is not stopped, so that the operation is also different and the program cannot be debugged. There is. It is obvious that the same problem as in the above-described example occurs even when the number of pipeline stages is different, and thus the description is omitted here.

【0019】本発明の目的は、上述した従来の欠点に鑑
みなされたものであり、プロセッサのクロック周波数や
パイプライン段数が異なっても、プロセッサを停止させ
ない時の動作、すなわち、動作クロック周波数が高いプ
ロセッサに対する共有レジスタライト命令でデータを共
有レジスタに書き込んだ後、動作クロック周波数が低い
プロセッサに対する共有レジスタリード命令で共有レジ
スタからデータを読み出すという動作が、プログラムデ
バッグのためにプログラムを停止させた状態であっても
正常に実行できるデバッグ装置を提供することにある。
An object of the present invention has been made in view of the above-mentioned disadvantages of the related art. Even when the clock frequency and the number of pipeline stages of the processor are different, the operation when the processor is not stopped, that is, the operation clock frequency is high. The operation of writing data to the shared register with a shared register write instruction to the processor and then reading the data from the shared register with a shared register read instruction to the processor with a lower operating clock frequency is a state in which the program is stopped for program debugging. An object of the present invention is to provide a debugging device that can execute normally even if there is any.

【0020】[0020]

【課題を解決するための手段】本発明のデバッグ装置
は、それぞれの動作クロック周波数が異なる複数マイク
ロプロセッサと、これら複数マイクロプロセッサ間で共
有する共有一時記憶手段と、前記複数マイクロプロセッ
サにブレークをかける割り込み手段とを有して前記複数
マイクロプロセッサに搭載されるプログラムをデバッグ
するデバッグ装置において、前記割り込み手段は、前記
動作クロック周波数の低いマイクロプロセッサへのブレ
ーク信号を、前記動作クロック周波数の低いマイクロプ
ロセッサが前記共有一時記憶手段の保持データを読み込
む命令のフェッチ時点で出力し、動作クロック周波数の
高いマイクロプロセッサへのブレーク信号を、前記動作
クロック周波数の低いマイクロプロセッサが前記保持デ
ータを読み込む命令実行ステージ終了時点まで遅らせて
出力するブレーク発生手段を備えることを特徴とする。
According to the present invention, there is provided a debugging apparatus comprising: a plurality of microprocessors having different operating clock frequencies; shared temporary storage means shared among the plurality of microprocessors; and a break on the plurality of microprocessors A debugging device for debugging a program mounted on the plurality of microprocessors having an interrupting means, wherein the interrupting means transmits a break signal to the microprocessor having a low operation clock frequency to the microprocessor having a low operation clock frequency. Is output at the time of fetching the instruction to read the held data of the shared temporary storage means, and a command to read the held data by the microprocessor having the low operation clock frequency to output a break signal to the microprocessor having a high operation clock frequency. Characterized in that it comprises a break generating means for outputting delayed until line stage end.

【0021】本発明のデバッグ装置の他の特徴は、共有
一時記憶手段を介してあらかじめ定める命令のデータの
書き込みまたは読み出しを行って前記データの授受を行
い、かつブレークポイント検出手段がブレークポイント
を検出したとき、割り込み手段によりデバッグのための
動作停止が制御される複数マイクロプロセッサを備えた
デバッグ装置であり、前記複数マイクロプロセッサは、
それぞれの動作クロック周波数が一方は高く他方はそれ
よりも低く、前記動作クロック周波数が低い方のマイク
ロプロセッサに動作停止のブレーク信号が与えられた後
に、前記共有一時記憶手段に対して前記動作クロック周
波数が高い方のマイクロプロセッサから予め定めるデー
タが書き込まれて保持され、保持された前記データを前
記動作停止直前に前記動作クロック周波数の低い方のマ
イクロプロセッサが読み出すためのタイミング調整機能
を前記割り込み手段が有することにある。
Another feature of the debugging device of the present invention is that the data is transmitted / received by writing or reading data of a predetermined instruction via shared temporary storage means, and the breakpoint detection means detects a breakpoint. A debugging device comprising a plurality of microprocessors, the operation of which is stopped for debugging by interrupt means is controlled, wherein the plurality of microprocessors includes:
One of the operation clock frequencies is higher one is lower than the other, and the operation clock frequency is given to the shared temporary storage means after a break signal for stopping the operation is given to the microprocessor having the lower operation clock frequency. The predetermined means is written and held from the higher microprocessor, and the interrupt means performs a timing adjustment function for reading the held data by the lower microprocessor of the operation clock frequency immediately before the operation is stopped. Is to have.

【0022】本発明のデバッグ装置のまた他の特徴は、
あらかじめ定めるデバッグプログラムをパイプライン処
理で実行する複数マイクロプロセッサのうち、一方のマ
イクロプロセッサが自身のパイプライン命令実行ステー
ジで共有一時記憶手段にデータ書き込み命令を実行し他
方が自身のパイプライン命令実行ステージで前記データ
の読み出し命令を実行するとともに、ブレークポイント
検出手段が検出したブレークポイント検出信号に応答し
て割り込み手段で生成されたブレーク信号により、前記
デバッグプログラムのパイプライン処理動作の停止が制
御されるブレーク制御手段と、前記ブレーク信号を、前
記動作クロック周波数が異なる複数マイクロプロセッサ
のうち一方のマイクロプロセッサの動作周波数よりも高
周波の動作クロック周波数をもつ他方のマイクロプロセ
ッサに対して、予め定める時間だけ遅らせて与えるブレ
ーク調整手段とを有することにある。
Another feature of the debugging device of the present invention is that
One of a plurality of microprocessors for executing a predetermined debug program by pipeline processing executes a data write instruction in the shared temporary storage means in its own pipeline instruction execution stage, and the other microprocessor executes its own pipeline instruction execution stage. And the stop of the pipeline processing operation of the debug program is controlled by the break signal generated by the interrupt means in response to the break point detection signal detected by the break point detection means. The break control means and the break signal are previously sent to the other microprocessor having an operating clock frequency higher than the operating frequency of one of the plurality of microprocessors having different operating clock frequencies. It is to have a break adjustment means for providing delayed by time stipulated.

【0023】また、前記予め定める時間は、一方のマイ
クロプロセッサがパイプライン命令実行ステージにおけ
る読み出し命令の実行終了時間とすることができる。
Further, the predetermined time may be an execution end time of a read instruction in one of the microprocessors in a pipeline instruction execution stage.

【0024】さらに、前記共有一時記憶手段は、それぞ
れ動作クロック周波数およびパイプライン段数が異なる
前記マイクロプロセッサのプログラムデバッグ用に設け
ることができる。
Further, the shared temporary storage means may be provided for program debugging of the microprocessor having different operation clock frequencies and different numbers of pipeline stages.

【0025】さらにまた、前記予め定める時間は、前記
一方のプロセッサのパイプライン段数分の縦続接続され
たフリップフロップの初段に入力する前記アドレス一致
信号を前記一方のマイクロプロセッサの動作クロック信
号に同期して前記パイプライン段数分遅らせた時間とす
ることもできる。
Still further, the predetermined time is such that the address match signal input to the first stage of the cascade-connected flip-flops for the number of pipeline stages of the one processor is synchronized with the operation clock signal of the one microprocessor. Thus, the time may be delayed by the number of pipeline stages.

【0026】また、ブレーク調整手段は、前記動作クロ
ック周波数が異なる複数マイクロプロセッサそれぞれの
マイクロプロセッサで指定したアドレスに対応するアド
レス一致信号の発生タイミングで前記一方のマイクロプ
ロセッサにブレークをかけ、前記他方のマイクロプロセ
ッサには、自身で指定したアドレスに対応するアドレス
一致信号の発生タイミングと前記一方のマイクロプロセ
ッサで指定したアドレスに対応するアドレス一致信号を
遅延回路であらかじめ定める時間だけ遅延させた遅延ア
ドレス一致信号の発生タイミングとのいずれかでブレー
クをかける構成を有する。
The break adjusting means breaks the one microprocessor at the timing of generation of an address match signal corresponding to an address designated by each of the plurality of microprocessors having different operating clock frequencies, and breaks the other microprocessor. The microprocessor has a delay address coincidence signal obtained by delaying the generation timing of the address coincidence signal corresponding to the address designated by itself and the address coincidence signal corresponding to the address designated by the one microprocessor by a predetermined time by a delay circuit. Breaks at any of the occurrence timings.

【0027】さらに、前記ブレーク調整手段は、前記動
作クロック周波数が異なる複数マイクロプロセッサそれ
ぞれのマイクロプロセッサで指定したアドレスに対応す
るアドレス一致信号の発生タイミングで前記一方のマイ
クロプロセッサにブレークをかけ、前記他方のマイクロ
プロセッサには、自身で指定したアドレスに対応するア
ドレス一致信号の発生タイミングと前記一方のマイクロ
プロセッサで指定したアドレスに対応するアドレス一致
信号を、遅延回路であらかじめ定める時間だけ遅延させ
た遅延アドレス一致信号の発生タイミングとのいずれか
でブレークをかける構成を有する。
Further, the break adjusting means breaks the one microprocessor at the timing of generating an address coincidence signal corresponding to an address designated by each of the plurality of microprocessors having different operating clock frequencies, and breaks the one microprocessor. The microprocessor has a delay address obtained by delaying the generation timing of the address match signal corresponding to the address specified by itself and the address match signal corresponding to the address specified by the one microprocessor by a predetermined time by a delay circuit. There is a configuration in which a break occurs at any of the coincidence signal generation timings.

【0028】本発明のデバッグ装置は、第1の動作クロ
ック周波数で動作し、第1のブレーク信号に応答して所
定期間動作停止する第1のマイクロプロセッサと、前記
第1のマイクロプロセッサよりも高周波の動作クロック
周波数で動作し、第2のブレーク信号に応答して所定期
間動作停止する第2のマイクロプロセッサと、前記第2
のマイクロプロセッサが共有記憶手段書き込み命令で書
き込んだデータを一時記憶し、記憶した前記データを前
記第1のプロセッサが共有記憶手段読み出し命令を実行
して読み出すまで保持する単一の共有記憶手段と、予め
第1のマイクロプロセッサのブレークポイントのアドレ
スが設定されている第1のブレークポイントテーブルを
有し、前記第1のブレークポイントテーブルの設定値と
前記第1のマイクロプロセッサが設定したアドレス信号
を入力して比較し、一致した時に第1のアドレス一致信
号を出力する第1のアドレス監視装置と、予め前記第2
のマイクロプロセッサのブレークポイントのアドレスが
設定されている第2のブレークポイントテーブルを有
し、前記第2のブレークポイントテーブルの設定値と前
記第2のマイクロプロセッサが設定したアドレス信号と
を比較し、一致した時に第2のアドレス一致信号を出力
する第2のアドレス監視装置と、前記第1のアドレス一
致信号を前記第1のマイクロプロセッサのパイプライン
処理における命令実行ステージの命令実行終了時間まで
遅らせる遅延手段を有し、遅延手段の出力信号と前記第
2のアドレス一致信号とをそれぞれ入力して前記第2の
ブレーク信号を発生する第1の論理和手段と前記第1お
よび前記第2のアドレス一致信号をそれぞれ入力して前
記第1のブレーク信号を発生する第2の論理和手段とを
備える割り込み手段と、をそれぞれ備えることを特徴と
する。
[0028] A debug device of the present invention operates at a first operating clock frequency and stops operating for a predetermined period in response to a first break signal; and a higher frequency than the first microprocessor. A second microprocessor that operates at an operation clock frequency of and stops operating for a predetermined period in response to a second break signal;
A single shared storage means for temporarily storing data written by the microprocessor with the shared storage means write instruction, and holding the stored data until the first processor executes the shared storage means read instruction to read out the data; A first breakpoint table in which addresses of breakpoints of the first microprocessor are set in advance, and a set value of the first breakpoint table and an address signal set by the first microprocessor are input; And a first address monitoring device that outputs a first address match signal when they match,
Having a second breakpoint table in which addresses of breakpoints of the microprocessor are set, comparing a set value of the second breakpoint table with an address signal set by the second microprocessor, A second address monitoring device that outputs a second address match signal when they match, and a delay that delays the first address match signal until an instruction execution end time of an instruction execution stage in pipeline processing of the first microprocessor Means for receiving the output signal of the delay means and the second address coincidence signal to generate the second break signal, and the first and second address coincidence means. A second OR circuit for receiving the respective signals to generate the first break signal; , Characterized in that it comprises, respectively.

【0029】また、前記割り込み手段は、前記第1のア
ドレス一致信号を前記第1のマイクロプロセッサのパイ
プライン処理における命令実行ステージの命令実行終了
時間まで遅らせるために縦続接続され、第1のマイクロ
プロセッサの動作クロック周波数が同期クロック信号と
して供給された複数のフリップフロップを有し、これら
複数のフリップフロップの最終段の出力信号と前記第2
のアドレス一致信号とをそれぞれ入力して前記第2のブ
レーク信号を発生する第3の論理和手段と前記第1およ
び前記第2のアドレス一致信号をそれぞれ入力して前記
第1のブレーク信号を発生する第4の論理和手段とを備
える。
The interrupt means is cascaded to delay the first address match signal until an instruction execution end time of an instruction execution stage in pipeline processing of the first microprocessor. Has a plurality of flip-flops whose operating clock frequencies are supplied as synchronous clock signals, and the output signals of the final stage of the plurality of flip-flops and the second
A third OR circuit for generating the second break signal by inputting the first and second address match signals, respectively, and generating the first break signal by inputting the first and second address match signals, respectively. And fourth OR means for performing the above operation.

【0030】さらに、前記複数のマイクロプロセッサま
たは前記第1および前記第2のマイクロプロセッサの動
作クロック周波数はそれぞれ等しく、それぞれの有する
パイプライン段数が異なる。
Further, the plurality of microprocessors or the first and second microprocessors have the same operation clock frequency, and have different numbers of pipeline stages.

【0031】本発明のデバッグ装置のブレーク方法は、
あらかじめ定めるデバッグプログラムをパイプライン処
理で実行する複数マイクロプロセッサのうち、一方のマ
イクロプロセッサが自身のパイプライン命令実行ステー
ジで共有一時記憶手段にデータ書き込み命令を実行し他
方が自身のパイプライン命令実行ステージで前記データ
の読み出し命令を実行するとともに、ブレークポイント
検出手段が検出したブレークポイント検出信号に応答し
て割り込み手段で発生されたブレーク信号により、前記
デバッグプログラムのパイプライン処理動作の停止が制
御されるとともに、前記割り込み手段は、前記ブレーク
信号を、前記動作クロック周波数が異なる複数マイクロ
プロセッサのうち一方のマイクロプロセッサの動作周波
数よりも高周波の動作クロック周波数をもつ他方のマイ
クロプロセッサに対して、予め定める時間だけ遅らせて
与えることにより、前記共有記憶手段には前記共有一時
記憶手段には、前記他方のマイクロプロセッサが停止す
る前に予め定める所定のデータが書き込まれ、その書き
込まれたデータを前記一方のマイクロプロセッサが命令
実行ステージで読み込むまでの一定期間同一のデータ記
憶状態のまま維持させることを特徴とする。
The debugging method of the debugging device according to the present invention comprises:
One of a plurality of microprocessors for executing a predetermined debug program by pipeline processing executes a data write instruction in the shared temporary storage means in its own pipeline instruction execution stage, and the other microprocessor executes its own pipeline instruction execution stage. And the stop of the pipeline processing operation of the debug program is controlled by the break signal generated by the interrupt means in response to the break point detection signal detected by the break point detection means. In addition, the interrupt means sends the break signal to the other microprocessor having an operation clock frequency higher than the operation frequency of one of the plurality of microprocessors having different operation clock frequencies. The predetermined data is written to the shared storage means in the shared storage means before the other microprocessor stops, and the written data is written in the shared storage means. The data is maintained in the same data storage state for a certain period until the one microprocessor reads the data in the instruction execution stage.

【0032】本発明のデバッグ装置のブレーク方法の他
の特徴は、あらかじめ定めるデバッグプログラムをパイ
プライン処理で実行する複数マイクロプロセッサのう
ち、一方のマイクロプロセッサが自身のパイプライン命
令実行ステージで共有一時記憶手段にデータ書き込み命
令を実行し他方が自身のパイプライン命令実行ステージ
で前記データの読み出し命令を実行するとともに、ブレ
ークポイント検出手段が検出したブレークポイント検出
信号に応答して割り込み手段で発生されたブレーク信号
により、前記デバッグプログラムのパイプライン処理動
作の停止が制御されるとともに、前記割り込み手段の有
するブレーク調整手段が、前記ブレーク信号を、前記動
作クロック周波数が異なる複数マイクロプロセッサのう
ち一方のマイクロプロセッサの動作周波数よりも高周波
の動作クロック周波数をもつ他方のマイクロプロセッサ
に対して、予め定める時間だけ遅らせて与えることにあ
る。
Another feature of the break method of the debugging device of the present invention is that one of a plurality of microprocessors for executing a predetermined debug program in a pipeline process is shared and temporarily stored in its own pipeline instruction execution stage. Means for executing a data write instruction and the other executing a data read instruction in its own pipeline instruction execution stage, and a break generated by the interrupt means in response to a breakpoint detection signal detected by the breakpoint detection means. The signal controls the stop of the pipeline processing operation of the debug program, and the break adjusting means of the interrupt means sends the break signal to one of the microprocessors having different operating clock frequencies. With respect to the other microprocessors than the operating frequency of the processor with the operating clock frequency of the high frequency is to provide delayed by predetermined interval of time.

【0033】また、前記ブレーク調整手段は、前記動作
クロック周波数が異なる複数マイクロプロセッサそれぞ
れのマイクロプロセッサで指定したアドレスに対応する
アドレス一致信号の発生タイミングで前記一方のマイク
ロプロセッサにブレークをかけ、前記他方のマイクロプ
ロセッサには、自身で指定したアドレスに対応するアド
レス一致信号の発生タイミングと前記一方のマイクロプ
ロセッサで指定したアドレスに対応するアドレス一致信
号を遅延手段であらかじめ定める時間だけ遅延させた遅
延アドレス一致信号の発生タイミングとのいずれかでブ
レークをかけることができる。
Further, the break adjusting means breaks the one microprocessor at the timing of generating an address coincidence signal corresponding to an address designated by each of the plurality of microprocessors having different operating clock frequencies, and breaks the one microprocessor. The microprocessor has a delay address match obtained by delaying the generation timing of the address match signal corresponding to the address specified by itself and the address match signal corresponding to the address specified by the one microprocessor by a predetermined time by delay means. A break can be set at any of the signal generation timings.

【0034】本発明のデバッグ装置のブレーク方法の他
の特徴は、それぞれの動作クロック周波数または命令パ
イプライン段数が異なる複数マイクロプロセッサと、こ
れら複数マイクロプロセッサ間で共有する一時記憶手段
と、前記複数マイクロプロセッサにブレークをかける割
り込み手段とを有して前記複数プロセッサに搭載される
プログラムをデバッグするデバッグ装置のブレーク方法
において、前記割り込み手段の有するブレーク発生手段
が、前記動作クロック周波数の低いマイクロプロセッサ
へのブレーク信号を、前記動作クロック周波数の低いマ
イクロプロセッサが前記共有一時記憶手段の保持データ
を読み込む命令のフェッチ時点で出力し、動作クロック
周波数の高いマイクロプロセッサへのブレーク信号を、
前記動作クロック周波数の低いマイクロプロセッサが前
記保持データを読み込む命令実行ステージ終了時点まで
遅らせて出力することにある。
Another feature of the break method of the debugging apparatus according to the present invention is that a plurality of microprocessors having different operation clock frequencies or different numbers of instruction pipeline stages, a temporary storage means shared among the plurality of microprocessors, A method for debugging a program mounted on the plurality of processors with interrupt means for breaking a processor, wherein the break generation means of the interrupt means is provided for a microprocessor having a low operating clock frequency. A break signal is output at the time of the fetch of an instruction by which the microprocessor with a low operating clock frequency reads data held in the shared temporary storage means, and a break signal to a microprocessor with a high operating clock frequency is output.
The microprocessor having a low operation clock frequency outputs the held data with a delay until the end of an instruction execution stage for reading the held data.

【0035】[0035]

【発明の実施の形態】まず本発明の第1の実施の形態を
図面を参照しながら説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS First, a first embodiment of the present invention will be described with reference to the drawings.

【0036】図1は本発明のデバッグ装置の第1の実施
の形態の概略構成を示すブロック図である。以下の説明
においては、信号線に付された符号を信号名の符号に読
み替えて説明する。例えば、アドレス信号線101に送
出される信号を第1のアドレス信号101と称する。ま
た、第1および第2のマイクロプロセッサ、第1および
第2のアドレス監視装置、第1および第2のブレークポ
イントテーブル、第1および第2のORゲート等とそれ
ぞれの出力信号は、図中では“第1の”および“第2
の”はそれぞれ省略し、マイクロプロセッサはプロセッ
サと記載しそれぞれ符号で区別してある。例えば第1の
マイクロプロセッサはプロセッサ10aとする。
FIG. 1 is a block diagram showing a schematic configuration of the first embodiment of the debugging device of the present invention. In the following description, the reference numerals assigned to the signal lines are replaced with the reference numerals of the signal names. For example, a signal transmitted to the address signal line 101 is referred to as a first address signal 101. Also, the first and second microprocessors, the first and second address monitoring devices, the first and second breakpoint tables, the first and second OR gates, and the respective output signals are shown in FIG. "First" and "second"
Are omitted, and microprocessors are described as processors and are distinguished by reference numerals. For example, the first microprocessor is assumed to be a processor 10a.

【0037】図1を参照すると、本発明のデバッグ装置
1aは、第1の動作クロック周波数、ここでは例えば1
0MHzで動作し、後述する第1のブレーク信号106
に応答して所定期間動作停止する第1のマイクロプロセ
ッサ10aと、第1のマイクロプロセッサ10aよりも
高周波、ここでは例えば50MHzの動作クロック周波
数で動作し、後述する第2のブレーク信号107に応答
して所定期間動作停止する第2のマイクロプロセッサ2
0aとを有する。
Referring to FIG. 1, the debugging device 1a of the present invention has a first operation clock frequency, for example, 1
0 MHz, and a first break signal 106 to be described later.
, A first microprocessor 10a that stops operating for a predetermined period in response to the first microprocessor 10a, and operates at an operation clock frequency higher than that of the first microprocessor 10a, here, for example, at an operation clock frequency of 50 MHz, and responds to a second break signal 107 described later. Microprocessor 2 that stops operating for a predetermined period of time
0a.

【0038】デバッグ装置1aは、第2のマイクロプロ
セッサ20aが共有一時記憶手段書き込み命令(以下、
共有レジスタ書き込み命令と称す)で書き込んだデータ
(第2の共有レジスタ信号)109を一時記憶し、記憶
したデータを第1のマイクロプロセッサ10aが共有一
時記憶手段読み出し命令(以下、共有レジスタ読み出し
命令と称す)を実行してデータ(第1の共有レジスタ信
号)108として読み出すまで保持する共有レジスタ3
0aを有する。
In the debug device 1a, the second microprocessor 20a sends a command to write to the shared temporary storage means (hereinafter, referred to as a write command).
The data (second shared register signal) 109 written by the shared register write instruction is temporarily stored, and the first microprocessor 10a stores the stored data in a shared temporary storage unit read instruction (hereinafter referred to as a shared register read instruction). ), And holds the data until the data is read out as data (first shared register signal) 108.
0a.

【0039】デバッグ装置1aは、予め第1のマイクロ
プロセッサ10aのブレークポイントのアドレスが設定
されている第1のブレークポイントテーブル41を有
し、第1のブレークポイントテーブル41の設定値と第
1のマイクロプロセッサ10aが設定した第1のアドレ
ス信号101のアドレス値を入力して比較し、一致した
時に第1のアドレス一致信号103を出力する第1のア
ドレス監視装置40aを有する。
The debugging device 1a has a first breakpoint table 41 in which addresses of breakpoints of the first microprocessor 10a are set in advance, and the set value of the first breakpoint table 41 and the first breakpoint table 41 are stored. It has a first address monitoring device 40a that inputs and compares the address value of the first address signal 101 set by the microprocessor 10a and outputs a first address match signal 103 when they match.

【0040】デバッグ装置1aは、予め第2のマイクロ
プロセッサ20aのブレークポイントの第1のアドレス
信号102のアドレス値が設定されている第2のブレー
クポイントテーブル51を有し、第2のブレークポイン
トテーブル51の設定値と第2のマイクロプロセッサ2
0aが設定したアドレス信号102のアドレス値とを比
較し、一致した時に第2のアドレス一致信号104を出
力する第2のアドレス監視装置50aとを有する。
The debug device 1a has a second breakpoint table 51 in which the address value of the first address signal 102 of the breakpoint of the second microprocessor 20a is set in advance. 51 setting value and the second microprocessor 2
0a is compared with the set address value of the address signal 102, and a second address monitoring device 50a that outputs a second address match signal 104 when they match.

【0041】デバッグ装置1aは、第1のアドレス一致
信号103を第1のマイクロプロセッサ10aのパイプ
ライン処理における命令実行ステージの命令実行終了時
間まで遅らせる遅延手段(ディレイ回路)61を有し、
ディレイ回路61の出力信号105と第2のアドレス一
致信号104とをそれぞれ入力して第2のブレーク信号
107を発生する第1の論理和手段(以下、ORゲート
と称す)62とアドレス一致信号103および104を
それぞれ入力して第1のブレーク信号106を発生する
第2のORゲ−ト63とを備える割り込み装置60a
(割り込み手段)と、をそれぞれ備える。
The debugging device 1a has delay means (delay circuit) 61 for delaying the first address match signal 103 until the instruction execution end time of the instruction execution stage in the pipeline processing of the first microprocessor 10a.
A first OR circuit (hereinafter referred to as an OR gate) 62 for receiving the output signal 105 of the delay circuit 61 and the second address coincidence signal 104 to generate a second break signal 107 and an address coincidence signal 103, respectively. And a second OR gate 63 for receiving a first break signal 106 and a second break signal 106, respectively.
(Interrupt means).

【0042】次に、本実施の形態の動作を説明する。上
述した図1と、本実施の形態の動作説明用のタイミング
チャートを示した図2とを併せて参照すると、まず、デ
バッグ装置1aが動作を開始し、デバッグ対象のプログ
ラムが順次実行されることにより、デバッグ用にあらか
じめ定めたアドレスまで進むと、第1のマイクロプロセ
ッサ10aが出力するアドレス信号101と、第1のブ
レークポイントテーブル41に予め設定されているのア
ドレスが一致し、第1のアドレス一致信号103が出力
されたと仮定し、その時の動作を説明する。
Next, the operation of this embodiment will be described. Referring to FIG. 1 described above and FIG. 2 showing a timing chart for explaining the operation of the present embodiment, first, the debug device 1a starts operation and the programs to be debugged are sequentially executed. When the program proceeds to an address predetermined for debugging, the address signal 101 output from the first microprocessor 10a matches the address preset in the first breakpoint table 41, and the first address Assuming that the coincidence signal 103 has been output, the operation at that time will be described.

【0043】第1のブレークポイントテーブル41には
アドレス“A”が設定されているとする。第1のマイク
ロプロセッサ10aは、アドレス信号101としてアド
レス“A”を出力すると、第1のアドレス監視装置40
aは第1のブレークポイントテーブル41にあらかじめ
設定されているアドレス“A”と一致したことで第1の
アドレス一致信号103を出力する。
It is assumed that the address "A" is set in the first breakpoint table 41. When the first microprocessor 10a outputs the address “A” as the address signal 101, the first microprocessor 10a
a outputs a first address match signal 103 when it matches an address “A” preset in the first breakpoint table 41.

【0044】割り込み装置60a内の第2のORゲート
63は、論理レベル“1”となった第1のアドレス一致
信号103を入力する。この時、第2のアドレス一致信
号104は非アクティブで論理レベル“0”であるか
ら、第2のORゲート63は第1のブレーク信号106
を発生し、第1のプロセッサ10aへ出力する。
The second OR gate 63 in the interrupt device 60a receives the first address coincidence signal 103 at the logical level "1". At this time, the second address match signal 104 is inactive and at the logical level “0”, so that the second OR gate 63 outputs the first break signal 106
And outputs it to the first processor 10a.

【0045】第1のプロセッサ10aは、第1のブレー
ク信号106を入力したことで“B”命令フェッチステ
ージ(IF)のフェチ動作を停止するとともに、“A”
命令デコードステージ(ID)および“A”命令実行を
実行した後、命令実行ステージ(EX)の動作を停止す
る。
The first processor 10a stops the fetish operation of the “B” instruction fetch stage (IF) by inputting the first break signal 106, and also “A”
After executing the instruction decode stage (ID) and the "A" instruction execution, the operation of the instruction execution stage (EX) is stopped.

【0046】割り込み装置60a内のディレイ回路61
は、第1のアドレス一致信号103を入力した時点か
ら、少なくとも第2のプロセッサ20aの第2の共有レ
ジスタ信号109が出力され、第1のプロセッサ10a
の“A”命令実行が終了するまでのT1時間遅らせた信
号である、アドレス一致信号105を第1のORゲート
62へ出力する。
Delay circuit 61 in interrupt device 60a
The first processor 10a outputs at least the second shared register signal 109 of the second processor 20a from the time when the first address match signal 103 is input.
An address coincidence signal 105, which is a signal delayed by T1 until the execution of the “A” instruction, is output to the first OR gate 62.

【0047】第1のORゲート62は、第1のブレーク
信号107を第2のプロセッサ20aへ出力する。第2
のプロセッサ20aは第1のブレーク信号107を入力
したことで、“S”命令フェッチステージ(IF)の動
作を停止し、“R”命令デコードステージ(ID)および
“R”命令実行ステージ(EX)までの処理を行った
後、命令の実行を停止する。 第1のマイクロプロセッ
サ10aよりも動作クロック周波数が高い第2のマイク
ロプロセッサ20aのブレーク信号を“T1”時間遅ら
せたことにより、第2のマイクロプロセッサ20aは動
作を続行し、第2のマイクロプロセッサ20aによって
共有レジスタ30aに対してデータライト命令“K”が
実行される。
The first OR gate 62 outputs a first break signal 107 to the second processor 20a. Second
Receives the first break signal 107, stops the operation of the “S” instruction fetch stage (IF), and executes the “R” instruction decode stage (ID) and the “R” instruction execution stage (EX) After performing the processing up to, the execution of the instruction is stopped. By delaying the break signal of the second microprocessor 20a having an operation clock frequency higher than that of the first microprocessor 10a by "T1" time, the second microprocessor 20a continues its operation, and the second microprocessor 20a As a result, the data write instruction “K” is executed for the shared register 30a.

【0048】第2のマイクロプロセッサ20aによって
共有レジスタ30aにデータ書き込みが実行された後
で、第2のマイクロプロセッサ20aよりも動作クロッ
ク周波数の低い第1のプロセッサ10aが共有レジスタ
30aから第2のマイクロプロセッサ20aにより書き
込まれたデータを読み出すデータリード命令“A”を実
行する。
After data is written to the shared register 30a by the second microprocessor 20a, the first processor 10a whose operating clock frequency is lower than that of the second microprocessor 20a is transmitted from the shared register 30a to the second microprocessor. A data read instruction “A” for reading data written by the processor 20a is executed.

【0049】そのデータリード命令“A”の実行によ
り、第1のマイクロプロセッサ10aには第2のプロセ
ッサ20aで書き込んだデータが渡されることになる。
By executing the data read instruction "A", the data written by the second processor 20a is transferred to the first microprocessor 10a.

【0050】上述したデバッグ装置1aにおけるブレー
ク方法をまとめると、あらかじめ定めるデバッグプログ
ラムをパイプライン処理で実行する複数マイクロプロセ
ッサ10a,20aのうち、一方のマイクロプロセッサ
20aが自身のパイプライン命令実行ステージで共有レ
ジスタ30aにデータ書き込み命令を実行し他方のマイ
クロプロセッサ10aが自身のパイプライン命令実行ス
テージで、マイクロプロセッサ20aから書き込まれた
データの読み出し命令を実行する。
To summarize the break method in the above-described debug device 1a, one of the microprocessors 10a and 20a that executes a predetermined debug program by pipeline processing is shared by its own pipeline instruction execution stage. A data write instruction is executed to the register 30a, and the other microprocessor 10a executes an instruction to read data written from the microprocessor 20a in its own pipeline instruction execution stage.

【0051】ブレークポイント検出手段であるアドレス
監視装置40aが検出したブレークポイント検出信号
(アドレス一致信号)103に応答して割り込み装置6
0aで発生されたブレーク信号106により、マイクロ
プロセッサ10aのデバッグプログラムのパイプライン
処理動作の停止を制御する。
In response to a breakpoint detection signal (address coincidence signal) 103 detected by the address monitoring device 40a as a breakpoint detection means, the interrupt device 6
The break signal 106 generated at 0a controls the stop of the pipeline processing operation of the debug program of the microprocessor 10a.

【0052】続いて、割り込み装置60aの有するブレ
ーク調整手段としてのディレイ回路61が、アドレス一
致信号103を、動作クロック周波数が異なるマイクロ
プロセッサ10aの動作周波数よりも高周波の動作クロ
ック周波数をもつマイクロプロセッサ20aに対して、
予め定める時間(ディレイ回路61の遅延量で決まる)
だけ遅らせてブレーク信号106として与えるる。
Subsequently, the delay circuit 61 as a break adjusting means of the interrupt device 60a converts the address coincidence signal 103 to the microprocessor 20a having an operation clock frequency higher than the operation frequency of the microprocessor 10a having a different operation clock frequency. Against
Predetermined time (determined by delay amount of delay circuit 61)
The delay is given as a break signal 106.

【0053】ブレーク調整手段61によるブレークのタ
イミング調整は、動作クロック周波数が異なる複数マイ
クロプロセッサ10a,20aそれぞれで指定したアド
レスに対応するアドレス一致信号103,104の発生
タイミングで一方のマイクロプロセッサ10aにブレー
クをかけ、他方のマイクロプロセッサ20aには、自身
で指定したアドレス信号102に対応するアドレス一致
信号104の発生タイミングと一方のマイクロプロセッ
サ10aで指定したアドレス信号101に対応するアド
レス一致信号103をディレイ回路61であらかじめ定
める時間だけ遅延させた遅延アドレス一致信号105の
発生タイミングとのいずれかでブレークをかける。
The break timing adjustment by the break adjusting means 61 is performed by setting a break to one of the microprocessors 10a at the generation timing of the address coincidence signals 103 and 104 corresponding to the addresses designated by the plurality of microprocessors 10a and 20a having different operation clock frequencies. The other microprocessor 20a receives the generation timing of the address coincidence signal 104 corresponding to the address signal 102 specified by itself and the address coincidence signal 103 corresponding to the address signal 101 specified by one microprocessor 10a as a delay circuit. At 61, a break is set at one of the generation timings of the delayed address coincidence signal 105 delayed by a predetermined time.

【0054】すなわち、割り込み装置60aの有するブ
レーク発生手段61,62,63が、動作クロック周波
数の低いマイクロプロセッサ10aへのブレーク信号1
06を、動作クロック周波数の低いマイクロプロセッサ
10aの共有レジスタ30aの保持データを読み込む命
令“A”の命令フェッチ時点で出力し、動作クロック周
波数の高いマイクロプロセッサ20aへのブレーク信号
107を、動作クロック周波数の低いマイクロプロセッ
サ10aが共有レジスタ30aの保持データを読み込む
命令実行ステージ(EX)終了時点まで遅らせて出力さ
せる。
That is, the break generating means 61, 62, 63 of the interrupt device 60a outputs the break signal 1 to the microprocessor 10a having a low operation clock frequency.
06 is output at the time of the instruction fetch of the instruction "A" for reading the data held in the shared register 30a of the microprocessor 10a having the low operation clock frequency, and the break signal 107 to the microprocessor 20a having the high operation clock frequency is output. Is delayed until the end of the instruction execution stage (EX) for reading the data held in the shared register 30a.

【0055】以上説明したように、プログラムデバッグ
のためにマイクロプロセッサ10aおよび20aを停止
させても、本発明が解決すべき課題の欄で説明した従来
の問題点、すなわち、複数プロセッサ間で共有レジスタ
を有し、プロセッサのクロック周波数が互いに異なる従
来例では、複数プロセッサは同時に共有レジスタをアク
セスしないように動作するが、プログラムデバッグのた
めにプロセッサを停止させるタイミングによっては、プ
ログラムデバッグが出来なくなってしまうという問題が
発生することはなくなる。
As described above, even if the microprocessors 10a and 20a are stopped for program debugging, the conventional problem described in the section of the problem to be solved by the present invention, that is, the shared register between a plurality of processors, In the conventional example in which the clock frequencies of the processors are different from each other, the plurality of processors operate so as not to access the shared register at the same time. However, depending on the timing at which the processor is stopped for program debugging, program debugging cannot be performed. The problem will not occur.

【0056】上述したように、動作クロック周波数の異
なるマイクロプロセッサ10aおよび20aをプログラ
ムデバッグのために停止させても、共有レジスタにはあ
らかじめ定める所望のデータがマイクロプロセッサ20
aが停止する前にマイクロプロセッサ20aから書き込
まれ保持されているので、マイクロプロセッサ10aは
停止直前の命令実行時にその保持内容を読み込み、正常
なデバッグを行うことが出来るので、マルチプロセッサ
のプログラムデバッグの効率向上に寄与する。
As described above, even if the microprocessors 10a and 20a having different operation clock frequencies are stopped for program debugging, predetermined data is stored in the shared register in the microprocessor 20a.
a is written and held by the microprocessor 20a before the stop of the multiprocessor a, the microprocessor 10a can read the held contents at the time of executing the instruction immediately before the stop and perform normal debugging. Contributes to improved efficiency.

【0057】次に、本発明の第2の実施の形態を説明す
る。
Next, a second embodiment of the present invention will be described.

【0058】第1の実施形態との相違点は、第1の実施
形態における割り込み装置60a内のディレイ回路61
をさらに工夫したことである。すなわち、第2の実施形
態の構成のブロック図を示した図3を参照すると、割り
込み装置60bは、第1のアドレス一致信号123を第
1のマイクロプロセッサ10bのパイプライン処理にお
ける命令実行ステージ(EX)の命令実行終了時間まで
遅らせるために縦続接続され、第1のマイクロプロセッ
サ10bの動作クロック周波数10MHHzが同期クロ
ック信号として供給された複数のフリップフロップ66
〜68を有する。さらに割り込み装置60aは複数のフ
リップフロップ66〜68の最終段68の出力信号と第
2のアドレス一致信号124とをそれぞれ入力して第2
のブレーク信号129を発生する第3のORゲート64
と、アドレス一致信号123および124をそれぞれ入
力して第1のブレーク信号128を発生する第4のOR
ゲート65とを備える。
The difference from the first embodiment is that the delay circuit 61 in the interrupt device 60a in the first embodiment is different from the first embodiment.
Is further devised. That is, referring to FIG. 3 which shows a block diagram of the configuration of the second embodiment, the interrupt device 60b transmits the first address match signal 123 to the instruction execution stage (EX) in the pipeline processing of the first microprocessor 10b. ), A plurality of flip-flops 66 connected in cascade to delay the instruction execution end time and supplied with the operation clock frequency 10 MHz of the first microprocessor 10 b as a synchronous clock signal.
~ 68. Further, the interrupt device 60a receives the output signal of the final stage 68 of the plurality of flip-flops 66 to 68 and the second address coincidence signal 124, and
OR gate 64 that generates break signal 129 of
And a fourth OR for inputting address match signals 123 and 124 to generate a first break signal 128, respectively.
And a gate 65.

【0059】上述した構成は、第2のブレーク信号12
9を出力する第3のORゲート64に入力される第1の
アドレス一致信号124を、図1におけるディレイ回路
61により第1のマイクロプロセッサ10aの命令
“A”の実行が終了するまで遅らせる代わりに、第1の
マイクロプロセッサ10bのパイプライン段数分のフリ
ップフロップ66〜68により第1のアドレス一致信号
123を第1のマイクロプロセッサ10bの動作クロッ
ク周波数10MHzの内部クロック信号を同期クロック
とし、第1のアドレス一致信号123を第1のマイクロ
プロセッサ10bのパイプライン段数分遅らせて、第3
のORゲート64に入力することにより、前述した第1
の実施形態記と同様の動作、効果が得られる。
The above-described configuration is equivalent to the second break signal 12
9 instead of delaying the first address match signal 124 input to the third OR gate 64 until the execution of the instruction "A" of the first microprocessor 10a is completed by the delay circuit 61 in FIG. The first address coincidence signal 123 is set to the internal clock signal of the operation clock frequency of 10 MHz of the first microprocessor 10b as a synchronous clock by the flip-flops 66 to 68 corresponding to the number of pipeline stages of the first microprocessor 10b. By delaying the address match signal 123 by the number of pipeline stages of the first microprocessor 10b,
To the first OR gate 64 described above.
The same operation and effect as those of the embodiment can be obtained.

【0060】次に本実施例の動作を説明する。Next, the operation of this embodiment will be described.

【0061】図3と本実施例の動作説明用タイミングチ
ャートを示した図4とを併せて参照すると、第1の実施
形態と同様に、まず、デバッグ装置1bが動作を開始
し、デバッグ対象のプログラムが順次実行されることに
より、デバッグ用にあらかじめ定めたアドレスまで進む
と、第1のマイクロプロセッサ10bが出力する第1の
アドレス信号121と、第1のブレークポイントテーブ
ル42のアドレスが一致し、第1のアドレス一致信号1
23が出力されたと仮定し、その時の動作を説明する。
Referring to FIG. 3 and FIG. 4 showing a timing chart for explaining the operation of the present embodiment, similarly to the first embodiment, first, the debugging device 1b starts the operation, and When the program is sequentially executed to advance to a predetermined address for debugging, the first address signal 121 output from the first microprocessor 10b matches the address of the first breakpoint table 42, First address match signal 1
23 is output, and the operation at that time will be described.

【0062】第1のブレークポイントテーブル42には
アドレス“A”が設定されているとする。第1のマイク
ロプロセッサ10bは、アドレス信号121としてアド
レス“A”を出力すると、第1のアドレス監視装置40
bは第1のブレークポイントテーブル42にあらかじめ
設定されているアドレス“A”と一致したことで第1の
アドレス一致信号123を出力する。
It is assumed that the address "A" is set in the first breakpoint table 42. When the first microprocessor 10b outputs the address “A” as the address signal 121, the first microprocessor 10b
b outputs a first address match signal 123 when it matches the address “A” set in the first breakpoint table 42 in advance.

【0063】割り込み装置60b内の第4のORゲート
65は、論理レベル“1”となった第1のアドレス一致
信号123を入力する。この時、第4のアドレス一致信
号124は非アクティブで論理レベル“0”であるか
ら、第3のORゲート65は第1のブレーク信号128
を発生し、第1のプロセッサ10bへ出力する。
The fourth OR gate 65 in the interrupt device 60b receives the first address coincidence signal 123 at the logical level "1". At this time, since the fourth address match signal 124 is inactive and at the logical level “0”, the third OR gate 65 outputs the first break signal 128
And outputs it to the first processor 10b.

【0064】第1のプロセッサ10bは、第1のブレー
ク信号128を入力したことで“B”命令フェッチを停
止するとともに、“A”命令デコードおよび“A”命令
実行ステージ(EX)を実行した後、命令の実行を停止
する。
The first processor 10b stops the "B" instruction fetch by inputting the first break signal 128, and executes the "A" instruction decode and the "A" instruction execution stage (EX). And stop executing the instruction.

【0065】第1のアドレス一致信号123がフリップ
フロップ66のD端子に入力されると、フリップフロッ
プ66は第1のプロセッサ10bから入力される内部ク
ロック信号10MHzの立ち上がりのタイミングに同期
してアドレス一致信号125を出力端Qから出力する。
When the first address match signal 123 is input to the D terminal of the flip-flop 66, the flip-flop 66 performs address match in synchronization with the rising timing of the internal clock signal 10 MHz input from the first processor 10b. The signal 125 is output from the output terminal Q.

【0066】同様に、フリップフロップ67はフリップ
フロップ66から出力された第1のアドレス一致信号1
25を内部クロック信号10MHzの次の立ち上がりの
タイミングに同期してアドレス一致信号126を出力端
Qから出力し、フリップフロップ68はフリップフロッ
プ67から出力されたアドレス一致信号126を内部ク
ロック信号10MHzのさらに次の立ち上がりのタイミ
ングに同期してアドレス一致信号127を出力端Qから
第3のORゲート64の一方の入力端に出力する。
Similarly, the flip-flop 67 outputs the first address coincidence signal 1 output from the flip-flop 66.
25, an address match signal 126 is output from the output terminal Q in synchronization with the next rising timing of the internal clock signal 10 MHz, and the flip-flop 68 outputs the address match signal 126 output from the flip-flop 67 to the internal clock signal 10 MHz. The address match signal 127 is output from the output terminal Q to one input terminal of the third OR gate 64 in synchronization with the next rising timing.

【0067】すなわち、第1のアドレス一致信号123
はフリップフロップ66〜68により順次シフトされ、
そのシフトされた第1のアドレス一致信号127を受け
た第3のORゲート64では、他方の入力である第2の
アドレス一致信号124が“0”であるから、シフトさ
れた第1のアドレス一致信号127を第2のブレーク信
号129として第2のマイクロプロセッサ20bに出力
する。
That is, the first address match signal 123
Are sequentially shifted by flip-flops 66 to 68,
In the third OR gate 64 receiving the shifted first address match signal 127, the second address match signal 124, which is the other input, is "0". The signal 127 is output to the second microprocessor 20b as the second break signal 129.

【0068】つまり、第1のアドレス一致信号123が
発生してから3クロック目までシフトされるので、パイ
プライン3段分の遅延に相当することになる。
That is, since the first address coincidence signal 123 is shifted to the third clock after it is generated, it corresponds to a delay of three stages of the pipeline.

【0069】第2のプロセッサ20bは第2のブレーク
信号129を入力することにより、命令フェッチを
“R”命令まで実行して後続の“S”命令フェッチを中
止する。
By inputting the second break signal 129, the second processor 20b executes the instruction fetch up to the "R" instruction and suspends the subsequent "S" instruction fetch.

【0070】フェッチされた“R”命令は次の命令デコ
ードステージ(ID)へ進み、デコードされた後、次の
命令実行ステージ(EX)で命令が実行され、この
“R”命令実行で第2のプロセッサ20bは動作を停止
する。
The fetched "R" instruction proceeds to the next instruction decode stage (ID). After being decoded, the instruction is executed in the next instruction execution stage (EX). Processor 20b stops operating.

【0071】第1のマイクロプロセッサ10bよりも動
作クロック周波数が高い第2のマイクロプロセッサ20
bのブレーク信号129を第1のマイクロプロセッサ1
0bのパイプライン3段分の処理時間遅らせたことによ
り、第2のマイクロプロセッサ20bは動作を続行し、
第2のマイクロプロセッサ20bによって共有レジスタ
30bに対してデータライト命令“K”が実行される。
The second microprocessor 20 having an operation clock frequency higher than that of the first microprocessor 10b
b of the first microprocessor 1
By delaying the processing time of three stages of pipeline 0b, the second microprocessor 20b continues the operation,
The data write instruction “K” is executed on the shared register 30b by the second microprocessor 20b.

【0072】第2のマイクロプロセッサ20bによって
共有レジスタ30bにデータ書き込みが実行された後
で、第2のマイクロプロセッサ20bよりも動作クロッ
ク周波数の低い第1のプロセッサ10bが共有レジスタ
30bから第2のマイクロプロセッサ20bにより書き
込まれたデータを読み出すデータリード命令“A”を実
行することができる。
After data is written to the shared register 30b by the second microprocessor 20b, the first processor 10b whose operating clock frequency is lower than that of the second microprocessor 20b is sent from the shared register 30b to the second microprocessor 20b. A data read instruction “A” for reading data written by the processor 20b can be executed.

【0073】そのデータリード命令“A”の実行によ
り、第1のマイクロプロセッサ10bには第2のプロセ
ッサ20bで書き込んだデータが渡されることになる。
By executing the data read instruction "A", the data written by the second processor 20b is passed to the first microprocessor 10b.

【0074】したがって、この第2の実施形態において
も第1の実施形態と同様に、プログラムデバッグのため
にマイクロプロセッサ10bおよび20bを停止させて
も、従来の問題点、すなわち、複数プロセッサ間で共有
レジスタを有し、プロセッサのクロック周波数が互いに
異なる場合、複数プロセッサは同時に共有レジスタをア
クセスしないように動作するが、プログラムデバッグの
ためにプロセッサを停止させるタイミングによっては、
プログラムデバッグが出来なくなってしまうという問題
が発生することはなくなり、動作クロック周波数の異な
るマイクロプロセッサ10bおよび20bをプログラム
デバッグのために停止させても、共有レジスタにはあら
かじめ定める所望のデータがマイクロプロセッサ20b
が停止する前にマイクロプロセッサ20bから書き込ま
れ保持されているので、マイクロプロセッサ10bは停
止直前の命令実行時にその保持内容を読み込み、正常な
デバッグを行うことが出来るので、マルチプロセッサの
プログラムデバッグの効率向上に寄与する。
Therefore, in the second embodiment, as in the first embodiment, even if the microprocessors 10b and 20b are stopped for program debugging, the conventional problem, that is, the shared problem among a plurality of processors. If the processor has a register and the clock frequencies of the processors are different from each other, the plurality of processors operate so as not to access the shared register at the same time, but depending on the timing of stopping the processor for program debugging,
The problem that program debugging cannot be performed does not occur. Even if the microprocessors 10b and 20b having different operating clock frequencies are stopped for program debugging, predetermined data is stored in the shared register in the microprocessor 20b.
Is written and held by the microprocessor 20b before the operation is stopped, the microprocessor 10b can read the held contents at the time of executing the instruction immediately before the operation is stopped, and perform normal debugging. Contribute to improvement.

【0075】なお、本発明は2つのプロセッサ間につい
ての実施形態を説明したが、複数マイクロプロセッサに
ついても、複数マイクロプロセッサのうちの2つのプロ
セッサ間について本実施形態の構成を備えることで、複
数マイクロプロセッサにおいても上述した各実施形態に
限定されず、本発明の技術思想の範囲内において、各実
施形態は適宜変更され得ることは明らかである。
Although the present invention has been described with reference to the embodiment between two processors, a plurality of microprocessors may be provided with the configuration of the present embodiment between two processors among the plurality of microprocessors. It is apparent that the processor is not limited to the above embodiments, and that the embodiments can be appropriately modified within the scope of the technical idea of the present invention.

【0076】[0076]

【発明の効果】以上説明したように、本願発明によれ
ば、動作クロック周波数の低いマイクロプロセッサの命
令実行が終わる時間まで、クロック周波数の高いマイク
ロプロセッサへのブレーク信号発生を遅延手段で遅ら
せ、共有レジスタへのデータ書き込みは、マイクロプロ
セッサを停止させない時の動作クロック周波数が高いマ
イクロプロセッサの共有レジスタライト命令でライト
後、クロック周波数が低いマイクロプロセッサの共有レ
ジスタリード命令でリード動作させると同じように実行
させるので、動作クロック周波数の高いプロセッサが、
問題を解決するための課題の欄で説明した問題点に掲げ
たように、複数マイクロプロセッサが停止することで発
生する問題を解決したマルチプロセッサの搭載するプロ
グラムのデバッグ装置およびブレーク方法が提供でき、
デバッグ作業の効率向上に寄与する。
As described above, according to the present invention, the generation of a break signal to a microprocessor having a high clock frequency is delayed by the delay means until the instruction execution of the microprocessor having a low operation clock frequency is completed. Writing data to a register is performed in the same way as writing a shared register write instruction of a microprocessor with a high clock frequency and then reading with a shared register read instruction of a low clock frequency when the microprocessor is not stopped. Processor, the operating clock frequency is high,
As described in the problem described in the section of the problem to solve the problem, it is possible to provide a debugging device and a break method of a multi-processor mounted program that has solved the problem caused by stopping a plurality of microprocessors,
It contributes to improving the efficiency of debugging work.

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

【図1】本発明の第1の実施形態の構成を示すブロック
図である。
FIG. 1 is a block diagram illustrating a configuration of a first exemplary embodiment of the present invention.

【図2】第1の実施形態の動作説明用タイミングチャー
トである。
FIG. 2 is a timing chart for explaining the operation of the first embodiment.

【図3】本発明の第2の実施形態の構成を示すブロック
図である。
FIG. 3 is a block diagram illustrating a configuration of a second exemplary embodiment of the present invention.

【図4】第2の実施形態の動作説明用タイミングチャー
トである。
FIG. 4 is a timing chart for explaining the operation of the second embodiment.

【図5】従来の割り込み装置の構成を本発明に対応させ
て示したブロック図である。
FIG. 5 is a block diagram showing a configuration of a conventional interrupt device according to the present invention.

【図6】従来の他のデバッグ装置の構成を示したブロッ
ク図である。
FIG. 6 is a block diagram showing a configuration of another conventional debugging device.

【図7】従来の他のデバッグ装置の例の動作説明用タイ
ミングチャートである。
FIG. 7 is a timing chart for explaining the operation of an example of another conventional debugging device.

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

1a,1b デバッグ装置 10a,10b 第1のマイクロプロセッサ 20a,20b 第2のマイクロプロセッサ 30a,30b,31 共有レジスタ 40a,40b,43 第1のアドレス監視装置 41,42 第1のブレークポイントテーブル 47,57 ローカルメモリ 51,52 第2のブレークポイントテーブル 50a,53 第2のアドレス監視装置 60a,60b,71 割り込み装置 61 ディレイ回路 62,63,64,65 ORゲート 66,67,68 フリップフロップ 106,128 第1のブレーク信号 107,129 第2のブレーク信号 108,157 第1の共有レジスタ信号 109,158 第2の共有レジスタ信号 101,121 第1のアドレス信号 102 第2のアドレス信号 103,123 第1のアドレス一致信号 104,124 第2のアドレス一致信号 1a, 1b Debugging device 10a, 10b First microprocessor 20a, 20b Second microprocessor 30a, 30b, 31 Shared register 40a, 40b, 43 First address monitoring device 41, 42 First breakpoint table 47, 57 local memory 51,52 second breakpoint table 50a, 53 second address monitoring device 60a, 60b, 71 interrupt device 61 delay circuit 62,63,64,65 OR gate 66,67,68 flip-flop 106,128 First break signal 107,129 Second break signal 108,157 First shared register signal 109,158 Second shared register signal 101,121 First address signal 102 Second address signal 103,123 First Address of Coincidence signal 104 and 124 the second address coincidence signal

Claims (14)

【特許請求の範囲】[Claims] 【請求項1】 それぞれの動作クロック周波数が異なる
複数マイクロプロセッサと、これら複数マイクロプロセ
ッサ間で共有する共有一時記憶手段と、前記複数マイク
ロプロセッサにブレークをかける割り込み手段とを有し
て前記複数マイクロプロセッサに搭載されるプログラム
をデバッグするデバッグ装置において、前記割り込み手
段は、前記動作クロック周波数の低いマイクロプロセッ
サへのブレーク信号を、前記動作クロック周波数の低い
マイクロプロセッサが前記共有一時記憶手段の保持デー
タを読み込む命令のフェッチ時点で出力し、動作クロッ
ク周波数の高いマイクロプロセッサへのブレーク信号
を、前記動作クロック周波数の低いマイクロプロセッサ
が前記保持データを読み込む命令実行ステージ終了時点
まで遅らせて出力するブレーク発生手段を備えることを
特徴とするデバッグ装置。
A plurality of microprocessors each having a different operation clock frequency; shared temporary storage means shared between the plurality of microprocessors; and interrupt means for breaking the plurality of microprocessors. In the debugging device for debugging a program mounted on a microprocessor, the interrupt unit reads a break signal to a microprocessor having a low operation clock frequency, and the microprocessor having a low operation clock frequency reads data held in the shared temporary storage unit. Output at the time of fetching an instruction, and output a break signal to a microprocessor with a high operation clock frequency delayed until the instruction execution stage at which the microprocessor with a low operation clock frequency reads the held data ends. A debugging device comprising a break generating means.
【請求項2】 共有一時記憶手段を介してあらかじめ定
める命令のデータの書き込みまたは読み出しを行って前
記データの授受を行い、かつブレークポイント検出手段
がブレークポイントを検出したとき、割り込み手段によ
りデバッグのための動作停止が制御される複数マイクロ
プロセッサを備えたデバッグ装置であり、前記複数マイ
クロプロセッサは、それぞれの動作クロック周波数が一
方は高く他方はそれよりも低く、前記動作クロック周波
数が低い方のマイクロプロセッサに動作停止のブレーク
信号が与えられた後に、前記共有一時記憶手段に対して
前記動作クロック周波数が高い方のマイクロプロセッサ
から予め定めるデータが書き込まれて保持され、保持さ
れた前記データを前記動作停止直前に前記動作クロック
周波数の低い方のマイクロプロセッサが読み出すための
タイミング調整機能を前記割り込み手段が有することを
特徴とするデバッグ装置。
2. The method according to claim 1, further comprising: writing or reading data of a predetermined instruction via the shared temporary storage means to transfer the data, and when the breakpoint detection means detects a breakpoint, the interruption means performs debugging. A debugging device comprising a plurality of microprocessors, the operation of which is controlled to be stopped, wherein the plurality of microprocessors have one operation clock frequency higher than the other and lower than the other, and the operation clock frequency is lower. After a break signal for stopping the operation is given, predetermined data is written and retained in the shared temporary storage means from the microprocessor having the higher operation clock frequency, and the retained data is transferred to the shared temporary storage means. Immediately before, the lower clock of the operating clock frequency A debug device, wherein the interrupt unit has a timing adjustment function for reading by an microprocessor.
【請求項3】 あらかじめ定めるデバッグプログラムを
パイプライン処理で実行する複数マイクロプロセッサの
うち、一方のマイクロプロセッサが自身のパイプライン
命令実行ステージで共有一時記憶手段にデータ書き込み
命令を実行し他方が自身のパイプライン命令実行ステー
ジで前記データの読み出し命令を実行するとともに、ブ
レークポイント検出手段が検出したブレークポイント検
出信号に応答して割り込み手段で生成されたブレーク信
号により、前記デバッグプログラムのパイプライン処理
動作の停止が制御されるブレーク制御手段と、前記ブレ
ーク信号を、前記動作クロック周波数が異なる複数マイ
クロプロセッサのうち一方のマイクロプロセッサの動作
周波数よりも高周波の動作クロック周波数をもつ他方の
マイクロプロセッサに対して、予め定める時間だけ遅ら
せて与えるブレーク調整手段とを有することを特徴とす
るデバッグ装置。
3. A microprocessor which executes a predetermined debug program by pipeline processing, wherein one microprocessor executes a data write instruction in the shared temporary storage means in its own pipeline instruction execution stage, and the other microprocessor executes its own. In the pipeline instruction execution stage, the data read instruction is executed, and the break signal generated by the interrupt means in response to the break point detection signal detected by the break point detection means is used to execute the pipeline processing operation of the debug program. Break control means for controlling stoppage, and the other microprocessor having an operating clock frequency higher than the operating frequency of one of the plurality of microprocessors having the different operating clock frequencies. And a break adjusting means for delaying the delay by a predetermined time.
【請求項4】 前記予め定める時間は、前記一方のマイ
クロプロセッサがパイプライン命令実行ステージにおけ
る読み出し命令の実行終了時間とする請求項4記載のデ
バッグ装置。
4. The debugging device according to claim 4, wherein the predetermined time is an execution end time of the read instruction in the pipeline instruction execution stage by the one microprocessor.
【請求項5】 前記共有一時記憶手段は、それぞれ動作
クロック周波数またはパイプライン段数が異なる前記マ
イクロプロセッサのプログラムデバッグ用に設ける請求
項1、2または3記載のデバッグ装置。
5. The debugging device according to claim 1, wherein said shared temporary storage means is provided for program debugging of said microprocessors having different operation clock frequencies or different numbers of pipeline stages.
【請求項6】 前記予め定める時間は、前記一方のプロ
セッサのパイプライン段数分の縦続接続されたフリップ
フロップの初段に入力する前記アドレス一致信号を前記
一方のマイクロプロセッサの動作クロック信号に同期し
て前記パイプライン段数分遅らせた時間とする請求項4
記載のデバッグ装置。
6. The predetermined time is such that the address match signal input to the first stage of the cascade-connected flip-flops for the number of pipeline stages of the one processor is synchronized with the operation clock signal of the one microprocessor. 5. A time delayed by the number of pipeline stages.
Debug device as described.
【請求項7】 前記ブレーク調整手段は、前記動作クロ
ック周波数が異なる複数マイクロプロセッサそれぞれの
マイクロプロセッサで指定したアドレスに対応するアド
レス一致信号の発生タイミングで前記一方のマイクロプ
ロセッサにブレークをかけ、前記他方のマイクロプロセ
ッサには、自身で指定したアドレスに対応するアドレス
一致信号の発生タイミングと前記一方のマイクロプロセ
ッサで指定したアドレスに対応するアドレス一致信号を
遅延回路であらかじめ定める時間だけ遅延させた遅延ア
ドレス一致信号の発生タイミングとのいずれかでブレー
クをかける構成を有する請求項6記載のデバッグ装置。
7. The break adjusting means breaks the one microprocessor at a timing of generation of an address match signal corresponding to an address designated by each of the plurality of microprocessors having different operating clock frequencies, and breaks the one microprocessor. The microprocessor has a delay address match in which the generation timing of the address match signal corresponding to the address specified by itself and the address match signal corresponding to the address specified by the one microprocessor are delayed by a predetermined time by a delay circuit. 7. The debugging device according to claim 6, wherein a break is provided at any of signal generation timings.
【請求項8】 第1の動作クロック周波数で動作し、第
1のブレーク信号に応答して所定期間動作停止する第1
のマイクロプロセッサと、前記第1のマイクロプロセッ
サよりも高周波の動作クロック周波数で動作し、第2の
ブレーク信号に応答して所定期間動作停止する第2のマ
イクロプロセッサと、 前記第2のマイクロプロセッサが共有記憶手段書き込み
命令で書き込んだデータを一時記憶し、記憶した前記デ
ータを前記第1のプロセッサが共有記憶手段読み出し命
令を実行して読み出すまで保持する単一の共有記憶手段
と、 予め第1のマイクロプロセッサのブレークポイントのア
ドレスが設定されている第1のブレークポイントテーブ
ルを有し、前記第1のブレークポイントテーブルの設定
値と前記第1のマイクロプロセッサが設定したアドレス
信号を入力して比較し、一致した時に第1のアドレス一
致信号を出力する第1のアドレス監視装置と、 予め前記第2のマイクロプロセッサのブレークポイント
のアドレスが設定されている第2のブレークポイントテ
ーブルを有し、前記第2のブレークポイントテーブルの
設定値と前記第2のマイクロプロセッサが設定したアド
レス信号とを比較し、一致した時に第2のアドレス一致
信号を出力する第2のアドレス監視装置と、 前記第1のアドレス一致信号を前記第1のマイクロプロ
セッサのパイプライン処理における命令実行ステージの
命令実行終了時間まで遅らせる遅延手段を有し、遅延手
段の出力信号と前記第2のアドレス一致信号とをそれぞ
れ入力して前記第2のブレーク信号を発生する第1の論
理和手段と前記第1および前記第2のアドレス一致信号
をそれぞれ入力して前記第1のブレーク信号を発生する
第2の論理和手段とを備える割り込み手段と、をそれぞ
れ備えることを特徴とするデバッグ装置。
8. A first operation which operates at a first operation clock frequency and stops operation for a predetermined period in response to a first break signal.
A second microprocessor that operates at an operation clock frequency higher than the first microprocessor and stops operating for a predetermined period in response to a second break signal; and A single shared storage unit for temporarily storing data written by the shared storage unit write instruction and holding the stored data until the first processor executes the shared storage unit read instruction to read the stored data; A first breakpoint table in which addresses of breakpoints of the microprocessor are set, and a setting value of the first breakpoint table is compared with an address signal set by the first microprocessor; A first address monitoring device that outputs a first address match signal when they match. A second breakpoint table in which addresses of breakpoints of the second microprocessor are set in advance; and a set value of the second breakpoint table, an address signal set by the second microprocessor, A second address monitoring device that outputs a second address match signal when they match, and an instruction execution end of an instruction execution stage in a pipeline process of the first microprocessor that outputs the first address match signal to the first microprocessor. First OR means for inputting the output signal of the delay means and the second address match signal to generate the second break signal, and the first and the second And a second OR circuit for receiving the two address match signals and generating the first break signal. Debugging apparatus comprising: an interrupt unit, respectively.
【請求項9】 前記割り込み手段は、前記第1のアドレ
ス一致信号を前記第1のマイクロプロセッサのパイプラ
イン処理における命令実行ステージの命令実行終了時間
まで遅らせるために縦続接続され、第1のマイクロプロ
セッサの動作クロック周波数が同期クロック信号として
供給された複数のフリップフロップを有し、これら複数
のフリップフロップの最終段の出力信号と前記第2のア
ドレス一致信号とをそれぞれ入力して前記第2のブレー
ク信号を発生する第3の論理和手段と前記第1および前
記第2のアドレス一致信号をそれぞれ入力して前記第1
のブレーク信号を発生する第4の論理和手段とを備える
請求項8記載のデバッグ装置。
9. The first microprocessor according to claim 1, wherein the interrupt means is cascaded to delay the first address match signal until an instruction execution end time of an instruction execution stage in pipeline processing of the first microprocessor. Having a plurality of flip-flops whose operation clock frequencies are supplied as synchronous clock signals, and receiving the output signal of the last stage of the plurality of flip-flops and the second address match signal, respectively, and A third OR circuit for generating a signal and the first and second address coincidence signals, respectively, and
9. The debugging device according to claim 8, further comprising: fourth OR means for generating a break signal of the following.
【請求項10】 前記複数のマイクロプロセッサまたは
前記第1および前記第2のマイクロプロセッサの動作ク
ロック周波数はそれぞれ等しく、それぞれの有するパイ
プライン段数が異なる請求項1,2,3または8記載のデ
バッグ装置。
10. The debugging device according to claim 1, wherein the plurality of microprocessors or the first and second microprocessors have the same operating clock frequency, and have different numbers of pipeline stages. .
【請求項11】 あらかじめ定めるデバッグプログラム
をパイプライン処理で実行する複数マイクロプロセッサ
のうち、一方のマイクロプロセッサが自身のパイプライ
ン命令実行ステージで共有一時記憶手段にデータ書き込
み命令を実行し他方が自身のパイプライン命令実行ステ
ージで前記データの読み出し命令を実行するとともに、
ブレークポイント検出手段が検出したブレークポイント
検出信号に応答して割り込み手段で発生されたブレーク
信号により、前記デバッグプログラムのパイプライン処
理動作の停止が制御されるとともに、前記割り込み手段
は、前記ブレーク信号を、前記動作クロック周波数が異
なる複数マイクロプロセッサのうち一方のマイクロプロ
セッサの動作周波数よりも高周波の動作クロック周波数
をもつ他方のマイクロプロセッサに対して、予め定める
時間だけ遅らせて与えることにより、前記共有一時記憶
手段には、前記他方のマイクロプロセッサが停止する前
に予め定める所定のデータが書き込まれ、その書き込ま
れたデータを前記一方のマイクロプロセッサが命令実行
ステージで読み込むまでの一定期間同一のデータ記憶状
態のまま維持させることを特徴とするデバッグ装置のブ
レーク方法。
11. A microprocessor which executes a predetermined debug program by pipeline processing, one of the microprocessors executes a data write instruction to the shared temporary storage means in its own pipeline instruction execution stage, and the other microprocessor executes its own. Executing a data read instruction in a pipeline instruction execution stage;
The break signal generated by the interrupt means in response to the break point detection signal detected by the break point detection means controls the stop of the pipeline processing operation of the debug program, and the interrupt means outputs the break signal. The shared temporary storage is provided by delaying a predetermined time to another microprocessor having an operation clock frequency higher than the operation frequency of one of the plurality of microprocessors having different operation clock frequencies. In the means, predetermined data is written before the other microprocessor stops, and the written data is kept in the same data storage state for a certain period of time until the one microprocessor reads in the instruction execution stage. Keep it Break method for debugging and wherein the.
【請求項12】 あらかじめ定めるデバッグプログラム
をパイプライン処理で実行する複数マイクロプロセッサ
のうち、一方のマイクロプロセッサが自身のパイプライ
ン命令実行ステージで共有一時記憶手段にデータ書き込
み命令を実行し他方が自身のパイプライン命令実行ステ
ージで前記データの読み出し命令を実行するとともに、
ブレークポイント検出手段が検出したブレークポイント
検出信号に応答して割り込み手段で発生されたブレーク
信号により、前記デバッグプログラムのパイプライン処
理動作の停止が制御されるとともに、前記割り込み手段
の有するブレーク調整手段が、前記ブレーク信号を、前
記動作クロック周波数が異なる複数マイクロプロセッサ
のうち一方のマイクロプロセッサの動作周波数よりも高
周波の動作クロック周波数をもつ他方のマイクロプロセ
ッサに対して、予め定める時間だけ遅らせて与えること
を特徴とするデバッグ装置のブレーク方法。
12. A microprocessor which executes a predetermined debug program by pipeline processing, one of the microprocessors executes a data write instruction to the shared temporary storage means in its own pipeline instruction execution stage, and the other microprocessor executes its own. Executing a data read instruction at a pipeline instruction execution stage;
The break signal generated by the interrupt means in response to the break point detection signal detected by the break point detection means controls the stop of the pipeline processing operation of the debug program, and the break adjustment means of the interrupt means Providing the break signal to the other microprocessor having an operation clock frequency higher than the operation frequency of one of the plurality of microprocessors having different operation clock frequencies with a delay of a predetermined time. A method for breaking a debugging device.
【請求項13】 前記ブレーク調整手段は、前記動作ク
ロック周波数が異なる複数マイクロプロセッサそれぞれ
のマイクロプロセッサで指定したアドレスに対応するア
ドレス一致信号の発生タイミングで前記一方のマイクロ
プロセッサにブレークをかけ、前記他方のマイクロプロ
セッサには、自身で指定したアドレスに対応するアドレ
ス一致信号の発生タイミングと前記一方のマイクロプロ
セッサで指定したアドレスに対応するアドレス一致信号
を遅延手段であらかじめ定める時間だけ遅延させた遅延
アドレス一致信号の発生タイミングとのいずれかでブレ
ークをかける請求項12記載のデバッグ装置のブレーク
方法。
13. The break adjusting means breaks the one microprocessor at a timing of generation of an address coincidence signal corresponding to an address designated by each of the plurality of microprocessors having different operating clock frequencies, and breaks the one microprocessor. The microprocessor has a delay address match obtained by delaying the generation timing of the address match signal corresponding to the address specified by itself and the address match signal corresponding to the address specified by the one microprocessor by a predetermined time by delay means. 13. The method according to claim 12, wherein a break is set at any of the signal generation timings.
【請求項14】 それぞれの動作クロック周波数または
命令パイプライン段数が異なる複数マイクロプロセッサ
と、これら複数マイクロプロセッサ間で共有する一時記
憶手段と、前記複数マイクロプロセッサにブレークをか
ける割り込み手段とを有して前記複数プロセッサに搭載
されるプログラムをデバッグするデバッグ装置のブレー
ク方法において、前記割り込み手段の有するブレーク発
生手段が、前記動作クロック周波数の低いマイクロプロ
セッサへのブレーク信号を、前記動作クロック周波数の
低いマイクロプロセッサが前記一時記憶手段の保持デー
タを読み込む命令のフェッチ時点で出力し、動作クロッ
ク周波数の高いマイクロプロセッサへのブレーク信号
を、前記動作クロック周波数の低いマイクロプロセッサ
が前記保持データを読み込む命令実行ステージ終了時点
まで遅らせて出力することを特徴とするデバッグ装置の
ブレーク方法。
14. A system comprising: a plurality of microprocessors having different operation clock frequencies or different numbers of instruction pipeline stages; a temporary storage means shared among the plurality of microprocessors; and an interrupt means for breaking the plurality of microprocessors. In the debugging method of a debugging device for debugging a program mounted on a plurality of processors, the break generating means of the interrupt means outputs a break signal to the microprocessor having a low operation clock frequency to the microprocessor having a low operation clock frequency. Outputs a break signal to a microprocessor having a high operation clock frequency when a command for reading the data stored in the temporary storage means is fetched, and a microprocessor having a low operation clock frequency reads the stored data. A break method for a debug device, wherein the output is delayed until the end of an instruction execution stage to be embedded.
JP2001006237A 2001-01-15 2001-01-15 Debugging device and breaking method for debugging device Pending JP2002215421A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001006237A JP2002215421A (en) 2001-01-15 2001-01-15 Debugging device and breaking method for debugging device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001006237A JP2002215421A (en) 2001-01-15 2001-01-15 Debugging device and breaking method for debugging device

Publications (1)

Publication Number Publication Date
JP2002215421A true JP2002215421A (en) 2002-08-02

Family

ID=18874154

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001006237A Pending JP2002215421A (en) 2001-01-15 2001-01-15 Debugging device and breaking method for debugging device

Country Status (1)

Country Link
JP (1) JP2002215421A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005227276A (en) * 2004-02-10 2005-08-25 Samsung Electronics Co Ltd Semiconductor integrated circuit for supporting co-debugging function and semiconductor integrated circuit test system
JP2010277142A (en) * 2009-05-26 2010-12-09 Nec Corp Circuit verification device, method, and program

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005227276A (en) * 2004-02-10 2005-08-25 Samsung Electronics Co Ltd Semiconductor integrated circuit for supporting co-debugging function and semiconductor integrated circuit test system
US8055946B2 (en) 2004-02-10 2011-11-08 Samsung Electronics Co., Ltd. Semiconductor IC incorporating a co-debugging function and test system
JP2010277142A (en) * 2009-05-26 2010-12-09 Nec Corp Circuit verification device, method, and program

Similar Documents

Publication Publication Date Title
JPH05128080A (en) Information processor
US7639764B2 (en) Method and apparatus for synchronizing data between different clock domains in a memory controller
JPH0863365A (en) Data processor
CA2016532C (en) Serializing system between vector instruction and scalar instruction in data processing system
JPH1021074A (en) Interruption control system, processor, and computer system
JPH0721021A (en) Information processor
JP2513417B2 (en) Information processing device
JPH0564825B2 (en)
KR19990063248A (en) Cache memory system and method of access to cache memory to ensure normal operation for concurrent access to cache memory
JP3628265B2 (en) Multiprocessor system unit
JPH1078887A (en) Debug system and debug method
JP2002215421A (en) Debugging device and breaking method for debugging device
JPH08137751A (en) Processor device and its control method
JPH1196006A (en) Information processor
JPH08171504A (en) Emulation device
JP2002229811A (en) Control method of logical partition system
US6216232B1 (en) Data processing system and method capable of halting supply of clock signal without delay
JP2007316986A (en) System lsi
JP2808757B2 (en) Microprocessor for debugging
JPH0411895B2 (en)
JPH10187634A (en) Synchronous control method and main storage sharing type parallel processor
JPH10326199A (en) Interruption synchronizing device in dual system
JP2513846B2 (en) Vector instruction generation method
JPH08272608A (en) Pipeline processor
JP3405513B2 (en) Redundant controller for programmable controller

Legal Events

Date Code Title Description
A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A711

Effective date: 20060307

RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20070703

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20071211

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20091023

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20091104

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20091228

RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20100426

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100528

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100726

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20101206