JPS6118041A - Arithmetic processor - Google Patents

Arithmetic processor

Info

Publication number
JPS6118041A
JPS6118041A JP59137967A JP13796784A JPS6118041A JP S6118041 A JPS6118041 A JP S6118041A JP 59137967 A JP59137967 A JP 59137967A JP 13796784 A JP13796784 A JP 13796784A JP S6118041 A JPS6118041 A JP S6118041A
Authority
JP
Japan
Prior art keywords
arithmetic
signal
circuit
microinstruction
sent
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
JP59137967A
Other languages
Japanese (ja)
Inventor
Takashi Watanabe
高志 渡辺
Takahiko Hiruko
蛭子 隆彦
Junichi Takase
高瀬 純一
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry 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 Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP59137967A priority Critical patent/JPS6118041A/en
Publication of JPS6118041A publication Critical patent/JPS6118041A/en
Pending legal-status Critical Current

Links

Landscapes

  • Executing Machine-Instructions (AREA)

Abstract

PURPOSE:To decrease the number of steps of a microinstruction by selecting the microinstruction or the output of an arithmetic processing signal generating circuit by the microinstruction itself and giving the arithmetic designation to an arithmetic circuit from the result of said selection. CONSTITUTION:A ROM10 stores the arithmetic designation information containing the arithmetic type of an instruction and the arithmetic data width according to an instruction code. An arithmetic processing signal generating circuit 11 selects a microinstruction or the circuit 10 according to the contents of said microinstruction. Based on the result of this selection, the arithmetic is designated to arithmetic circuits 12 and 13. Thus several types of instructions can be processed in the addresses of the same microprogram. This attains reduction of the number of steps of a microprogram.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明はマイクロプログラム制御方式のデータ処理装置
における、演算処理装置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to an arithmetic processing device in a data processing device using a microprogram control method.

(従来の技術) 従来の演算処理装置の一実施例を第12図に示す。(Conventional technology) An example of a conventional arithmetic processing device is shown in FIG.

第12図において、1.2は同一構成の8ビツト演算回
路で演算回路lおよび2で18ビツトの演算装置を構成
している。3は演算回路lへのキャリー先見回路、PB
AおよびPBBは入力バス、RBSは出力バスである。
In FIG. 12, numeral 1.2 is an 8-bit arithmetic circuit having the same configuration, and arithmetic circuits 1 and 2 constitute an 18-bit arithmetic device. 3 is a carry look-ahead circuit to the arithmetic circuit l, PB
A and PBB are input buses, and RBS is an output bus.

第13図は第12図の演算回路1または2の詳細図であ
り、4は算術論理演算回路、5は算術論理演算回路4の
入出力信号制御回路、6はlO進演算を行う際の固定パ
ターン生成回路、7はマイクロ命令の所定フィールドか
ら送…される演算指定信号により算術論理演算回路4に
演算信号を送出する回路、8は算術論理演算回路4の演
算結果ラッチ用レジスタ、AおよびBは第12図のPB
A 、PBBからの入力データ、RBSは第12図のR
BSと同じであり、BiSは制御回路5の制御方式を決
定するバイト位置識別信号である。第14図は制御回路
5の詳細図である。第14図における信号の意味は次の
通りである。
FIG. 13 is a detailed diagram of the arithmetic circuit 1 or 2 in FIG. 12, where 4 is an arithmetic and logic operation circuit, 5 is an input/output signal control circuit for the arithmetic and logic operation circuit 4, and 6 is a fixation for performing lO base operation. A pattern generation circuit, 7 is a circuit for sending an operation signal to the arithmetic logic operation circuit 4 in accordance with an operation designation signal sent from a predetermined field of the microinstruction, 8 is a register for latching the operation result of the arithmetic logic operation circuit 4, A and B. is PB in Figure 12
A, input data from PBB, RBS is R in Figure 12
It is the same as BS, and BiS is a byte position identification signal that determines the control method of the control circuit 5. FIG. 14 is a detailed diagram of the control circuit 5. The meanings of the signals in FIG. 14 are as follows.

1 )LB−−−−−LATCHの最下位ビット信号2
 )SG−−−−−A 、B入力の最−1−位ビットの
一致信号 3 ) P  −−−−−A 、B入力により生成され
るプロパゲーションキャリー信号 4 )CF−−−−−A 、B入力演算結果のキャリー
信号 5 ) G  −−一−−A 、 B入力のジェネレー
ションキャリー信号 6 )MB−一−−−LATCHの最下位ビット信号?
 )3CO−−−3−2変換キヤリ一出力信号8 ) 
