JPH01111237A - Debugging device - Google Patents

Debugging device

Info

Publication number
JPH01111237A
JPH01111237A JP62268805A JP26880587A JPH01111237A JP H01111237 A JPH01111237 A JP H01111237A JP 62268805 A JP62268805 A JP 62268805A JP 26880587 A JP26880587 A JP 26880587A JP H01111237 A JPH01111237 A JP H01111237A
Authority
JP
Japan
Prior art keywords
break
microprocessor
storage device
control information
under test
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
JP62268805A
Other languages
Japanese (ja)
Inventor
Yasuyuki Oguma
小熊 康之
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.)
Anritsu Corp
Original Assignee
Anritsu 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 Anritsu Corp filed Critical Anritsu Corp
Priority to JP62268805A priority Critical patent/JPH01111237A/en
Publication of JPH01111237A publication Critical patent/JPH01111237A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To improve the program debugging speed by adding a break processing means, a break condition setting means and a resetting means into a substitute storage after removing a ROM of a system to be tested and connecting the substitute storage instead. CONSTITUTION:A break condition setting means 12 interprets the control information written into a 2nd substitute storage 2 via a control information writing circuit 3 and writes the trigger information into a microprocessor 31. A resetting means 13 gives a specific instruction to the microprocessor 31 and resets a break state to an executing state of a program to be debugged. A break processing means 11 works when the microprocessor 31 is shifted to a break state based on the trigger information and interprets the control information written into the storage 2 to start both means 12 and 13. Thus the program debugging speed is increased.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、マイクロプロセッサを応用した被試験システ
ムに接続してプログラムをデバッグするデバッグ装置に
関する。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to a debug device that connects to a system under test to which a microprocessor is applied and debugs a program.

(従来の技術) 第2図に従来のデバッグ装置のブロック図を示す。従来
のデバッグ装置について図面を用いて説明する。
(Prior Art) FIG. 2 shows a block diagram of a conventional debugging device. A conventional debugging device will be explained using drawings.

被試験システム30が実用に供されるとき、マイクロプ
ロセッサ31は被試験システム内に搭載され、記憶装置
32に記憶されているプログラムを実行する。一般に、
プログラムの創成後そのプログラムをデバッグをする必
要がある。デバッグ時には、本来被試験システム30に
用いられるマイクロプロセッサ31を代行マイクロプロ
セッサ21に置き換えて記憶装置32に記憶されている
プログラムを実行させる。
When the system under test 30 is put into practical use, the microprocessor 31 is installed in the system under test and executes a program stored in the storage device 32. in general,
After creating a program, it is necessary to debug the program. During debugging, the microprocessor 31 originally used in the system under test 30 is replaced with the substitute microprocessor 21 and the program stored in the storage device 32 is executed.

代行マイクロプロセッサ21の制御信号、データ及びア
ドレスは、第1のバッファ22及びバスSを介して被試
験システム30の、本来マイクロプロセッサ31が搭載
されるべきCPUソケットに接続されている。
Control signals, data, and addresses of the substitute microprocessor 21 are connected via the first buffer 22 and the bus S to the CPU socket of the system under test 30 in which the microprocessor 31 is originally to be installed.

ブレークポイント検出回路23内のレジスタには、ブレ
ークポイント情報tが記憶されている。
Breakpoint information t is stored in a register within the breakpoint detection circuit 23.

