Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPS6029410B2 - Microprogram control method - Google Patents
[go: Go Back, main page]

JPS6029410B2 - Microprogram control method - Google Patents

Microprogram control method

Info

Publication number
JPS6029410B2
JPS6029410B2 JP53029393A JP2939378A JPS6029410B2 JP S6029410 B2 JPS6029410 B2 JP S6029410B2 JP 53029393 A JP53029393 A JP 53029393A JP 2939378 A JP2939378 A JP 2939378A JP S6029410 B2 JPS6029410 B2 JP S6029410B2
Authority
JP
Japan
Prior art keywords
main memory
mode
signal
memory access
output
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.)
Expired
Application number
JP53029393A
Other languages
Japanese (ja)
Other versions
JPS54122054A (en
Inventor
幸郎 白男川
俊雄 岩尾
恵三 青柳
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.)
Toshiba Corp
Original Assignee
Tokyo Shibaura Electric 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 Tokyo Shibaura Electric Co Ltd filed Critical Tokyo Shibaura Electric Co Ltd
Priority to JP53029393A priority Critical patent/JPS6029410B2/en
Publication of JPS54122054A publication Critical patent/JPS54122054A/en
Publication of JPS6029410B2 publication Critical patent/JPS6029410B2/en
Expired legal-status Critical Current

Links

Landscapes

  • Storage Device Security (AREA)
  • Executing Machine-Instructions (AREA)

Description

【発明の詳細な説明】 この発明はマイクロプログラム制御によるブランチァン
ドリンク機能およびリターン機能をもつ情報処理装置の
マイクロプログラム制御方式に関し、その目的とすると
ころは、主メモリ保護時に於けるマイクロプログラムリ
ターンの制御処理能力を向上せしめて、主メモリへのア
クセスと主メモリ保護チェックサブルーチンからメイン
プログラムへのりターンを容易にしかも迅速に行なえる
ようにしたマイクロプログラム制御方式を提供すること
にある。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a microprogram control method for an information processing device having a branch link function and a return function by microprogram control, and its purpose is to control microprogram return when main memory is protected. An object of the present invention is to provide a microprogram control system which improves control processing ability and allows easy and quick access to main memory and a return from a main memory protection check subroutine to a main program.

ここで上記ブランチアンドリンク(以下BALと呼称す
る)機能とは、メインプログラムからサフルーチンへ移
る際に、メインプログラムの戻り番地を一時待避せしめ
た後、サブルーチンの先頭アドレスをマイクロプログラ
ム記憶装置(以下ROMと呼称する)のアドレス指定を
行なうROMアドレスレジス外こ入力してサフルーチン
の実行に入る機能を言い、またリターン(以下RTNと
呼称する)機能とは、上記BAL機能に付随するもので
、サブルーチンからメインプログラムに戻る際、上記燈
ALで待避させておいたメインプログラムの戻り番地を
ROMアドレスレジスタに入力し、メインプログラムの
実行に戻る機能を旨つo以下図面を参照してこの発明の
一実施例を説明する。
Here, the branch and link (hereinafter referred to as BAL) function is to temporarily save the return address of the main program when moving from the main program to the subroutine, and then transfer the start address of the subroutine to the microprogram storage device (hereinafter referred to as ROM). The return (hereinafter referred to as RTN) function is associated with the above BAL function, and is a function that enters outside the ROM address register to specify the address of the subroutine. When returning to the main program, the return address of the main program saved by the above-mentioned light AL is input into the ROM address register, and the function of returning to execution of the main program is implemented. Explain an example.