3C1−−−3−2変換キヤリ一人力信号9)BiS−
−−バイト位置識別信号 第14図のBiSは第2図のBiSと同一の信号であり
、第12図の演算回路lにはl”信号、演算回路2には
“0” 信号が入力されることにより、第15図に示し
た信号を異なる意味を持つ信号として使用することがで
きる。なお、本実施例では演算回路1からの信号か演算
結果の状態を表わす信号として送出される。今、第12
図に示した演算処理装置においてバイト単位の加算演算
“00F 0(H1+ O007(H)”を行なう場合
を例にとって説明する。本実施例では、演算装置で処理
する演算と演算rtJはマイクロ命令で指定される。第
12図の処理装置において、上記データを入力バスPB
A 、PBB−ヒに送出して演算回路1.2で加算を行
なえばRBS上には演算として“OOF 7(H)”が
送出され、バイト単位の演算として“F7(H)”が得
られる。ここで演算結果の状態信号(N、Z。
1) LB---- LATCH least significant bit signal 2
) SG------A, B input's most significant bit match signal 3) P------A, B input generated propagation carry signal 4) CF------A , B input calculation result carry signal 5) G---1---A, B input generation carry signal 6) MB-1---LATCH least significant bit signal?
)3CO---3-2 conversion carrier output signal 8)
3C1---3-2 conversion carrier single power signal 9) BiS-
--Byte position identification signal BiS in FIG. 14 is the same signal as BiS in FIG. 2, and the "l" signal is input to the arithmetic circuit l in FIG. As a result, the signal shown in FIG. 15 can be used as a signal with a different meaning.In this embodiment, the signal is sent from the arithmetic circuit 1 or as a signal representing the state of the arithmetic result. 12th
The case where the arithmetic processing unit shown in the figure performs the byte unit addition operation “00F 0 (H1 + O007(H)”) will be explained as an example. In this embodiment, the operation processed by the arithmetic unit and the operation rtJ are microinstructions. In the processing device shown in FIG.
If it is sent to A, PBB-H and added in arithmetic circuit 1.2, "OOF 7 (H)" is sent as an operation on RBS, and "F7 (H)" is obtained as a byte unit operation. . Here, the state signals (N, Z.

C)を以下のように足腺する。C) is processed as follows.

1 ) N−−−−−ラッチの最上位ビットが1の時l
ラッチの最上位ビットが0の時0 2 ) Z−−−m−ラッチ出力がOの時lラウチ出力
が0の以外の時0 3 ) C−−一−−演算の結果キャリーが生じた時1
演算の結果キャリーが生じない時 (発明が解決しようとする問題点) 上述したバイト単位の加算演算において結果はバイト単
位として正しい結果が得られるが、演算結果の状態信号
(N、Z、C)はZ信号を除いて演算回路lから得られ
その値は(0,0,0)となり、正しい状態信号が得ら
れない。第12図の演算処理装置において正しい状態信
号を得るためには、たとえば上述したパイ)1位の加算
演算“00 F 0(H)+ OOO7(H)””を実
行する際に、バイト単位のデータを符号拡張して各々“
F F F 0(H)”。
1) N-----When the most significant bit of the latch is 1
0 when the most significant bit of the latch is 0 2) Z---m-When the latch output is O 0 when the latch output is other than 0 3) C---1--When a carry occurs as a result of an operation 1
When a carry does not occur as a result of an operation (problem to be solved by the invention) In the byte unit addition operation described above, a correct result is obtained in byte units, but the state signal (N, Z, C) of the operation result is is obtained from the arithmetic circuit l except for the Z signal, and its value is (0, 0, 0), so a correct status signal cannot be obtained. In order to obtain a correct status signal in the arithmetic processing device shown in FIG. The data is sign-extended and each “
F F F 0 (H)”.

