[go: up one dir, main page]

JPH0635694A - Microprogram running stoppage controller and method - Google Patents

Microprogram running stoppage controller and method

Info

Publication number
JPH0635694A
JPH0635694A JP19391792A JP19391792A JPH0635694A JP H0635694 A JPH0635694 A JP H0635694A JP 19391792 A JP19391792 A JP 19391792A JP 19391792 A JP19391792 A JP 19391792A JP H0635694 A JPH0635694 A JP H0635694A
Authority
JP
Japan
Prior art keywords
microprogram
running
stop
program
condition
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
JP19391792A
Other languages
Japanese (ja)
Inventor
Toshiaki Ueno
俊明 上野
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP19391792A priority Critical patent/JPH0635694A/en
Publication of JPH0635694A publication Critical patent/JPH0635694A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To provide a microprogram running stoppage control whose generality is high by which the running of a microprogram can be stopped based on a condition which can be arbitrarily set and changed including the case that reading or writing addresses beforehand set for a main storage are coincided. CONSTITUTION:Plural microprogram running stopping conditions are arbitrarity aet by registers 3-6, a code corresponding to the desired microprogram running stopping condition is set in the function code of a program instruction word, the microprogram running stopping condition corresponding to the set code is selected through a microprogram running stopping instruction register 7 by selector 8, and a microprogram running stopping request 10 is outputted.

Description

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

【0001】[0001]

【産業上の利用分野】本発明はマイクロプログラムの制
御に関し、特にマイクロプログラムの制御によりマイク
ロプログラムの走行を停止する制御装置及び方法に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to control of a microprogram, and more particularly to a control device and method for stopping the running of the microprogram by controlling the microprogram.

【0002】[0002]

【従来の技術】一般に、マイクロプログラムの制御は、
マイクロプログラムのデバッグを容易にするため、ソフ
トウェア命令及びデータ等が格納されている主記憶内の
予め指定したアドレスをアクセス(読出し又は書込み)
したときにマイクロプログラムの実行を一時停止しうる
機能を具備している。
2. Description of the Related Art Generally, microprogram control is
Access (read or write) a pre-specified address in the main memory where software instructions and data are stored to facilitate debugging of micro programs
It has a function of temporarily stopping the execution of the microprogram when it does.

【0003】すなわち、従来、上記のようなマイクロプ
ログラム走行停止方式としては、例えば図4に示すよう
なものが知られている。図4において、1はマイクロプ
ログラムがアクセスする主記憶、3は主記憶1の読出し
アドレスを格納する読出しアドレスレジスタ、4は主記
憶1の書込みアドレスを格納する書込みアドレスレジス
タ、24は読出し又は書込みアドレスと比較する比較ア
ドレスを格納する比較アドレスレジスタ、25は読出し
アドレス又は書込みアドレスと比較アドレスとを比較す
る比較器、26は比較の結果発生したマイクロプログラ
ム走行停止要求である。
That is, conventionally, as a micro-program running stop system as described above, for example, one shown in FIG. 4 is known. In FIG. 4, 1 is a main memory accessed by the microprogram, 3 is a read address register for storing a read address of the main memory 1, 4 is a write address register for storing a write address of the main memory 1, and 24 is a read or write address. Is a comparison address register for storing a comparison address to be compared with, 25 is a comparator for comparing the read address or write address with the comparison address, and 26 is a microprogram running stop request generated as a result of the comparison.

【0004】次に、図5に基づき、図4に示すマイクロ
プログラム走行停止機能の動作について説明する。ま
ず、マイクロプログラムの走行をスタートする前に、マ
イクロプログラム走行の一時停止を希望する主記憶1の
アドレスを比較アドレスレジスタ24に予め格納してお
く。そして、マイクロプログラムの走行をスタートする
と(図5のブロック201)、マイクロプログラムは順
次走行してその内容を実行し(ブロック203)、主記
憶1を読出し又は書込みする度にブロック205へ進
み、ユヘザからのマイクロプログラムの停止要求がある
か否かをチェックする。
Next, the operation of the microprogram running stop function shown in FIG. 4 will be described with reference to FIG. First, before starting the running of the microprogram, the address of the main memory 1 in which the temporary stop of the running of the microprogram is desired is stored in the comparison address register 24 in advance. Then, when the running of the microprogram is started (block 201 in FIG. 5), the microprogram sequentially runs and executes its contents (block 203). Whenever the main memory 1 is read or written, the process proceeds to block 205 and the user Check whether there is a request to stop the microprogram from.

