JPS6151242A - Instruction decoding circuit - Google Patents

Instruction decoding circuit

Info

Publication number
JPS6151242A
JPS6151242A JP17269984A JP17269984A JPS6151242A JP S6151242 A JPS6151242 A JP S6151242A JP 17269984 A JP17269984 A JP 17269984A JP 17269984 A JP17269984 A JP 17269984A JP S6151242 A JPS6151242 A JP S6151242A
Authority
JP
Japan
Prior art keywords
registers
register
instruction
macroinstruction
decoder
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
JP17269984A
Other languages
Japanese (ja)
Inventor
Noboru Kobayashi
登 小林
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 JP17269984A priority Critical patent/JPS6151242A/en
Publication of JPS6151242A publication Critical patent/JPS6151242A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To execute an underfined instruction not decoded by a decoder but set by the operator as a macroinstruction by allowing the operator to write the macroinstruction to plural registers and designating the selected order. CONSTITUTION:When the operator executes an instruction not in a processor, the operator writes a control sequence to registers 7-10 for setting macroinstruction by using a program and when a decoder 24 decodes this sequence, the control is effective. The registers 7-10 are designated by the operand of the macroinstruction or selected by the cycle number of the macroinstruction. That is, the operator writes a macroinstruction to the registers 7-10, and the order selecting the registers 7-10 and the number of cycles operated in response to the content of the registers are designated to a logical arithmetic unit 4. Thus, the undefined instruction set by the operator not decocded by the decoder 24 is executed as the macroinstruction.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は実時間処理プロセッサの論理演算装置を制御す
る命令をデコードする回路に係り、特にオペレータが設
定するマクロ命令を該論理演算装置に実行させることが
可能な命令デコード回路に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a circuit for decoding instructions for controlling a logical arithmetic unit of a real-time processor, and in particular for a circuit for decoding instructions set by an operator to be executed on the logical arithmetic unit. The present invention relates to an instruction decoding circuit capable of decoding instructions.

実時間処理プロセッサは各種通信機器及び電子機器に使
用され、プログラムにより各種機能を発揮している。そ
してその論理演算装置はデコーダがデコードして送出す
る命令により、オペランドの演算を行う。
Real-time processing processors are used in various communication devices and electronic devices, and perform various functions according to programs. The logical operation unit then performs operations on the operands according to instructions decoded and sent by the decoder.

この場合オペレ゛−夕が或命令があれば、前記プログラ
ムが短くなると考えた時、該命令を設定することを可能
とし、デコーダが指示する命令の外に、その命令を論理
演算装置に実行させることが出来れば、プロセッサの処
理効率を向上させることが出来る。
In this case, if the operator considers that the program will be shorter if there is a certain instruction, it is possible to set that instruction, and cause the logical operation unit to execute that instruction in addition to the instructions instructed by the decoder. If possible, the processing efficiency of the processor can be improved.

〔従来の技術〕[Conventional technology]

第2図は従来の命令デコード回路の一例を示すブロック
図である。
FIG. 2 is a block diagram showing an example of a conventional instruction decoding circuit.

デコーダ1は命令をデコードしてレジスタ2にデータバ
ス6からデータを格納する場合、イネーブル信号AEN
を送出する。又レジスタ3にデータバス6からデータを
格納する場合、イネーブル信号BENを送出する。
When the decoder 1 decodes an instruction and stores data from the data bus 6 in the register 2, the decoder 1 uses an enable signal AEN.
Send out. Furthermore, when storing data from the data bus 6 in the register 3, an enable signal BEN is sent.

デコーダ1は命令の内容により、例えば下記に示す如き
機能を論理演算装置4にcl、C2,C3の信号により
指示する。即ち機能指示信号C+。
Depending on the content of the command, the decoder 1 instructs the logical operation unit 4 to perform the following functions, for example, using signals cl, C2, and C3. That is, the function instruction signal C+.

C2,C3が共に“0”の時レジスタ2に格納されてい
るデータがAとすれば、Aをそのまま送出する。
If the data stored in register 2 is A when both C2 and C3 are "0", A is sent out as is.

又C,,C2が“0”で03が1″の時レジスタ3に格
納されているデータがBならば、Bをそのまま送出する
If C, , C2 are "0" and 03 is "1" and the data stored in register 3 is B, B is sent out as is.