代行マイクロプロセッサ21は、記憶1装置32の命令
を順次読出してそれを実行する。バスSの内容とブレー
クポイント情報tとが一致したとき、ブレークポイント
検出回路23は代行マイクロプロセッサ21に割込信号
Uを送出する。ブレーク状態検出回路24は、割込信号
Uによって代行マイクロプロセッサ21が割込処理に移
行した時点を検出し、システムがブレーク中であること
を表わすブレーク状態信号Vを発生する。このブレーク
状態信号Vはインバータ25を介して第1のバッファ2
2をオフにする。一方このブレーク状態信号Vは第2の
バッファ26をオンにする。第2のバッファ26がオン
になると、バスSは第2のバッファ26を介してモニタ
プログラム記憶装置27に接続され、代行マイクロプロ
セッサ21はモニタプログラム記憶装置27に記憶され
ている別のプログラムの実行を開始する。以上でブレー
ク処理が終了する。
The proxy microprocessor 21 sequentially reads instructions from the storage 1 device 32 and executes them. When the contents of the bus S match the breakpoint information t, the breakpoint detection circuit 23 sends an interrupt signal U to the substitute microprocessor 21. The break state detection circuit 24 detects the point in time when the proxy microprocessor 21 shifts to interrupt processing based on the interrupt signal U, and generates a break state signal V indicating that the system is in a break state. This break state signal V is sent to the first buffer 2 via an inverter 25.
Turn off 2. On the other hand, this break state signal V turns on the second buffer 26. When the second buffer 26 is turned on, the bus S is connected via the second buffer 26 to the monitor program storage 27 and the acting microprocessor 21 executes another program stored in the monitor program storage 27. Start. This completes the break process.

引き続いて再度記憶装置32に記憶されたプログラムを
実行する場合、モニタプログラム制御情報Wがモニタプ
ログラム記憶装置27に記憶される。モニタプログラム
記憶装置27は、モニタプログラム制御情報Wに基づい
て、記憶装置32に記憶されているプログラムを実行す
る状態に移行させる命令を代行マイクロプロセッサ21
に送出する。ブレーク状態検出回路24は、記憶装置3
2に記憶されているプログラムを実行する状態に移行し
たことを検出し、ブレーク状態信号Vを反転させる。こ
の反転したブレーク状態信号Vは、第1のバッファ22
をオンにし、さらに第2のバッファ26をオフにする。
When subsequently executing the program stored in the storage device 32 again, the monitor program control information W is stored in the monitor program storage device 27. Based on the monitor program control information W, the monitor program storage device 27 instructs the proxy microprocessor 21 to enter a state in which the program stored in the storage device 32 is executed.
Send to. The break state detection circuit 24 is connected to the storage device 3.
2 and inverts the break state signal V. This inverted break state signal V is transmitted to the first buffer 22.
is turned on, and the second buffer 26 is also turned off.

この状態で、装置は記憶装置32に記憶されているプロ
グラムの実行を開始する。
In this state, the device starts executing the program stored in the storage device 32.

(発明が解決しようとする問題点) しかし、このようなデバッグ装置では次のような問題点
があった。
(Problems to be Solved by the Invention) However, such a debugging device has the following problems.

(イ)代行マイクロプロセッサ21と記憶装置32の間
を第1のバッファ22を介してケーブルで接続しなけれ
ばならず、信号の伝送時に波形歪が生じ実行速度を上げ
ることができなかった。
(a) It was necessary to connect the proxy microprocessor 21 and the storage device 32 with a cable via the first buffer 22, which caused waveform distortion during signal transmission, making it impossible to increase the execution speed.

(ロ)上記バッファが介在しているため、バッファによ
る信号の伝播遅延が生じ、実行速度を上げることができ
なかった。
(b) The presence of the buffer causes signal propagation delays due to the buffer, making it impossible to increase execution speed.

(ハ)マイクロプロセッサの実行速度を決定するクロッ
クは、最近ますます高速化しておりそのような高速クロ
ックの下ではプログラムのリアルタイムでの実行ができ
なかった。
(c) The clock that determines the execution speed of microprocessors has recently become faster and faster, and programs cannot be executed in real time under such high-speed clocks.

(ニ)上記(ハ)の問題点のために、クロック速度を下
げるこも提案されるであろうが、その場合被試験システ
ムを実用に供される状態で試験したことにはならない。
(d) Because of the problem in (c) above, it may be proposed to lower the clock speed, but in that case the system under test would not have been tested in a state where it would be put to practical use.

(ホ)マイクロプロセッサ31の品種が変わるごとにデ
バッグ装置を構成する各要素も変えなければならずデバ
ッグ装置の開発に多大の時間を要していた。
(e) Each time the type of microprocessor 31 changes, each element constituting the debugging device must also be changed, which requires a great deal of time to develop the debugging device.