0007(−”としてから加算を行なえばとして“F 
F F 7.川°”、状態信号として(1,0,0)の
正しい値が得られる。しかし演算実行以前にデータの符
号拡張を行なわなければならず、処理能力が低下し符号
拡張を行なう回路が必要となる。
If you perform the addition after setting 0007(-), it becomes “F
F F 7. The correct value (1, 0, 0) can be obtained as a state signal.However, the data must be sign-extended before execution of the operation, which reduces processing power and requires a circuit to perform sign-extension. Become.

ワード単位の加算演算“0OFO(H)+0007(H
)’を処理する場合には、入力データを符号拡張せずに
加算を行うことができ、演算結果として“00 F 7
(H,”、状態信号として(0,0,0)が正しく得ら
れる。しかしこの場合においては、演算幅はマイクロ命
令で指定されるため、加算のバイト演算とワード演算を
異なるマイクロ命令ステップで処理しなければならない
。また減算のバイト演算とワード演算を処理する場合も
同じことが言える。更に演算はマイクロ命令で指定され
るため、加算と減算は異なるマイクロ命令のステップで
処理しなければならず、マイクロ命令のステップ数を減
少させることができない。
Word unit addition operation “0OFO(H)+0007(H
)', the addition can be performed without sign extending the input data, and the operation result is "00 F 7
(H,”), (0, 0, 0) is correctly obtained as the status signal. However, in this case, the operation width is specified by the microinstruction, so the byte operation and word operation of addition are performed in different microinstruction steps. The same is true for processing the byte and word operations of subtraction.Furthermore, since the operations are specified in microinstructions, addition and subtraction must be processed in different microinstruction steps. First, it is not possible to reduce the number of microinstruction steps.

従って本発明はマイクロ命令で各命令の演算を共通指示
し、マイクロ命令のステップ数を減少させることを目的
とする。
Accordingly, it is an object of the present invention to commonly instruct operations of each instruction using microinstructions, thereby reducing the number of microinstruction steps.

(問題を解決するための手段) 本発明は演算種類指定情報を演算データ幅指定情報を記
憶する読み出し専用記憶装置(ROM )を設け、命令
コードに従って読み出し専用記憶装置から演算種類と演
算データ幅を読み出し、マイクロ命令により演算の実行
を指示することを特徴とする。
(Means for Solving the Problem) The present invention provides a read-only memory (ROM) that stores operation type specification information and operation data width specification information, and stores the operation type and operation data width from the read-only storage according to an instruction code. It is characterized by instructing the execution of operations using reading and microinstructions.

(作用) 本発明によると、演算回路の演算指定は前記読み出し専
用記憶装置からの演算種類と演算幅、又は、マイクロ命
令自身であり、いずれを選択するかは当該マイクロ命令
に従って決定される。
(Function) According to the present invention, the operation specification of the arithmetic circuit is the operation type and operation width from the read-only storage device or the microinstruction itself, and which one is selected is determined according to the microinstruction.

(実施例) 第1図は本発明の一実施例であって、10はデータ処理
装置で実行可能な命令の制御情報が記憶された読み出し
専用記憶装置(以下MCCと略称する)、11は演算処
理信号作成回路、 12および13は第12図に示した
演算回路1.2と同一構成の演算回路、 14およびi
5は16ビツトのレジスタ、 18は状態信号選択回路
、 17は状態信号セット回路、 19はMCCl0の
演算と演算幅を指定する命令コードを送る命令情報信号
線、20はMCCIGから演算処理信号作成回路llに
送出される演算指定信号の信号線、21はMCCl0か
ら演算処理信号作成回路11に送出”される演算幅指定
信号の信号線、22はマイクロ命令の所定のフィールド
から演算処理信号作成回路11に送出される演算指定信
号の信号線、23はマイクロ命令の所定のフィールドか
ら演算処理信号作成回路11に送出される演算幅指定信
号の信号線、24は演算処理信号作成回路11から演算
回路12および13に送出される演算指定信号の信号線
、25および26は演算処理信号作成回路11から演算
回路12および13に送出されるバイト位置識別信号の
信号線、27および28は演算処理信号作成回路llか
らレジスター4および+5に送出される書込み指示信号
の信号線、29は演算処理信号作成回路11から状態信
号選択回路f6に送出される状態信号選択信号の信号線
、PBAおよびPBBは第12図に示したものと同じ入
力バス、RBSは第12図に示したものと同じ出力バス
である。第2図は、MCCl0に記憶された制御情報の
1エントリとマイクロ命令の所定のフィールドで指定さ
れる演算と演算幅のフィールドを示す。各フィールドの
意味は次の通りである。
(Embodiment) FIG. 1 shows an embodiment of the present invention, in which 10 is a read-only storage device (hereinafter abbreviated as MCC) in which control information of instructions executable by a data processing device is stored, and 11 is an arithmetic operation device. Processed signal generation circuit 12 and 13 are arithmetic circuits having the same configuration as arithmetic circuit 1.2 shown in FIG. 12, 14 and i
5 is a 16-bit register, 18 is a status signal selection circuit, 17 is a status signal set circuit, 19 is an instruction information signal line that sends an instruction code that specifies the operation and operation width of MCCl0, and 20 is an operation processing signal generation circuit from MCCIG. 21 is a signal line for an arithmetic width designation signal sent from MCCl0 to the arithmetic processing signal generation circuit 11; 22 is a signal line for an arithmetic processing signal generation circuit 11 from a predetermined field of the microinstruction; 23 is a signal line for an operation width designation signal sent from a predetermined field of the microinstruction to the operation processing signal generation circuit 11; 24 is a signal line for an operation width specification signal sent from the operation processing signal generation circuit 11 to the operation circuit 12; and 13, signal lines 25 and 26 are signal lines for byte position identification signals sent from the arithmetic processing signal generation circuit 11 to the arithmetic circuits 12 and 13, and 27 and 28 are arithmetic processing signal generation circuits. A signal line 29 is a signal line for a write instruction signal sent from ll to registers 4 and +5, a signal line 29 is a signal line for a state signal selection signal sent from the arithmetic processing signal generation circuit 11 to a state signal selection circuit f6, and PBA and PBB are shown in FIG. RBS is the same input bus as shown in Figure 12, and RBS is the same output bus as shown in Figure 12. The fields for the calculation and calculation width are shown below.The meaning of each field is as follows.

1 )LF−−−−−MCC中の演算幅指定フィールド 2 )I F−−−−−MCC中の演算指定フィールド
3)DTP−−−マイクロ命令中の演算幅指定フィール
ド 4)ALF−m−マイクロ命令中の演算指定フィールド また、各フィールドの特性を第3図〜第6図に示す。第
5図および第6図のEXTは演算および演算幅が、MC
Cl0に記憶された制御情報の1エントリ内のLFおよ
びIFフィールドにより指定されることを示すマイクロ
命令のオーダである。
1) LF------Operation width specification field in MCC 2) IF------Operation specification field in MCC 3) DTP---Operation width specification field in microinstruction 4) ALF-m- Operation designation fields in microinstructions and the characteristics of each field are shown in FIGS. 3 to 6. EXT in Figures 5 and 6 has an operation and operation width of MC.
This is the order of microinstructions indicated by the LF and IF fields in one entry of control information stored in Cl0.

