JPH04182839A - Debugging system for microprogram - Google Patents

Debugging system for microprogram

Info

Publication number
JPH04182839A
JPH04182839A JP2313622A JP31362290A JPH04182839A JP H04182839 A JPH04182839 A JP H04182839A JP 2313622 A JP2313622 A JP 2313622A JP 31362290 A JP31362290 A JP 31362290A JP H04182839 A JPH04182839 A JP H04182839A
Authority
JP
Japan
Prior art keywords
flag
address
memory
main memory
flag storage
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
JP2313622A
Other languages
Japanese (ja)
Inventor
Mitsuo Yamamoto
三夫 山本
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.)
NEC Engineering Ltd
Original Assignee
NEC Engineering 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 NEC Engineering Ltd filed Critical NEC Engineering Ltd
Priority to JP2313622A priority Critical patent/JPH04182839A/en
Publication of JPH04182839A publication Critical patent/JPH04182839A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To remove the restriction of the number of circuits on an address to be debugged by reading a flag out of a corresponding address of a flag storage memory and deciding that an address of a main memory which is accessed when the flag is detected is the address to be debugged. CONSTITUTION:A flag control switch 4 outputs a debugging trigger address 12 onto an address bus 6 and also sets a flag on the flag storage memory 3 with a flag setting signal 9 and then the switch 4 releases a microprocessor 1 from being held. The processor 1 reads an instruction code out of the main memory 2 again and performs a normal process. The processor 1 outputs the address of the memory 2 to the bus 6 and the memory 2 is accessed. At the same time, the flag is read out of the address of the memory 3 corresponding to the address of the memory 2 accessed through the bus 6 as a flag state signal 10, which is checked by a flag detecting circuit 5. When the memory 2 is accessed to output the address 12 to the bus 6, the processor 1 is informed of that from the circuit 5 with a debugging information signal 11 and a debugging process starts.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は情報処理装置のマイクロプログラムのデバッグ
方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a debugging method for a microprogram of an information processing device.

〔従来の技術〕[Conventional technology]

従来、この種のマイクロプログラムのデバッグ方式は、
デバッグしたい主メモリの番地をあらかじめ補助記憶回
路に設定し、補助記憶回路に設定されたデバッグしたい
主メモリの番地とマイクロプロセッサがアクセスした主
メモリの番地とを比較し、比較回路が両者の一致を検出
すると、マイクロプロセッサに対して一致検出信号が報
告され、その番地からデバッグ処理を実行させるという
方式になっていた。
Traditionally, the debugging method for this type of microprogram is
The main memory address to be debugged is set in the auxiliary memory circuit in advance, and the main memory address to be debugged set in the auxiliary memory circuit is compared with the main memory address accessed by the microprocessor, and the comparison circuit determines whether the two match. When detected, a match detection signal is reported to the microprocessor, and debug processing is executed from that address.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上述した従来のマイクロプログラムのデバッグ方式では
、デバッグしたい主メモリの番地をあらかじめ記憶する
補助記憶回路必要であり、デバッグしたい主メモリの番
地を同時に複数設定したくても、設定することができる
主メモリの番地の数はあらかじめ設けられている補助記
憶回路の数により制限されてしまうという問題点があっ
た。
The conventional microprogram debugging method described above requires an auxiliary memory circuit that stores in advance the main memory address that you want to debug. There is a problem in that the number of addresses is limited by the number of auxiliary memory circuits provided in advance.

本発明の目的は、デバッグすることができる主メモリの
番地の数を大きくとることができるマイクロプログラム
のデバッグ方式を提供することにある。
An object of the present invention is to provide a microprogram debugging method that can increase the number of main memory addresses that can be debugged.

〔課題を解決するための手段〕[Means to solve the problem]