(へ)被試験システムのデバッグをするデバッグ装置の
需要者は、マイクロプロセッサの品種が変わるごとにデ
バッグ装置を買い換えなければならなかった。
(f) Consumers of debugging equipment for debugging systems under test had to purchase new debugging equipment every time the type of microprocessor changed.

(問題点を解決するための手段) この発明は、これらの問題点を解決するためになされた
もので、被試験システムにマイクロプロセッサを搭載し
たままで、被試験システムを実用に供される状態でデバ
ッグすることを可能にした。
(Means for Solving the Problems) This invention has been made to solve these problems, and it is possible to put the system under test into practical use while the system under test is equipped with a microprocessor. It is possible to debug with .

被試験システムのマイクロプロセッサをデバッグ装置の
代行マイクロプロセッサに置き替える代わりに、被試験
システムのROMを取り外し第1及び第2の代行記憶装
置を接続した。第1の代行記憶装置内に、ブレーク状態
を維持させるブレーク処理手段と、第2の代行記憶装置
に記憶されている制御情報に応じて所望の条件でブレー
ク処理を起動させるトリガ情報をマイクロプロセッサに
書き込むブレーク条件設定手段と、第2の代行記憶装置
に記憶されている制御情報に応じてブレーク処理から被
デバッグプログラムに復帰する復帰手段とを設けること
によって、従来と同様のデバッグ機能を有し、かつ高速
なリアルタイム実行をも実現した。
Instead of replacing the microprocessor of the system under test with a substitute microprocessor of the debug device, the ROM of the system under test was removed and the first and second substitute storage devices were connected. A break processing means for maintaining a break state is stored in the first proxy storage device, and trigger information for starting break processing under desired conditions according to control information stored in the second proxy storage device is provided to the microprocessor. By providing break condition setting means for writing and return means for returning from break processing to the debugged program according to control information stored in the second proxy storage device, it has the same debugging function as the conventional one, It also achieved high-speed real-time execution.

また、本発明によるデバッグ装置は、ROMの代行を行
なうのみとし、マイクロプロセッサ毎の対応は、ブレー
ク処理手段、ブレーク条件設定手段および復帰手段を書
き替えるのみでどの様なマイクロプロセッサを用いた被
試験システムにでも容易に接続することができるように
した。
Furthermore, the debugging device according to the present invention only acts as a ROM, and the support for each microprocessor can be adjusted by simply rewriting the break processing means, break condition setting means, and return means. This makes it easy to connect to the system.

(実施例) 第1図に本発明による実施例のブロック図を示す。図面
に示した実施例について、この発明を具体的に説明する
。第1図において、被試験システム30は、マイクロプ
ロセッサ31、記憶装置32、ROM回路33、ROM
制御回路35によって構成されている。第1の代行記憶
装置1と第2の代行記憶装置2は、被試験システム30
のROM回路33の代行を受は持つもので、コネクタ3
4を介してROM制御回路35に接続され、アドレス信
号a、制御信号b1 データ信号Cが授受されている。
(Embodiment) FIG. 1 shows a block diagram of an embodiment according to the present invention. The present invention will be specifically described with reference to embodiments shown in the drawings. In FIG. 1, a system under test 30 includes a microprocessor 31, a storage device 32, a ROM circuit 33, a ROM
It is constituted by a control circuit 35. The first proxy storage device 1 and the second proxy storage device 2 are connected to the system under test 30.
The receiver has the function of the ROM circuit 33, and the connector 3
4 to the ROM control circuit 35, and an address signal a, a control signal b1, and a data signal C are exchanged.

第2の代行記憶装置2は制御情報書込回路3によって制
御情報dが書き込まれる様に接続されている。
The second proxy storage device 2 is connected so that the control information d can be written by the control information writing circuit 3.

この様に構成されたデバッグ装置の動作を説明する。ブ
レーク条件設定手段12は、制御情報書込回路3によっ
て、第2の代行記憶装置2に書き込まれた制御情報を解
釈し、ブレーク処理が起動される様にトリガ情報をマイ
クロプロセッサ31内にあるブレークレジスタに書き込
む。
The operation of the debugging device configured in this way will be explained. The break condition setting means 12 interprets the control information written in the second proxy storage device 2 by the control information writing circuit 3, and sets the trigger information to the break condition in the microprocessor 31 so that the break processing is started. Write to register.

