JP2637070B2 - Micro instruction start address generation method - Google Patents

Micro instruction start address generation method

Info

Publication number
JP2637070B2
JP2637070B2 JP60255912A JP25591285A JP2637070B2 JP 2637070 B2 JP2637070 B2 JP 2637070B2 JP 60255912 A JP60255912 A JP 60255912A JP 25591285 A JP25591285 A JP 25591285A JP 2637070 B2 JP2637070 B2 JP 2637070B2
Authority
JP
Japan
Prior art keywords
instruction
byte
address
significant byte
contents
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 - Lifetime
Application number
JP60255912A
Other languages
Japanese (ja)
Other versions
JPS62115541A (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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP60255912A priority Critical patent/JP2637070B2/en
Publication of JPS62115541A publication Critical patent/JPS62115541A/en
Application granted granted Critical
Publication of JP2637070B2 publication Critical patent/JP2637070B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】 [概要] 1命令(機械語命令)の実行に係る論理動作を複数の
マイクロ命令を実行することによって実現するごとく構
成されていて、該複数のマイクロ命令の先頭番地が実行
すべき命令のオペコード部の最上位バイトあるいは最上
位バイトと該最上位バイトの次のバイトの内容に基づい
て生成される情報処理装置においては、従来、実行すべ
き命令の最上位バイトの内容によって、オペコードに最
上位バイトの次のバイトも含まれると判断したとき、演
算系を用いて、該バイトの内容を最上位バイトの位置ま
でシフトして改めてその内容を読み出し、これに基づい
てマイクロ命令の先頭アドレスを生成するという制御を
行なっていたので処理速度が遅く、また演算系の処理能
力に影響を与えるという欠点があった。本発明は、この
ような従来の欠点を解決するため、実行すべき命令のオ
ペコード部の最上位バイトあるいは該バイトの次に位置
するバイトのいずれかを選択してしてその内容を出力す
ることの可能なハードウェアを設けて、最上位バイトの
内容からオペコード部が次のバイトに跨ると判断された
とき、該次のバイトを直接読み出すことにより、マイク
ロ命令の先頭アドレスを迅速に生成し得る制御方式に係
る技術を開示している。
DETAILED DESCRIPTION OF THE INVENTION [Overview] The logic operation related to the execution of one instruction (machine language instruction) is implemented by executing a plurality of microinstructions, and the start addresses of the plurality of microinstructions are In an information processing apparatus that is generated based on the most significant byte of the operation code portion of the instruction to be executed or the content of the most significant byte and the content of the byte next to the most significant byte, conventionally, the content of the most significant byte of the instruction to be executed is When the operation code determines that the next byte of the most significant byte is also included in the operation code, the contents of the byte are shifted to the position of the most significant byte using the arithmetic system, and the content is read out again. Since the control for generating the head address of the instruction is performed, the processing speed is slow, and the processing capability of the arithmetic system is affected. The present invention solves such a conventional drawback by selecting either the most significant byte of the opcode portion of the instruction to be executed or the byte located next to the byte and outputting the content. When it is determined from the contents of the most significant byte that the opcode portion extends to the next byte, the head address of the microinstruction can be quickly generated by directly reading out the next byte. A technique relating to a control method is disclosed.

[産業上の利用分野] 本発明は情報処理装置の機械語命令実行の制御に関す
るものであって、特に、機械語命令の実行に係る論理的
動作を複数のマイクロ命令(マイクロステップ)によっ
て実現する場合のマイクロステップの先頭アドレスの生
成方式に係る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to control of execution of a machine language instruction of an information processing apparatus, and in particular, implements a logical operation related to execution of a machine language instruction by a plurality of micro instructions (micro steps). The method relates to the generation method of the head address of the micro step in the case.

[従来の技術] 情報処理装置において、機械語命令の解読、実行等の
論理動作は、主記憶装置へのアクセス、シフト、加算器
による演算などの限られた数の基本動作の組み合わせに
よって実現される。
2. Description of the Related Art In an information processing apparatus, logical operations such as decoding and execution of a machine language instruction are realized by a combination of a limited number of basic operations such as access to a main storage device, a shift, and an operation by an adder. You.

そして、このような基本動作は、ハードウェアによる
論理回路によって実現する場合と、マイクロ命令と呼ば
れる基本的論理動作を行なう命令をいくつか実行するこ
とにより実現する場合とがある。
Such a basic operation may be realized by a hardware logic circuit, or may be realized by executing some instructions for performing a basic logical operation called microinstructions.

後者の、機械語命令の実行に係る論理動作を複数のマ
イクロ命令の実行によって行なう場合を以下、マイクロ
プログラム方式と呼び、また複数のマイクロ命令の集ま
りをマイクロステップとも呼ぶ。
The latter case in which the logical operation related to the execution of the machine language instruction is performed by executing a plurality of microinstructions is hereinafter referred to as a microprogram method, and a group of a plurality of microinstructions is also referred to as a microstep.

前述したような、マイクロプログラム方式の情報処理
装置においては、実行すべき機械語命令のオペコードか
ら動作させるべきマイクロステップの先頭アドレスを生
成する方式を採ることが多い。
As described above, a microprogram type information processing apparatus often adopts a method of generating a head address of a microstep to be operated from an operation code of a machine language instruction to be executed.

すなわち、各機械語命令のオペコードに対応して、そ
れぞれの機械語命令の実行に係る論理動作を実現するマ
イクロステップの先頭アドレスが定められているので、
オペコードをデコードしまたは修飾することによって、
迅速にマイクロステップの先頭アドレスを生成すること
ができる。
In other words, since the start address of the microstep that implements the logical operation related to the execution of each machine language instruction is determined corresponding to the operation code of each machine language instruction,
By decoding or modifying the opcode,
The start address of the microstep can be generated quickly.

そして、該アドレスの生成に際しては、機械語命令の
オペコードを命令フェッチレジスタ(以下FRレジスタと
もいう)にセットして、その最上位バイト(FR0)の内
容からアドレスを生成するという方法が採られる。ま
た、このようなアドレスの生成はBF命令と呼ばれるマイ
クロ命令によって行なわれる。
When generating the address, a method is adopted in which the operation code of the machine language instruction is set in an instruction fetch register (hereinafter also referred to as an FR register), and the address is generated from the contents of the most significant byte (FR0). The generation of such an address is performed by a micro instruction called a BF instruction.

第2図は上述した従来のマイクロ命令アドレス生成方
式を説明する図であって、1は主記憶装置、2はFRレジ
スタ、3は演算回路、4はマイクロ命令アドレス、5は
マイクロ命令を表している。
FIG. 2 is a diagram for explaining the conventional microinstruction address generation method described above, wherein 1 is a main memory, 2 is an FR register, 3 is an arithmetic circuit, 4 is a microinstruction address, and 5 is a microinstruction. I have.

第2図において、主記憶装置1から読み出された機械
語命令はFRレジスタ2にセットされ、その最上位バイト
FR0の内容が読み出されて、これによりマイクロ命令の
アドレスが生成される。
In FIG. 2, the machine language instruction read from the main memory 1 is set in the FR register 2 and its most significant byte
The contents of FR0 are read, thereby generating the address of the microinstruction.

[発明が解決しようとする問題点] 機械語命令のオペコードとして最上位バイトだけでな
く、次のバイト(第2図におけるFR1)まで使用される
ことがある(以下2バイト命令ともいう)。これは、命
令の種類が多い場合にアドレッシングのための数値表現
がFR0の1バイトだけでは足りなくなる場合があること
による。
[Problems to be Solved by the Invention] Not only the most significant byte but also the next byte (FR1 in FIG. 2) may be used as an operation code of a machine language instruction (hereinafter also referred to as a two-byte instruction). This is because when there are many types of instructions, the numerical expression for addressing may not be sufficient with only one byte of FR0.

そして、従来、オペコートがFR1に跨っているとき
は、FR0の内容でBF命令を実行することにより、それが
2バイト命令であることを識別して、第2図における演
算回路3を用いて、FRレジスタ2の内容を左へ1バイト
シフトすることによりFR0の位置に移動したFR1の内容で
再度BF命令を実行することによりマイクロ命令アドレス
を生成するという方法に依っていた。
Conventionally, when the operation code straddles FR1, by executing the BF instruction with the contents of FR0, it is identified that the instruction is a 2-byte instruction, and the arithmetic circuit 3 in FIG. The method relies on shifting the contents of the FR register 2 to the left by one byte and executing the BF instruction again with the contents of FR1 moved to the position of FR0 to generate a microinstruction address.

このような、従来の機械語命令のオペコードからマイ
クロ命令アドレスを生成する方式においては、2バイト
命令の場合、上述したような煩雑な制御を行わなくては
ならないため、非常に時間がかかるという問題点があっ
た。また、FR1の内容をFR0の位置へシフトするとき、演
算回路を使用しているので他のマイクロ命令(例えば機
械語命令のオペランドを使用したアドレス計算等)の処
理が影響を受けるという問題点があった。
In such a conventional method of generating a micro-instruction address from an operation code of a machine-language instruction, in the case of a 2-byte instruction, the complicated control as described above must be performed, which takes a very long time. There was a point. In addition, when shifting the contents of FR1 to the position of FR0, there is a problem that the processing of other microinstructions (for example, address calculation using operands of machine language instructions) is affected because the arithmetic circuit is used. there were.

本発明は、このような従来の問題点に鑑み、2バイト
命令の場合であっても、演算回路を使用することなく、
迅速にマイクロ命令アドレスを生成することのできる情
報処理装置を提供することを目的としている。
In view of such a conventional problem, the present invention does not use an arithmetic circuit even in the case of a 2-byte instruction,
It is an object of the present invention to provide an information processing device capable of quickly generating a micro instruction address.

[問題点を解決するための手段] そして、この目的は、本発明によれば、前記「特許請
求の範囲」に記載した手段により達成される。
[Means for Solving the Problems] According to the present invention, this object is attained by the means described in the “claims”.

すなわち、本発明は、1命令の実行に係る論理動作を
複数のマイク口命令を実行することによって実現するご
とく構成されていて、該複数のマイクロ命令の先頭アド
レスが実行すべき命令のオペコード部の最上位バイトあ
るいは最上位バイトと該最上位バイトの次のバイトの内
容に基づいて生成される情報処理装置において、実行す
べき命令のオペコード部の最上位バイトの内容を出力す
るか、該最上位バイトの次のバイトの内容を出力するか
を切り替える手段を設け、該手段から出力される命令の
オペコード部の最上位バイトの内容を用いたマイクロ命
令の実行結果から該最上位バイトの次のバイ卜も必要で
あると判断されたとき、前記手段により該オペコード部
の最上位バイトの次のバイトを選択して該バイトの値を
も用いて実行すべきマイクロ命令の先頭アドレスを生成
するマイクロ命令先頭アドレス生成方式である。
That is, the present invention is configured such that the logical operation related to the execution of one instruction is realized by executing a plurality of microphone instructions, and the head address of the plurality of microinstructions indicates the operation code of the instruction to be executed. In the information processing device generated based on the most significant byte or the most significant byte and the content of the byte next to the most significant byte, the content of the most significant byte of the operation code portion of the instruction to be executed is output or Means for switching whether or not to output the content of the byte next to the byte, and from the execution result of the microinstruction using the content of the most significant byte of the opcode portion of the instruction output from the means, the byte next to the most significant byte is provided. When it is determined that a packet is also necessary, the above means should select the byte next to the most significant byte of the opcode portion and execute the operation using the value of the byte. A microinstruction head address generation method for generating a start address of Micro instruction.

[実施例] 第1図は本発明の1実施例のアドレス生成方式を説明
する図であって、1〜5は第2図と同様であり、6は切
替回路を表している。
Embodiment FIG. 1 is a diagram for explaining an address generation method according to an embodiment of the present invention, wherein 1 to 5 are the same as those in FIG. 2, and 6 indicates a switching circuit.

第1図において、主記憶装置1から読み出された機械
語命令はFRレジスタ2にセットされる。そしてFR0の内
容(機械語命令のオペコード)が切替回路6を経由して
読み出されこれがマイクロ命令アドレス4の下位バイト
となる。またマイクロ命令アドレス4の上位部分にBF命
令のアドレスが入る。BF命令は、マイクロ命令の命令種
類の一パターンであり、ここでは、本マイクロ命令が記
述されているマイクロアドレスが命令アドレス4の上位
部分に入る。このBF命令のマイクロアドレスが命令アド
レス4の上位部分に入るタイミングについては、BF命令
が発行される時とすることができる。
In FIG. 1, a machine language instruction read from a main storage device 1 is set in an FR register 2. Then, the contents of FR0 (the operation code of the machine language instruction) are read out via the switching circuit 6, and this is the lower byte of the microinstruction address 4. The address of the BF instruction is placed in the upper part of the micro instruction address 4. The BF instruction is a pattern of an instruction type of the microinstruction. In this case, the microaddress in which the present microinstruction is described is included in the upper part of the instruction address 4. The timing at which the micro address of the BF instruction enters the upper part of the instruction address 4 can be the time when the BF instruction is issued.

また、アドレス生成用の命令としてBF命令の他にBFF
命令も用意される。BFF命令もBF命令と同じくマイクロ
命令の命令種類の一パターンである。このBFF命令が発
行される時には、BFF命令が記述されているマイクロア
ドレスを命令アドレス4の上位部分に入れればよい。
Also, besides the BF instruction,
Instructions are also provided. The BFF instruction is also a pattern of the instruction type of the micro instruction like the BF instruction. When the BFF instruction is issued, the micro address in which the BFF instruction is described may be placed in the upper part of the instruction address 4.

マイクロ命令5は、命令アドレス4の上位部分に入る
BF命令のマイクロアドレス、又はBFF命令のマイクロア
ドレスである。当該マイクロアドレスをマクロ命令の先
頭アドレスにおける上位アドレスとすることにより、マ
クロ命令の先頭アドレスを格納する部分をマイクロ命令
が格納されているメモリ中のどの部分から開始させるか
を決定することができる。
Microinstruction 5 enters upper part of instruction address 4
This is the micro address of the BF instruction or the micro address of the BFF instruction. By setting the micro address as the upper address in the head address of the macro instruction, it is possible to determine from which part of the memory where the micro instruction is stored the part for storing the head address of the macro instruction.

機械語命令のオペコードがFR0だけの1バイト命令で
ある場合には、このようにして生成されたアドレスによ
って直ちに目的のマイクロステップを実行することがで
きる。
If the operation code of the machine language instruction is a one-byte instruction consisting of only FR0, the intended microstep can be immediately executed by using the address generated in this way.

機械語命令のオペコードがFR1に跨がる2バイト命令
の場合には、FR0によるマイクロ命令の実行結果として
2バイト命令であることが識別される。そしてマイクロ
命令でBFF命令がコーディングされた時“A"信号が“1"
になり、このときには切替回路6がFR1を選択する。そ
して該FR1の内容を下位バイトとし前記BFF命令のアドレ
スを上位とするマイクロ命令アドレスが生成される。
If the operation code of the machine language instruction is a two-byte instruction straddling FR1, it is identified that the instruction is a two-byte instruction as a result of execution of the micro instruction by FR0. And when the BFF instruction is coded by the micro instruction, the “A” signal becomes “1”
At this time, the switching circuit 6 selects FR1. Then, a microinstruction address is generated in which the contents of the FR1 are set to the lower byte and the address of the BFF instruction is set to the upper byte.

[発明の効果] 以上、説明したように本発明の方式によれば、機械語
命令の実行に係る論理動作を複数のマイクロ命令の動作
により実現するごとく構成された情報処理装置におい
て、機械語命令のオペコードが2バイトに跨る場合であ
っても、迅速にマイクロ命令の先頭アドレスを生成する
ことが可能であり、またアドレス生成に際して演算回路
を使用しないので、他のマイクロ命令の処理に影響を与
えることがないという利点がある。
[Effects of the Invention] As described above, according to the method of the present invention, in an information processing apparatus configured to implement a logical operation related to execution of a machine language instruction by operations of a plurality of microinstructions, Even if the operation code of is two bytes long, the head address of the microinstruction can be quickly generated, and the operation circuit is not used in generating the address, which affects the processing of other microinstructions. There is an advantage that there is no.

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

第1図は本発明の1実施例のアドレス生成方式を説明す
る図、第2図は従来のマイクロ命令アドレス生成方式を
説明する図である。 1……主記憶装置、2……FRレジスタ、3……演算回
路、4……マイクロ命令アドレス、5……マイクロ命
令、6……切替回路
FIG. 1 is a diagram for explaining an address generation system according to one embodiment of the present invention, and FIG. 2 is a diagram for explaining a conventional microinstruction address generation system. 1 ... Main storage device, 2 ... FR register, 3 ... Operation circuit, 4 ... Micro instruction address, 5 ... Micro instruction, 6 ... Switching circuit

───────────────────────────────────────────────────── フロントページの続き (72)発明者 野田 敬人 川崎市中原区上小田中1015番地 富士通 株式会社内 (72)発明者 阿保 憲一 川崎市中原区上小田中1015番地 富士通 株式会社内 (72)発明者 武居 正善 川崎市中原区上小田中1015番地 富士通 株式会社内 (72)発明者 野々村 一泰 川崎市中原区上小田中1015番地 富士通 株式会社内 (72)発明者 西町 良一 川崎市中原区上小田中1015番地 富士通 株式会社内 (72)発明者 桜井 康智 川崎市中原区上小田中1015番地 富士通 株式会社内 (56)参考文献 特開 昭54−23342(JP,A) 特開 昭57−106957(JP,A) ──────────────────────────────────────────────────続 き Continued on the front page (72) Inventor Takato Noda 1015 Uedanaka, Nakahara-ku, Kawasaki City Inside Fujitsu Limited (72) Inventor Kenichi Abo 1015 Uedanaka, Nakahara-ku, Kawasaki City Fujitsu Limited (72) Invention Person Masayoshi Takei 1015 Kamiodanaka Nakahara-ku, Kawasaki City Inside Fujitsu Limited (72) Inventor Kazuyasu Nonomura 1015 Kamiodanaka Nakahara-ku Kawasaki City Inside Fujitsu Limited (72) Ryoichi Nishimachi 1015 Kamiodanaka Nakahara-ku Kawasaki City Fujitsu Limited (72) Inventor Yasutoshi Sakurai 1015 Uedanaka, Nakahara-ku, Kawasaki City Fujitsu Limited (56) References JP-A-54-23342 (JP, A) JP-A-57-106957 (JP, A)

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】1命令の実行に係る論理動作を複数のマイ
ク口命令を実行することによって実現するごとく構成さ
れていて、該複数のマイクロ命令の先頭アドレスが実行
すべき命令のオペコード部の最上位バイトあるいは最上
位バイトと該最上位バイトの次のバイトの内容に基づい
て生成される情報処理装置において、 実行すべき命令のオペコード部の最上位バイトの内容を
出力するか、該最上位バイトの次のバイトの内容を出力
するかを切り替える手段を設け、 該手段から出力される命令のオペコード部の最上位バイ
トの内容を用いたマイクロ命令の実行結果から該最上位
バイトの次のバイ卜も必要であると判断されたとき、前
記手段により該オペコード部の最上位バイトの次のバイ
トを選択して該バイトの値をも用いて実行すべきマイク
ロ命令の先頭アドレスを生成することを特徴とするマイ
クロ命令先頭アドレス生成方式。
The present invention is configured so that a logical operation related to execution of one instruction is realized by executing a plurality of microphone instructions, and a start address of the plurality of micro instructions is the last address of an operation code section of an instruction to be executed. In an information processing device generated based on the contents of the upper byte or the most significant byte and the content of the byte next to the most significant byte, the contents of the most significant byte of the opcode portion of the instruction to be executed are output or the most significant byte is output. Means for switching whether to output the contents of the next byte of the instruction, and from the execution result of the microinstruction using the contents of the most significant byte of the opcode portion of the instruction output from the means, the next byte of the most significant byte If it is determined that the operation is necessary, the means selects the next byte after the most significant byte of the operation code section and executes the microphone to be executed using the value of the byte. Microinstruction head address generation method and generates the first address of the instruction.
JP60255912A 1985-11-15 1985-11-15 Micro instruction start address generation method Expired - Lifetime JP2637070B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60255912A JP2637070B2 (en) 1985-11-15 1985-11-15 Micro instruction start address generation method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60255912A JP2637070B2 (en) 1985-11-15 1985-11-15 Micro instruction start address generation method

Publications (2)

Publication Number Publication Date
JPS62115541A JPS62115541A (en) 1987-05-27
JP2637070B2 true JP2637070B2 (en) 1997-08-06

Family

ID=17285294

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60255912A Expired - Lifetime JP2637070B2 (en) 1985-11-15 1985-11-15 Micro instruction start address generation method

Country Status (1)

Country Link
JP (1) JP2637070B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02184921A (en) * 1989-01-12 1990-07-19 Fujitsu Ltd Instruction decoding circuit

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6049935B2 (en) * 1977-07-25 1985-11-06 日本電信電話株式会社 Microprogram control method
JPS57106957A (en) * 1980-12-24 1982-07-03 Fujitsu Ltd Microprogram address control system

Also Published As

Publication number Publication date
JPS62115541A (en) 1987-05-27

Similar Documents

Publication Publication Date Title
US4179731A (en) Microprogrammed control system
US4954943A (en) Data processing system
US4539635A (en) Pipelined digital processor arranged for conditional operation
JPH0248931B2 (en)
JPS6146858B2 (en)
US4674063A (en) Information processing apparatus having a sequence control function
JPS6212529B2 (en)
JP2637070B2 (en) Micro instruction start address generation method
JPH0523447B2 (en)
JPS6226486B2 (en)
JP2758624B2 (en) Speed control method of micro program
JPH0218729B2 (en)
JPS58200349A (en) Microprogram controller
JPS6131896B2 (en)
JPS588011B2 (en) Microprogram Seigiyohoshiki
JPS6049935B2 (en) Microprogram control method
JPS6341092B2 (en)
SU1156071A1 (en) Microprogram control device
JP2743947B2 (en) Micro program control method
JPH0317135B2 (en)
JPH0131218B2 (en)
JPH05181671A (en) Emulation system for software instruction
JPS6112577B2 (en)
JPH02242335A (en) Electronic computer
JPH0218732B2 (en)