第7図は演算処理信号作成回路11から演算回路12お
よび13に送出される演算信号の特性を示す、第8図は
演算処理信号作成回路tiから演算回路12および13
に送出されるバイト位置識別信号の特性を示す、第9図
は演算処理信号作成回路11からレジスタ14および1
5に送出される書き込み指示信号の特性を示す。第1O
図は演算処理信号回路11から状態信号選択回路16に
送出される状態信号選択信号の特性を示す。第11図は
バイト位置識別信号の特性による演算回路の入出力特性
を示す、以下動作例として加算のバイト演算およびワー
ド演算、減算のバイト演算およびワード演算の処理につ
いて述べる。
FIG. 7 shows the characteristics of the arithmetic signal sent from the arithmetic processing signal generation circuit 11 to the arithmetic circuits 12 and 13. FIG.
FIG. 9 shows the characteristics of the byte position identification signal sent to the registers 14 and 1 from the arithmetic processing signal generation circuit 11.
5 shows the characteristics of the write instruction signal sent to No. 5. 1st O
The figure shows the characteristics of the state signal selection signal sent from the arithmetic processing signal circuit 11 to the state signal selection circuit 16. FIG. 11 shows the input/output characteristics of the arithmetic circuit according to the characteristics of the byte position identification signal. Below, as operation examples, processing of addition byte operations and word operations, and subtraction byte operations and word operations will be described.

今、マイクロプログラムの100(H,番地の内容で、
レジスター4とレジスター5の演算を行ない結果なしジ
スタ14に格納し、演算と演算幅はDTP、ALFで“
E X T ”が指定することが示されているとする。
Now, with the contents of address 100 (H,) of the microprogram,
Perform the calculations in registers 4 and 5 and store the result in register 14, and the calculation and calculation width are "
Suppose that it is indicated that "EXT" is specified.

また、加算のバイト演算およびワード演算、減算のバイ
ト演算およびワード演算のマイクロプログラム実行開始
アドレスがいずれも100(H)番地であるとする。ま
たデータとしてレジスタ14には“’ OOF 0(H
)’”、レジスタ15には“000ハ8)”が格納され
ているものとする。
It is also assumed that the microprogram execution start address for addition byte operations and word operations, and subtraction byte operations and word operations are all at address 100(H). Also, as data, the register 14 contains "' OOF 0 (H
)'", and the register 15 stores "000ha8)".

まず演算処理信号作成回路11による演算と演算幅の処
理動作であるが、命令実行開始時、MCC10に記憶さ
れた制御情報の内命令コードに対応するエントリのLF
、IFの内容が演算処理信号作成回路11に送出される
。以下、LF 、 I Fの内容を示す。
First, the calculation and calculation width processing operations by the calculation processing signal generation circuit 11 are performed. At the start of instruction execution, the LF of the entry corresponding to the instruction code in the control information stored in the MCC 10
, IF contents are sent to the arithmetic processing signal generation circuit 11. The contents of LF and IF are shown below.

