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
JPS6029411B2 - Microprogram control method - Google Patents
[go: Go Back, main page]

JPS6029411B2 - Microprogram control method - Google Patents

Microprogram control method

Info

Publication number
JPS6029411B2
JPS6029411B2 JP53029394A JP2939478A JPS6029411B2 JP S6029411 B2 JPS6029411 B2 JP S6029411B2 JP 53029394 A JP53029394 A JP 53029394A JP 2939478 A JP2939478 A JP 2939478A JP S6029411 B2 JPS6029411 B2 JP S6029411B2
Authority
JP
Japan
Prior art keywords
mode
main memory
signal
branch
link
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
JP53029394A
Other languages
Japanese (ja)
Other versions
JPS54122055A (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 JP53029394A priority Critical patent/JPS6029411B2/en
Publication of JPS54122055A publication Critical patent/JPS54122055A/en
Publication of JPS6029411B2 publication Critical patent/JPS6029411B2/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 and link function and a return function by microprogram control. By smoothing the control and improving processing capacity,
It is an object of the present invention to provide a microprogram control method that allows easy and quick execution of write prohibition to main memory and branching to a main memory protection check subroutine.

ここで上記ブランチアンドリンク(以下BALと呼称す
る)機能は、メインプログラムからサブルーチンへ移る
際に、メインプログラムの戻り番地を一時待避せしめた
後、サブルーチンの先頭アドレスをマイクロプログラム
記憶装置(以下ROMと呼称する)のアドレス指定を行
なうROMアドレスレジスタに入力してサブルーチンの
実行に入る機能を言い、またリターン(以下RTトJと
呼称する)機能は、上記BAL機能に付随するもので、
サブルーチンからメインプログラムに反る際、上記BA
Lで待機させておいたメインプログラムの戻り番地をR
OMアドレスレジスタに入力し、メインプログラムの実
行に戻る機能を言う。
Here, the above branch and link (hereinafter referred to as BAL) function, when moving from the main program to a subroutine, temporarily saves the return address of the main program and then stores the start address of the subroutine in a microprogram storage device (hereinafter referred to as ROM). The return (hereinafter referred to as RT) function is ancillary to the above BAL function.
When changing from the subroutine to the main program, the above BA
Set the return address of the main program that was kept waiting at L to R.
A function that inputs data to the OM address register and returns to main program execution.

以下図面を参照してこの発明の一実施例を説明する。図
に於いて、101は信号Sを受けることによって主メモ
リ保護チェックサブルーチンの先頭アドレスを発生する
アドレス発生回路、102は信号S,,Soによるシー
ケンス指定に基づいてマイクロプログラムのシーケンス
制御を行なうマイクロプログラムシーケンサ(以下r‐
PSEQと呼称する)、103はこのムーPSEQI0
2に設けられたROMアドレスレジスタ(以下RARと
呼称する)、104はこのRARI03のアドレス指定
により議出し制御されるマイクロプログラム格納用のR
OM,105はこのROMI04より説出されたマイク
ロ命令を一時記憶するROMデータレジスタ(以下RD
Rと呼称する)、106はこのRDRI05に貯えられ
たマイクロ命令を解読するデコーダ、107はプログラ
ムステイタスワード(PSW)の第7ビット(PS07
)によって指定されるメモリ保護モード情報(“1”)
を貯える第1のフリップフロツプ(以下第1のフラグと
呼称する)、108はこの第1のフラグ107のセット
出力“1”と上記デコーダ106より得られるメモリラ
イト信号(MW)とが入力された際に信号S(‘‘1”
)を出力するアンドゲート、109はこのアンドゲート
108より得られる信号Sまたは上記デコーダ1 06
より得られるBAL信号が入力されることによってBA
Lモードの条件信号M,を出力するオアゲート、1 1
0はテスト信号(TEST)と上記デコーダー 06よ
り得られるブランチ(BR)信号とが入力された際にB
Rモードの条件信号M2を出力するアンドゲード、1
1 1は上記信号M,,M2と上記デコーダ106より
得られるRTM信号とを受けて、これら入力信号に基づ
き、4種のマイクロプログラムシーケンスモードのうち
の1種を選択指定する信号S,,Soを出力し、これを
ムーPSEQI02に供給するシーケンスモード制御回
路であり、表一1に示す如く、S,,S。=“0”でR
OMアドレスをインクリメント(十1)するための仏−
PC+1指示を行ない、S,=“0”,So=“1”で
現在アドレスを十1したアドレスを待機してブランチす
るためのBAL指示を行ない、S,=“1”,So〕“
0”で待機したアドレスをRARI 03に移すための
RTN指示を行ない、S,,So=“1”で外部より与
えられたアドレスをRARI03にセットするためのB
R指示を行なうものである。表一I また、112は王〆モリ保護チェックサブル−チンの実
行によって許可された主メモリアクセス要求を保持し指
標する第2のフリツプフロップ(以下第2のフラグと呼
称する)、113はこの第2のフラグ112のセット出
力(主メモリアクセス要求)を上記デコーダ106より
得られるRTN信号に基づいて出力制御するアンドゲ−
ト、114は上記アンドゲード108より信号Sが出力
されない際すなわちアソドゲート108の出力が“0”
の際に上記デコーダ106より得られるメモリアクセス
の開始を指示するスタート信号(START)を出力制
御するアンドゲート、115は上記アンドゲート113
またはアンドゲート114の“1”出力を受けることに
よってメモリアクセス信号AM(“1”)を出力するオ
アゲート、1 1 6はBAL処理に先立ち、ヂコーダ
1 06より得られる主メモリに対する書込み/議出し
信号、データサイズ(フルワード、ハーフワ−ド、バイ
ト)指定信号等各種の主メモリサイクルモード情報を貯
える主メモリサイクルモード保持レジスタ(以下MOM
Rと呼称する)、1 17は上記オアゲート115より
得られるメモリアクセス信号AMに基づいて上記MCM
RI 16の内容に従う主メモリアクセス制御を行なう
メモリコントロール回路である。
An embodiment of the present invention will be described below with reference to the drawings. 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 r-
PSEQ), 103 is this mu PSEQI0
A ROM address register (hereinafter referred to as RAR) provided in RARI03, 104 is an R for storing a microprogram that is set up and controlled by the addressing of this RARI03.
OM, 105 is a ROM data register (hereinafter referred to as RD) that temporarily stores the microinstructions issued by this ROMI04.
106 is a decoder that decodes the microinstruction stored in this RDRI05, 107 is the 7th bit of the program status word (PSW) (PS07
) Memory protection mode information (“1”) specified by
A first flip-flop (hereinafter referred to as the first flag) 108 that stores the first flag 107 outputs a signal when the set output "1" of the first flag 107 and the memory write signal (MW) obtained from the decoder 106 are input. The signal S (''1''
), and 109 is the signal S obtained from this AND gate 108 or the decoder 106 described above.
By inputting the BAL signal obtained from
OR gate outputting L mode condition signal M, 1 1
0 is B when the test signal (TEST) and the branch (BR) signal obtained from the above decoder 06 are input.
AND gate that outputs R mode condition signal M2, 1
1 1 receives the signals M,, M2 and the RTM signal obtained from the decoder 106, and selects and designates one of the four microprogram sequence modes based on these input signals S,, So. This is a sequence mode control circuit that outputs S,,S, and supplies it to PSEQI02, as shown in Table 1. = “0” and R
French to increment (11) the OM address
PC+1 instruction is given, S,="0", So="1", and BAL instruction is given to wait and branch at the address that is 11 times higher than the current address, S,="1", So]"
0" to issue an RTN instruction to move the standby address to RARI 03, and set B to set the externally given address to RARI 03 with S,,So="1".
This is to issue an R instruction. Table 1I Also, 112 is a second flip-flop (hereinafter referred to as a second flag) that holds and indicates a main memory access request that has been permitted by the execution of the memory protection check subroutine; The AND game controls the set output of the flag 112 (main memory access request) based on the RTN signal obtained from the decoder 106.
G, 114 is set to "0" when the signal S is not output from the AND gate 108, that is, the output of the AND gate 108 is "0".
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; 116 is a write/proceed signal for the main memory obtained from the decoder 106 prior to BAL processing; Main memory cycle mode holding register (hereinafter referred to as MOM) stores various main memory cycle mode information such as data size (full word, half word, byte) designation signal.
R), 1 17 is the MCM based on the memory access signal AM obtained from the OR gate 115.
This is a memory control circuit that performs main memory access control according to the contents of RI 16.

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