【0005】停止要求があった場合はマイクロプログラ
ムを停止し(ブロック209)、停止要求が無かった場
合は読出し又は書込みアドレス、すなわち読出しアドレ
スレジスタ3又は書込みアドレスレジスタ4の内容を比
較器に送り、比較器25において、比較アドレスレジス
タ24から送られた比較アドレスとを比較する(ブロッ
ク107)。比較の結果、読出しアドレス又は書込みア
ドレスと比較アドレスとが一致すると、比較器からマイ
クロプログラム走行停止要求26が出力され、その時点
においてマイクロプログラムの走行が一時停止され(ブ
ロック209)、読出しアドレス又は書込みアドレスと
比較アドレスとが一致しないと、マイクロプログラムの
走行に戻る(ブロック203)。
If there is a stop request, the microprogram is stopped (block 209), and if there is no stop request, the read or write address, that is, the contents of the read address register 3 or the write address register 4 is sent to the comparator. In the comparator 25, the comparison address sent from the comparison address register 24 is compared (block 107). As a result of the comparison, if the read address or the write address and the comparison address match, the comparator outputs the microprogram running stop request 26, at which point the running of the microprogram is temporarily stopped (block 209), and the read address or the write address is written. If the address and the comparison address do not match, then the program returns to running the microprogram (block 203).

【0006】[0006]

【発明が解決しようとする課題】しかしながら、上記の
ような従来のマイクロプログラム走行停止方式において
は、予め設定した比較アドレスと主記憶をアクセスする
際のアドレスとが一致したときにのみマイクロプログラ
ムの走行を停止するというように、その停止は一定の場
合に限定され、非常に汎用性が低いという問題があっ
た。
However, in the conventional micro program running stop method as described above, the running of the micro program is performed only when the preset comparison address and the address for accessing the main memory match. There is a problem in that the stop is limited to a certain case, and the versatility is extremely low.

【0007】本発明は、上記のような問題を解決するた
めになされたもので、上記のような主記憶1をアクセス
するアドレスの一致の場合のほか、他の種々な条件にお
いてもマイクロプログラムの走行を停止しうる汎用性が
高いマイクロプログラム走行停止制御を提供することを
目的とする。
The present invention has been made in order to solve the above problems, and in addition to the case of matching the addresses for accessing the main memory 1 as described above, the micro program can be operated under various other conditions. An object of the present invention is to provide a highly versatile microprogram travel stop control capable of stopping travel.

【0008】[0008]

【課題を解決するための手段】本発明は上記の課題を解
決するため、主記憶に対する読出し又は書込みが行われ
たとき、マシンチェック又はプログラムチェックが行わ
れるとき等のほか、任意複数のマイクロプログラム走行
停止条件をそれぞれのレジスタに設定し、プログラム命
令語のファンクションコードに前記マイクロプログラム
走行停止条件にそれぞれ対応するコードの一つを任意設
定し、該プログラム命令語の実行により上記任意設定し
たコードをマイクロプログラム走行停止命令レジスタに
格納し、該格納したコードに基づき、セレクタによって
前記マイクロプログラム走行停止条件を選択し、前記選
択した条件下においてマイクロプログラムの走行を停止
するようにしたことを特徴とするものである。
In order to solve the above-mentioned problems, the present invention solves the above-mentioned problems when a main memory is read or written, a machine check or a program check is performed, and a plurality of arbitrary microprograms are used. The traveling stop condition is set in each register, one of the codes corresponding to the microprogram traveling stop condition is arbitrarily set in the function code of the program command word, and the arbitrarily set code is executed by executing the program command word. The micro program running stop command register is stored, and the micro program running stop condition is selected by a selector based on the stored code, and the running of the micro program is stopped under the selected condition. It is a thing.

