JPH04137138A - Information processor - Google Patents

Information processor

Info

Publication number
JPH04137138A
JPH04137138A JP26134390A JP26134390A JPH04137138A JP H04137138 A JPH04137138 A JP H04137138A JP 26134390 A JP26134390 A JP 26134390A JP 26134390 A JP26134390 A JP 26134390A JP H04137138 A JPH04137138 A JP H04137138A
Authority
JP
Japan
Prior art keywords
code
complementary
instruction
decoder
operation code
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
JP26134390A
Other languages
Japanese (ja)
Inventor
Masao Fukuchi
福地 雅夫
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 Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP26134390A priority Critical patent/JPH04137138A/en
Publication of JPH04137138A publication Critical patent/JPH04137138A/en
Pending legal-status Critical Current

Links

Landscapes

  • Executing Machine-Instructions (AREA)

Abstract

PURPOSE:To perform the same high-speed processing as execution of an instruction which does not have plural complementary codes by providing a means for switching between effective complementary codes and ineffective complementary codes. CONSTITUTION:When the instruction set to an instruction register 1 has not complementary codes, a field V of an operation code decoder 3 is '0', and a selector 5 outputs a field B of this decoder 3. When this instruction has complementary codes, the field V of the address corresponding to the instruction in the operation code decoder 3 is '1', and the selector 5 outputs the output of a complementary code decoder 4. Consequently, it is unnecessary to indicate memory access or exceptional detection by a microprogram thereafter because the output of the complementary code decoder 4 is given as control information of the field B even in the case of the instruction having complementary codes.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、命令語の中に命令で実行すべき動作を示すオ
ペレーションコードと場合によっては、更に詳細な動作
を指定するコンプリメンタリ−コードをもつ命令語を、
実行しかつオペレーションコードによって索引され様々
な制御機能を持つ複数のフィールドから構成されるオペ
レーションコードデコーダを有する情報処理装置に関す
る。
[Detailed Description of the Invention] [Industrial Application Field] The present invention provides an instruction word that includes an operation code that indicates the operation to be performed by the instruction and, in some cases, a complementary code that specifies a more detailed operation. command word,
The present invention relates to an information processing apparatus having an operation code decoder that is executed and configured by a plurality of fields indexed by operation codes and having various control functions.

〔従来の技術〕[Conventional technology]