復帰手段13は、特定の命令をマイクロプロセッサ31
に出力することによって、マイクロプロセッサ31をブ
レーク状態から被デバッグプログラムの実行状態に復帰
させる。
The return means 13 sends a specific instruction to the microprocessor 31.
The microprocessor 31 is returned from the break state to the execution state of the program to be debugged.

ブレーク処理手段11は、ブレークレジスタに書き込ま
れているトリガ情報に従ってマイクロプロセッサ31が
ブレーク状態に移行した時起動され、ブレーク状態を維
持し、かつ制御情報書込回路3によって、第2の代行記
憶装置2に書き込まれた制御情報を解釈し、その制御情
報が復帰指令もしくは、ブレーク条件であるならばそれ
ぞれ復帰手段、ブレーク条件設定手段を起動する。
The break processing means 11 is activated when the microprocessor 31 enters the break state according to trigger information written in the break register, maintains the break state, and writes the control information to the second proxy storage device by the control information writing circuit 3. 2, and if the control information is a return command or a break condition, the return means and break condition setting means are activated, respectively.

(発明の効果) 以上述べたようにこの発明によれば、被試験システムの
マイクロプロセッサをデバッグ装置の代行マイクロプロ
セッサに置き替える代わりに、被試験システムのROM
を取り外し代行記憶装置を接続し、代行記憶装置内にブ
レーク処理手段、ブレーク条件設定手段及び復帰手段を
設けたので、(イ)信号の伝送時に波形歪や信号の伝播
遅延が生じないため、実行速度を上げることができる。
(Effects of the Invention) As described above, according to the present invention, instead of replacing the microprocessor of the system under test with a substitute microprocessor of the debug device, the ROM of the system under test is
(a) Since waveform distortion and signal propagation delay do not occur during signal transmission, execution You can increase your speed.

(ロ)マイクロプロセッサの実行速度を上げることがで
きるため、高速クロック下でもプログラムのリアルタイ
ムの実行ができ、かつ被試験システムが実用に供される
状態で試験できる。
(b) Since the execution speed of the microprocessor can be increased, programs can be executed in real time even under high-speed clocks, and the system under test can be tested while it is in practical use.

(ハ)マイクロプロセッサの品種が変わった場合デバッ
グ装置を構成する要素の一部を容易に変更することがで
きるため、デバッグ装置の開発器゛間が短縮でき、さら
にデバッグ装置の需要者に不利益を与えることもない。
(c) When the type of microprocessor changes, some of the elements that make up the debugging device can be easily changed, which shortens the time it takes to develop the debugging device, which is also a disadvantage to the users of the debugging device. I don't give anything.

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

第1図は本発明の実施例を示すブロック図、第2図は従
来のデバッグ装置の例を示すブロック図である。 図中の、lは第1の代行記憶装置、2は第2の代行記憶
装置、3は制御情報書込回路、11はブレーク処理手段
、12はブレーク条件設定手段、13は復帰手段、30
は被試験システム、31はマイクロプロセッサ、32は
記憶装置、33はROM回路、34はコネクタ、35は
ROM制御回路、36はバス、aはアドレス信号、bは
制御信号、Cはデータ信号、dは制御情報である。 特許出願人  アンリツ株式会社 代理人 弁理士  小池 龍太部
FIG. 1 is a block diagram showing an embodiment of the present invention, and FIG. 2 is a block diagram showing an example of a conventional debugging device. In the figure, l is a first proxy storage device, 2 is a second proxy storage device, 3 is a control information writing circuit, 11 is a break processing means, 12 is a break condition setting means, 13 is a return means, 30
is the system under test, 31 is the microprocessor, 32 is the storage device, 33 is the ROM circuit, 34 is the connector, 35 is the ROM control circuit, 36 is the bus, a is the address signal, b is the control signal, C is the data signal, d is control information. Patent applicant: Anritsu Corporation Representative: Patent attorney: Ryutabe Koike