【0009】[0009]

【作用】本発明によれば、複数のマイクロプログラム走
行停止条件を設定することができ、そのマイクロプログ
ラム走行停止条件をプログラム命令により選択すること
ができるので、簡単に複数のマイクロプログラム走行停
止条件を設定し、変更することが可能である。
According to the present invention, a plurality of micro program running stop conditions can be set and the micro program running stop conditions can be selected by a program command. Therefore, a plurality of micro program running stop conditions can be easily set. It can be set and changed.

【0010】[0010]

【実施例】以下、添付図面に基づき本発明の一実施例を
詳細に説明する。図1はマイクロプログラム走行停止制
御装置を示すブロック説明図、図2はプログラム命令語
を示す説明図である。図1において、主記憶1、読出し
アドレスレジスタ3、及び書込みアドレスレジスタ4は
上記従来のものと同一であり、更に5はマシンチェック
コードを格納するマシンチェック要因レジスタ、6はプ
ログラムチェックコードを格納するプログラムチェック
要因レジスタ、7はプログラム命令語のファンクション
コード13により指定されたマイクロプログラム走行停
止条件を設定するマイクロプログラム走行停止命令レジ
スタである。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described in detail below with reference to the accompanying drawings. FIG. 1 is a block diagram showing a microprogram running stop control device, and FIG. 2 is a diagram showing program command words. In FIG. 1, the main memory 1, the read address register 3, and the write address register 4 are the same as the conventional ones, and 5 is a machine check factor register for storing a machine check code, and 6 is a program check code. The program check factor register 7 is a micro program running stop instruction register for setting a micro program running stop condition designated by the function code 13 of the program command word.

【0011】更に、8はマイクロプログラム走行停止命
令レジスタ7、及び要求に従いマイクロプログラム走行
停止条件がそれぞれ格納されるレジスタ3、4、5、6
が接続され、マイクロプログラム走行停止命令レジスタ
7の内容に基づき、レジスタ3、4、5、6のいずれか
からマイクロプログラム走行停止条件を選択するセレク
タ、9はマイクロプログラム走行停止命令レジスタ7
と、セレクタ8を介して読出しアドレスレジスタ3又は
書込みアドレスレジスタ4とに接続され、マイクロプロ
グラム走行停止命令レジスタ7の内容と読出し又は書込
みアドレスレジスタ3、4の内容とを比較する比較器、
10はセレクタ8又は比較器9からの出力であるマイク
ロプログラム走行停止要求である。又、図2において、
11はプログラム命令語、12はその命令コードであ
り、13はそのファンクションコードである。
Further, 8 is a micro program running stop instruction register 7, and registers 3, 4, 5, 6 for storing micro program running stopping conditions in accordance with a request.
Is connected, and a selector for selecting a microprogram running stop condition from any one of the registers 3, 4, 5 and 6 based on the contents of the microprogram running stop command register 7, and 9 is a microprogram running stop command register 7
And a comparator which is connected to the read address register 3 or the write address register 4 via the selector 8 and compares the contents of the microprogram run stop instruction register 7 with the contents of the read or write address registers 3, 4.
Reference numeral 10 is a microprogram running stop request which is an output from the selector 8 or the comparator 9. In addition, in FIG.
Reference numeral 11 is a program instruction word, 12 is its instruction code, and 13 is its function code.

【0012】まず、希望するマイクロプログラム走行停
止条件をそれぞれのレジスタに設定する。本実施例で
は、主記憶1の予め指定されたアドレスを読出し及び書
込みのときと、マシンチェック要求及びプログラムチェ
ック要求の発生のときとをマイクロプログラム走行停止
条件として設定した。しかし、それのみでなく、希望す
る如何なる条件をも設定することができることは言うま
でもない。
First, a desired microprogram running stop condition is set in each register. In this embodiment, the reading and writing of a pre-specified address in the main memory 1 and the generation of a machine check request and a program check request are set as micro program running stop conditions. However, needless to say, not only that but also any desired condition can be set.