従来この種の情報処理装置は、オペレーションコード(
以後オペコードと略す)によって指定された動作を実行
する為、オペレーションコードデコーダ(以後オペコー
ドデコーダと略す)と呼ぶメモリデコーダが設けられて
おり命令語を保持する命令レジスタのオペコードで索引
されるオペコードデコーダはアドレス生成を制御するフ
ィールド、メモリアクセスを制御するフィールド、例外
の検出を制御するフィールド、マイクロプログラムの起
動を制御するフィールド等から構成されており、それぞ
れの命令に最適な制御をする櫟にあらかじめ情報が書き
込まれている。一方命令語は一つの動作を一つのオペコ
ードに割当てた通常の他に入出力命令群、スタック操作
命令群制御命令群といった命令をそれぞれまとめて各々
の命令群に一つのオペコードを割当てる様にして例えば
入出力命令群であるならば入力命令、出力命令、入出力
装置初期化命令といった詳細な種別は命令語の中にコン
プリメンタリーコードを設けこのコードで指定する様に
なっている。
Conventionally, this type of information processing device uses an operation code (
A memory decoder called an operation code decoder (hereinafter referred to as an operation code decoder) is provided to execute the operation specified by the operation code (hereinafter referred to as an operation code).The operation code decoder indexed by the operation code in the instruction register that holds the instruction word is It consists of a field that controls address generation, a field that controls memory access, a field that controls exception detection, a field that controls microprogram startup, etc., and contains information in advance to provide optimal control for each instruction. is written. On the other hand, in addition to the usual instruction word in which one operation is assigned to one opcode, instructions such as input/output instructions, stack manipulation instructions, control instructions, etc. are grouped together and one opcode is assigned to each instruction group, for example. In the case of a group of input/output instructions, detailed types such as input instructions, output instructions, and input/output device initialization instructions are specified by a complementary code provided in the instruction word.

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

この様な従来の情報処理装置でコンプリメンタリ−コー
ドを複数もつ命令を実行する場合同じオペコードに割当
てられた命令であってもコンプリメンタリ−コードの違
いによってメモリアクセスや例外検出の有無や種別等が
異なる為にオペコードデコーダではメモリアクセスも例
外検出も行なわずにただマイクロプログラムの起動のみ
を行なう様にして起動されたマイクロプログラムがコン
プリメンタリ−コードを判別して各々の命令にあったメ
モリアクセス及び例外の検出を指示して命令を実行して
いる。この為にコンプリメンタリ−コードを複数もつ命
令は、実行速度か遅く又、マイクロプログラム容量も増
大するという欠点がある。
When executing instructions with multiple complementary codes in such conventional information processing devices, even if the instructions are assigned to the same opcode, the memory access, presence or absence of exception detection, type, etc. will differ depending on the complementary code. The operation code decoder does not perform memory access or exception detection, but only starts the microprogram, and the activated microprogram identifies the complementary code and performs memory access and exception detection appropriate for each instruction. Giving instructions and carrying out orders. For this reason, instructions having a plurality of complementary codes have the drawbacks of slow execution speed and increased microprogram capacity.

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

上記欠点を除去する為に本発明の情報処理装置はコンプ
リメンタリ−コードをもつ命令である事を示すVフィー
ルドとそのコンプリメンタリ−コードをもつ命令が複数
ある場合にその索引制御情報として使用されるCフィー
ルドを有するオペレーションコードデコーダと、命令語
を保持する命令レジスタのオペレーションコードとコン
ブリメンタリーコードが存在しうる全部あるいは一部の
ビットとオペレーションコードデコーダのCフィールド
のビットを入力し入力に対応したエンコードを出力を生
成するエンコード手段と、前記オペレーションコードデ
コーダが出力するVフィールド情報に従って命令語の中
にコンプリメンタリ−コードがある場合に使用されるコ
ンプリメンタリ−コードデコーダと前記オペレーション
コードデコーダおよび前記コンプリメンタリ−コードデ
コーダの両方に含まれた同一の制御対象を制御するフィ
ールドの出力の各々をコンプリメンタリ−コードが有効
である場合とそうでない場合とに切り替える手段とを有
している。
In order to eliminate the above drawbacks, the information processing apparatus of the present invention includes a V field indicating that the instruction has a complementary code and a C field used as index control information when there are multiple instructions having the complementary code. An operation code decoder having an operation code decoder, all or part of the bits in which an operation code and conjunctive code may exist in an instruction register that holds an instruction word, and bits in the C field of the operation code decoder are input, and an encoding corresponding to the input is performed. an encoding means for generating an output, a complementary code decoder used when there is a complementary code in an instruction word according to V field information outputted by the operation code decoder, the operation code decoder and the complementary code decoder; It has means for switching each of the outputs of the fields that control the same control object included in both of the fields between cases where the complementary code is valid and cases where the complementary code is not valid.

また、本発明の情報処理装置は、コンプリメンタリ−コ
ードがない場合に使用されるオペコードデコーダと、命
令語を保持する命令レジスタのオペコードとコンプリメ
ンタリ−コードが複数か所ある場合そのコンプリメンタ
リ−コードの全部あるいは、一部のビットを入力してエ
ンコードするエンコード手段と、オペコードデコーダの
一部のフィールドと同一機能を持つフィールドから成り
エンコード手段の出力で索引されるコンプリメンタリ−
コードデコーダと、前記オペレーションコードと予じめ
定めた命令と比較し前記コンプリメンタリ−コードの有
効性を判定し、オペコードデコーダとコンプリメンタリ
−コードデコーダの両方に共通に含まれるフィールドの
出力をコンプリメンタリ−コードが有効である場合とそ
うでない場合とに切替える手段とを有している。
The information processing device of the present invention also includes an operation code decoder used when there is no complementary code, an operation code of an instruction register that holds instruction words, and all or all of the complementary codes when there are multiple complementary codes. , an encoding means for inputting and encoding some bits, and a complementary field indexed by the output of the encoding means, which consists of fields having the same function as some fields of the opcode decoder.
A code decoder compares the operation code with a predetermined instruction to determine the validity of the complementary code, and outputs an output of a field commonly included in both the operation code decoder and the complementary code decoder. It has means for switching between cases where it is effective and cases where it is not.

〔実施例〕〔Example〕

次に本発明について、図面を参照して説明する。第1図
は本発明の第一の実施例を示すブロック図であり、命令
レジスタ1、エンコーダ2、オペコードデコーダ3、コ
ンプリメンタリ−コードデコーダ4、セレクタ5とから
構成される。第2図は第1図に示す実施例で扱う命令語
の形式の一例を示す図であり、命令語にはビットOから
7までを占めるオペコードが必ず存在し、場合によって
はビット8から15あるいはビット16から19までに
コンプリメンタリ−コードが存在する。第1図において
オペコードデコーダ3は、信号線101を介して与えら
れる命令レジスタ1の保持するオペコードをアドレスと
して索引するメモリデコーダである。オペコードデコー
ダに格納される制御語は、大きく分けてA、B、V、C
の4つのフィールドから構成されておりフィールド4は
、マイクロプログラムの起動、その他の制御を行なう。
Next, the present invention will be explained with reference to the drawings. FIG. 1 is a block diagram showing a first embodiment of the present invention, which is composed of an instruction register 1, an encoder 2, an operation code decoder 3, a complementary code decoder 4, and a selector 5. FIG. 2 is a diagram showing an example of the format of an instruction word handled in the embodiment shown in FIG. A complementary code exists in bits 16 to 19. In FIG. 1, the operation code decoder 3 is a memory decoder that indexes the operation code held in the instruction register 1 supplied via the signal line 101 as an address. The control words stored in the opcode decoder are broadly divided into A, B, V, and C.
Field 4 is used to start the microprogram and perform other controls.

フィールドBは、メモリアクセスと例外検出の制御を行
なう。フィールドVは、1ビツトであり、コンプリメン
タリ−コードをもたないオペコードによって索引される
制御語では“0°が、コンプリメンタリ−コードをもち
オペコードに対応する制御語についてはパ1”が書き込
まれている。フィールドCは、コンプリメンタリ−コー
ドをもつ命令が複数ある場合その複数だけナンバーリン
グされている。実施例では5命令あった場合を示してお
り’ o o o ”〜“”100’”の3ビツトであ
り、あらがしめ書き込丈れている。コンプリメンタリ−
コードデコーダ4は、エンコーダ2の出力するエンコー
ド出力を信号線201を介してアドレスとして索引する
メモリデーコーダでオペコードデコーダ3のフィールド
Bと同じくメモリアクセスと例外検出の制御を行なうフ
ィールドで構成されている。セレクタ5は、信号線20
2で与えられる制御信号が“0“であれば信号線204
のオペコードデコーダ3のフィールドBの出力を選択し
、制御信号が1″であれば信号線205のコンプリメン
タリ−コードデコーダ4のフィールドBの出力が選択さ
れる。エンコーダ2は、信号線102を介して与えられ
る命令語のccl(コンプリメンタリ−コード1)及び
cc2 (コンプリメンタリ−コード2)の12ビツト
の内の後手8ビットと、信号線207を介して与えられ
る3ビツト合計11ビットを8ビツトにエンコードして
信号線201に出力する回路である。
Field B controls memory access and exception detection. Field V is 1 bit, and "0°" is written for a control word indexed by an opcode that does not have a complementary code, and "pa1" is written for a control word that has a complementary code and corresponds to an opcode. . If there are multiple instructions with complementary codes, field C is numbered by the number of instructions. In the embodiment, a case where there are 5 instructions is shown, and they are 3 bits from 'oooo' to '100', and the write length is set to indicate a fault. complementary
The code decoder 4 is a memory decoder that indexes the encoded output output from the encoder 2 as an address via a signal line 201, and is composed of fields that control memory access and exception detection, similar to field B of the operation code decoder 3. . The selector 5 is connected to the signal line 20
If the control signal given by 2 is “0”, the signal line 204
If the control signal is 1'', the output of field B of the complementary code decoder 4 on the signal line 205 is selected. The last 8 bits of the 12 bits of the given instruction word ccl (complementary code 1) and cc2 (complementary code 2) and 3 bits given via the signal line 207, a total of 11 bits, are encoded into 8 bits. This circuit outputs the signal to the signal line 201.

第3図はエンコーダ2の詳細な論理回路の一例を示す図
であり、論理積回路21、論理和回路22.23.24
とから構成されている。第3図に示す用にオペコードデ
コーダ3のフィールドCより送出される信号線207で
実施例ではコンプリメンタリ−コードの持つ命令が5命
令あった場合“’ o o o ”〜“” 100 ”
の3つであり、第3図では信号線207が3本送出され
ている。例えば、コンプリメンタリ−コードを持つ命令
で例えば第6図に示すようにオペコード” 93 ’″
が索引されたとするその“93″に対応したオペコード
デコーダ3のフィールドCより送出される信号線が“o
 o o ”で命令語のコンプリメンタリ−コード1の
後半4ビツト(1ビツト12から15)と、コンプリメ
ンタリーコード204ビツト(ビット16から19)が
入力される。例えはコンプリメンタリ−コード1が“”
 CA ”でコンプリメンタリ−コード2が“4*′”
の場合エンコード出力は、” 14 ”となって第1図
のコンプリメンタリ−コードデコーダ4のアドレス“1
4′のフィールドBが出力される。コンプリメンタリー
コードを持つ命令のメモリアクセス、例外検出等の制御
情報は、コンプリメンタリ−コードデコーダ4の第7図
で決定されるアドレスにあらかじめ書き込んでおく。第
1図において命令レジスタ1にセ、。
FIG. 3 is a diagram showing an example of a detailed logic circuit of the encoder 2, including an AND circuit 21, an OR circuit 22, 23, 24.
It is composed of. As shown in FIG. 3, if there are 5 instructions with complementary codes in the signal line 207 sent from field C of the operation code decoder 3 in the embodiment, "'o o o" to ""100"
In FIG. 3, three signal lines 207 are sent out. For example, an instruction with a complementary code such as the operation code "93 '" as shown in FIG.
Assuming that ``93'' is indexed, the signal line sent from field C of the operation code decoder 3 corresponding to ``93'' is ``o''.
o o'', the latter 4 bits (bits 12 to 15) of the complementary code 1 of the instruction word and the 204 bits of the complementary code (bits 16 to 19) are input.For example, if the complementary code 1 is ``''
CA” and complementary code 2 is “4*’”
In this case, the encoded output is "14" and the address "1" of the complementary code decoder 4 in FIG.
4' field B is output. Control information such as memory access and exception detection for instructions with complementary codes is written in advance at the addresses determined in FIG. 7 of the complementary code decoder 4. In FIG. 1, instruction register 1 is set.

トされた命令がコンプリメンタリ−コードを持つ命令で
なければオペコードデコーダ3のフィールド■が°′0
゛′でありセレクタ5はオペコードデコーダ3のフィー
ルドBを出力する。又命令レジスタ1の命令がコンプリ
メンタリ−コードを持つ命令であればオペコードデコー
ダ3の命令に対応するアドレスのフィールド■が“1″
でありセレクタ5はコンプリメンタリ−コードデコーダ
4を出力する。
If the received instruction has a complementary code, the field ■ of the opcode decoder 3 will be °'0.
The selector 5 outputs field B of the opcode decoder 3. Also, if the instruction in instruction register 1 has a complementary code, the field ■ of the address corresponding to the instruction in opcode decoder 3 will be "1".
The selector 5 outputs the complementary code decoder 4.

従ってコンプリメンタリーコードを持つ命令であっても
フィールドBの制御情報はコンプリメンタリ−コードデ
コーダ4の出力が与えられるのでメモリアクセスや例外
の検出を後からマイクロプログラムで指示する必要はな
い。
Therefore, even if the instruction has a complementary code, the control information in field B is given as the output of the complementary code decoder 4, so there is no need to instruct memory access or exception detection later in the microprogram.

第4図は、本発明の第2の実施例を示すフロック図であ
る。
FIG. 4 is a block diagram showing a second embodiment of the present invention.

命令レジスタ1、エンコーダ20、オペコードデコーダ
31、コンプリメンタリ−コードデコーダ4、セレクタ
5、複数コンプリメンタリ−コード対象命令の命令検出
回路6とから構成される。この実施例の情報処理装置の
扱う命令語の形式は、第1の実施例と同様に第2図に示
すように命令語にはビットOから7までを占めるオペコ
ードが必す存在し場合によってはビット8から15ある
いはビット16から19まてに、コンプリメンタリ−コ
ードが存在する。第4図においてオペコードデコーダ3
1は信号線101を介して与えられる命令レジスタ1の
保持するオペコードをアドレスとして索引するメモリデ
コーダで°ある。オペコードデコーダ31に格納される
制御語は、大きく分けてA、82つのフィールドから構
成されており、フィールドAはマイクロプログラムの起
動その他の制御を行ないフィールドBは、メモリアクセ
スの例外検出の制御を行なう。コンブリメンタリーコー
ドデコータ4は、エンコーダ21の出力するエンコード
出力を信号線201を介してアドレスとして索引するメ
モリデコーダでオペコードデコーダ31のフィールドB
と同じくメモリアクセスの例外検出の制御を行なうフィ
ールドで構成されている。複数コンプリメンタリ−コー
ド対象命令の命令検出回路6は、信号線101を介して
送られてくるオペコードと信号線103を介して送られ
てくる複数コンプリメンタリーコード対象命令aのオペ
コードを比較して複数のコンプリメンタリ−コード対象
命令であれば命令検出回路6の出力信号線202を介し
て“1“′が送出される。例えば、複数コンプリメンタ
リ−コード対象命令aのオペコードか“93″として与
えられているとき、信号線101にオペコード゛” 9
 B ”である命令が発生すると第6図に示すように、
これにはccl、cc2なるコンプリメンタリ−コード
が含まれること示している。したがって、制御はコンプ
リメンタリーコードである必要がある。セレクタ5は信
号線202で与えられる制御信号が°′0″であれば信
号線204のオペコードデコーダ31のフィールドBの
出力を選択し、制御信号が“1″であれば信号線205
のコンプリメンタリ−コードデコーダ4のフィールドB
の出力を選択する。エンコーダ20は信号線102を介
して与えられる命令語のccl (コンプリメンタリ−
コード1)及びcc2 (コンプリメンタリ−コード2
)の12ビツトの内の後半8ヒツトを5ビツトにエンコ
ードして、信号線201上に圧力する回路である。
It is composed of an instruction register 1, an encoder 20, an opcode decoder 31, a complementary code decoder 4, a selector 5, and an instruction detection circuit 6 for multiple complementary code target instructions. As in the first embodiment, the format of the instruction word handled by the information processing device of this embodiment is as shown in FIG. A complementary code exists between bits 8 to 15 or bits 16 to 19. In Fig. 4, operation code decoder 3
Reference numeral 1 denotes a memory decoder that indexes the operation code held in the instruction register 1 supplied via the signal line 101 as an address. The control word stored in the operation code decoder 31 is roughly divided into 82 fields A, where field A controls starting the microprogram and other controls, and field B controls exception detection in memory access. . Combimentary code decoder 4 is a memory decoder that indexes the encoded output output from encoder 21 as an address via signal line 201, and is field B of opcode decoder 31.
Similarly, it consists of fields that control exception detection for memory access. The instruction detection circuit 6 for instructions subject to multiple complementary codes compares the opcode sent via the signal line 101 with the opcode of the instruction a subject to multiple complementary codes sent via the signal line 103, and detects the multiple complementary codes. If the instruction is a complementary code target instruction, "1" is sent out via the output signal line 202 of the instruction detection circuit 6. For example, when the opcode of multiple complementary code target instruction a is given as "93", the opcode "9" is sent to the signal line 101.
When a command “B” occurs, as shown in Figure 6,
This indicates that complementary codes ccl and cc2 are included. Therefore, the control needs to be a complementary code. The selector 5 selects the output of field B of the operation code decoder 31 on the signal line 204 if the control signal given through the signal line 202 is 0'0'', and selects the output from the field B of the operational code decoder 31 on the signal line 204, and selects the output on the signal line 205 when the control signal is ``1''.
Field B of complementary code decoder 4 of
Select the output of The encoder 20 receives the command word ccl (complementary) supplied via the signal line 102.
code 1) and cc2 (complementary code 2)
) is a circuit that encodes the latter 8 of the 12 bits into 5 bits and applies the encoded data to the signal line 201.