データラインL,を介したデコーダ106に送られて解
読され、データ内容に基づく各種の信号が出力される。
ここでデコーダ1 06よりBAL信号が出力されると
このBAL信号はオアゲート1 09を介しBALモー
ドの条件信号M,としてシーケンスモード制御回路11
1に入力される。これによってシーケンスモード制御回
路1 1 1からはBALシーケンスモードを示す信号
S,,So(S,=“0”,So=“1”)が出力され
、ムーPSEQI 02をBALモードに設定する。一
方、データラインL2を介したデータ(サフルーチンの
先頭アドレス5はデータラインL3を経て仏−PSEQ
I02に送られ、PARI03に入力される。上記した
動作が通常のBAL動作である。また主メモリ保護モー
ド下に於いては次のようなBAL動作が行われる。主メ
モリ保護モード時に於いては第1のフラグ107がセッ
ト状態となって主メモリ保護モードを指標しており、こ
の際デコーダ106よりメモリライト信号(MW)が出
力されると、アンドゲート103からは“1”レベルの
信号Sが出力され、この信号Sがアドレス発生回路10
1に送られるとともにオアゲート109に送られる。
The data is sent to the decoder 106 via the data line L, where it is 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 sequence mode control circuit 11 as the BAL mode condition signal M.
1 is input. 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 the mu PSEQI 02 to the BAL mode. On the other hand, the data via the data line L2 (the first address 5 of the subroutine is transferred to the French-PSEQ via the data line L3)
It is sent to I02 and input to PARI03. The above operation is a normal BAL operation. Further, in the main memory protection mode, the following BAL operation is performed. In the main memory protection mode, the first flag 107 is set to indicate the main memory protection mode. At this time, when the memory write signal (MW) is output from the decoder 106, the AND gate 103 outputs a signal S of “1” level, and this signal S is output to the address generation circuit 10.
1 and is also sent to the OR gate 109.

これによってオアゲート1 09からは上託した通常の
BALモード時と同様弐BALモードの条件信号M,が
出力され、この信号M,によりシーケンスモード制御回
路111からはBALシーケンスモードを示す信号S,
,So(S,=“0”,So=“1”)が出力されてム
ーPSEQI02がBALモードとなり、更に上記信号
Sに基づきアドレス発生回路101が起動されてこのア
ドレス発生回路101より出力される主メモリ保護チェ
ックサブルーチンの先頭アドレスが山一PSEQI02
に送られRARI03に入力される。一方、MCRI1
6には、BALモードの実行に際し、デコーダー06か
らのメモリライト信号(MW)出力時に於いて、主メモ
リに対する書込み/読出し信号、データサイズ指定信号
等各種の主メモリサイクルモード情報が貯えられる。ま
た上記主メモリ保護モード時に於けるBAL制御時に於
いてはアンドゲート114が閉じられるため、デコーダ
106よりスタート信号(START)が出力されても
、これに基づくメモリアクセル信号AM‘ま出力されず
、この際の書込みモードは上記したMOMRI 1 6
に保持される。
As a result, the OR gate 109 outputs the second BAL mode condition signal M, as in the normal BAL mode, and this signal M causes the sequence mode control circuit 111 to output the signal S, indicating the BAL sequence mode.
, So (S, = "0", So = "1") is output, and MuPSEQI02 enters the BAL mode.Furthermore, the address generation circuit 101 is activated based on the above signal S, and the address generation circuit 101 outputs the signal. The start address of the main memory protection check subroutine is Yamaichi PSEQI02
and input to RARI03. On the other hand, MCRI1
6 stores various main memory cycle mode information such as a write/read signal for the main memory and a data size designation signal when a memory write signal (MW) is output from the decoder 06 when executing the BAL mode. Furthermore, since the AND gate 114 is closed during BAL control in the main memory protection mode, even if the start signal (START) is output from the decoder 106, the memory accelerator signal AM' based on this is not output. The write mode at this time is the MOMRI 1 6 mentioned above.
is maintained.

このように主メモリ保護モード下に於いて書込み指示が
あると、書込みを指示するマイクロ命令の実行は禁止さ
れ、サブルーチンジャンプのマイクロ命令すなわちBA
L命令に変えられる。上記したようにこの発明によれば
、主メモリ保護モード下に於いて主メモリに対し書込み
指示がなされると、主メモリへの書込みを禁止して、主
メモリ保護チェックサブルーチンにジャンプする処理が
1回のマイクロ命令で行なえ、これによりマイクロプロ
グラムの処理が容易化されるとともにプログラム処理時
間が短縮できる。
In this way, when a write instruction is issued under the main memory protection mode, execution of the microinstruction instructing the write is prohibited, and the subroutine jump microinstruction, that is, BA
Can be changed to L command. As described above, according to the present invention, when a write instruction is given to the main memory under the main memory protection mode, the process of prohibiting writing to the main memory and jumping to the main memory protection check subroutine is performed in the first step. This can be done with a single microinstruction, which simplifies microprogram processing and shortens program processing time.

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

図はこの発明の一実施例を示すブロック図である。 101…・・・アドレス発生回路、102・・・・・・
マイクロプログラムシーケンス(ムーPSEQ)、10
3・・・・.・ROMアドレスレジスタ(RAR)、1
04・・・・・・ROM、1 0 5・・・・・・RO
Mデータレジスタ(RDR)、106・・・・・・デコ
ーダ、107,1 12……フラグ、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...
Microprogram sequence (MuPSEQ), 10
3...・ROM address register (RAR), 1
04...ROM, 1 0 5...RO
M data register (RDR), 106... Decoder, 107, 1 12... 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のゲート回路の出力信号に基
づいて主メモリ保護サブルーチンの先頭アドレスを出力
するアドレス発生回路と、ブランチアンドリンク処理の
実行に際し主メモリサイクルのモードを保持するメモリ
サイクルモード保持回路とを備え、主メモリ保護モード
下に於いて主メモリ書込み要求が生じた際にマイクロプ
ログラムシーケンスモードをブランチアンドリンクモー
ドにして主メモリ保護サブルーチンを実行制御せしめる
ことを特徴としたマイクロプログラム制御方式。
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 the main memory protection mode; and a first gate circuit configured to output and control the main memory write request signal based on the result of decoding the microinstruction when the flag indicates the main memory protection mode. A second gate circuit configured to set the mode control circuit to a branch and link mode designation state in response to a branch and link designation signal based on the output signal of the first gate circuit or the result of decoding the microinstruction.
a gate circuit, an address generation circuit that outputs the start address of the main memory protection subroutine based on the output signal of the first gate circuit, and a memory cycle mode that maintains the mode of the main memory cycle when executing branch and link processing. and a holding circuit, and when a main memory write request occurs under main memory protection mode, the microprogram sequence mode is set to branch-and-link mode, and the execution of the main memory protection subroutine is controlled. method.
JP53029394A 1978-03-15 1978-03-15 Microprogram control method Expired JPS6029411B2 (en)

Priority Applications (1)

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

Applications Claiming Priority (1)

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

Publications (2)

Publication Number Publication Date
JPS54122055A JPS54122055A (en) 1979-09-21
JPS6029411B2 true JPS6029411B2 (en) 1985-07-10

Family

ID=12274915

Family Applications (1)

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

Country Status (1)

Country Link
JP (1) JPS6029411B2 (en)

Also Published As

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

Similar Documents

Publication Publication Date Title
JPS5914840B2 (en) Pattern generator for semiconductor memory testing
EP0062658A4 (en) Stack for a data processor.
US5247624A (en) Microprogram controller including leading microinstruction from a generator executed while succeeding microinstruction from memory is read out
KR920004279B1 (en) Microprocessor with Pointer Register
JPH03233630A (en) Information processor
JPS6029411B2 (en) Microprogram control method
JPS6029410B2 (en) Microprogram control method
KR950006585B1 (en) Micro program control apparatus and control method thereof
JPS6218932B2 (en)
JP2731618B2 (en) emulator
JPS6215645A (en) Central processing unit
JPH09274612A (en) Vector processing equipment
JPS62245439A (en) Symbolic processing system and method
JPH0259829A (en) Microcomputer
JPS6232500B2 (en)
JPH0575985B2 (en)
JPS6218934B2 (en)
JPS6129022B2 (en)
JPS619733A (en) Test device
JPS58213353A (en) Forced loop circuit
JPS6047616B2 (en) information processing equipment
JPS5849897B2 (en) program control device
JPS63153637A (en) Data processor
JPS60201441A (en) Microprogram control device
JPH07191879A (en) Microprocessor having debugging instruction execution function and debugging method