本発明のマイクロプログラムのデバッグ方式は、マイク
ロプロセッサと、マイクロプログラム及び前記マイクロ
プログラムの実行により生じたデータとを格納する主メ
モリとを有するマイクロプログラムのデバッグ方式にお
いて、 (A)前記主メモリのそれぞれの番地に1対1に対応し
たフラグ格納用番地を有し、デバッグ処理を実行したい
前記主メモリの番地を指示するときには、前記主メモリ
の番地に対応した前記フラグ格納用番地にフラグが格納
され、デバッグ処理の実行を指示しないときには、前記
フラグ格納用番地からフラグが除去されるフラグ格納メ
モリ、 (B)前記フラグを格納及び除去するフラグ格納・除去
手段、 (C)前記マイクロプロセッサが前記主メモリの番地を
アクセスすると同時に、前記主メモリの番地に対応した
前記フラグ格納メモリの番地から前記フラグを読み出し
てチェックし、前記フラグが格納されているときに前記
マイクロプロセッサに前記デバッグ処理を実行させるフ
ラグ検出手段、 を有している。
A microprogram debugging method of the present invention is a microprogram debugging method having a microprocessor and a main memory storing a microprogram and data generated by execution of the microprogram, which includes: (A) each of the main memories; has a flag storage address in one-to-one correspondence with the address of , and when specifying the address of the main memory at which debugging processing is to be executed, the flag is stored at the flag storage address corresponding to the address of the main memory. , a flag storage memory from which the flag is removed from the flag storage address when execution of debug processing is not instructed; (B) flag storage/removal means for storing and removing the flag; (C) the microprocessor At the same time as accessing the memory address, the flag is read and checked from the flag storage memory address corresponding to the main memory address, and when the flag is stored, the microprocessor is caused to execute the debugging process. It has a flag detection means.

〔実施例〕〔Example〕

次に、本発明の実施例について図面を参照して説明する
Next, embodiments of the present invention will be described with reference to the drawings.

第1図は本発明の一実施例のブロック図であり、第2図
は第1図のマイクロプログラムのデバッグ方式のメモリ
マツプを示す図である。
FIG. 1 is a block diagram of one embodiment of the present invention, and FIG. 2 is a diagram showing a memory map of the microprogram debugging method of FIG. 1.

第1図に示すマイクロプログラムのデバッグ方式は、マ
イクロプロセッサ1、マイクロプログラムとマイクロプ
ロセッサ1がマイクロプログラムを実行することにより
生じたデータとを格納する主メモリ2、主メモリ2の番
地のそれぞれに1対1に対応した番地を有し、デバッグ
処理を実行したい主メモリ2の番地を指示するときに、
その番地に対応した番地にフラグを格納するフラグ格納
メモリ3、フラグ格納メモリ3の任意の番地にフラグを
格納(セット)したり、また、フラグ格納メモリ3の任
意の番地にセットされているフラグを除去(リセット)
するフラグ制御スイッチ(フラグ格納・除去手段)4、
フラグ格納メモリ3がら読み出したフラグをチェックし
フラグがセットされていたら、マイクロプロセッサ1に
通知するフラグ検出回路5から構成されている。
The microprogram debugging method shown in FIG. When specifying an address in main memory 2 that has a one-to-one correspondence and where you want to execute debugging,
The flag storage memory 3 stores a flag at an address corresponding to that address, stores (sets) a flag at any address in the flag storage memory 3, or flags set at any address in the flag storage memory 3. remove (reset)
flag control switch (flag storage/removal means) 4,
It consists of a flag detection circuit 5 that checks the flag read out from the flag storage memory 3 and notifies the microprocessor 1 if the flag is set.

次に、動作を説明する。Next, the operation will be explained.

第1図において、マイクロプロセッサ1はアドレスバス
6にメモリ番地を出力し、主メモリ2からデータバス7
を介して命令コードを読み込む。
In FIG. 1, a microprocessor 1 outputs a memory address to an address bus 6, and a data bus 7 from a main memory 2.
Read the instruction code via.

そして、読み込んだ命令コードを実行し、命令コードの
実行により主メモリ2に対しデータの読み書きを行う。
Then, the read instruction code is executed, and data is read from and written to the main memory 2 by executing the instruction code.

なお、マイクロプロセッサ1は、主メモリ2から命令コ
ードを読み込み通常の処理を実行していており、フラグ
格納メモリ3にはフラグがすべての番地に格納されてい
ない(リセット)状態にあるものとする。
It is assumed that the microprocessor 1 is reading an instruction code from the main memory 2 and executing normal processing, and the flag storage memory 3 is in a state where flags are not stored at all addresses (reset). .