c、、C3が“0”で02がパ1″の時はレジスタ2の
データ八を演算して−Aを送出する。
When C3 is "0" and 02 is "P1", data 8 in register 2 is operated and -A is sent out.

C1が0″でC2,C3が“1”の時はレジスタ3のデ
ータBを演算して−Bを送出する。
When C1 is 0'' and C2 and C3 are 1, data B in register 3 is operated and -B is sent out.

C,が” 1 ”でC2,C3が“0”の時はレジスタ
2のデータAとレジスタ3のデータBを演算して論理積
A−Bを送出する。
When C, is "1" and C2, C3 are "0", data A in register 2 and data B in register 3 are operated and the logical product A-B is sent out.

c、、C3が1”で02が“0”の時はレジスタ2のデ
ータAとレジスタ3のデータBを演算して論理和AVB
 (記号■は論理和を表す)を送り       出す
る。
c,, When C3 is "1" and 02 is "0", calculate the logical sum AVB by calculating data A of register 2 and data B of register 3.
(The symbol ■ represents a logical sum).

C,、C2が“1”でC3が“0″の時はレジスタ2の
データAとレジスタ3のデータBを演算してA+Bを送
出する。
When C2 is "1" and C3 is "0", data A in register 2 and data B in register 3 are operated and A+B is sent out.

c、、C2,C3が共に′1”の時はレジスタ2のデー
タAとレジスタ3のデータBを演算してA−Bを送出す
る。
When c, , C2, and C3 are both '1', data A in register 2 and data B in register 3 are operated and A-B is sent out.

この論理演算装置4の出力をレジスタ5はデコーダ1の
送出するイネーブル信号DENで格納する。
The output of the logical operation unit 4 is stored in the register 5 using the enable signal DEN sent from the decoder 1.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

上記の如〈従来の命令デコード回路のデコーダは論理回
路で構成され、オペレータが命令を設定して論理演算装
置にその命令を実行させる機能が無いという問題がある
As mentioned above, the decoder of the conventional instruction decoding circuit is constituted by a logic circuit, and there is a problem in that it does not have a function where an operator sets an instruction and causes the logic operation unit to execute the instruction.

〔問題点を解決するための手段〕[Means for solving problems]

上記問題点は、マクロ命令を設定する複数のレジスタと
、該レジスタを選択する選択手段と、該選択手段が選択
したレジスタの内容をデコーダが送出する命令の代わり
に論理演算装置に送出する手段とを設け、前記デコーダ
によって前記レジスタを選択せしめ、論理演算装置に実
行させるマクロ命令を出力させることによって解決する
The above problem consists of a plurality of registers for setting macro instructions, a selection means for selecting the registers, and a means for sending the contents of the register selected by the selection means to the logical operation unit instead of the instruction sent by the decoder. The problem is solved by providing the decoder, selecting the register, and outputting a macro instruction to be executed by the logical operation unit.

〔作用〕[Effect]

即ち複数のレジスタにオペレータがマクロ命令を書込め
るようにし、そのレジスタを選択する順位と論理演算装
置に該レジスタの内容に応じて演算するサイクル数とを
指定するようにしたもので、これによりフニロセソザが
実行することが出来ない命令を随時実施し得るようにし
たものである。
In other words, the operator can write macro instructions into multiple registers, and specify the order in which the registers are selected and the number of cycles for the logical operation unit to operate according to the contents of the registers. This allows commands that cannot be executed by the system to be executed at any time.

つまりデコーダにてデコード出来ないオペレータが設定
した未定義の命令を、マクロ命令として実行させること
が可能となる。
In other words, an undefined instruction set by an operator that cannot be decoded by a decoder can be executed as a macro instruction.

゛C実゛施例〕 第1図は本発明の一実施例を示す回路のブロック図であ
る。
Embodiment C FIG. 1 is a block diagram of a circuit showing an embodiment of the present invention.

第1図において符号2〜6は第2図のものと対応してい
る。デコーダ24は通常の動作は第2図と同様であり、
イネーブル信号AEN、BEN。
In FIG. 1, numerals 2 to 6 correspond to those in FIG. The normal operation of the decoder 24 is the same as that shown in FIG.
enable signals AEN, BEN;