l)加算のバイト演算−−−−−LF=0(罰。l) Byte operation of addition---LF=0 (punishment.

IF=O,川 2)加算のワード演算−−−−−L F = 1 (1
1) 。
IF=O, River 2) Word operation of addition---L F = 1 (1
1).

IF=O(,4) 3)減算のバイト演算−−−−−L F = 0(H)
 。
IF=O(,4) 3) Subtraction byte operation---L F = 0(H)
.

I F ” 1 (H) 4)減算のワード演算−−−−−L F = l (H
) 。
IF ” 1 (H) 4) Word operation of subtraction---L F = l (H
).

IF=1cH) 100(、)番地のマイクロ命令からは、DTP=“E
XT”、ALF=’“EXT”の信号が演算処理信号作
成回路11に送出される。演算処理回路作成回路11で
は、 100tH)番地のマイクロ命令からDTP=”
 E X T”、ALF=”EXT″の信号を受信する
と演算と演算幅を指定する信号としてMCCl0から送
出されたLF、IFを選択する。次に演算処理信号作成
回路11から送出する制御信号による演算回路12およ
び13.レジスタ14および15.状態信号選択回路I
Bの動作例を示す。
IF=1cH) From the microinstruction at address 100(,), DTP="E
XT", ALF="EXT" signals are sent to the arithmetic processing signal creation circuit 11. In the arithmetic processing circuit creation circuit 11, DTP=" from the microinstruction at address 100tH).
When the signals ``EX T'' and ALF="EXT'' are received, LF and IF sent from MCCl0 are selected as signals specifying the calculation and calculation width. Next, according to the control signal sent from the calculation processing signal generation circuit 11. Arithmetic circuits 12 and 13. Registers 14 and 15. Status signal selection circuit I
An example of operation of B is shown below.