【0013】次に、図2に示すプログラム命令語11の
ファンクションコード13に上記の各マイクロプログラ
ム走行停止条件に対応するコードを設定する。このファ
ンクションコード13は任意に設定及び変更が可能であ
る。
Next, a code corresponding to each of the above microprogram running stop conditions is set in the function code 13 of the program command word 11 shown in FIG. This function code 13 can be arbitrarily set and changed.

【0014】プログラム命令語11の遂行によりそのフ
ァンクションコード13に対応するマイクロプログラム
走行停止条件がマイクロプログラム走行停止命令レジス
タ7に格納される。次に、前述の従来例の場合と同様、
マイクロプログラムの走行中、主記憶1を読出し又は書
込みする度にそのアドレスが読出しアドレスレジスタ3
又は書込みアドレスレジスタ4に格納される。又、本実
施例において設定したマシンチェック要因又はプログラ
ムチェック要因が発生すると、そのコードがそれぞれ対
応するレジスタ5又は6に格納される。
By executing the program command word 11, the micro program running stop condition corresponding to the function code 13 is stored in the micro program running stop command register 7. Next, as in the case of the conventional example described above,
Each time the main memory 1 is read or written while the microprogram is running, its address is read out by the read address register 3
Alternatively, it is stored in the write address register 4. When the machine check factor or program check factor set in this embodiment occurs, the code is stored in the corresponding register 5 or 6.

【0015】セレクタ8はマイクロプログラム走行停止
命令レジスタ7からマイクロプログラムの走行停止条件
を受け、その条件を選択する。マイクロプログラム走行
停止条件が主記憶1の読出しアドレス又は書込みアドレ
スの一致であれば、該当する各レジスタの内容(読出し
又は書込みアドレス)を比較器9へ送る。比較器9は各
アドレスレジスタ3、又は4の内容をマイクロプログラ
ム走行停止命令レジスタ7の内容(停止アドレス)とを
比較する。停止アドレスと読出し又は書込みアドレスと
が一致すると、比較器9の出力からマイクロプログラム
走行停止要求10を出力してマイクロプログラムの走行
を停止させる。
The selector 8 receives a micro program traveling stop condition from the micro program traveling stop instruction register 7 and selects the condition. If the micro-program running stop condition matches the read address or the write address of the main memory 1, the content (read or write address) of the corresponding register is sent to the comparator 9. The comparator 9 compares the contents of each address register 3 or 4 with the contents (stop address) of the microprogram running stop instruction register 7. When the stop address matches the read or write address, the microprogram running stop request 10 is output from the output of the comparator 9 to stop the running of the microprogram.

【0016】又、セレクタ8がマイクロプログラム走行
停止命令レジスタ7から受信したマイクロプログラム走
行停止条件がマシンチェック要求又はプログラムチェッ
ク要求であれば、セレクタ8は比較器9を使用せず、対
応するマイクロプログラム走行停止条件の発生に基づ
き、マイクロプログラム走行停止要求10を出力してマ
イクロプログラムの走行を停止させる。
If the microprogram running stop condition received from the microprogram running stop command register 7 by the selector 8 is a machine check request or a program check request, the selector 8 does not use the comparator 9 but the corresponding microprogram. Based on the occurrence of the traveling stop condition, the microprogram traveling stop request 10 is output to stop the traveling of the microprogram.