DEN及び機能指示信号c、、、C2,c3の各信号を
OR回路18〜23に夫々送出し、レジスタ2.3のデ
ータを論理演算装置4で演算させ、レジスタ5に格納す
る。
DEN and function instruction signals c, .

オペレータがプロセッサに無い命令を実行する場合、マ
クロ命令設定用のレジスタ7〜10にオペレータがプロ
グラムにより制御シーケンスを書込み、このシーケンス
をデコーダ24がデコードした時制御が有効となる。レ
ジスタ7〜10はマクロ命令のオペランドにより指定さ
れるか、又はマクロ命令のサイクル数によって選択され
る。
When the operator executes an instruction that is not available in the processor, the operator writes a control sequence into macro instruction setting registers 7 to 10 by a program, and the control becomes effective when the decoder 24 decodes this sequence. Registers 7-10 are specified by the operands of the macroinstruction or selected by the cycle number of the macroinstruction.

即ち例えばアセンブラ言語でMACROa、bと書くと
、aは制御シーケンスを読出すレジスタ7〜10の最初
のレジスタ番号とそれに続くレジスタの順番を示し、b
は制御のサイクル数を示す。
That is, for example, when writing MACROa, b in assembler language, a indicates the first register number of registers 7 to 10 from which the control sequence is read and the order of the following registers, and b
indicates the number of control cycles.

これはMACROI、1と書くと、制御はレジスタ7の
シーケンスにより行い、1サイクル命令ということにな
る。
If this is written as MACROI, 1, control is performed by the sequence of register 7, and it is a one-cycle instruction.

又MACRO2,3と書くと、■サイクル目の制御はレ
ジスタ8のシーケンスで行い、2サイクル目の制御はレ
ジスタ9のシーケンスで行い、3サイクル目の制御はレ
ジスタ10のシーケンスで行う3サイクルの命令という
ことになる。
Also, when written as MACRO2 and 3, it is a 3-cycle command where the control of the cycle 1 is performed by the sequence of register 8, the control of the 2nd cycle is performed by the sequence of register 9, and the control of the 3rd cycle is performed by the sequence of register 10. It turns out that.

又MΔCR○1,3と書くと、1サイクル目の制御はレ
ジスタ7のシーケンスで行い、2サイクル目の制御はレ
ジスタ8のシーケンスで行い、3サイクル目の制御はレ
ジスタ9のシーケンスで行う3サイクルの命令というこ
とになる。
Also, when written as MΔCR○1,3, the first cycle is controlled by the sequence of register 7, the second cycle is controlled by the sequence of register 8, and the third cycle is controlled by the sequence of register 9.3 cycles. This means that it is a command.

ここで例えばレジスタ7に111101と設定し、MA
CROI、1と書いた場合の動作を説明する。デコーダ
24は2ビツトのコードをセレクタ11に送出し、レジ
スタ7を選択すると共に、MAに“1”を送出する。
For example, set 111101 in register 7, and
The operation when CROI is written as 1 will be explained. Decoder 24 sends a 2-bit code to selector 11, selects register 7, and sends "1" to MA.

セレクタ11からはレジスタ7の111101がAND
回路12〜17に夫々送出され、AND回路12〜15
の各出力は“1”でAND回路16の出力は“0”でA
ND回路17の出力は“1”となる。
From selector 11, 111101 of register 7 is ANDed.
are sent to circuits 12-17, respectively, and AND circuits 12-15.
Each output of the AND circuit 16 is “1” and the output of the AND circuit 16 is “0”.
The output of the ND circuit 17 becomes "1".

従ってレジスタ2と3に格納されているデータ、例えば
AIとB1とは論理演算装置4でCl、C2が1″で0
3が0”であるため、AI +81         
、  がレジスタ5に格納され、データバス6のデータ
A2がレジスタ2にデータB2がレジスタ3に夫々格納
される。
Therefore, the data stored in registers 2 and 3, for example AI and B1, is 0 when Cl and C2 are 1'' in the logical operation unit 4.
Since 3 is 0”, AI +81
, are stored in the register 5, data A2 of the data bus 6 is stored in the register 2, and data B2 is stored in the register 3, respectively.

