JPS63211024A - data processor - Google Patents
data processorInfo
- Publication number
- JPS63211024A JPS63211024A JP62042504A JP4250487A JPS63211024A JP S63211024 A JPS63211024 A JP S63211024A JP 62042504 A JP62042504 A JP 62042504A JP 4250487 A JP4250487 A JP 4250487A JP S63211024 A JPS63211024 A JP S63211024A
- Authority
- JP
- Japan
- Prior art keywords
- shifter
- multiplicand
- signal
- bit
- selector
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F7/00—Methods or arrangements for processing data by operating upon the order or content of the data handled
- G06F7/38—Methods or arrangements for performing computations using exclusively denominational number representation, e.g. using binary, ternary, decimal representation
- G06F7/48—Methods or arrangements for performing computations using exclusively denominational number representation, e.g. using binary, ternary, decimal representation using non-contact-making devices, e.g. tube, solid state device; using unspecified devices
- G06F7/499—Denomination or exception handling, e.g. rounding or overflow
- G06F7/49994—Sign extension
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
この発明は、データプロセッサに関し、例えば乗算機能
を持つマイクロプロセッサに利用して有効な技術に関す
るものである。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a data processor, and relates to a technique that is effective for use in, for example, a microprocessor having a multiplication function.
マイクロプロセッサにおける乗算は、加算の組み合わせ
から行われる。このような乗算方法に関しては、例えば
、CQ出版社、昭和58年9月15日発行rマイクロコ
ンビエータの内部構造と機械語J福永邦雄著、頁147
〜頁150に述べられている。この乗算は、乗数及び被
乗数が8ビツトの場合、8回の繰り返し加算動作を必要
とするため演算動作が遅いという問題がある。そこで、
乗数の2ビツト又は3ビツト等のように複数ビットによ
る一様桁移動方式による乗算方法が提案されている(例
えば、社団法人発明協会昭和56年4月10日発行r特
許からみたコンピュータシステム1頁336)、この−
橋桁移動方式では、例えば乗数を最下位桁から一様に2
ビツトづつグループ分けし、隣接する下位の桁との3ビ
ツトを対象として、被乗数の0〜3倍の部分積を順次加
算する。したがって、上記乗数及び被乗数が8ビツトの
場合、4回の加算動作によって乗算を行うことができる
。Multiplication in microprocessors is performed from combinations of additions. Regarding such multiplication methods, for example, see CQ Publishing Co., September 15, 1980, Internal Structure and Machine Language of a Micro Combiator, J. Kunio Fukunaga, p. 147.
~ pages 150. This multiplication has the problem that when the multiplier and multiplicand are 8 bits, the calculation operation is slow because eight repeated addition operations are required. Therefore,
A multiplication method using a uniform digit shift method using multiple bits, such as 2-bit or 3-bit multiplier, has been proposed (for example, Computer System Viewed from Patent R, published by Japan Institute of Invention and Innovation, April 10, 1980, p. 1). 336), this-
In the bridge girder movement method, for example, the multiplier is uniformly set to 2 starting from the lowest digit.
Bits are grouped one by one, and partial products of 0 to 3 times the multiplicand are sequentially added to three bits with adjacent lower digits. Therefore, if the multiplier and multiplicand are 8 bits, multiplication can be performed by four addition operations.
しかしながら、このような−橋桁移動方式においては、
上記部分積を形成する回路が複雑となり、また、上記部
分積に応じて桁数が増加するので、順次加算を行うため
被乗数と乗数が8ビツトであっても、9ビツトの入力を
持つ演算ユニットが必要になってしまう。However, in such a bridge girder movement method,
The circuit that forms the above partial products becomes complex, and the number of digits increases according to the above partial products. Therefore, even if the multiplicand and multiplier are 8 bits, an arithmetic unit with a 9-bit input is required to perform sequential addition. becomes necessary.
この発明の目的は、簡単な構成により乗算動作の高速化
を実現したデータプロセッサを提供することにある。An object of the present invention is to provide a data processor that achieves high-speed multiplication operations with a simple configuration.
この発明の前記ならびにそのほかの目的と新規な特徴は
、本明細書の記述および添付図面から明らかになるであ
ろう。The above and other objects and novel features of the present invention will become apparent from the description of this specification and the accompanying drawings.
(問題点を解決するための手段)
本願において開示される発明のうち代表的なものの概要
を簡単に説明すれば、下記の通りである。(Means for Solving the Problems) A brief overview of typical inventions disclosed in this application is as follows.
すなわち、補数器により被乗数の補数を形成しておいて
、上記被乗数、その補数又は零を選択的に伝達するセレ
クタを介して算術演算ユニットの一方の入力に伝達し、
この算術演算ユニットの他方の入力には、その出力信号
をパラレルに受ける第1のシフタ及び第3のシフタを通
して伝達し、乗数を第2のシフタによって単位の演算に
必要な複数ビットの信号を符号拡張回路を介して正準リ
コーダに供給して上記セレクタ及び第1、第3のシフタ
の制御信号を形成して複数ビットに対応した部分積演算
を実行させる。That is, the complement of the multiplicand is formed by a complementer, and the complement is transmitted to one input of the arithmetic operation unit via a selector that selectively transmits the multiplicand, its complement, or zero;
The other input of this arithmetic operation unit is transmitted through a first shifter and a third shifter that receive the output signal in parallel, and a multiplier is transmitted to the second shifter to encode the multi-bit signal necessary for the unit operation. The signal is supplied to the canonical recorder via an expansion circuit to form control signals for the selector and the first and third shifters, thereby executing a partial product operation corresponding to a plurality of bits.
上記した手段によれば、セレクタやシフタを介して軍術
演算ユニットの入力信号を形成するので、被乗数及び乗
数のデータ長に対応した算術演算ユニットを用いて高速
乗算動作を実現できる。According to the above-mentioned means, since the input signal of the military arithmetic operation unit is formed via the selector or shifter, high-speed multiplication operation can be realized using the arithmetic operation unit corresponding to the data length of the multiplicand and the multiplier.
第1図には、この発明が適用された算術論理演算部の一
実施例のブロック図が示されている。同図の各回路ブロ
ックは、特に制限されないが、公知の半導体集積回路の
製造技術によって、単結晶シリコンのような1個の半導
体基板上において形成される。FIG. 1 shows a block diagram of an embodiment of an arithmetic and logic operation unit to which the present invention is applied. Although not particularly limited, each circuit block in the figure is formed on a single semiconductor substrate such as single crystal silicon by a known semiconductor integrated circuit manufacturing technique.
この実施例では、特に制限されないが、被乗数及び乗数
は8ピントのデータとされる。被乗数はレジスタ1に取
り込まれる。このレジスタ1の出力信号は、補数器に供
給され、ここで補数が形成される。この補数と上記乗数
及びデータ0は、セレクタによって選択的に算術演算ユ
ニット(ALtJ) 4の一方の入力に供給される。同
図では、上記補数器とセレクタとが1つの回路ブロック
3によって示されている。In this embodiment, although not particularly limited, the multiplicand and the multiplier are 8 pinto data. The multiplicand is taken into register 1. The output signal of this register 1 is fed to a complementer, where a complement is formed. This complement, the multiplier and data 0 are selectively supplied to one input of the arithmetic operation unit (ALtJ) 4 by a selector. In the figure, the complementer and selector are shown by one circuit block 3.
上記算術演算ユニット4の出力信号は、パラレルに第1
のシフタA5に供給される。このシフタA5の出力信号
は、パラレルに第3のシフタC7に供給され、これらの
シフタA5及びシフタC7を介して上記算術演算ユニッ
ト4の出力信号がその他方の入力に供給される。また、
乗数は第2のシフタB6に取り込まれる。上記セレクタ
及び各シフタA−Cは、8ビツトからなるものである。The output signal of the arithmetic operation unit 4 is connected to the first
is supplied to shifter A5. The output signal of this shifter A5 is supplied in parallel to a third shifter C7, and the output signal of the arithmetic operation unit 4 is supplied to the other input via these shifters A5 and C7. Also,
The multiplier is taken into the second shifter B6. The selector and each shifter A to C are composed of 8 bits.
上記シフタB6に取り込まれた乗数は、最下位ビットL
SBから2ビツトを単位として隣接する上位1ビツトが
付加された合計3ビツトづつが符号拡張回路8に供給さ
れる。すなわち、後述するように、第1回目は0ないし
2の3ビツトが、第2回目は2ないし4の3ビツトのよ
うな組み合わせとされる。この符号拡張回路8からの3
ビツトの信号BOないしB2は、正準リコーダ2に供給
される。正準リコーダ2は、上記信号BOないしB2と
、前サイクルのキャリー出力Coutをキャリー人力C
inとして受けて、データX1.X2及び−倍信号を形
成する。The multiplier taken into the shifter B6 is the least significant bit L
A total of 3 bits each including 2 bits from the SB and the adjacent upper 1 bit are supplied to the sign extension circuit 8. That is, as will be described later, the first time is a combination of 3 bits from 0 to 2, the second time is a combination of 3 bits from 2 to 4, and so on. 3 from this sign extension circuit 8
The bit signals BO to B2 are supplied to a canonical recorder 2. The standard recorder 2 carries the signals BO to B2 and the carry output Cout of the previous cycle.
received as in, data X1. Form the X2 and - times signals.
正準リコーダ2は、上記出力信号XI、X2及び−の情
報ビットによって、上記シフタA5、シフタC7及びセ
レクタの制御信号を形成する0例えば、正準リコーダ2
はセレクタに対して択一的に伝達すべき上記被乗数、そ
の補数又はデータ0を指示する。また、正準リコーダ2
は、シフタA5に対して1ビツト又は2ビツトの右シフ
ト動作を指示し、シフタC7に対してはスルー又は1ビ
ツトの右シフト動作を指示する。The canonical recorder 2 forms control signals for the shifter A5, shifter C7 and selector according to the information bits of the output signals XI, X2 and -.
indicates the multiplicand, its complement, or data 0 to be alternatively transmitted to the selector. Also, canonical recorder 2
instructs shifter A5 to perform a 1-bit or 2-bit right shift operation, and instructs shifter C7 to perform a through or 1-bit right shift operation.
表−1
この実施例回路の乗算動作を、第2図に示した動作説明
図を参照して次に説明する。Table 1 The multiplication operation of this embodiment circuit will now be explained with reference to the operation diagram shown in FIG.
第1回目の加算動作においては、シフタB6に供給され
た乗数のうち、最下位ビットしSBから3ビツトがパラ
レルに符号拡張回路8に供給される。この出力動作とと
もにシフタBは、2ビツト右シフトされる0次の第2回
目の加算動作においては、上記シフタBの2ビット右シ
フト動作により、下位3ビツトの信号は、2ないし4の
3ビツトの信号とされる。以下、同様に第3回目の加算
動作においては、4ないし6の3ビツトの信号とされ、
第4回目の加算動作のとき6ないし8の3ビツトの信号
とされる。ただし、この第4B!目の動作サイクルでは
、乗数が0ないし7の8ビツトからなるものであるので
、上記符号拡張回路によってビット8が付加される。な
お、データ長が16ビツト等のように大きい場合、上記
の同様な組み合わせにより、上記信号BOないしB2が
形成される。In the first addition operation, of the multiplier supplied to the shifter B6, three bits starting from the least significant bit SB are supplied in parallel to the sign extension circuit 8. Along with this output operation, in the second addition operation of the 0th order, which is shifted to the right by 2 bits, the lower 3 bits of the signal are changed to 3 bits 2 to 4 by the 2-bit right shifting operation of shifter B. It is considered to be a signal. Similarly, in the third addition operation, a 3-bit signal of 4 to 6 is used.
In the fourth addition operation, the signal is a 3-bit signal of 6 to 8. However, this 4th B! In the second operation cycle, since the multiplier consists of 8 bits from 0 to 7, bit 8 is added by the sign extension circuit. Note that when the data length is large, such as 16 bits, the above-mentioned signals BO to B2 are formed by the same combination as above.
上記各動作サイクルにおける符号拡張回路8の出力信号
BOないしB2により、正準リコーダ2の変換信号X2
.XI及び−倍が000なら、十〇の加算を行う、すな
わち、セレクタはデータOを出力する。シフタA5を右
2ビツトシフトさせる。シフタC7は信号をスルーとす
る。すなわち、第1回目の加算動作なら、シフタAにデ
ータOがそのまま取り込まれる。第2回目以降の加算動
作なら、シフタAの信号が右方向に2ビツトシフトされ
るのみである。The converted signal X2 of the canonical recorder 2 is generated by the output signals BO to B2 of the sign extension circuit 8 in each of the above operation cycles.
.. If XI and - times are 000, addition of 10 is performed, that is, the selector outputs data O. Shift shifter A5 2 bits to the right. Shifter C7 passes the signal through. That is, in the first addition operation, data O is taken into shifter A as is. In the second and subsequent addition operations, the signal of shifter A is only shifted two bits to the right.
また、上記変換信号X2.XI及び−倍が010なら、
被乗数の加算を行う、すなわち、セレクタは被乗数を算
術演算ユニットの一方の入力に供給する。シフタA5に
保持された前の動作サイクルでの加算結果は、シフタC
を介して算術演算ユニット4の他方の入力に供給され、
その加算が行われシフタA5に取り込まれる。この演算
結果は右2ビツトシフトさせる。なお、第1回目の加算
動作なら、シフタAに被乗数がそのまま取り込まれる。Further, the conversion signal X2. If XI and - times are 010,
Addition of the multiplicands is performed, ie the selector supplies the multiplicands to one input of the arithmetic unit. The addition result from the previous operation cycle held in shifter A5 is transferred to shifter C
is supplied to the other input of the arithmetic unit 4 via
The addition is performed and taken into shifter A5. The result of this operation is shifted to the right by 2 bits. Note that in the case of the first addition operation, the multiplicand is taken into shifter A as it is.
また、上記変換信号X2.Xl及び−倍が100なら、
×2倍の被乗数の加算を行う、すなわち、セレクタは被
乗数を算術演算ユニットの一方の入力に供給する。シフ
タA5に保持された前の動作サイクルでの加算結果は、
シフタCを介して1ビツト右方向にシフトされ算術演算
ユニット4の他方の入力に供給される。このシフト動作
によりシフタC7の最下位ビットからはみ出した1ビツ
トの信号は、シフタBの最上位ビットに取り込まれる。Further, the conversion signal X2. If Xl and - times 100,
The multiplicand is added by ×2, ie, the selector supplies the multiplicand to one input of the arithmetic unit. The addition result in the previous operation cycle held in shifter A5 is
It is shifted to the right by one bit via shifter C and supplied to the other input of arithmetic operation unit 4. As a result of this shift operation, the 1-bit signal that has protruded from the least significant bit of shifter C7 is taken into the most significant bit of shifter B.
上記のように前の加算結果が1ビツト右側にシフトされ
る結果、前の加算結果からみると上記被乗数が2倍(1
ビツトの桁上げ)されたのと同様になり、両者の加算結
果がシフタAに取り込まれる。このとき、シフタAは、
1ビツトの右シフトを行い上記シフタBの最上位ビット
から供給する。これにより、シフタBの上位2ビツトに
は、上記シフタCからの1ビツトとシフタAからの1ビ
ツトの信号が供給される。なお、第1回目の加算動作な
ら、シフタAに被乗数がそのまま取り込まれ、その最下
位ビットにシフタC7からの0が付加され、それが1ビ
ツト右方向にシフトされる。As a result of shifting the previous addition result to the right by 1 bit as described above, the above multiplicand is doubled (1
The result of the addition of both is taken into shifter A. At this time, shifter A is
A 1-bit right shift is performed and the signal is supplied from the most significant bit of the shifter B. As a result, the upper two bits of shifter B are supplied with a 1-bit signal from shifter C and a 1-bit signal from shifter A. In the case of the first addition operation, the multiplicand is taken into shifter A as it is, 0 from shifter C7 is added to its least significant bit, and it is shifted one bit to the right.
これによって、被乗数に対して、シフタBの上位第2ビ
ツトを基準にして、2倍されたデータがシフタA及びシ
フタBの最上位ビットに取り込まれることになる。As a result, data obtained by doubling the multiplicand with respect to the second most significant bit of shifter B is taken into the most significant bit of shifter A and shifter B.
また、上記変換信号X2.XI及び−倍が011なら、
−1倍の被乗数の加算を行う、この加算動作は、上記セ
レクタが上記被乗数に代えて補数を選択して出力させる
ものであり、上記+被乗数の加算同様である。Further, the conversion signal X2. If XI and - times are 011, then
This addition operation in which the -1 times multiplicand is added is such that the selector selects and outputs the complement instead of the multiplicand, and is similar to the addition of the + multiplicand described above.
また、上記変換信号X2.XI及び−倍が101なら、
×2倍の被乗数の減算、言いかかるならば、−(×2倍
の被乗数)の加算を行う、すなわち、セレクタは前記被
乗数に代えて補数を算術演算ユニットの一方の入力に供
給する。シフタA5に保持された前の動作サイクルでの
加算結果は、シフタCを介して1ビツト右方向にシフト
され算術演算ユニット4の他方の入力に供給される。こ
のシフト動作によりシフタC7の最下位ビットからはみ
出した1ビツトの信号は、シフタBの最上位ビットに取
り込まれる。上記のように前の加算結果が1ビツト右側
にシフトされる結果、前の加算結果からみると上記補数
が2倍(1ビツトの桁上げ)されたのと同様になり、両
者の加算結果がシフタAに取り込まれる。このとき、シ
フタAは、1ビツトの右シフトを行い上記シフタBの最
上位ビットから供給する。これにより、シフタBの上位
2ビツトには、上記シフタCからの1ビツトとシフタA
からの1ビツトの信号が供給される。なお、第1回目の
加算動作なら、シフタAに補数数がそのまま取り込まれ
、その最下位ビットにシフタC7からの0が付加され、
それが1ビツト右方向にシフトされる。これによって、
補数に対して、シフタBの上位第2ビツトを基準にして
、2倍されたデータがシフタA及びシフタBの最上位ビ
ットに取り込まれることになる。Further, the conversion signal X2. If XI and - times are 101, then
The multiplicand multiplicand x2 is subtracted, or if you want to add -(multiplicand multiplicand x2), that is, the selector supplies the complement to one input of the arithmetic unit in place of the multiplicand. The addition result from the previous operation cycle held in shifter A5 is shifted rightward by one bit via shifter C and supplied to the other input of arithmetic operation unit 4. As a result of this shift operation, the 1-bit signal that has protruded from the least significant bit of shifter C7 is taken into the most significant bit of shifter B. As a result of the previous addition result being shifted to the right by 1 bit as described above, from the perspective of the previous addition result, it becomes the same as if the above complement was doubled (carry by 1 bit), and the addition result of both is It is taken into shifter A. At this time, shifter A performs a 1-bit right shift and supplies the most significant bit of shifter B. As a result, the upper two bits of shifter B include one bit from shifter C and shifter A.
A 1-bit signal from is supplied. In addition, in the first addition operation, the complement number is taken into shifter A as it is, and 0 from shifter C7 is added to the least significant bit.
It is shifted one bit to the right. by this,
With respect to the complement, the second most significant bit of shifter B is taken as a reference, and data doubled is taken into the most significant bit of shifter A and shifter B.
上記のような5種類の加算動作によって、2ビツトづつ
の一様桁移動方式による乗算動作が可能になる。すなわ
ち、2ビツト分、つまり被乗数の0ないし3倍の部分積
を順次加算して、2ビツトづつ桁移動する。そして、上
記2ビツトに付加された上位1ビツトの信号を参照して
、上記のようなコード変換によって、3倍は4倍−1倍
とし処理する。すなわち、そのステップでは一1倍の処
理を行い、4倍(2ビツトシフト動作)の処理を次のス
テップにより行う、同様に、2倍も4倍−2倍とし処理
する。このようにすることによって、上記8ビツトの乗
数と被乗数との乗算を4回の動作サイクルにより実現で
きる。By using the five types of addition operations as described above, it is possible to perform a multiplication operation using a uniform digit shift method of 2 bits at a time. That is, partial products of 2 bits, that is, 0 to 3 times the multiplicand, are sequentially added and the digits are shifted 2 bits at a time. Then, by referring to the signal of the upper 1 bit added to the above 2 bits, and performing the code conversion as described above, 3 times is processed as 4 times - 1 times. That is, in that step, processing is performed by 11 times, and in the next step, processing is performed by 4 times (2-bit shift operation). Similarly, 2 times is also processed by 4 times - 2 times. By doing so, the multiplication of the 8-bit multiplier and the multiplicand can be realized in four operation cycles.
また、算術演算ユニット2には、被乗数若しくはその補
数、又はデータ0が供給されるものであること、及び算
術演算ユニットの出力側にシフタを設けて、他方の入力
を供給するものであるので、常に8ビツトのデータ長の
信号が算術演算ユニットに供給できる。Furthermore, the arithmetic operation unit 2 is supplied with the multiplicand or its complement, or data 0, and a shifter is provided on the output side of the arithmetic operation unit to supply the other input. A signal with a data length of 8 bits can always be supplied to the arithmetic unit.
また、シフタAの演算結果をシフタCを介してシフト又
はスルーすることによって算術演算ユニットに他方の加
算データを供給すること、及び上記のように±2倍の被
乗数の加算とき、シフタCの1ビツトのシフト動作によ
りはみ出した1ビツトの信号をそのまま加算結果の最下
位ビットとしてシフタBに供給する等により、データの
伝達経路を簡略化することにより、いっそうの高速化を
図るものである。In addition, it is possible to supply the other addition data to the arithmetic operation unit by shifting or passing the operation result of shifter A through shifter C, and when adding the multiplicand of ±2 times as described above, the shifter C's 1 The 1-bit signal protruding from the bit shifting operation is supplied as it is to the shifter B as the least significant bit of the addition result, thereby simplifying the data transmission path and thereby further increasing the speed.
また、上記符号拡張回路を付加することにょうて、符号
付数(2の補数)と符号無数(絶対値表示数)の区別を
ほとんどすることなく、すなわち、符号無数を正の符号
付数として扱うことによって、上記のような乗算を行う
ことができる。In addition, by adding the above sign extension circuit, there is almost no distinction between signed numbers (2's complement) and signed innumerable numbers (absolute value display numbers), that is, signed infinity is treated as a positive signed number. By handling, multiplication as described above can be performed.
上記の実施例から得られる作用効果は、下記の通りであ
る。すなわち、
(1)補数器により被乗数の補数を形成しておいて、上
記被乗数、その補数又は零を選択的に伝達するセレクタ
を介して算術演算ユニットの一方の入力に伝達し、この
算術演算ユニットの他方の入力には、その出力信号をパ
ラレルに受ける第1のシフタA及び第3のシフタCを通
して伝達し、乗数を第2のシフタBによって単位の演算
に必要な複数ビットの信号を符号拡張回路を介して正準
リコーダに供給して上記セレクタ及び第1、第3のシフ
タA、CのMrB信号を形成して複数ビットに対応した
部分積演算を実行させることにより、セレクタやシフタ
A、Cを介して算術演算ユニットの入力信号を形成する
ので、被乗数及び乗数のデータ長に対応した算術演算ユ
ニットを用いて一様桁移動方式による高速乗算動作を実
現できるという効果が得られる。The effects obtained from the above examples are as follows. That is, (1) A complement of the multiplicand is formed by a complementer, and the multiplicand, its complement, or zero is transmitted to one input of the arithmetic operation unit via a selector that selectively transmits the multiplicand, its complement, or zero; The output signal is transmitted through a first shifter A and a third shifter C that receive the output signal in parallel to the other input of The selector, shifter A, Since the input signal of the arithmetic operation unit is formed through C, it is possible to realize a high-speed multiplication operation using a uniform digit shift method using an arithmetic operation unit that corresponds to the data length of the multiplicand and the multiplier.
(2)±2倍の加算動作のとき、シフタCを1ビツトシ
フトさせるとともに、そのはみ出した最下位ビットを加
算結果として利用することによってデータの伝播経路の
短縮化が図られる。これによって、上記(1)の相俟っ
ていっそうの動作の高速化を図ることができる。(2) When performing an addition operation of ±2 times, the data propagation path can be shortened by shifting the shifter C by 1 bit and using the protruding least significant bit as the addition result. Thereby, the above-mentioned (1) can be combined to further speed up the operation.
(3)乗数を受けるシフタからの演算動作に必要な複数
ビットの単位の信号を符号拡張回路に供給することによ
って、符号無数と符号付数を区別することなく、乗算を
行うことができるという効果が得られる。(3) The effect that multiplication can be performed without distinguishing between signed innumerables and signed numbers by supplying the multi-bit unit signal necessary for the arithmetic operation from the shifter that receives the multiplier to the sign extension circuit. is obtained.
以上本発明者によってなされた発明を実施例に基づき具
体的に説明したが、本発明は上記実施例に限定されるも
のではなく、その要旨を逸脱しない範囲で種々変更可能
であることはいうまでもない0例えば、第3図に示すよ
うに、乗数をレジスタ10にセットし、その出力をシフ
タD9に供給し、このシフトD9の出力を一方において
上記正準リコーダ2に供給し、他方において上記レジス
タ!Oに供給するものであってもよい、上記乗数のレジ
スタ10とシフタD9のループによって乗数が順次シフ
トされる。ただし、上記シフタD9は、符号付数の乗算
のときには算術シフタ、つまりシフト入力は最上位ビッ
トMSBとされ、符号無数の乗算のときは論理シフタ、
つまりシフト入力はOとされる。他の構成及び動作は、
上記第1図に示した実施例と同様である。Although the invention made by the present inventor has been specifically explained above based on Examples, it goes without saying that the present invention is not limited to the above Examples and can be modified in various ways without departing from the gist thereof. For example, as shown in FIG. 3, a multiplier is set in the register 10, its output is supplied to a shifter D9, the output of this shift D9 is supplied on one side to the canonical recorder 2, and on the other hand the above-mentioned register! The multipliers are sequentially shifted by the loop of the multiplier register 10 and the shifter D9, which may be supplied to the multiplier D9. However, the shifter D9 is an arithmetic shifter when a signed number is multiplied, that is, the shift input is the most significant bit MSB, and a logical shifter when a signed number is multiplied.
In other words, the shift input is set to O. Other configurations and operations are as follows:
This is similar to the embodiment shown in FIG. 1 above.
前記被乗数及び乗数は、16ビツト等から構成されるも
のであってもよい、この場合には、上記のデータ長に合
わせて、算術演算ユニットやシフタのビット長が設定さ
れる。また、上記シフタBに代えて、上記シフタAに縦
列接続される別のシフタを設けるものであってもよい。The multiplicand and the multiplier may be composed of 16 bits or the like. In this case, the bit length of the arithmetic operation unit and shifter is set in accordance with the above data length. Further, in place of the shifter B, another shifter connected in series to the shifter A may be provided.
この発明は、上記算術演算ユニットにより乗算を行わせ
るデータプロセッサとして広く利用できる。The present invention can be widely used as a data processor that causes the arithmetic unit to perform multiplication.
本願において開示される発明のうち代表的なものによっ
て得られる効果を簡単に説明すれば・下記の通りである
。すなわち、補数器により被乗数の補数を形成しておい
て、上記被乗数、その補数−又は零を選択的に伝達する
セレクタを介して算術演算ユニットの一方の入力に伝達
し、この算術演算ユニットの他方の入力には、その出力
信号をパラレルに受けるシフタA及びシフタCを通して
伝達し、乗数をシフタBによって単位の演算に必要な複
数ビットの信号を符号拡張回路を介して正準リコーダに
供給して上記セレクタ及びシフタA。A brief explanation of the effects obtained by typical inventions disclosed in this application is as follows. That is, the complement of the multiplicand is formed by a complementer, and is transmitted to one input of the arithmetic operation unit via a selector that selectively transmits the multiplicand, its complement, or zero, and the other input of the arithmetic operation unit is The output signal is transmitted to the input through shifters A and C which receive the output signal in parallel, and the multiplier is transmitted by shifter B to the canonical recorder via a sign extension circuit to supply a multi-bit signal necessary for the unit operation. The above selector and shifter A.
Cの制御信号を形成して複数ビットに対応した部分積演
算を実行させることにより、被乗数及び乗数のデータ長
に対応した算術演算ユニットを用いて一様桁移動方式に
よる高速乗算動作を実現できる。By forming a control signal of C to execute a partial product operation corresponding to a plurality of bits, a high-speed multiplication operation using a uniform digit shift method can be realized using an arithmetic operation unit corresponding to the data length of the multiplicand and the multiplier.
第1図は、この発明の一実施例を示すブロック図、
第2図は、その部分積加算動作を説明するための図、
第3図は、この発明の他の一実施例を示すブロック図で
ある。
1・・レジスタ(被乗数)、2・・正準リコーダ、3・
・補数器&セレクタ、4・・算術演算ユニット、5・・
シフタA、6・・シフタB、7・・シフタC18・;符
号拡張回路、9・・シフタD110・・レジスタ(乗数
)
第1図
第 2 図
5B
一―−−++1−−−−−
トーーーH1月
)−−e 2困
2−′
、−′
I′
第 3 図FIG. 1 is a block diagram showing one embodiment of this invention. FIG. 2 is a diagram for explaining the partial product addition operation. FIG. 3 is a block diagram showing another embodiment of this invention. It is. 1...Register (multiplicand), 2...Canonical recorder, 3...
・Complementer & selector, 4... Arithmetic operation unit, 5...
Shifter A, 6...Shifter B, 7...Shifter C18...Sign extension circuit, 9...Shifter D110...Register (multiplier) Fig. 1 Fig. 2 Fig. 5B 1---+1--H1 month)--e 2-2-',-'I' Fig. 3
Claims (1)
は零を伝達するセレクタと、上記セレタクの出力信号が
一方の入力に供給される算術演算ユニットと、この算術
演算ユニットの出力信号を受ける第1のシフタと、上記
第1のシフタの出力信号を受け、上記算術演算ユニット
の他方に入力に信号を伝える第3のシフタと、乗数を受
ける第2のシフタと、この第2のシフタから単位の演算
に必要な複数ビットの信号を受ける符号拡張回路と、こ
の符号拡張回路の出力信号を受けて、上記セレクタ及び
第1、第3のシフタの制御信号を形成して複数ビットに
対応した部分積演算を実行させる正準リコーダとを含む
ことを特徴とするデータプロセッサ。 2、上記第1のシフタの最下位ビットからの信号はその
シフト動作に従って第2のシフタの最上位ビットにシリ
アルに伝えられ、上記第1及び第2のシフタから乗算結
果を得ることを特徴とする特許請求の範囲第1項記載の
データプロセッサ。[Claims] 1. A complementer that receives a multiplicand, a selector that transmits the multiplicand, its complement, or zero, an arithmetic operation unit to which an output signal of the selector is supplied to one input, and this arithmetic operation unit. a first shifter receiving the output signal of the first shifter; a third shifter receiving the output signal of the first shifter and transmitting the signal to the input of the other of the arithmetic operation units; a second shifter receiving the multiplier; a sign extension circuit that receives a multi-bit signal necessary for unit calculation from the second shifter; and a sign extension circuit that receives the output signal of the sign extension circuit and forms control signals for the selector and the first and third shifters. A data processor comprising: a canonical recorder that executes partial product operations corresponding to a plurality of bits. 2. The signal from the least significant bit of the first shifter is serially transmitted to the most significant bit of the second shifter according to the shift operation, and a multiplication result is obtained from the first and second shifters. A data processor according to claim 1.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP62042504A JPS63211024A (en) | 1987-02-27 | 1987-02-27 | data processor |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP62042504A JPS63211024A (en) | 1987-02-27 | 1987-02-27 | data processor |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPS63211024A true JPS63211024A (en) | 1988-09-01 |
Family
ID=12637895
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP62042504A Pending JPS63211024A (en) | 1987-02-27 | 1987-02-27 | data processor |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS63211024A (en) |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5839645B1 (en) * | 1971-06-23 | 1983-08-31 | William A Wootten | |
| JPS59167749A (en) * | 1983-03-11 | 1984-09-21 | Nec Corp | Multiplier |
| JPS61289425A (en) * | 1985-06-18 | 1986-12-19 | Mitsubishi Electric Corp | Multiplying circuit |
-
1987
- 1987-02-27 JP JP62042504A patent/JPS63211024A/en active Pending
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5839645B1 (en) * | 1971-06-23 | 1983-08-31 | William A Wootten | |
| JPS59167749A (en) * | 1983-03-11 | 1984-09-21 | Nec Corp | Multiplier |
| JPS61289425A (en) * | 1985-06-18 | 1986-12-19 | Mitsubishi Electric Corp | Multiplying circuit |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US6609143B1 (en) | Method and apparatus for arithmetic operation | |
| JPH05233228A (en) | Floating point arithmetic unit and its arithmetic method | |
| EP0248166A2 (en) | Binary multibit multiplier | |
| US5870322A (en) | Multiplier to selectively perform unsigned magnitude multiplication or signed magnitude multiplication | |
| US5115408A (en) | High speed multiplier | |
| US7607165B2 (en) | Method and apparatus for multiplication and/or modular reduction processing | |
| JPH0234054B2 (en) | ||
| JPS63211024A (en) | data processor | |
| JPH0346024A (en) | Floating point computing element | |
| JPH08314697A (en) | Signed / unsigned multi-purpose multiplier | |
| JP3227538B2 (en) | Binary integer multiplier | |
| JPS61289425A (en) | Multiplying circuit | |
| JP3433487B2 (en) | Binary to decimal converter | |
| JPH07141150A (en) | Multiplier | |
| JP3230349B2 (en) | Decimal multiplier | |
| JP2864597B2 (en) | Digital arithmetic circuit | |
| JP3284690B2 (en) | Decimal multiplier | |
| JPS58181143A (en) | digital multiplier | |
| KR100386979B1 (en) | Method of paralleling bit serial multiplier for Galois field and a bit serial-parallel multipiler using thereof | |
| SU748412A1 (en) | Device for multiplying binary numbers | |
| SU1548785A1 (en) | Multiconveyer computing device | |
| SU748409A1 (en) | Device for multiplying binary-decimal numbers | |
| JP2653470B2 (en) | Decimal multiplier | |
| JPH01155435A (en) | Square root arithmetic processing system | |
| JPH0377539B2 (en) |