まず、フラグ制御スイッチ4でホールドリクエスト信号
8をアクティブにし、マイクロプロセッサ1をホールド
状態にする。さらに、フラグ制御スイッチ4によりデバ
ッグ処理を実行したいメモリ番地であるデバッグトリガ
番地12をアドレスバス6上に出力すると同時に、フラ
グ設定信号9によりフラグ格納メモリ3にフラグをセッ
トする。デバッグ処理を実行したいメモリ番地が複数存
在するときは、前述のようなフラグ制御スイッチ4の操
作を繰返す。フラグ格納メモリ3へのフラグのセットが
終了したら、フラグ制御スイッチ4でホールドリクエス
ト信号8をインアクティブにし、マイクロプロセッサ1
のホールド状態を解除する。
First, the flag control switch 4 activates the hold request signal 8 to place the microprocessor 1 in a hold state. Further, the flag control switch 4 outputs the debug trigger address 12, which is the memory address at which debug processing is to be executed, onto the address bus 6, and at the same time, a flag is set in the flag storage memory 3 by the flag setting signal 9. If there are multiple memory addresses at which debugging is desired, the operation of the flag control switch 4 as described above is repeated. After setting the flag in the flag storage memory 3, the hold request signal 8 is made inactive by the flag control switch 4, and the microprocessor 1
release the hold state.

マイクロプロセッサ]−は再び主メモリ2から命令コー
ドを読み込んで通常の処理を実行する。そして、フラグ
格納メモリ3では、マイクロプロセッサ1が、アドレス
バス6に主メモリ2の番地を出力し、主メモリ2をアク
セスする。そして、それと同時に、アドレスバス6を介
してアクセスした主メモリ2の番地に対応するフラグ格
納メモリ3の番地からフラグをフラグ状態信号10とし
て読み出し、フラグ検出回路5でチェックする。
The microprocessor reads the instruction code from the main memory 2 again and executes normal processing. In the flag storage memory 3, the microprocessor 1 outputs the address of the main memory 2 to the address bus 6 and accesses the main memory 2. At the same time, the flag is read as a flag state signal 10 from the address in the flag storage memory 3 corresponding to the address in the main memory 2 accessed via the address bus 6, and checked by the flag detection circuit 5.

主メモリ2をアクセスしてアドレスバス6にデバッグト
リガ番地12を出力すると、フラグ検出回路5によりフ
ラグが検出されているので、フラグ検出回路5からデバ
ッグ通知信号】1によりマイクロプロセッサ1にそれが
報告され、マイクロプロセッサ1はデバッグ処理の実行
に移る。
When the main memory 2 is accessed and the debug trigger address 12 is output to the address bus 6, the flag detection circuit 5 detects the flag, so the flag detection circuit 5 reports it to the microprocessor 1 by the debug notification signal ]1. The microprocessor 1 then proceeds to execute debug processing.

また、フラグ格納メモリ2に設定しであるフラグをリセ
ッI・する場合は、前述のフラグをセットする操作と同
様に、フラグ設定信号9によりフラグ格納メモリ3のフ
ラグをリセットする。
Furthermore, when resetting a flag that has been set in the flag storage memory 2, the flag in the flag storage memory 3 is reset by the flag setting signal 9, similar to the operation for setting the flag described above.

〔発明の効果〕〔Effect of the invention〕

以上説明したように、本発明は、主メモリの番地に1対
1−に対応した番地を有するフラグ格納メモリを設け、
マイクロプロセッサが主メモリの番地をアクセスすると
同時に、フラグ格納メモリの対応した番地からフラグを
読み出してフラグの有無をチェックし、フラグが検出さ
れたときに、°γアクセスれた主メモリの番地がデバッ
グしたい番地であると判定することにより、フラグは主
メモリの番地の数だけ格納することができるので、デバ
ッグしたい番地の数は容易に最大主メモリの番地の数だ
けセラ1〜することができ、実装された回路の数などの
制約を受けることがないという効果を有する。
As explained above, the present invention provides a flag storage memory having addresses that correspond one-to-one to the addresses of the main memory,
When the microprocessor accesses a main memory address, the flag is read from the corresponding address in the flag storage memory and checked for the presence or absence of the flag. When a flag is detected, the accessed main memory address is used for debugging. By determining that the address is the one you want to debug, flags can be stored as many times as there are addresses in main memory, so the number of addresses you want to debug can easily be set to the maximum number of addresses in main memory. This has the advantage of not being subject to restrictions such as the number of implemented circuits.

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

第1図は本発明の一実施例のブロック図、第2図は第1
図のマイクロプログラムのデバッグ方式のメモリマツプ
を示す図である。 1・・・・・・マイクロプロセッサ、2・・・・・・主
メモリ、3・・・・・・フラグ格納メモリ、4・・・・
・・フラグ制御スイッチ、5・・・・・・フラグ検出回
路、6・・・・・・アドレスバス、7・・・・・・デー
タバス、8・・・・・・ホールドリクエスト信号、9・
・・・・・フラグ設定信号、10・・・・・・フラグ状
態信号、11・・・・・・デバッグ通知信号、12・・
・・・・デバッグトリガ番地。 代理人 弁理士  内 原  音
FIG. 1 is a block diagram of one embodiment of the present invention, and FIG. 2 is a block diagram of an embodiment of the present invention.
FIG. 3 is a diagram showing a memory map of a debugging method for the microprogram shown in the figure. 1...Microprocessor, 2...Main memory, 3...Flag storage memory, 4...
... Flag control switch, 5 ... Flag detection circuit, 6 ... Address bus, 7 ... Data bus, 8 ... Hold request signal, 9.
... Flag setting signal, 10 ... Flag status signal, 11 ... Debug notification signal, 12 ...
...Debug trigger address. Agent Patent Attorney Oto Uchihara