本実施例ではマクロ命令設定用のレジスタ7〜10を4
個で説明したが、この数は任意に設定可能である。
In this embodiment, registers 7 to 10 for setting macro instructions are set to 4.
Although this number has been explained in terms of number, this number can be set arbitrarily.

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

以上説明した如く、本発明はオペレータが本来定義され
ていないデコード不能なマクロ命令を設定して、論理演
算装置に実行させることが出来る。
As explained above, according to the present invention, an operator can set a macro instruction that is not originally defined and cannot be decoded, and cause the logical operation unit to execute it.

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

第1図は本発明の一実施例を示す回路のブロック図、 第2図は従来の命令デコード回路の一例を示すブロック
図である。 図において 1.24はデコーダ、 2.3,5.7〜10はレジスタ、 4は論理演算装置、 11はセレクタ、 12〜17はAND回路、 18〜23はOR回路である。
FIG. 1 is a block diagram of a circuit showing an embodiment of the present invention, and FIG. 2 is a block diagram showing an example of a conventional instruction decoding circuit. In the figure, 1.24 is a decoder, 2.3, 5.7 to 10 are registers, 4 is a logical operation unit, 11 is a selector, 12 to 17 are AND circuits, and 18 to 23 are OR circuits.

Claims (1)

【特許請求の範囲】[Claims] 論理演算装置の動作制御を行う命令をデコードする回路
において、マクロ命令を設定する複数のレジスタと、該
レジスタを選択する選択手段と、該選択手段が選択した
レジスタの内容をデコーダが送出する命令の代わりに論
理演算装置に送出する手段とを設け、前記デコーダによ
って前記レジスタを選択せしめ、論理演算装置に演算さ
せるレジスタの内容を指示させることを特徴とする命令
デコード回路。
A circuit for decoding instructions for controlling the operation of a logical arithmetic unit includes a plurality of registers for setting macro instructions, a selection means for selecting the registers, and an instruction for a decoder to send out the contents of the registers selected by the selection means. An instruction decoding circuit characterized in that the instruction decoding circuit is further provided with means for sending data to a logic operation device instead, and causes the decoder to select the register and instruct the logic operation device to perform an operation on the contents of the register.
JP17269984A 1984-08-20 1984-08-20 Instruction decoding circuit Pending JPS6151242A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP17269984A JPS6151242A (en) 1984-08-20 1984-08-20 Instruction decoding circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP17269984A JPS6151242A (en) 1984-08-20 1984-08-20 Instruction decoding circuit

Publications (1)

Publication Number Publication Date
JPS6151242A true JPS6151242A (en) 1986-03-13

Family

ID=15946706

Family Applications (1)

Application Number Title Priority Date Filing Date
JP17269984A Pending JPS6151242A (en) 1984-08-20 1984-08-20 Instruction decoding circuit

Country Status (1)

Country Link
JP (1) JPS6151242A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6355635A (en) * 1986-08-27 1988-03-10 Hitachi Ltd Data processing system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6355635A (en) * 1986-08-27 1988-03-10 Hitachi Ltd Data processing system

Similar Documents

Publication Publication Date Title
JPH0578051B2 (en)
US5390306A (en) Pipeline processing system and microprocessor using the system
JPS6089274A (en) Vector mask control system
JPS6212529B2 (en)
JPS6151242A (en) Instruction decoding circuit
JPS63245522A (en) Microprocessor
JPH03150633A (en) Instruction decoder
JPH0218729B2 (en)
JPS6339928B2 (en)
JP2929980B2 (en) Information processing device
JPS58200349A (en) Microprogram controller
JP2982129B2 (en) Micro program controller
JPH0269826A (en) System for controlling instruction with condition
JPH0338613B2 (en)
JPH0218732B2 (en)
JP2851192B2 (en) Addition / subtraction processing method with carry in parallel processing unit
JPS6250855B2 (en)
JPH0727466B2 (en) Service processor Command processing method
JPS622363A (en) Arithmetic unit
JPH071478B2 (en) Micro program controller
JPS6375833A (en) Information processor
JPS62147545A (en) Processing system for transfer instruction of information processor
JPS5927351A (en) Data processing device
JPS60251436A (en) Microprogram control device
JPS60246439A (en) Information processor