【0017】次に、図3の流れ図に基づき、本実施例に
よるマイクロプログラム走行停止制御の動作方法につい
て説明する。まず、上記の実施例と同様、マイクロプロ
グラムの走行をスタートすると(ブロック101)、マ
イクロプログラムは順次走行してそのコードに基づく動
作を実行する(ブロック103)。マイクロプログラム
の走行中、例えば主記憶1に対する読出し又は書込み等
のアクセスがあるか、マシンチェックまたはプログラム
チェック等の要求があるか、又はユーザからのマイクロ
プログラム停止要求等がある場合はブロック105へ進
み、そこでユーザからのマイクロプログラム停止要求が
あった場合はブロック111へ進み、直ちにマイクロプ
ログラムの進行を停止する。
Next, the operation method of the micro program running stop control according to the present embodiment will be described with reference to the flow chart of FIG. First, as in the above embodiment, when the running of the microprogram is started (block 101), the microprogram sequentially runs and executes the operation based on the code (block 103). When the micro program is running, if there is an access such as reading or writing to the main memory 1, a request for a machine check or a program check, or a micro program stop request from the user, the process proceeds to block 105. If there is a microprogram stop request from the user, the process proceeds to block 111 to immediately stop the progress of the microprogram.

【0018】ブロック105において、ユーザからのマ
イクロプログラム停止要求がなかった場合はブロック1
07へ進み、マイクロプログラム走行停止命令を実行し
たか否かをチェックし、実行しなかった場合は通常のマ
イクロプログラムの走行へ戻る(ブロック103)。ブ
ロック107において、マイクロプログラム走行停止命
令を実行していた場合はブロック109へ進み、マイク
ロプログラム走行停止条件を選択する。マイクロプログ
ラム走行停止条件に合致していた場合はブロック111
に進んでマイクロプログラムの走行を停止し、その条件
に合致していなかった場合はブロック103に戻り、マ
イクロプログラムの走行を続行する。
In block 105, if there is no microprogram stop request from the user, block 1
In step 07, it is checked whether or not the micro program running stop command has been executed. If not, the normal micro program running is resumed (block 103). In block 107, if the micro program running stop command has been executed, the process proceeds to block 109 to select the micro program running stop condition. If the micro program running stop condition is met, block 111
If the condition is not met, the process returns to block 103 to continue the microprogram running.

【0019】尚、上記の実施例においては、マイクロプ
ログラムの走行停止のみを示したが、それと同時にそこ
までのマイクロトレースを格納し及び表示する機能を設
けてもよく、又他の機能との組合せも自由である。
In the above embodiment, only the running stop of the micro program is shown, but at the same time, a function of storing and displaying the micro trace up to that point may be provided, or a combination with other functions may be provided. Is also free.

【0020】[0020]

【発明の効果】以上の説明から明らかなように、本発明
は複数のマイクロプログラム走行停止条件を設定しうる
と共に、プログラム命令によりその各マイクロプログラ
ム走行停止条件を選択するようにしたことにより、簡単
に複数のマイクロプログラム走行停止条件を設定し変更
することができる汎用性の高いマイクロプログラム走行
停止制御を可能にしてデバッグを効率化することができ
る。
As is apparent from the above description, according to the present invention, it is possible to set a plurality of micro program running stop conditions and to select each micro program running stop condition by a program command. It is possible to efficiently perform debugging by enabling highly versatile micro program running stop control in which a plurality of micro program running stopping conditions can be set and changed.

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

【図1】本発明の一実施例によるマイクロプログラム走
行停止制御を示すブロック図
FIG. 1 is a block diagram showing a micro program running stop control according to an embodiment of the present invention.

【図2】本発明に使用するプログラム命令語を示す概略
説明図
FIG. 2 is a schematic explanatory view showing program command words used in the present invention.

【図3】本発明の一実施例によるマイクロプログラム走
行停止方法を示す流れ図
FIG. 3 is a flowchart showing a method for stopping running of a micro program according to an embodiment of the present invention.

【図4】従来のマイクロプログラム走行停止制御を示す
ブロック図
FIG. 4 is a block diagram showing a conventional micro program running stop control.

【図5】従来のマイクロプログラム走行停止制御方法を
示す流れ図
FIG. 5 is a flow chart showing a conventional microprogram running stop control method.

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