Claims (1)

【特許請求の範囲】 マイクロプロセッサと、マイクロプログラム及び前記マ
イクロプログラムの実行により生じたデータとを格納す
る主メモリとを有するマイクロプログラムのデバッグ方
式において、 (A)前記主メモリのそれぞれの番地に1対1に対応し
たフラグ格納用番地を有し、デバッグ処理を実行したい
前記主メモリの番地を指示するときには、前記主メモリ
の番地に対応した前記フラグ格納用番地にフラグが格納
され、デバッグ処理の実行を指示しないときには、前記
フラグ格納用番地からフラグが除去されるフラグ格納メ
モリ、 (B)前記フラグを格納及び除去するフラグ格納・除去
手段、 (C)前記マイクロプロセッサが前記主メモリの番地を
アクセスすると同時に、前記主メモリの番地に対応した
前記フラグ格納メモリの番地から前記フラグを読み出し
てチェックし、前記フラグが格納されているときに前記
マイクロプロセッサに前記デバッグ処理を実行させるフ
ラグ検出手段、 を有することを特徴とするマイクロプログラムのデバッ
グ方式。
[Scope of Claims] A debugging method for a microprogram including a microprocessor and a main memory for storing a microprogram and data generated by execution of the microprogram, comprising: (A) 1 at each address of the main memory; It has flag storage addresses that correspond to one pair, and when specifying the address in the main memory at which you want to execute debugging, the flag is stored in the flag storage address corresponding to the main memory address, and the flag is stored in the flag storage address corresponding to the main memory address, a flag storage memory from which the flag is removed from the flag storage address when execution is not instructed; (B) flag storage/removal means for storing and removing the flag; (C) the microprocessor from which the address of the main memory is stored; flag detection means that simultaneously reads and checks the flag from an address of the flag storage memory corresponding to the address of the main memory and causes the microprocessor to execute the debugging process when the flag is stored; A microprogram debugging method characterized by having the following features.
JP2313622A 1990-11-19 1990-11-19 Debugging system for microprogram Pending JPH04182839A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2313622A JPH04182839A (en) 1990-11-19 1990-11-19 Debugging system for microprogram

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2313622A JPH04182839A (en) 1990-11-19 1990-11-19 Debugging system for microprogram

Publications (1)

Publication Number Publication Date
JPH04182839A true JPH04182839A (en) 1992-06-30

Family

ID=18043538

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2313622A Pending JPH04182839A (en) 1990-11-19 1990-11-19 Debugging system for microprogram

Country Status (1)

Country Link
JP (1) JPH04182839A (en)

Similar Documents

Publication Publication Date Title
JPH06103472B2 (en) Microprocessor for debugging
JP3432734B2 (en) DMA control device and DMA control method
JPH04182839A (en) Debugging system for microprogram
JP2000339189A (en) Method for detecting illegal memory access debugging device and storage medium
JPH05100847A (en) Memory protection system for information processor
JP2970082B2 (en) Virtual intercluster communication processor
JP3130798B2 (en) Bus transfer device
JPH0581087A (en) Processor monitoring system
JP2626119B2 (en) Microcomputer development support equipment
JPS59183443A (en) Debug device
JPS59112494A (en) Memory testing system
JPS59163653A (en) Debug device
JPH0484224A (en) Stack area protection circuit
JPH1165884A (en) Microcomputer and debugging method therefor
JPS6270947A (en) Control system for debug interruption
JPH0392934A (en) Instruction code read retesting circuit
JPH03119449A (en) Calculating device
JPH01211129A (en) Information processor
JPH0368035A (en) Information processor
JPH05265942A (en) Data inputting and outputting method for dma control part
JPS63196952A (en) Information processor
JPS63124144A (en) Information processor
JPH0793180A (en) Microprocessor
JPH07210420A (en) Debugging method in thread environment
JPH03129536A (en) Brake address detecting device