Claims (2)

【特許請求の範囲】[Claims] 1.マイクロプロセッサ(31)及びプログラムを記憶
するROM回路(33)を備えた、被試験システム(3
0)のプログラムをデバッグするデバッグ装置において
、 前記ROM回路からのアドレス信号(a)と制御信号(
b)を受信し、該アドレス信号と該制御信号に応じてデ
ータ信号(c)を前記被試験システムに代わって前記R
OM回路へ送出する第1の代行記憶装置(1)及び第2
の代行記憶装置(2)と; 該第2の代行記憶装置に制御情報(d)を書き込む制御
情報書込回路(3)と; 前記第1の代行記憶装置内に、ブレーク状態を維持させ
るブレーク処理手段(11)と、前記第2の代行記憶装
置に記憶されている制御情報に応じて所望の条件で前記
ブレーク処理を起動させるトリガ情報を前記マイクロプ
ロセッサに書き込むブレーク条件設定手段(12)と、
前記第2の代行記憶装置に記憶されている制御情報に応
じてブレーク処理から被デバッグプログラムに復帰する
復帰手段(13)とを設けたことを特徴とするデバッグ
装置。
1. A system under test (3) equipped with a microprocessor (31) and a ROM circuit (33) for storing programs.
0), the address signal (a) from the ROM circuit and the control signal (
b) and sends a data signal (c) to said R on behalf of said system under test in response to said address signal and said control signal.
The first proxy storage device (1) and the second
an alternate storage device (2); a control information writing circuit (3) for writing control information (d) into the second alternate storage device; and a break in the first alternate storage device to maintain a break state. a processing means (11); and a break condition setting means (12) for writing into the microprocessor trigger information for starting the break processing under desired conditions in accordance with control information stored in the second proxy storage device. ,
A debugging device comprising: a return means (13) for returning from break processing to the debugged program according to control information stored in the second proxy storage device.
2.前記ブレーク条件設定手段(12)は、前記被試験
システムのプログラムの所望の命令を前記ブレーク処理
を起動する命令に書き換えるものであることを特徴とす
る特許請求の範囲第1項記載のデバッグ装置。
2. 2. The debugging apparatus according to claim 1, wherein said break condition setting means (12) rewrites a desired instruction of a program of said system under test into an instruction for activating said break processing.
JP62268805A 1987-10-23 1987-10-23 Debugging device Pending JPH01111237A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62268805A JPH01111237A (en) 1987-10-23 1987-10-23 Debugging device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62268805A JPH01111237A (en) 1987-10-23 1987-10-23 Debugging device

Publications (1)

Publication Number Publication Date
JPH01111237A true JPH01111237A (en) 1989-04-27

Family

ID=17463512

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62268805A Pending JPH01111237A (en) 1987-10-23 1987-10-23 Debugging device

Country Status (1)

Country Link
JP (1) JPH01111237A (en)

Similar Documents

Publication Publication Date Title
JPS63111545A (en) Microprocessor for debug
US6263305B1 (en) Software development supporting system and ROM emulation apparatus
JPS58197553A (en) Program monitor
JPH01111237A (en) Debugging device
JPH01111238A (en) Debugging device
JPH01112440A (en) Debugging device
JPH04190430A (en) Emulator for software development
JPH0399334A (en) Program down loading type emulator
JPS62103738A (en) Programmable controller
JPH02210515A (en) System resetting system
JPH04314140A (en) Emulator
JPH0355850B2 (en)
JPH11167501A (en) Program debugging system and program debugging method
JPS59202546A (en) Debugging device
JPH04123235A (en) Debugging method and system for microprogram
JPS60195650A (en) Debugging device
JPS62173543A (en) Emulator
JPH0250230A (en) system development equipment
JPS62130437A (en) Lsi tracing system
JPH01306933A (en) Debugging device
JPS59202550A (en) Debugging device
JPH07121396A (en) emulator
JPS63219042A (en) Program debug device
JPS63211034A (en) Emulation method
JPH03141437A (en) Debugging device