1 主記憶 3 読出しアドレスレジスタ 4 書込みアドレスレジスタ 5 マシンチェック要因レジスタ 6 プログラムチェック要因レジスタ 7 マイクロプログラム走行停止命令レジスタ 8 セレクタ 9 比較器 10 マイクロプログラム走行停止要求 11 プログラム命令語 12 命令コード 13 ファンクションコード 1 Main Memory 3 Read Address Register 4 Write Address Register 5 Machine Check Factor Register 6 Program Check Factor Register 7 Micro Program Run Stop Command Register 8 Selector 9 Comparator 10 Micro Program Run Stop Request 11 Program Command Word 12 Command Code 13 Function Code

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 プログラム走行停止条件を設定する複数
の停止条件レジスタと、前記プログラム走行停止条件に
対応するコードを任意設定したプログラム命令語の走行
により前記コードを格納するマイクロプログラム走行停
止命令レジスタと、前記マイクロプログラム走行停止命
令レジスタに格納されたコードに基づき前記停止条件レ
ジスタを選択するセレクタとを含み、前記選択した条件
においてマイクロプログラムの走行を停止するようにし
たことを特徴とするマイクロプログラム走行停止制御装
置。
1. A plurality of stop condition registers for setting a program run stop condition, and a microprogram run stop command register for storing the code by running a program command word in which a code corresponding to the program run stop condition is arbitrarily set. And a selector for selecting the stop condition register based on a code stored in the micro program run stop instruction register, and the running of the micro program is stopped under the selected condition. Stop control device.
【請求項2】 任意複数のマイクロプログラム走行停止
条件を設定し、プログラム命令語のファンクションコー
ドに前記マイクロプログラム走行停止条件にそれぞれ対
応するコードの一つを任意設定し、前記任意設定したコ
ードに基づき前記マイクロプログラム走行停止条件を選
択し、前記選択した条件においてマイクロプログラムの
走行を停止するようにしたことを特徴とするマイクロプ
ログラム走行停止制御方法。
2. A plurality of arbitrary microprogram running stop conditions are set, and one of the codes corresponding to the microprogram running stop conditions is arbitrarily set in the function code of the program command word, and based on the arbitrarily set codes. A microprogram running stop control method, characterized in that the microprogram running stop condition is selected and running of the microprogram is stopped under the selected condition.
JP19391792A 1992-07-21 1992-07-21 Microprogram running stoppage controller and method Pending JPH0635694A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP19391792A JPH0635694A (en) 1992-07-21 1992-07-21 Microprogram running stoppage controller and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP19391792A JPH0635694A (en) 1992-07-21 1992-07-21 Microprogram running stoppage controller and method

Publications (1)

Publication Number Publication Date
JPH0635694A true JPH0635694A (en) 1994-02-10

Family

ID=16315894

Family Applications (1)

Application Number Title Priority Date Filing Date
JP19391792A Pending JPH0635694A (en) 1992-07-21 1992-07-21 Microprogram running stoppage controller and method

Country Status (1)

Country Link
JP (1) JPH0635694A (en)

Similar Documents

Publication Publication Date Title
KR100313996B1 (en) Apparatus and method for storing bios data of computer system
JPH0635694A (en) Microprogram running stoppage controller and method
JPH0789328B2 (en) Data processing device
JPH0410081B2 (en)
JPH05297911A (en) Sequence control circuit for sequence controller
JP2978008B2 (en) Memory management method
JPS6218932B2 (en)
JPS5835648A (en) Program execution controlling system
JPS63157238A (en) computer
JPH0567973B2 (en)
JPS5842891B2 (en) Meirei Seigiyohoushiki
JPS5968067A (en) Specifying system for number of run steps
JPS59111538A (en) Microprogram controller
JP2591785B2 (en) Computer equipment
JPS6238746B2 (en)
KR940011045B1 (en) Interrupt vector addressing method in micro controller unit
JPH0795288B2 (en) Microcomputer
JPS5927303A (en) Program correction device
JPH02103643A (en) Interruption generation circuit for debug
Neumann Disk-based program swapping in 8080-based microcomputers
JPH0324640A (en) Debugging system for information processor
JPS60105048A (en) Microprogram control method
JPS63123137A (en) Address coincidence signal generating system
JPS6148049A (en) Check device of mamory-access
JPH0378845A (en) Man storage key control system