図に於いて、101は信号Sを受けることによって主メ
モリ保護チェックサブルーチンの先頭アドレスを発生す
るアドレス発生回路、102は信号S,,Soによるシ
ーケンス指定に基づいてマイクロプログラムのシーケン
ス制御を行なうマイクロプログラムシーケンサ(以下ム
ーpSEQと呼称する)、103はこの山一pSEQI
02に設けられたROMアドレスレジスタ(以下RAR
と呼称する)、104はこのRARI03のアドレス指
定により語出し制御されるマイクロプログラム格納用の
ROM,105はこのROMI04より読出されたマイ
クロ命令を一時記槍するROMデータレジスタ(以下R
DRと呼称する)、106はこのRDRI05に貯えら
れたマイクロ命令を解鈍するデコーダ、107はプログ
ラムステイタスワード(PSW)の第7ビット(PS0
7)につて指定されるメモリ保護モード情報(“1”)
を貯える第1のフリップフロップ(以下第1のフラグと
呼称する)、108はこの第1のフラグ107のセット
出力“1”と上記デコーダ176より得られるメモリラ
イト信号(MW)とが入力された際に信号S(‘‘1”
)を出力するアンドゲート、109はこのアンドゲート
108より得られる信号Sまたは上記デコーダー 06
より得られるBAL信号が入力されることにつてBAL
モードの条件信号M,を出力するオアゲート、110は
テスト信号(TEST)と上記デコーダー 06より得
られるブランチ(BR)信号とが入力された際にBRモ
ードの条件信号M2を出力するアンドゲート、1 1
1は上記信号M,,M2と上記デコーダ106より得ら
れるRTN信号とを受けて、これら入力信号に基づき、
4種のマイクロプログラムシーケンスモードのうちの1
種を選択指定する信号S,,Soを出力し、これをムー
pSEQI02に供給するシーケンスモード制御回路で
あり、表−1に示す如く、S,,So=“0”でROM
アドレスをインクリメント(十1)するためのムーPC
+1指示を行ない、S,=“0”,So=“1”で現在
アドレスを十1したアドレスを待避してブランチするた
めのBAL指示を行ない、S,=“1”,So=“0”
で待機したアドレスをRARI 03に移すためのRT
N指示を行ない、S,,S2=“1”で外部より与えら
れたアドレスをRARI03にセットするためのBR指
示を行なうものである。
In the figure, 101 is an address generation circuit that generates the start address of the main memory protection check subroutine by receiving the signal S, and 102 is a microprogram that performs sequence control of the microprogram based on the sequence designation by the signals S, , So. Sequencer (hereinafter referred to as pSEQ), 103 is this Yamaichi pSEQI
ROM address register (hereinafter referred to as RAR) provided in 02
104 is a ROM for storing a microprogram that is controlled by the addressing of this RARI03, and 105 is a ROM data register (hereinafter referred to as R
106 is a decoder for decoding the microinstructions stored in RDRI05, 107 is the 7th bit of the program status word (PSW) (PS0
7) Memory protection mode information (“1”) specified for
A first flip-flop (hereinafter referred to as the first flag) 108 that stores the set output "1" of the first flag 107 and the memory write signal (MW) obtained from the decoder 176 are input. When the signal S (''1''
), 109 is the signal S obtained from this AND gate 108 or the above decoder 06
BAL
110 is an AND gate that outputs a BR mode condition signal M2 when the test signal (TEST) and the branch (BR) signal obtained from the decoder 06 are input; 1
1 receives the signals M, , M2 and the RTN signal obtained from the decoder 106, and based on these input signals,
One of four microprogram sequence modes
This is a sequence mode control circuit that outputs a signal S,,So for selecting and specifying a species and supplies it to moopSEQI02.As shown in Table 1, when S,,So="0", the ROM is
Mu PC for incrementing the address (11)
+1 instruction is executed, S,="0", So="1", BAL instruction is executed to save and branch the current address by 11, S,="1", So="0"
RT to move the address waiting in RARI 03 to RARI 03
It issues an N instruction and issues a BR instruction to set an externally given address in RARI03 with S, , S2="1".

表−1 また、112は主メモリ保護チェックサブルーチンの実
行によって許可された主メモリアクセス要求を保持し指
標する第2のフリップフロップ(以下第2のフラグと呼
称する)、113はこの第2のフラグ112のセット出
力(主メモリアクセス要求)を上記デコーダー06より
得られるRTN信号に基づいて出力制御するアンドゲー
ト、114は上記アンドゲート108より信号Sが出力
されない際すなわちアンドゲート108の出力が“0”
の際に上記デコーダ106より得られるメモリアクセス
の開始を指示するスタート信号(START)を出力制
御するアンドゲート、115は上記アンドゲート113
またはアンドゲート114の“1”出力を受けることに
よってメモリアクセス信号AM(“1”)を出力するオ
アゲート、1 1 6はBAL処理に先立ち、デコーダ
ー 06より得られる主メモリに対する書込み/議出し
信号、データサイズ(フルワード、ハーフワード、バイ
ト)指定信号等各種の主メモリサイクルモード情報を貯
える主メモリサイクルモード保持レジスタ(以下MOM
Rと呼称する)、1 1 7は上記オアゲート115よ
り得られるメモリ、アクセス信号AMに基づいて上記M
CMRI 1 6の内容に従う主メモリアクセス制御を
行なう制御を行なうメモリコントロール回路である。
Table 1 Also, 112 is a second flip-flop (hereinafter referred to as a second flag) that holds and indexes the main memory access request permitted by the execution of the main memory protection check subroutine, and 113 is this second flag. An AND gate 114 controls the output of the set output (main memory access request) of 112 based on the RTN signal obtained from the decoder 06, and 114 is an AND gate that outputs "0" when the signal S is not output from the AND gate 108. ”
115 is the AND gate 113 which controls the output of a start signal (START) which is obtained from the decoder 106 and instructs the start of memory access.
or an OR gate that outputs a memory access signal AM ("1") by receiving the "1" output of the AND gate 114; 1 1 6 is a write/proceed signal for the main memory obtained from the decoder 06 prior to BAL processing; Main memory cycle mode holding register (hereinafter referred to as MOM) that stores various main memory cycle mode information such as data size (full word, half word, byte) designation signal
R), 1 1 7 is a memory obtained from the OR gate 115, and the M
This is a memory control circuit that performs main memory access control according to the contents of CMRI16.