第5図はエンコーダ20の詳細な論理回路の一例を示す
図であり、論理積回路21、論理和回路22.23.2
4とから構成されている。第5図に示す様に命令語のコ
ンプリメンタリ−コード1の後半4ビツト(ヒツト12
から15)とコンプリメンタリ−コード2の4ヒツト(
ビット16から19)が入力されて、例えばコンプリメ
ンタリ−コード1がCA”でコンプリメンタリ−コード
2か“4*″の場合エンコード出力は14″となって第
1図のコンプリメンタリ−コードデコーダ4のアドレス
゛14′”のフィールドBか圧力される。複数コンプリ
メンタリ−コード対象命令のメモリアクセス、例外検出
等制御情報は、コンブリメンタリーコードデコータ4の
第6図で決定されるアドレスにあらかじめ書き込んてお
く。第4図において命令レジスタ1にセットされた命令
が複数コンプリメンタリ−コード対象命令でなければ命
令検出回路6の出力は“0′″でありセレクタ5はオペ
コードデコーダ30のフィールド30を出力する。又、
命令レジスタ1の命令が複数コンプリメンタリ−コード
対象命令であれば命令検出回路6を出力は″“1″であ
りコンブリメンタリーコードテコーダ4のフィールドB
がセレクタ5により出力される。従って複数コンプリメ
ンタリ−コード対象命令であってもフィールドBの制御
情報は、コンプリメンタリ−コードデコーダ4の圧力が
与えられるのてメモリアクセスや例外の検圧を後からマ
イクロプログラムで指示する必要はない。
FIG. 5 is a diagram showing an example of a detailed logic circuit of the encoder 20, including an AND circuit 21, an OR circuit 22.23.2.
It is composed of 4. As shown in FIG. 5, the latter 4 bits (hit 12
15) and complementary code 2, 4 hits (
If bits 16 to 19) are input, for example, if complementary code 1 is CA'' and complementary code 2 or 4*, the encoded output will be 14'' and address 14 of complementary code decoder 4 in FIG. '' field B is pressed. Control information such as memory access and exception detection for multiple complementary code target instructions is written in advance to the address determined in FIG. 6 of the complementary code decoder 4. 4, if the instruction set in the instruction register 1 is not a multiple complementary code target instruction, the output of the instruction detection circuit 6 is "0'" and the selector 5 outputs the field 30 of the operation code decoder 30.
If the instruction in the instruction register 1 is a multiple complementary code target instruction, the output from the instruction detection circuit 6 is ``1'' and the field B of the complementary code encoder 4 is output.
is output by the selector 5. Therefore, even if the instructions are for multiple complementary codes, the control information in field B is given the pressure of the complementary code decoder 4, so there is no need to instruct memory access or exception detection later by the microprogram.

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