1)加算のバイト演算の場合 演算処理信号作成回路11から演算処理信号として、演
算回路12および13に“0(H)”が送出される(第
7図参照)。バイト位置識別信号として演算回路13に
“l (H)”が送出され、演算回路12には有意の信
号は送出されない(第8図参照)、入力バスPBA 、
PBB上には符号拡張をしていない゛” OOF o、
、、+1 、“0007 (H,”のデータが送出され
ている。演算回路13は入力バスPBA 、 PBBか
らそれぞれ下位8ビツトでデータ“FO(+−+1” 
、” 07(H)”のデータを入力して加算を行ない、
演算結果として“F7.H)”を出力バスRBS上に送
出する。演算回路13には、バイト位置識別信号として
“1゛°が送出されているので、演算回路13から状態
信号選択回路18に送出される信号は、” F 0(H
)+07(H)’”の加算を行なった結果の状態信号(
N、Z、C)である。演算回路12は入力バスPBA 
、PBBからN1001.41” 1 “00(1)”
の入力データを入力して加算を行なうが、有意なバイト
位置識別信号が送出されていないので出力バスRBSに
送出される演算結果は予測不可能であり、状態信号選択
回路1Bに送出される信号も予測不可能である。
1) In the case of addition byte operation "0 (H)" is sent from the arithmetic processing signal generating circuit 11 to the arithmetic circuits 12 and 13 as an arithmetic processing signal (see FIG. 7). "l (H)" is sent to the arithmetic circuit 13 as a byte position identification signal, and no significant signal is sent to the arithmetic circuit 12 (see FIG. 8).
There is no sign extension on PBB゛” OOF o,
, , +1, and "0007 (H,") are sent out.The arithmetic circuit 13 receives data "FO(+-+1") from the input buses PBA and PBB in the lower 8 bits, respectively.
, input the data of "07(H)" and perform addition,
As the calculation result, "F7.H)" is sent onto the output bus RBS. Since “1°” is sent to the arithmetic circuit 13 as a byte position identification signal, the signal sent from the arithmetic circuit 13 to the status signal selection circuit 18 is “F 0 (H
)+07(H)''' resultant state signal (
N, Z, C). The arithmetic circuit 12 is an input bus PBA
, PBB to N1001.41” 1 “00(1)”
However, since no significant byte position identification signal is sent, the operation result sent to the output bus RBS is unpredictable, and the signal sent to the status signal selection circuit 1B is is also unpredictable.

演算処理信号作成回路11からレジスタ14に′0”、
レジスタ15に“l″の書き込み指示信号が送出され、
” OOF O(H)”と00007(、)”の加算結
果の下1バイトの“F7(H)”がレジスタ15に書き
込まれレジスタ14には何も書き込まない(第13図参
照)。
'0' from the arithmetic processing signal generation circuit 11 to the register 14,
A write instruction signal of “l” is sent to the register 15,
The lower one byte "F7(H)" of the addition result of "OOF O(H)" and 00007(, )" is written to the register 15, and nothing is written to the register 14 (see FIG. 13).

演算処理信号作成回路11から状態信号選択回路1Bに
状態信号選択信号“0”が送出され、演算回路13から
状態信号選択回路18に送出された信号が状態信号とし
て選択され状態信号セット回路17に送出される(第1
4図参照)。
A state signal selection signal "0" is sent from the arithmetic processing signal generation circuit 11 to the state signal selection circuit 1B, and the signal sent from the arithmetic circuit 13 to the state signal selection circuit 18 is selected as a state signal and sent to the state signal set circuit 17. sent (first
(See Figure 4).

11)加算のワード演算の場合 演算処理信号作成回路11から演算信号として、演算回
路12および13に“0(H〉”が送出される(第7図
参照)、バイト位置識別信号として、演算回路12に“
1”、演算回路13に“O″が送出される(第8図参照
)、入力バスPBA、PBB上には“Q OF O(+
4)”、“OO07,−”のデータが送出されている。
11) In the case of word operation of addition, "0 (H>") is sent from the arithmetic processing signal generation circuit 11 to the arithmetic circuits 12 and 13 as an arithmetic signal (see FIG. 7), and as a byte position identification signal, the arithmetic circuit 12 “
1", "O" is sent to the arithmetic circuit 13 (see Fig. 8), "Q OF O (+
4)", "OO07,-" data are being sent.

演算回路13は入力バスPBA 、PBBからFO(H
)″ 、N07(,4)”のデータを入力して加算を行
ない、演算結果として“F7(、)”を出力バスRBS
上に送出する。演算回路13にはバイト位置識別信号“
0″が送出されているので状態信号選択回路2Bに送出
される信号は状態信号(N、Z、C)を表わしてはいな
い、(第11図参照3 照)。演算回路12は入力バスPBA 、PBBから“
o o、H,” 、“00←)”を、演算回路13から
は“FO(Ml”と“0η□)”の加算を行なった結果
のキャリー信号を入力して加算を行ない、演算結果とし
て“00(1)”を出力バスRBS上に送出する。演算
回路12にはバイト位置識別信号“1″が送出されてい
るので状態信号選択回路toに送出される信号は状態信
号(N、Z、C)を表わしている(第11図参照)。
The arithmetic circuit 13 connects input buses PBA and PBB to FO(H
)″, N07(,4)” are input and added, and “F7(,)” is output as the calculation result to the bus RBS.
Send upward. The arithmetic circuit 13 receives a byte position identification signal “
0'' is sent, the signal sent to the status signal selection circuit 2B does not represent the status signal (N, Z, C) (see Figure 11).The arithmetic circuit 12 is connected to the input bus PBA. , from PBB “
o o, H,", "00←)" is input from the arithmetic circuit 13 with the carry signal of the result of adding "FO(Ml" and "0η□)", and the addition is performed, and the calculation result is "00(1)" is sent onto the output bus RBS.Since the byte position identification signal "1" is sent to the arithmetic circuit 12, the signal sent to the state signal selection circuit to is the state signal (N, Z , C) (see Figure 11).

演算処理信号作成回路11からレジスタ14および15
にN1”、“1”の書込み指示信号(第9図参照)が送
出され、レジスタ15には“OOF 0(H)+000
7LH)″の演算結果の下位1バイト“F7(H)″か
書込まれ、レジスタ14には上位1バイト“” o o
 (、)”が書き込まれる。
From the arithmetic processing signal generation circuit 11 to registers 14 and 15
A write instruction signal of “N1” and “1” (see FIG. 9) is sent to the register 15, and “OOF 0(H)+000” is sent to the register 15.
The lower 1 byte “F7(H)” of the operation result of “7LH)” is written, and the upper 1 byte “” o o
(,)” is written.

演算処理信号作成回路!lから状態信号選択回路1Bに
状態信号選択信号“1″が送出され(第1O図参照)、
演算回路12から状態信号選択回路1Bに送出された信
号が状態信号として選択され状態信号セット回路17に
送出される。
Arithmetic processing signal creation circuit! A state signal selection signal "1" is sent from 1 to the state signal selection circuit 1B (see FIG. 1O),
A signal sent from the arithmetic circuit 12 to the state signal selection circuit 1B is selected as a state signal and sent to the state signal set circuit 17.

11;)減算のバイト演算の場合 演算処理信号作成回路11から演算処理信号として、演
算回路12および13に“1.H)”が送出される(第
7図参照)。以下演算処理信号選択回路11から演算回
路12および13.レジスタ14および15.状態信号
選択回路1Bに送出される信号の意味はi)の場合と同
様である。
11;) In the case of a subtraction byte operation, "1.H)" is sent from the arithmetic processing signal generation circuit 11 to the arithmetic circuits 12 and 13 as an arithmetic processing signal (see FIG. 7). From the arithmetic processing signal selection circuit 11 to the arithmetic circuits 12 and 13. Registers 14 and 15. The meaning of the signal sent to the status signal selection circuit 1B is the same as in case i).

jv)減算のワード演算の場合 演算処理信号作成回路11から演算信号として、演算回
路12および13に“lfHゾが送出される(第7図参
照)。以下処理信号作成回路11から演算回路12およ
び13.レジスタ14および15.状態信号選択回路1
6に送出される信号の意味は11)の場合と同様である
jv) In the case of a subtraction word operation, "lfH" is sent from the arithmetic processing signal generation circuit 11 to the arithmetic circuits 12 and 13 as an arithmetic signal (see FIG. 7). 13. Register 14 and 15. Status signal selection circuit 1
The meaning of the signal sent to 6 is the same as in 11).

(発明の効果) 以上述べたように第1図に示した本発明の一実施例では
、MCCl0に記憶された命令の演算指定情報と演算幅
指定情報、またはマイクロ命令内の所定のフィールドで
指定される演算指定情報と演算幅指定情報をマイクロ命
令のオーダで任意に指定できるようにした結果、同一の
マイクロプログラムの番地で数種類の命令を処理できそ
のためマイクロプログラムのステップ数を減少できる効
果と、更に演算処理信号作成回路11から演算回路12
および13に第12図に示したバイト位置識別信号。
(Effects of the Invention) As described above, in the embodiment of the present invention shown in FIG. As a result of making it possible to arbitrarily specify the operation specification information and operation width specification information in the order of microinstructions, it is possible to process several types of instructions at the same microprogram address, thereby reducing the number of steps in the microprogram. Furthermore, the arithmetic processing signal generation circuit 11 to the arithmetic circuit 12
and 13 the byte position identification signal shown in FIG.

状態信号選択回路16に第1θ図に示した状態信号選択
信号を送出することにより、16ビツトの演算処理装置
において符号拡張をせずにバイト演算が処理でき、符号
拡張のための回路を持たなくて良いという効果がある。
By sending the status signal selection signal shown in Fig. 1θ to the status signal selection circuit 16, byte operations can be processed without sign extension in a 16-bit arithmetic processing unit, and there is no need for a circuit for sign extension. It has a positive effect.

本発明により異なる演算種類および異なる演算データ幅
の各種命令演算が1つのマイクロ命令で実施でき、マイ
クロ命令のステップの大幅な削減が可能となった。
According to the present invention, various instruction operations of different operation types and different operation data widths can be executed with one microinstruction, and the number of microinstruction steps can be significantly reduced.

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

第1図は本発明の一実施例のブロック図、第2図は第1
図のMCCとマイクロ命令内における演算指定情報と演
算幅指定情報のフィールド構成図、第3図はMCC内の
演算幅指定フィールドのビット構成図、第4図はMCC
内の演算指定フィールドのビット構成図、第5図はマイ
クロ命令内の演算幅指定フィールドのビット構成図。 第6図はマイクロ命令内の演算指定フィールドのビット
構成図、第7図は第1図の演算処理信号作成回路から第
1図の演算回路に祷出される演算信号のビット構成図、
第8図は第1図の演算処理信号作成回路から第1図の演
算回路に送出されるバイト位置識別信号の特性図、第9
図は第4図の演算処理信号作成回路から第1図のレジス
タに送出される書込み指示信号の特性図、第1O図は第
1図の演算処理信号作成回路から第1図の状態信号選択
回路に送出される状態信号選択信号の特性図。 第11図はバイト位置識別信号による演算回路の入出力
信号の相違を示す図、第12図は従来の演算処理装置の
ブロック図、第13図は第12図の演算回路の詳細図、
第14図は第13図の制御回路の詳細図。 第15図は第14図の制御回路により選択される信号の
説明図である。 lO;読み出し専用記憶装置(生成回路)。 ll;演算処理信号作成回路(切替回路)。 12、13;演算回路。 14.15.レジスタ。 18:状態信号選択回路。 17;状態信号セット回路。
FIG. 1 is a block diagram of one embodiment of the present invention, and FIG. 2 is a block diagram of an embodiment of the present invention.
The field configuration diagram of the operation specification information and operation width specification information in the MCC and microinstruction shown in the figure, Figure 3 is a bit configuration diagram of the operation width specification field in the MCC, and Figure 4 is the MCC.
FIG. 5 is a bit configuration diagram of an operation width specification field in a microinstruction. 6 is a bit configuration diagram of an operation designation field in a microinstruction, FIG. 7 is a bit configuration diagram of an operation signal sent from the operation processing signal generation circuit of FIG. 1 to the operation circuit of FIG. 1,
8 is a characteristic diagram of the byte position identification signal sent from the arithmetic processing signal generation circuit of FIG. 1 to the arithmetic circuit of FIG. 1;
The figure is a characteristic diagram of the write instruction signal sent from the arithmetic processing signal generation circuit of Fig. 4 to the register of Fig. 1, and Fig. 1O is a characteristic diagram of the write instruction signal sent from the arithmetic processing signal generation circuit of Fig. 1 to the state signal selection circuit of Fig. 1. FIG. 3 is a characteristic diagram of a state signal selection signal sent to the. FIG. 11 is a diagram showing the difference in input and output signals of the arithmetic circuit according to the byte position identification signal, FIG. 12 is a block diagram of a conventional arithmetic processing device, and FIG. 13 is a detailed diagram of the arithmetic circuit of FIG. 12.
FIG. 14 is a detailed diagram of the control circuit shown in FIG. 13. FIG. 15 is an explanatory diagram of signals selected by the control circuit of FIG. 14. lO; read-only storage device (generation circuit). ll; Arithmetic processing signal creation circuit (switching circuit). 12, 13; Arithmetic circuit. 14.15. register. 18: Status signal selection circuit. 17; Status signal set circuit.

Claims (1)

【特許請求の範囲】[Claims] マイクロプログラム制御の演算処理装置において、命令
コードに従って、当該命令の演算の種類と演算のデータ
幅とからなる演算指定情報を生成する生成回路(10)
を備え、マイクロ命令の内容に従って当該マイクロ命令
または前記生成回路(10)のいずれかを選択する演算
処理信号作成回路(11)と選択された出力に従って演
算を行なう演算回路(12、13)とを有し、マイクロ
命令又は前記生成回路(10)の出力のいずれかを当該
マイクロ命令自身により選択し、その結果により前記演
算回路(12、13)へ演算指定を行なうことを特徴と
する演算処理装置。
In a microprogram-controlled arithmetic processing device, a generation circuit (10) generates operation designation information consisting of the type of operation of the instruction and the data width of the operation according to the instruction code.
and an arithmetic processing signal generation circuit (11) that selects either the microinstruction or the generation circuit (10) according to the content of the microinstruction, and an arithmetic processing circuit (12, 13) that performs an arithmetic operation in accordance with the selected output. an arithmetic processing device, wherein either a microinstruction or an output of the generation circuit (10) is selected by the microinstruction itself, and an operation is specified to the arithmetic circuit (12, 13) based on the result. .
JP59137967A 1984-07-05 1984-07-05 Arithmetic processor Pending JPS6118041A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59137967A JPS6118041A (en) 1984-07-05 1984-07-05 Arithmetic processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59137967A JPS6118041A (en) 1984-07-05 1984-07-05 Arithmetic processor

Publications (1)

Publication Number Publication Date
JPS6118041A true JPS6118041A (en) 1986-01-25

Family

ID=15210920

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59137967A Pending JPS6118041A (en) 1984-07-05 1984-07-05 Arithmetic processor

Country Status (1)

Country Link
JP (1) JPS6118041A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4763246A (en) * 1984-08-18 1988-08-09 International Computers Limited Microprogram control

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4763246A (en) * 1984-08-18 1988-08-09 International Computers Limited Microprogram control

Similar Documents

Publication Publication Date Title
EP0220684B1 (en) Data processing system
US4240139A (en) Address generating system
US4179731A (en) Microprogrammed control system
US4763246A (en) Microprogram control
US5226129A (en) Program counter and indirect address calculation system which concurrently performs updating of a program counter and generation of an effective address
US5077659A (en) Data processor employing the same microprograms for data having different bit lengths
EP0180157A2 (en) Information processing unit
JPS6118041A (en) Arithmetic processor
JPH0648461B2 (en) Microprogram transfer register specification method
EP0265972B1 (en) Control of the program counter used in a pipelined computer
JPH0528431B2 (en)
JP3144424B2 (en) CPU restart circuit
JPS63111535A (en) Data processor
JPS58166419A (en) One-chip microcomputer
JPS622332B2 (en)
JPS58200349A (en) Microprogram controller
JP3116444B2 (en) Semiconductor computing equipment and electronic equipment
JPS6051734B2 (en) Microprogram control method
JPS6049335B2 (en) Branch address determination method in microprogram controlled data processing equipment
JPS5839347A (en) Processor
JPH10105377A (en) Floating-point data processing means
JPS61235946A (en) data processing equipment
JPS6024643A (en) Microprogram controlling system
JPS6014334A (en) Data processor
JPH0731599B2 (en) Data processing system