ここでBAL動作を説明すると、RARI 03のアド
レス指定に基づくROMI04の議出し出力(マイクロ
命令)がRDRI05に貯えられることにより、このR
DRI05の内容はデータラインL,Lに出力される。
To explain the BAL operation here, the ROMI04's output (microinstruction) based on the addressing of the RARI03 is stored in the RDRI05.
The contents of DRI05 are output to data lines L and L.

データラインL,を介したデータはデコーダ106に送
られて解読され、データ内容に基づく各種の信号が出力
される。ここでデコーダ1 06よりBAL信号が出力
されるとこのBAL信号はオアゲート1 09を介しB
ALモードの条件信号M,としてシーケンスモード制御
回路111に入力される。これによってシーケンスモー
ド制御回路1 1 1からはBALシーケンスモードを
示す信号S,,So(S,=“0”,So=“1”)が
出力され、ムーpSEQI02をBALモードーこ設定
する。一方、データラインL2を介したデータ(サブル
ーチンの先頭アドレス)はデータライン−を経て山一p
SEQI02に送られ、RARI03に入力される。上
託した動作が通常のBAL動作である。また主メモリ保
護モード下に於いては次のようなBAL動作が行なわれ
る。主メモリ保護モード時に於いては第1のフラグ10
7がセット状態となって主メモリ保護モードを指標して
おり、この際デコーダ106よりメモリライト信号(M
W)が出力されると、アンドゲート108から“1”レ
ベルの信号Sが出力され、この信号Sがアドレス発生回
路101に送られるともにオアゲート109に送られる
。これによってオアゲート1 09からは上記した通常
にBALモード時と同機のBALモードの条件信号M,
が出力され、この信号Moによりシーケンスモード制御
回路1 1 1からはBALシーケンスモードを示す信
号S,,So(S,=“0”,So=“1”)が出力さ
れて仏−PSEQI02がBALモードとなり、更に上
記信号Sに基づきアドレス発生回路101が起動されて
このアドレス発生回路101より出力される、主メモリ
保護チェックサブルーチンの先頭アドレスがムーPSE
QI02に送られRARI03入力される。一方、MC
MRI 1 6にはBALモードの実行に際し、デコー
ダ106からのメモリライト信号(MW)出力時に於い
て、主メモリに対する書込み/議出し信号、データサイ
ズ指定信号等各種の主メモリサイクルモード情報が貯え
られる。また上記主メモリ保護モード時に於けるBAL
制御時に於いてはアンドゲート1 1 4が閉じられる
ため、デコーダー06よりスタート信号(START)
が出力されても、これに基づく主メモリアクセス信号A
Mは出力されず、この際の書込みモードは上託したMC
MRI 1 6に保持される。このように主メモリ保護
モード下に於いて書込み指示があると、書込みを指示す
るマイクロ命令の実行は禁止され、サブルーチンジャン
プのマイクロ命令すなわちBAL命令に変えられる。次
にこの発明に係るBAL動作について説明を行なう。先
ず通常のRTN動作を説明すると、RDRI05の内容
に基づくデコーダ106の解読により、当該デコーダ1
06よりRTN信号が出力されると、この信号がアンド
ゲート113に送られるとともにシーケンスモード制御
回路111に送られる。これによってシーケンスモード
制御回路111からはRTNシーケンスモードを示す信
号S,,So(S,=“1’’,So=“0”)が出力
され、ムーPSEQI02がRTNモードとなって、上
記BALモード時に待避しておいたRCMアドレス(メ
インプログラム戻り番地)をRARI03に入力し、メ
インプログラムの処理に入る。通常のRTN動作はこれ
で終了するが、上記主メモリ保護モード下に於けるBA
Lによる主メモリ保護チェックサブルーチンのチェック
を経たメモリアクセス要求が第2のプラグ112にセッ
トされ、当該フラグ112がセット状態となっている際
は、このフラグ112のセット出力ぐ1”)がデコーダ
106より得られるRTN信号に基づいて出力制御され
、オアゲート115を介しメモリアクセス信号(AM)
としてメモリコントロール回路117に入力される。こ
れによってメモリコントロール回路117では、上記主
メモリ保護チェックサブルーチンの実行時にMCMRI
16に貯えられた主メモリサイクルモード‘こ従ってメ
モリアクセス制御を行なう。すなわち第2のフラグ11
2がセット状態となってメモリアクセス要求を指標して
いる際は主メモリ保護チェックサブルーチンからのメイ
ンプログラムへのRTN動作に伴って主メモリのアクセ
ス制御が行なわれる。以上詳記したようにこの発明によ
れば、メモリ保護チェックサブルーチンからメインプロ
グラムへのRTN動作と主メモリアクセス動作とが1回
のマイクロ命令で実行でき、かっこの際の主メモリアク
セスの実行がフラグによりコントロールできるため、マ
イクロプログラムに於ける制御処理能力が向上され、か
つ、プ。
The data via the data line L is sent to the decoder 106 and decoded, and various signals based on the data contents are output. Here, when the BAL signal is output from the decoder 106, this BAL signal is passed through the OR gate 109 to the BAL signal.
It is input to the sequence mode control circuit 111 as the AL mode condition signal M. As a result, the sequence mode control circuit 1 1 1 outputs a signal S, , So (S, = "0", So = "1") indicating the BAL sequence mode, and sets moopSEQI02 to the BAL mode. On the other hand, the data (starting address of the subroutine) via data line L2 is transferred to Yamaichi p via data line -.
It is sent to SEQI02 and input to RARI03. The entrusted operation is a normal BAL operation. Further, in the main memory protection mode, the following BAL operation is performed. In main memory protection mode, the first flag is 10.
7 is set to indicate the main memory protection mode, and at this time, the memory write signal (M
When W) is output, a signal S of "1" level is output from the AND gate 108, and this signal S is sent to the address generation circuit 101 and also to the OR gate 109. As a result, OR Gate 109 sends the above-mentioned normal BAL mode condition signal M,
In response to this signal Mo, the sequence mode control circuit 111 outputs a signal S,, So (S, = "0", So = "1") indicating the BAL sequence mode, and the PSEQI02 becomes BAL. In addition, the address generation circuit 101 is activated based on the signal S, and the start address of the main memory protection check subroutine output from the address generation circuit 101 is MU PSE.
It is sent to QI02 and input to RARI03. On the other hand, M.C.
When executing the BAL mode, the MRI 16 stores various main memory cycle mode information such as a write/proceed signal for the main memory and a data size designation signal when the memory write signal (MW) is output from the decoder 106. . In addition, BAL in the above main memory protection mode
During control, AND gates 1 1 4 are closed, so the start signal (START) is sent from decoder 06.
Even if the main memory access signal A based on this is output
M is not output, and the write mode at this time is the MC that has been entrusted.
Retained on MRI 16. In this manner, when a write instruction is given under the main memory protection mode, execution of the microinstruction instructing the write is prohibited, and the microinstruction is changed to a subroutine jump microinstruction, that is, a BAL instruction. Next, the BAL operation according to the present invention will be explained. First, to explain the normal RTN operation, the decoder 106 decodes the decoder 106 based on the contents of RDRI05.
When the RTN signal is output from 06, this signal is sent to the AND gate 113 and also to the sequence mode control circuit 111. As a result, the sequence mode control circuit 111 outputs a signal S, , So (S, = "1'', So = "0") indicating the RTN sequence mode, and the PSEQI02 becomes the RTN mode, and the BAL mode is set to the above-mentioned BAL mode. The RCM address (main program return address) saved at the time is input to RARI03 and main program processing begins.Normal RTN operation ends here, but BA under the main memory protection mode mentioned above
When a memory access request that has been checked by the main memory protection check subroutine by L is set in the second plug 112 and the flag 112 is in the set state, the set output of this flag 112 is sent to the decoder 106. The output is controlled based on the RTN signal obtained from the memory access signal (AM) via the OR gate 115.
The signal is input to the memory control circuit 117 as a signal. As a result, the memory control circuit 117 uses the MCMRI when executing the main memory protection check subroutine.
The main memory cycle mode stored in 16 thus controls memory access. That is, the second flag 11
When 2 is set and indicates a memory access request, main memory access control is performed in accordance with the RTN operation from the main memory protection check subroutine to the main program. As detailed above, according to the present invention, the RTN operation from the memory protection check subroutine to the main program and the main memory access operation can be executed with one microinstruction, and execution of main memory access in parentheses is flagged. This improves the control processing ability in microprograms, and also improves the processing power of microprograms.

グラム処理時間が短縮できる。Gram processing time can be shortened.

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

図はこの発明の一実施例を示すブロック図である。 101・…・・アドレス発生回路、102…・・・マイ
クロプログラムシーケンサ(ムーPSEQ)、1 03
・・・リ・ROMアドレスレジスタ(RAR)、104
....,.ROM、1 0 5.・・・・・ROMデ
ータレジスタ(RDR)、106・・・・・・デコーダ
、107,112……フラグ、108,110,113
,114……アンドゲート、109,115……オアゲ
ート、116・・・・・・主メモリサイクルモード保持
レジスタ(MCMR)、117……メモリコントロール
回路。
The figure is a block diagram showing one embodiment of the present invention. 101... Address generation circuit, 102... Micro program sequencer (MUPSEQ), 1 03
... Re-ROM address register (RAR), 104
.. .. .. .. 、. ROM, 1 0 5. ...ROM data register (RDR), 106 ... Decoder, 107, 112 ... Flag, 108, 110, 113
, 114...AND gate, 109, 115...OR gate, 116...Main memory cycle mode holding register (MCMR), 117...Memory control circuit.

Claims (1)

【特許請求の範囲】[Claims] 1 ブランチアンドリンクモードとリターンモードとを
含む複数種のマイクロプログラムシーケンスモードから
任意のモードを選択的に指定するモード制御回路、およ
びこのモード制御回路の指定に基づくプログラムシーケ
ンス処理を実行せしめるマイクロプログラムシーケンサ
と、主メモリアクセス要求を指標するフラグと、このフ
ラグの主メモリアクセス要求をマイクロ命令の解読結果
に基づくリターン信号により出力制御せしめる第1のゲ
ート回路と、この第1のゲート回路の出力信号またはマ
イクロ命令の解読結果に基づくスタート信号を受けるこ
とによつて主メモリアクセス要求信号を得る第2のゲー
ト回路と、ブランチアンドリンク処理の実行に際し主メ
モリサイクルのモードを保持するメモリサイクルモード
保持回路とを備え、ブランチアンドリンク処理の実行後
に於けるリターン命令出力時に、上記フラグの主メモリ
アクセス要求を許可して、この主メモリアクセス要求に
より上記メモリサイクルモード保持回路の内容に従う主
メモリアクセス制御を行なうことを特徴としたマイクロ
プログラム制御方式。
1. A mode control circuit that selectively specifies any mode from multiple types of microprogram sequence modes including branch and link mode and return mode, and a microprogram sequencer that executes program sequence processing based on the specifications of this mode control circuit. a flag indicating a main memory access request; a first gate circuit for controlling the output of the main memory access request of the flag by a return signal based on the result of decoding the microinstruction; and an output signal of the first gate circuit or a second gate circuit that obtains a main memory access request signal by receiving a start signal based on a result of decoding a microinstruction; and a memory cycle mode holding circuit that maintains a main memory cycle mode when executing branch and link processing. When a return command is output after execution of branch and link processing, the main memory access request of the above flag is permitted, and main memory access control is performed according to the contents of the memory cycle mode holding circuit based on this main memory access request. A microprogram control method characterized by:
JP53029393A 1978-03-15 1978-03-15 Microprogram control method Expired JPS6029410B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP53029393A JPS6029410B2 (en) 1978-03-15 1978-03-15 Microprogram control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP53029393A JPS6029410B2 (en) 1978-03-15 1978-03-15 Microprogram control method

Publications (2)

Publication Number Publication Date
JPS54122054A JPS54122054A (en) 1979-09-21
JPS6029410B2 true JPS6029410B2 (en) 1985-07-10

Family

ID=12274886

Family Applications (1)

Application Number Title Priority Date Filing Date
JP53029393A Expired JPS6029410B2 (en) 1978-03-15 1978-03-15 Microprogram control method

Country Status (1)

Country Link
JP (1) JPS6029410B2 (en)

Also Published As

Publication number Publication date
JPS54122054A (en) 1979-09-21

Similar Documents

Publication Publication Date Title
US4672534A (en) Integrated circuit device incorporating a data processing unit and a ROM storing applications program therein
EP0569969A1 (en) Microcomputer having instruction memory storing instructions for reading out internal conditions
JPS61170828A (en) microprogram controller
EP0361497B1 (en) Program/data memory employed in microcomputer system
JPH03233630A (en) Information processor
US3480917A (en) Arrangement for transferring between program sequences in a data processor
AU714669B2 (en) Peripheral device control
JPS6029410B2 (en) Microprogram control method
JP2004013289A (en) On-chip debugging method of microcontroller
JPS6029411B2 (en) Microprogram control method
JP2859048B2 (en) Microcomputer
JPH0256644A (en) Debug device for microprocessor
JPS6218933B2 (en)
JPS62248043A (en) Memory switching circuit for fetching microcomputer instruction
JPH0259829A (en) Microcomputer
JPH05100901A (en) Microcomputer
JPS6218934B2 (en)
JPS6232500B2 (en)
JPS6215645A (en) Central processing unit
JPH0445862B2 (en)
JPH03164945A (en) Data processor
JPH01258045A (en) In-circuit emulator
JPS619733A (en) Test device
JPS5952348A (en) Microprogram controller
JPH049344B2 (en)