以上説明した用に本発明は、複数コンプリメンタリーコ
ード対象命令の実行においても少ない容量のコンプリメ
ンタリ−コードデコーダに格納された情報において複数
コンプリメンタリ−コードをもたない命令の実行と同様
に高速な処理を行なえるという効果がある。
As described above, the present invention enables high-speed processing even when executing an instruction that is subject to multiple complementary codes, using information stored in a complementary code decoder with a small capacity, as well as when executing an instruction that does not have multiple complementary codes. There is an effect that it can be done.

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

第1図は本発明の第1の実施例を示すブロック図、第2
図は第1図で示す実施例で処理される命令の形式の一例
を説明する図、第3図は第1図におけるエンコーダ2の
詳細な論理回路図、第4図は本発明の第2の実施例を示
すブロック図、第5図は第4図におけるエンコーダ20
の詳細な論理回路図、第6図は各実施例で処理される命
令のうち複数コンプリメンタリ−コードをもつ命令の一
覧を示す図、第7図は第3図、第5図に示すエンコード
回路2,20の入出力の対応を示す図である。 1・・・・・・命令レジスタ、2,20・・・・・・エ
ンコーダ、3,30・・・・・・オペコードデコーダ、
4・・・・・・コンプリメンタリ−コードデコーダ、5
・・・・・・セレクタ、6・・・命令検出回路、21・
・・・・・論理積回路、22.23.24・・・・・・
論理和回路。
FIG. 1 is a block diagram showing a first embodiment of the present invention;
3 is a detailed logic circuit diagram of the encoder 2 in FIG. 1, and FIG. 4 is a diagram explaining an example of the format of an instruction processed in the embodiment shown in FIG. A block diagram showing an embodiment, FIG. 5 is the encoder 20 in FIG.
6 is a diagram showing a list of instructions having multiple complementary codes among the instructions processed in each embodiment, and FIG. 7 is a detailed logic circuit diagram of the encoder circuit 2 shown in FIGS. 3 and 5. , 20 is a diagram showing the correspondence between input and output. 1...Instruction register, 2,20...Encoder, 3,30...Operation code decoder,
4... Complementary code decoder, 5
... Selector, 6... Command detection circuit, 21.
・・・・・・Logic product circuit, 22.23.24・・・・・・
OR circuit.

Claims (1)

【特許請求の範囲】 1、命令で実行すべき動作の種類を指定し定まったビッ
ト長を持つオペレーションコードを有し前記オペレーシ
ョンコードによっては更に該動作の詳細を指定し、該オ
ペレーションコードによって定められる命令語内のビッ
ト位置に、定まったビット長を持つコンプリメンタリー
コードを有する命令語を実行し各々が定まった制御対象
を制御する複数のフィールドから一語が構成された制御
語を複数格納し前記命令語を保持する命令レジスタの前
記オペレーションコードによって索引されるオペレーシ
ョンコードデコーダを有する情報処理装置において、コ
ンプリメンタリーコードをもつ命令である事を示すVフ
ィールドとこのコンプリメンタリーコードをもつ命令が
複数ある場合に、その索引制御情報として使用されるC
フィールドとを有するオペレーションコードをデコード
するオペレーションコードデコーダと、前記命令語を保
持する命令レジスタのオペレーションコードおよびコン
プリメンタリーコードが存在しうる全部あるいは、一部
のビットと前記オペレーションコードデコーダのCフィ
ールドのビットを入力し、入力に対応したエンコード出
力を生成するエンコード手段と、前記オペレーションコ
ードデコーダが出力するVフィールド情報に従つて前記
命令語の中に前記コンプリメンタリーコードがある場合
に使用されるコンプリメンタリーコードデコーダと前記
オペレーションコードデコーダおよび前記コンプリメン
タリーコードデコーダの両方に含まれた同一の制御対象
を制御するフィールドの出力の各々をコンプリメンタリ
ーコードが有効である場合とそうでない場合とに切り替
える手段とを有することを特徴とする情報処理装置。 2、命令で実行すべき動作の種類を指定し定まったビッ
ト長を持つオペレーションコードを有し前記オペレーシ
ョンコードによっては更に該動作の詳細を指定し該オペ
レーションコードによって定められる命令語内のビット
位置に定まつたビット長を持つコンプリメンタリーコー
ドを有する命令語を実行し各々が定まった制御対象を制
御する複数のフィールドから一語が構成された制御語を
複数格納し前記命令語を保持する命令レジスタの前記オ
ペレーションコードによつて索引されるオペレーション
コードデコーダを有する情報処理装置において、前記コ
ンプリメンタリーコードがない場合において使用される
オペレーションコードデコーダと、前記命令語を保持す
る命令レジスタのオペレーションコードおよびコンプリ
メンタリーコードが存在しうる全部あるいは一部のビッ
トを入力し入力に対応したエンコード出力を生成するエ
ンコード手段と、前記命令語の中に前記コンプリメンタ
リーコードがある場合に使用されるコンプリメンタリー
コードデコーダと、前記オペレーションコードと予じめ
定めた命令とを比較し前記コンプリメンタリーコードの
有効性を判定し、前記オペレーションコードデコーダと
前記コンプリメンタリーデコーダの両方に含まれた同一
の制御対象を制御するフィールドの出力の各々をコンプ
リメンタリーコードが有効である場合と、そうでない場
合とに切り替える手段とを有することを特徴とする情報
処理装置。
[Scope of Claims] 1. An operation code that specifies the type of operation to be executed by the instruction and has a predetermined bit length, and the operation code further specifies the details of the operation and is determined by the operation code. A plurality of control words, each word composed of a plurality of fields each controlling a predetermined control object, are stored in bit positions in the instruction word, each word having a complementary code having a predetermined bit length. In an information processing device having an operation code decoder that is indexed by the operation code of an instruction register that holds an instruction word, when there is a V field indicating that the instruction has a complementary code and there are multiple instructions having this complementary code. C used as its index control information
an operation code decoder for decoding an operation code having a field; all or some bits in which an operation code and complementary code of an instruction register holding the instruction word may exist; and bits of a C field of the operation code decoder; an encoding means for generating an encoded output corresponding to the input, and a complementary code to be used when the complementary code is included in the instruction word according to the V field information output by the operation code decoder. a decoder, and means for switching each output of a field that controls the same control object included in both the operation code decoder and the complementary code decoder between cases where the complementary code is valid and cases where the complementary code is not valid. An information processing device characterized by: 2. It has an operation code that specifies the type of operation to be executed by the instruction and has a fixed bit length. Depending on the operation code, the details of the operation are further specified and the bit position within the instruction word defined by the operation code is specified. an instruction register that stores a plurality of control words each of which is composed of a plurality of fields for executing an instruction word having a complementary code having a fixed bit length, each controlling a fixed control object, and holding the instruction word; In an information processing device having an operation code decoder that is indexed by the operation code, the operation code decoder is used when the complementary code is not present, and the operation code and complementary code of the instruction register holding the instruction word are provided. an encoding means that inputs all or some bits in which a code may exist and generates an encoded output corresponding to the input; a complementary code decoder used when the complementary code is included in the instruction word; Comparing the operation code with a predetermined command to determine the validity of the complementary code, and outputting a field for controlling the same control target included in both the operation code decoder and the complementary decoder. An information processing device comprising means for switching each of the complementary codes between cases where the complementary code is valid and cases where the complementary code is not valid.
JP26134390A 1990-09-28 1990-09-28 Information processor Pending JPH04137138A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP26134390A JPH04137138A (en) 1990-09-28 1990-09-28 Information processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP26134390A JPH04137138A (en) 1990-09-28 1990-09-28 Information processor

Publications (1)

Publication Number Publication Date
JPH04137138A true JPH04137138A (en) 1992-05-12

Family

ID=17360516

Family Applications (1)

Application Number Title Priority Date Filing Date
JP26134390A Pending JPH04137138A (en) 1990-09-28 1990-09-28 Information processor

Country Status (1)

Country Link
JP (1) JPH04137138A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0728640A (en) * 1993-06-24 1995-01-31 Internatl Business Mach Corp <Ibm> Equipment and method for checking instruction operation code

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0728640A (en) * 1993-06-24 1995-01-31 Internatl Business Mach Corp <Ibm> Equipment and method for checking instruction operation code

Similar Documents

Publication Publication Date Title
US4777588A (en) General-purpose register file optimized for intraprocedural register allocation, procedure calls, and multitasking performance
JP6807383B2 (en) Transfer prefix instruction
KR960015518A (en) Signal processor
JPH04137138A (en) Information processor
JP2006072961A (en) Memory circuit for arithmetic processing unit
JPH0713758A (en) Instruction decoding method
JP2000112754A (en) Data processor
JPS595496A (en) Memory protect system
GB1565841A (en) Microprogrammable computer system
JPH05189231A (en) Error processing system in instruction fetch
JPS59129995A (en) Storage device
JP2845780B2 (en) Data transfer control circuit
SU734686A1 (en) Command shaping device
JPH038029A (en) Microprogram controller
JPS6388641A (en) Information processor
JPH02136951A (en) Dma transfer system
JPS63120336A (en) Switching system for memory access mode
US20050149696A1 (en) Method and apparatus to control steering of instruction streams
JPS63155328A (en) Information processor
JPH0619705A (en) Pipeline control system
JPH05334074A (en) Microprocessor
JPH03282625A (en) Data processor
JP2002140192A (en) Arithmetic processing unit
JPS6247745A (en) Microprogram control system
JPH02155036A (en) Data processor