[go: up one dir, main page]

JPH1011267A - Multiplier - Google Patents

Multiplier

Info

Publication number
JPH1011267A
JPH1011267A JP8161434A JP16143496A JPH1011267A JP H1011267 A JPH1011267 A JP H1011267A JP 8161434 A JP8161434 A JP 8161434A JP 16143496 A JP16143496 A JP 16143496A JP H1011267 A JPH1011267 A JP H1011267A
Authority
JP
Japan
Prior art keywords
multiplier
multiplicand
partial product
numerical data
output
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
JP8161434A
Other languages
Japanese (ja)
Inventor
Yoji Kanie
洋二 蟹江
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.)
Sharp Corp
Original Assignee
Sharp 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 Sharp Corp filed Critical Sharp Corp
Priority to JP8161434A priority Critical patent/JPH1011267A/en
Publication of JPH1011267A publication Critical patent/JPH1011267A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To make the circuit scale small without losing the quickness of a multiplier, and to reduce the power consumption of the multiplier for performing the multiplication of binary numbers by digitally outputting the product of digital multiplicand and multiplier using the complement expression of 2. SOLUTION: When the multiplier Y is the numerical data of 8 digits, in the algorithm of Booth, constitution can not be performed by three encoders 1-3 and three partial product generation control circuit 7-9. Therefore, the algorithm of the multiplication is changed. That is, in this multiplier for inputting the digital multiplicand X and multiplier Y using the complement expression of 2 and outputting the product X.Y of the multiplicand X and the multiplier Y, when the value of the order of 2<i> of the multiplier Y is indicated by yi (where i=0, 1...3n-1), y-1 is defined so 0, Z31 is obtained for each (i) (where i=0, 1...n-1) from Z31 =-4y31+2 +2y31+1 +y31 +y31-1 , the partial product X.Z31 is obtained from Z31 and the multiplicand X and further, the partial product X.Z31 is multiplied by 2<31> and a sum is obtained for (i).

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明はディジタル信号処理
に用いられる乗算器に関し、特に2の補数表現を用いた
ディジタルの被乗数Xと乗数Yの積X・Yをディジタル
出力する乗算器に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a multiplier used for digital signal processing, and more particularly to a multiplier for digitally outputting a product XY of a digital multiplicand X and a multiplier Y using a two's complement representation.

【0002】[0002]

【従来の技術】2進数で数値データが表される場合、そ
の各桁は0か1である。例えば、被乗数Xと、桁数が2
nである乗数Yの乗算は、乗数Yの各桁で2n個の部分
積を作成し、各部分積をシフトしながら加算することに
帰着される。
2. Description of the Related Art When numerical data is represented by a binary number, each digit is 0 or 1. For example, the multiplicand X and the number of digits are 2
Multiplication of the multiplier Y, which is n, results in creating 2n partial products at each digit of the multiplier Y and adding each of the partial products while shifting them.

【0003】部分積の個数を減らして加算回数を減ら
し、回路を簡単化する工夫として、従来、Boothの
アルゴリズムが知られていた。Boothのアルゴリズ
ムは、詳しくは後述するように、ある桁に隣接する2ビ
ット単位で部分積を考え、1ビットのシフト及び2の補
数操作を行うことにより、部分積の個数を2n個からn
個に減少させるものである。
Conventionally, the Booth algorithm has been known as a device for reducing the number of partial products to reduce the number of additions and simplify the circuit. As will be described in detail later, the algorithm of Booth considers a partial product in units of two bits adjacent to a certain digit, and performs a one-bit shift and a two's complement operation to reduce the number of partial products from 2n to n.
It is to reduce to individual.

【0004】このBoothのアルゴリズムが用いられ
た従来の定数乗算器を図10〜図14を用いて説明す
る。図10は被乗数Xと乗数Yの積X・Yを求める従来
の定数乗算器のブロック図である。乗数Yは2進数で8
桁の数値データである。乗数Yの2のi乗の位の値はy
i(ただし、i=0、1・・・7)で表される。
A conventional constant multiplier using this Booth's algorithm will be described with reference to FIGS. FIG. 10 is a block diagram of a conventional constant multiplier for obtaining a product X · Y of a multiplicand X and a multiplier Y. Multiplier Y is 8 in binary
Digit data. The value of the 2nd power of the multiplier Y is y
i (where i = 0, 1,... 7).

【0005】乗算器70に乗数Yが入力される。読み出
し専用記憶装置(以下、「メモリ」という)71に被乗
数Xの数値データが格納されている。メモリ71のアド
レス入力を選択することにより、メモリ71に格納され
ているいくつかの定数から1つの被乗数Xが選択され
る。メモリ71より出力される数値データも乗算器70
に入力される。
A multiplier Y is input to a multiplier 70. Numerical data of the multiplicand X is stored in a read-only storage device (hereinafter, referred to as “memory”) 71. By selecting the address input of the memory 71, one multiplicand X is selected from several constants stored in the memory 71. The numerical data output from the memory 71 is
Is input to

【0006】乗算器70の主な処理を説明する。乗数Y
の各位の値yiは分割され、エンコーダ72〜75に入
力される。エンコーダ72〜75よりそれぞれ信号S
1、S2、NGが出力される。尚、信号S1、S2、N
Gについては後述する。これらの信号S1、S2、NG
は部分積生成制御回路76〜79に送られる。部分積生
成制御回路76〜79で信号S1、S2、NG及びメモ
リ71が出力する数値データを用いて、後述するよう
に、4個の部分積が生成される。4個の部分積を加算器
81でシフトしながら加算する。高速に加算を行うた
め、加算器81は、例えば、加算木と並列加算器から成
る。加算木で桁とキャリに分離して次々と加算し、最終
的に並列加算器で加算する。このように、被乗数Xと乗
数Yの積X・Yである乗算結果16が出力される。
The main processing of the multiplier 70 will be described. Multiplier Y
The Dear values y i is divided is input to the encoder 72 to 75. The signals S from the encoders 72 to 75 respectively
1, S2 and NG are output. The signals S1, S2, N
G will be described later. These signals S1, S2, NG
Is sent to the partial product generation control circuits 76 to 79. As described later, four partial products are generated by the partial product generation control circuits 76 to 79 using the signals S1, S2, NG and the numerical data output from the memory 71. The four partial products are added while being shifted by the adder 81. In order to perform addition at high speed, the adder 81 includes, for example, an addition tree and a parallel adder. It is separated into a digit and a carry by an addition tree and added one after another, and finally added by a parallel adder. Thus, the multiplication result 16 which is the product X · Y of the multiplicand X and the multiplier Y is output.

【0007】8桁の乗数Yから4個の部分積を求めると
き、Boothのアルゴリズムが用いられている。次
に、Boothのアルゴリズムについて説明する。一般
的に乗数Yの桁数を2nとする。また、被乗数X及び乗
数Yはいずれも2の補数表現が用いられているものとす
る。乗数Yに関し、2のi乗の位の値はyi(ただし、
i=0、1・・・2n−1)である。特に、1の位はy
0である。最上位ビットy2n-1は符号ビットともいう。
これにより、乗数Yは次式のように表せる。
When obtaining four partial products from an 8-digit multiplier Y, the Booth's algorithm is used. Next, the algorithm of Booth will be described. Generally, the number of digits of the multiplier Y is 2n. It is assumed that both the multiplicand X and the multiplier Y use the two's complement representation. Regarding the multiplier Y, the value of the 2 i-th power is y i (where,
i = 0, 1,... 2n-1). In particular, the ones place is y
It is 0 . The most significant bit y 2n-1 is also called a sign bit.
Thus, the multiplier Y can be expressed by the following equation.

【0008】[0008]

【数1】 (Equation 1)

【0009】ここで、 y-1=0 と定義すると、次のように書ける。Here, if y -1 = 0 is defined, the following can be written.

【0010】[0010]

【数2】 (Equation 2)

【0011】ここで、 Z2i=−2y2i+1+y2i+y2i-1 とおくと、被乗数Xと乗数Yの積X・Yは、次式で表さ
れる。
Here, assuming that Z 2i = −2y 2i + 1 + y 2i + y 2i−1 , the product XY of the multiplicand X and the multiplier Y is expressed by the following equation.

【0012】[0012]

【数3】 (Equation 3)

【0013】Z2iの定義式より、Z2iは−2、−1、
0、1、2のいずれかの値である。部分積X・Z2i(た
だし、i=0、1・・・n−1)は被乗数Xの1ビット
のシフトと2の補数操作と0倍操作で求めることができ
るので、後述するように、部分積生成制御回路76〜7
9のハードウェアは簡単に構成することができる。ま
た、部分積X・Z2iの個数は乗数Yの桁数の2分の1の
n個である。加算器81でn個の部分積X・Z2iを22i
倍して加算する。部分積X・Z3iを22i倍することは部
分積X・Z2iを2iビット上位方向にシフトすることな
ので、加算器81で簡単に行うことができる。このよう
にして、被乗数Xと乗数Yの積X・Yが得られる。
[0013] than the defining equation of Z 2i, Z 2i -2, -1,
It is one of 0, 1, and 2. The partial product X · Z 2i (where i = 0, 1,..., N−1) can be obtained by shifting the multiplicand X by one bit, performing a two's complement operation, and performing a zero-times operation. Partial product generation control circuits 76 to 7
9 can be easily configured. The number of partial products X · Z 2i is n, which is half the number of digits of the multiplier Y. The adder 81 converts the n partial products X · Z 2i into 2 2i
Double and add. Multiplying the partial product X · Z 3i by 2 2i shifts the partial product X · Z 2i upward by 2i bits, so that it can be easily performed by the adder 81. In this way, the product XY of the multiplicand X and the multiplier Y is obtained.

【0014】上記Boothのアルゴリズムによるエン
コーダ74の回路図を図11に示す。エンコーダ74は
入力されるy1〜y3を、Z2の演算結果である信号S
1、S2、NGに変換する。S1はZ2の絶対値が1の
とき1となり、それ以外のとき0となる信号である。S
2はZ2の絶対値が2のとき1となり、それ以外のとき
0となる信号である。NGはZ2が負数のとき1とな
り、正数のとき0となる信号である。ただし、S1及び
S2がともに0であるとき、NGは0でも1でもよい
が、簡単のため、y1〜y3が全て0のときNGが0とな
り、y1〜y3が全て1のときNGが1となるようにす
る。
FIG. 11 is a circuit diagram of the encoder 74 according to the above-mentioned Booth's algorithm. The encoder 74 converts the input y 1 to y 3 into a signal S, which is a calculation result of Z 2.
1. Convert to S2, NG. S1 is a signal that the absolute value of Z 2 becomes 0 becomes 1, at other times when the 1. S
2 is a signal which becomes 1 when the absolute value of Z 2 is 2, and becomes 0 otherwise. NG is a signal that becomes 1 when Z 2 is a negative number and becomes 0 when Z 2 is a positive number. However, when S1 and S2 are both a 0, NG may also be 1. Any 0, but for simplicity, next NG is 0 when all y 1 ~y 3 0, when y 1 ~y 3 are all 1 NG is set to 1.

【0015】これを実現するため、XORゲート85で
1とy2の排他的論理和をとり、XORゲート86でy
2とy3の排他的論理和をとる。XORゲート85の出力
がS1である。更に、XORゲート85の出力はNOT
ゲート88で否定をとり、XORゲート86の出力とA
NDゲート87で論理積をとる。ANDゲート87の出
力がS2である。また、y3はそのままNGとなる。そ
の真理値表を表1に示す。
To realize this, an exclusive OR of y 1 and y 2 is calculated by an XOR gate 85, and y
The exclusive OR of 2 and y 3 is taken. The output of the XOR gate 85 is S1. Further, the output of the XOR gate 85 is NOT
The gate 88 takes a negation, and the output of the XOR gate 86 and A
The logical product is obtained by the ND gate 87. The output of the AND gate 87 is S2. In addition, y 3 as it is the NG. Table 1 shows the truth table.

【0016】[0016]

【表1】 [Table 1]

【0017】図10において、エンコーダ72、73は
入力される数値データの桁が異なるだけで、図11に示
す回路と同じ回路である。エンコーダ75も、図11に
示す回路と同じであるが、y-1=0に対応して最下位ビ
ットに0が入力される。これにより、エンコーダ72〜
75より信号S1、S2、NGが出力され、部分積生成
制御回路76〜79に送られる。
In FIG. 10, encoders 72 and 73 are the same circuits as the circuit shown in FIG. 11 except that the digit of the input numerical data is different. The encoder 75 is the same as the circuit shown in FIG. 11, but 0 is input to the least significant bit corresponding to y −1 = 0. Thereby, the encoders 72 to
Signals S1, S2, and NG are output from 75 and sent to partial product generation control circuits 76 to 79.

【0018】部分積生成制御回路76〜79には信号S
1、S2、NGだけでなく、メモリ71からの被乗数X
の数値データも入力される。メモリ71は、図12に示
すように、r+1桁の数値データmj(ただし、j=
0、1・・・r)を出力する。特に、m0が最下位ビッ
ト(LSB)であり、mrが最上位ビット(MSB)で
ある。また、m-1=0と定義する。尚、被乗数Xの桁数
がr+1である。部分積生成制御回路76〜79ではメ
モリ71から入力される数値データを信号S1、S2、
NGを用いて、部分積X・Z2iを生成する。
The signal S is supplied to the partial product generation control circuits 76 to 79.
1, S2, NG, as well as multiplicand X from memory 71
Is also input. As shown in FIG. 12, the memory 71 stores r + 1-digit numerical data m j (where j =
0, 1,... R). In particular, m 0 is the least significant bit (LSB) and m r is the most significant bit (MSB). Also, it is defined that m −1 = 0. Note that the number of digits of the multiplicand X is r + 1. The partial product generation control circuits 76 to 79 convert the numerical data input from the memory 71 into signals S1, S2,
Using NG, a partial product X · Z 2i is generated.

【0019】部分積生成制御回路76〜79より出力さ
れる部分積X・Z2iのj番目のビットの値をPj(ただ
し、j=0、1・・・r+1)とする。部分積生成制御
回路76〜79の各桁に図13に示す回路が接続されて
いる。部分積生成制御回路76〜79のそれぞれに被乗
数Xの桁数に対応してr+2個の図13に示す回路が設
けられている。
The value of the j-th bit of the partial product X · Z 2i output from the partial product generation control circuits 76 to 79 is P j (j = 0, 1,..., R + 1). The circuit shown in FIG. 13 is connected to each digit of the partial product generation control circuits 76 to 79. Each of the partial product generation control circuits 76 to 79 is provided with r + 2 circuits shown in FIG. 13 corresponding to the number of digits of the multiplicand X.

【0020】S1が1のとき、ANDゲート92はmj
を出力する。一方、S2が1のとき、ANDゲート93
はmj-1を出力する。ANDゲート92、93の出力は
ORゲート94に入力される。ORゲート94はS1が
1のときmjを出力し、S2が1のときmj-1を出力す
る。また、S1及びS2がともに0のとき、ORゲート
94は0を出力する。尚、S1とS2は同時に1となら
ない。
When S1 is 1, the AND gate 92 outputs m j
Is output. On the other hand, when S2 is 1, the AND gate 93
Outputs m j-1 . Outputs of the AND gates 92 and 93 are input to an OR gate 94. The OR gate 94 outputs m j when S1 is 1, and outputs m j-1 when S2 is 1. When S1 and S2 are both 0, the OR gate 94 outputs 0. Note that S1 and S2 do not become 1 at the same time.

【0021】S1はメモリ71より出力される被乗数X
の数値データをシフトすることなく、そのまま部分積と
するときの信号である。S1が1のとき、被乗数Xの数
値データがそのままORゲート94より出力される。一
方、S2は数値データを1ビット上位方向にシフトする
ことにより、被乗数Xを2倍して部分積とするときの信
号である。S2が1のとき、1ビット下位のビットm
j-1をORゲート94が出力することにより、被乗数X
の1ビットのシフトを行い、被乗数Xを2倍する。この
ように、1ビットのシフトがあるため、部分積X・Z2i
は9桁である。
S1 is the multiplicand X output from the memory 71
This is a signal when the numerical data is converted to a partial product without being shifted. When S1 is 1, the numerical data of the multiplicand X is output from the OR gate 94 as it is. On the other hand, S2 is a signal when the multiplicand X is doubled to be a partial product by shifting the numerical data upward by one bit. When S2 is 1, one bit lower bit m
When the OR gate 94 outputs j-1 , the multiplicand X
Is performed, and the multiplicand X is doubled. Thus, since there is a one-bit shift, the partial product X · Z 2i
Is 9 digits.

【0022】更に、ORゲート94の出力と信号NGが
XORゲート95で排他的論理和をとる。これにより、
jが出力される。NGは前述したようにZ2iが負数の
とき1となる信号である。NGが1のとき、2の補数を
とるため、ORゲート94の出力を反転してPjとす
る。尚、後述するように、ビットの反転後に1を加える
最終的な2の補数操作は加算器81で行われる。一方、
NGが0とき、ORゲート94の出力がそのままPj
なる。このように、部分積生成制御回路76〜79より
各部分積が出力される。
Further, the output of the OR gate 94 and the signal NG are exclusive-ORed by the XOR gate 95. This allows
P j is output. NG is a signal which becomes 1 when Z 2i is a negative number as described above. When NG is 1, since taking the 2's complement, and P j inverts the output of the OR gate 94. As will be described later, the final two's complement operation of adding 1 after inverting the bit is performed by the adder 81. on the other hand,
When NG is 0, the output of the OR gate 94 becomes Pj as it is. Thus, the partial product generation control circuits 76 to 79 output the respective partial products.

【0023】ところで、部分積X・Z2iを加算器81で
加算して乗算結果16を得るとき、乗算結果16は乗数
Yの桁数よりも大きい。そのため、部分積X・Z2iをシ
フトしながら加算するとき、各部分積X・Z2iの符号拡
張して加算する。例えば、被乗数Xと乗数Yがともに8
桁である場合、その符号拡張を図14を用いて説明す
る。この場合、4個の部分積X・Z2iを22i倍して加算
する。図14(a)に示すように、4個の部分積100
〜103を2ビットずつシフトしながら加算する。
When the multiplication result 16 is obtained by adding the partial products X · Z 2i by the adder 81, the multiplication result 16 is larger than the number of digits of the multiplier Y. Therefore, when the partial products X · Z 2i are added while shifting, the sign of each partial product X · Z 2i is extended and added. For example, if the multiplicand X and the multiplier Y are both 8
If it is a digit, its sign extension will be described with reference to FIG. In this case, the four partial products X · Z 2i are multiplied by 2 2i and added. As shown in FIG. 14A, four partial products 100
〜10103 are added while shifting by 2 bits.

【0024】尚、部分積100は図10において部分積
生成制御回路76より出力される部分積である。同様
に、部分積101〜103は順に部分積生成制御回路7
7〜79より出力される部分積である。部分積100〜
103は前述したように9桁である。また、図14にお
いて、桁を揃えて表示してある。NG1、NG3、NG
5、NG7は前述したように、2の補数操作の際に部分
積100〜103に加えられる1である。
The partial product 100 is a partial product output from the partial product generation control circuit 76 in FIG. Similarly, the partial products 101 to 103 are sequentially output from the partial product generation control circuit 7.
This is the partial product output from 7 to 79. Partial product 100 ~
103 has 9 digits as described above. In FIG. 14, the digits are aligned and displayed. NG1, NG3, NG
5, NG7 is 1 which is added to the partial products 100 to 103 in the two's complement operation as described above.

【0025】部分積100〜103の正負の符号を表す
ビットを上位側から順にS1、S3、S5、S7とする。符
号ビットS1、S3、S5、S7を除いた数値データをPで
示す。4個の部分積100〜103をこのように加算し
て、16桁の乗算結果16(図10)が得られる。16
桁で加算するため、各符号ビットS1、S3、S5、S7
その上位ビット側にそれぞれ点線で囲まれた領域に符号
拡張する。符号ビットS1、S3、S5、S7の加算につい
て、105に示す符号ビットS7を基準とする。
The bits representing the positive and negative signs of the partial products 100 to 103 are referred to as S 1 , S 3 , S 5 , and S 7 in order from the upper side. Numerical data excluding the sign bits S 1 , S 3 , S 5 , and S 7 is indicated by P. By adding the four partial products 100 to 103 in this manner, a 16-digit multiplication result 16 (FIG. 10) is obtained. 16
In order to add by the digit, each of the sign bits S 1 , S 3 , S 5 , and S 7 is sign-extended to a region surrounded by a dotted line on the upper bit side. The addition of the sign bits S 1 , S 3 , S 5 , and S 7 is based on the sign bit S 7 shown at 105.

【0026】[0026]

【数4】 (Equation 4)

【0027】これにより、図14(c)に示すように、
符号ビットS1、S3、S5、S7の反転ビットと所定の桁
に1を加えればよい。このように、符号拡張を簡単化す
る。
As a result, as shown in FIG.
What is necessary is just to add 1 to the inverted bits of the sign bits S 1 , S 3 , S 5 , S 7 and a predetermined digit. Thus, sign extension is simplified.

【0028】また、図14(a)及び図14(b)によ
っても、符号拡張の簡単化を図面的に示すことができ
る。106に示す符号ビットS7を図14(b)におけ
る107に示す8個の1とS7の反転ビットに変換す
る。同様に、符号ビットS1、S3、S5についても同様
の変換を行う。そして、取消線110〜112の部分を
加算すると、16桁の加算に関しては影響を及ぼさない
ので、加算しなくてもよい。したがって、図14(c)
に示すように、符号拡張すればよいことになる。
Further, the simplification of the sign extension can be shown in the drawings also by FIGS. 14 (a) and 14 (b). The sign bit S 7 shown at 106 is converted into eight inverted bits of 1 and S 7 shown at 107 in FIG. Similarly, the same conversion is performed on the sign bits S 1 , S 3 , and S 5 . Then, since the addition of the portions of the strike-through lines 110 to 112 does not affect the addition of 16 digits, the addition does not have to be performed. Therefore, FIG.
As shown in FIG.

【0029】このように、図10において、部分積生成
制御回路76〜79より出力される部分積は加算器81
で加算され、乗算結果16が乗算器70より出力され
る。
As described above, in FIG. 10, the partial products output from the partial product generation control circuits 76 to 79 are added to the adder 81.
, And the multiplication result 16 is output from the multiplier 70.

【0030】[0030]

【発明が解決しようとする課題】しかしながら、エンコ
ーダ72〜75、部分積生成制御回路76〜79の個数
がそれでも多いため、回路規模が大きくなり、消費電力
が大きかった。また、部分積生成制御回路76〜79が
多いことに伴って、部分積の個数が多くなる。これによ
り、加算器81では多くの加算を行わなければならない
ので、加算器81の回路規模も大きくなっていた。その
ため、全体として更に回路規模が大きくなっていた。
However, since the number of encoders 72 to 75 and partial product generation control circuits 76 to 79 is still large, the circuit scale is large and the power consumption is large. Further, as the number of partial product generation control circuits 76 to 79 increases, the number of partial products increases. As a result, the adder 81 must perform a large number of additions, so that the circuit size of the adder 81 is also large. Therefore, the circuit scale has been further increased as a whole.

【0031】本発明は上記課題を解決し、2進数の乗算
を行う乗算器において、乗算器の高速性を失わずに回路
規模を小さくし、消費電力の小さい乗算器を提供するこ
とを目的とする。
An object of the present invention is to solve the above-mentioned problems and to provide a multiplier for performing multiplication of a binary number, in which the circuit scale is reduced without losing the high speed of the multiplier and the power consumption is small. I do.

【0032】[0032]

【課題を解決するための手段】上記目的を達成するため
に、本発明の第1の構成では、2の補数表現が用いられ
たディジタルの被乗数Xと乗数Yを入力し、被乗数Xと
乗数Yの積X・Yを出力する乗算器において、乗数Yの
iの位の値がyi(ただし、i=0、1・・・3n−
1)で表されるとき、y-1を0と定義し、 Z3i=−4y3i+2+2y3i+1+y3i+y3i-1 より、各i(ただし、i=0、1・・・n−1)につい
てZ3iを求め、Z3i及び被乗数Xより、部分積 X・Z3i を求め、更に、部分積X・Z3iを23i倍して、i(ただ
し、i=0、1・・・n−1)について和をとるように
している。
According to a first aspect of the present invention, a digital multiplicand X and a multiplier Y using a two's complement representation are input, and a multiplicand X and a multiplier Y are provided. In the multiplier that outputs the product X · Y, the value of the 2 i -th place of the multiplier Y is y i (i = 0, 1,... 3n−
When represented by 1), y -1 is defined as 0. From Z 3i = −4y 3i + 2 + 2y 3i + 1 + y 3i + y 3i−1 , each i (where i = 0, 1,...) n-1) obtains the Z 3i for, from Z 3i and the multiplicand X, obtains a partial product X · Z 3i, further, the partial product X · Z 3i and 2 3i times, i (although, i = 0, 1 .. N-1) are summed.

【0033】このような構成では、乗数Yの桁数は3n
である。Z3iの定義式より、n個のZ3i(ただしi=
0、1・・・n−1)が求められる。Z3iと被乗数Xよ
り、部分積X・Z3iが求められる。このとき、Z3iは定
義式より−4、−3、−2、−1、0、1、2、3、4
のいずれかの値となる。
In such a configuration, the number of digits of the multiplier Y is 3n
It is. From the definition equation of Z 3i, n-number of Z 3i (where i =
0, 1,... N-1) are obtained. From Z 3i and the multiplicand X, a partial product X · Z 3i is obtained. At this time, Z 3i is -4, -3, -2, -1, 0, 1, 2, 3, 4 according to the definition formula.
Is one of the following values.

【0034】Z3iが0のとき部分積X・Z3iは0であ
る。Z3iが2のとき部分積X・Z3iは被乗数Xを1ビッ
ト上位側にシフトすればよい。Z3iが4のとき被乗数X
を2ビット上位側にシフトすればよい。Z3iが3のと
き、やや複雑であるが、被乗数Xの3倍を求める。ま
た、Z3iが負数のとき、正数のときに前述したように求
めた部分積に更に2の補数操作を行う。2の補数操作は
簡単な構成で実現できる。
When Z 3i is 0, the partial product X · Z 3i is 0. When Z 3i is 2, the partial product X · Z 3i may shift the multiplicand X one bit higher. Multiplicand X when Z 3i is 4
May be shifted to the upper side by 2 bits. When Z 3i is 3, it is slightly complicated, but three times the multiplicand X is obtained. When Z 3i is a negative number or positive, a 2's complement operation is further performed on the partial product obtained as described above. Two's complement operation can be realized with a simple configuration.

【0035】このように、n個の部分積X・Z3iが求め
られる。部分積X・Z3iを23i倍して加算すれば、被乗
数Xと乗数Yの乗算結果が得られる。23iを乗ずるのは
ビットシフトを行うだけなので、簡単に行うことができ
る。1ビットのシフト、2ビットのシフト、3倍を求め
る処理、2の補数操作と0倍操作を設ければ、部分積X
・Z3iはn個となる。従来に較べ、部分積X・Z3iの個
数が乗数Yの桁数の3分の1に減少する。これにより、
部分積X・Z3iの加算が少なくなり、回路規模が小さく
なり、消費電力が小さくなる。
As described above, n partial products X · Z 3i are obtained. When the partial product X · Z 3i is multiplied by 2 3i and added, a multiplication result of the multiplicand X and the multiplier Y is obtained. Multiplying by 23i is only a bit shift, so it can be done easily. If a 1-bit shift, a 2-bit shift, and a process for obtaining a triple are provided, a 2's complement operation and a 0-fold operation are provided, the partial product X
・ Z 3i is n. Compared with the related art, the number of partial products X · Z 3i is reduced to one third of the number of digits of the multiplier Y. This allows
The addition of the partial products X · Z 3i is reduced, the circuit scale is reduced, and the power consumption is reduced.

【0036】また、本発明の第2の構成では、上記第1
の構成において、定数を記憶する記憶装置を設け、被乗
数Xの1倍及び3倍の数値データを前記記憶装置に格納
し、Z3iの絶対値が3であるか判別する手段を設け、そ
の信号によりZ3iの絶対値が3のとき前記記憶装置は被
乗数Xの3倍の数値データを出力し、一方、Z3iの絶対
値が3以外のとき前記記憶装置は被乗数Xの1倍の数値
データを出力し、この数値データを用いて部分積X・Z
3iを求めるようにしている。
In the second configuration of the present invention, the first
A storage device for storing a constant, storing numerical data of one and three times the multiplicand X in the storage device, and providing a means for determining whether the absolute value of Z 3i is 3; When the absolute value of Z 3i is 3, the storage device outputs numerical data that is three times the multiplicand X. On the other hand, when the absolute value of Z 3i is other than 3, the storage device outputs the numerical data that is one time the multiplicand X. And outputs the partial product X · Z using the numerical data.
I want 3i .

【0037】このような構成では、Z3iの値はその定義
式より、−4、−3、−2、−1、0、1、2、3、4
のいずれかである。Z3iが0であれば、部分積X・Z3i
は0である。Z3iが1であれば、部分積X・Z3iは記憶
装置より出力される被乗数Xの1倍の数値データであ
る。Z3iが2のとき、部分積X・Z3iは記憶装置より出
力される被乗数Xの1倍の数値データを1ビット上位に
シフトすればよい。Z3iが4のとき、部分積X・Z3i
記憶装置より出力される被乗数Xの1倍の数値データを
2ビット上位にシフトすればよい。そして、Z3iが3の
とき、部分積X・Z3iは記憶装置が出力する被乗数Xの
3倍の数値データである。このように、Z3iが3のと
き、被乗数Xの3倍の数値データが記憶装置より出力さ
れるので、被乗数Xを3倍する複雑な処理を行う必要が
ない。
In such a configuration, the value of Z 3i is -4, -3, -2, -1, 0, 1, 2, 3, 4,
Is one of If Z 3i is 0, the partial product X · Z 3i
Is 0. If Z 3i is 1, the partial product X · Z 3i is numerical data that is one times the multiplicand X output from the storage device. When Z 3i is 2, the partial product X · Z 3i may be obtained by shifting the numerical data of one time the multiplicand X output from the storage device by one bit. When Z 3i is 4, the partial product X · Z 3i may be obtained by shifting numerical data that is one time the multiplicand X output from the storage device by 2 bits. When Z 3i is 3, the partial product X · Z 3i is numerical data that is three times the multiplicand X output from the storage device. In this way, when Z 3i is 3, numerical data three times as large as the multiplicand X is output from the storage device, so there is no need to perform complicated processing to triple the multiplicand X.

【0038】また、Z3iが−4、−3、−2、−1のよ
うに負数のとき、Z3iが4、3、2、1で前述したよう
に求めた部分積X・Z3iから2の補数操作する。これに
より、Z3iが負数でも部分積X・Z3iが求められる。こ
のように、本構成によれば、部分積X・Z3iを求めるの
に、1ビットシフトと2ビットシフトと2の補数操作と
0倍操作すればよいので、処理が簡単となり、上記第1
の構成よりも、更に回路規模や消費電力が小さくなる。
When Z 3i is a negative number such as -4, -3, -2, -1, Z 3i is 4, 3, 2, 1 and the partial product X · Z 3i obtained as described above. Operate two's complement. Thereby, even if Z 3i is a negative number, the partial product X · Z 3i is obtained. As described above, according to the present configuration, the partial product X · Z 3i can be obtained by performing 1-bit shift, 2-bit shift, 2's complement operation, and 0-times operation.
The circuit scale and the power consumption are further reduced as compared with the configuration of FIG.

【0039】また、本発明の第3の構成では、上記第1
の構成において、定数を記憶する記憶装置を設け、被乗
数Xの−1倍、−3倍、1倍及び3倍の数値データを前
記記憶装置に記憶し、Z3iが負数であるか判別する手段
と、絶対値が3であるか判別する手段を設け、それらの
信号により、Z3iが−3のとき前記記憶装置は被乗数X
の−3倍の数値データを出力し、Z3iが3のとき前記記
憶装置は被乗数Xの3倍の数値データを出力し、Z3i
正数で3以外のとき前記記憶装置は被乗数Xの1倍の数
値データを出力し、Z3iが負数で−3以外のとき前記記
憶装置は被乗数Xの−1倍の数値データを出力し、この
数値データを用いて部分積X・Z3iを求めるようにして
いる。
In the third configuration of the present invention, the first
A storage device for storing a constant is provided, and numerical data of -1 times, -3 times, 1 time and 3 times of the multiplicand X are stored in said storage device, and it is determined whether Z 3i is a negative number. And a means for determining whether the absolute value is 3 is provided. When Z 3i is -3, the storage device stores the multiplicand X
When Z 3i is 3, the storage device outputs numerical data that is three times the multiplicand X. When Z 3i is a positive number other than 3, the storage device outputs the multiplicand X. The storage device outputs numerical data of 1 time, and when Z 3i is a negative number other than -3, the storage device outputs numerical data of -1 times the multiplicand X, and obtains a partial product X · Z 3i by using the numerical data. Like that.

【0040】このような構成では、記憶装置に被乗数X
の−1倍、−3倍、1倍、3倍の数値データが格納され
ている。前述したようにZ3iが2、4のときは部分積X
・Z2iは記憶装置より出力される被乗数Xの1倍の数値
データをそれぞれ1ビット、2ビット上位にシフトすれ
ばよい。また、Z3iが−2、−4のときは記憶装置より
出力される被乗数Xの−1倍の数値データをそれぞれ1
ビット、2ビット上位にシフトすればよい。Z3iが3、
−3のとき部分積X・Z3iは記憶装置より出力される被
乗数Xの3倍、−3倍の数値データである。このよう
に、部分積X・Z3iを求めるとき、被乗数Xの3倍を求
めなくてもよい。また、2の補数操作も不要となってい
る。このように、記憶装置に格納するデータ量が増加す
るが、乗算器の処理が簡単となり、更に消費電力が小さ
くなる。
In such a configuration, the multiplicand X is stored in the storage device.
Numerical data of -1 times, -3 times, 1 time, and 3 times of are stored. As described above, when Z 3i is 2, 4, the partial product X
For Z 2i , it is sufficient to shift the numerical data of one time the multiplicand X output from the storage device by 1 bit or 2 bits, respectively. When Z 3i is −2 or −4, the numerical data of −1 times the multiplicand X output from the storage device is 1 for each.
Bits may be shifted upward by two bits. Z 3i is 3,
When −3, the partial product X · Z 3i is numerical data that is three times and −3 times the multiplicand X output from the storage device. Thus, when obtaining the partial product X · Z 3i , it is not necessary to obtain three times the multiplicand X. In addition, two's complement operation is not required. As described above, although the amount of data stored in the storage device increases, the processing of the multiplier is simplified and the power consumption is further reduced.

【0041】また、本発明の第4の構成では、上記第1
の構成乃至上記第3の構成のいずれかにおいて、任意の
桁数の乗数Yを符号拡張することにより、乗数Yの2i
の位の値をyi(ただし、i=0、1・・・3n−1)
とみなし、部分積X・Z3iを求めるようにしている。
In the fourth configuration of the present invention, the first
In any one of the above configurations to the third configuration, the multiplier Y of an arbitrary number of digits is sign-extended to obtain 2 i of the multiplier Y.
Is the value of the order y i (where i = 0, 1,... 3n-1)
And the partial product X · Z 3i is obtained.

【0042】このような構成では、乗数Yの桁数が3の
倍数でなくても、符号拡張することにより、yiで表す
ことができる。これにより、上記第1の構成乃至上記第
3の構成のいずれかにおいて、被乗数Xと乗数Yの積X
・Yが得られる。また、実際に符号拡張を伴わなくて
も、それと同等の処理をしてもよい。
In such a configuration, even if the number of digits of the multiplier Y is not a multiple of 3, it can be represented by y i by sign extension. Thus, in any of the first to third configurations, the product X of the multiplicand X and the multiplier Y
Y is obtained. Further, even if the sign extension is not actually performed, the same processing may be performed.

【0043】[0043]

【発明の実施の形態】BEST MODE FOR CARRYING OUT THE INVENTION

<第1の実施形態>本発明の第1の実施形態を図1〜図
5を用いて説明する。図1は本実施形態の定数乗算器の
ブロック図である。本実施形態では定数乗算器に8桁の
乗数Yが入力される。前述した従来の定数乗算器(図1
0)と較べると、エンコーダ1〜3の個数と部分積生成
制御回路7〜9の個数が少なくなっている。乗数Yが8
桁の数値データであるとき、前述したBoothのアル
ゴリズムでは、3個のエンコーダ1〜3と3個の部分積
生成制御回路7〜9で構成することができない。そこ
で、本実施形態では乗算のアルゴリズムを変更する。ま
ず、その乗算のアルゴリズムを説明する。
<First Embodiment> A first embodiment of the present invention will be described with reference to FIGS. FIG. 1 is a block diagram of a constant multiplier according to the present embodiment. In this embodiment, an 8-digit multiplier Y is input to the constant multiplier. The conventional constant multiplier described above (FIG. 1)
0), the number of encoders 1 to 3 and the number of partial product generation control circuits 7 to 9 are smaller. Multiplier Y is 8
In the case of digit numerical data, the above-mentioned Booth algorithm cannot be configured with three encoders 1 to 3 and three partial product generation control circuits 7 to 9. Therefore, in the present embodiment, the algorithm of multiplication is changed. First, the multiplication algorithm will be described.

【0044】一般に、乗算器は被乗数Xと乗数Yが与え
られたとき、その積X・Yを求めるものである。被乗数
Xと乗数Yはともに2の補数表現が用いられているとす
る。乗数Yの桁数を3n(ただし、nは整数)とする。
もし、乗数Yの桁数が3の倍数でなければ、符号拡張す
る。1の位の値をy0、2のi乗の位の値をyi(ただ
し、i=0、1・・・3n−1)とすると、乗数Yは次
式で表される。
In general, a multiplier, when given a multiplicand X and a multiplier Y, calculates a product X · Y. It is assumed that the multiplicand X and the multiplier Y both use the two's complement representation. The number of digits of the multiplier Y is 3n (where n is an integer).
If the number of digits of the multiplier Y is not a multiple of 3, sign extension is performed. Assuming that the value of the 1's place is y 0 and the value of the 2's i-th place is y i (where i = 0, 1,... 3n−1), the multiplier Y is represented by the following equation.

【0045】[0045]

【数5】 (Equation 5)

【0046】ここで、 y-1=0 とすると、次のように書ける。Here, if y -1 = 0, the following can be written.

【0047】[0047]

【数6】 (Equation 6)

【0048】ここで、 Z3i=−4y3i+2+2y3i+1+y3i+y3i-1 とおくと、被乗数Xと乗数Yの積X・Yは、次のように
表される。
Here, assuming that Z 3i = −4y 3i + 2 + 2y 3i + 1 + y 3i + y 3i−1 , the product XY of the multiplicand X and the multiplier Y is expressed as follows.

【0049】[0049]

【数7】 (Equation 7)

【0050】Z3iの定義式より、Z3iは−4、−3、−
2、−1、0、1、2、3、4のいずれかの値をとる。
部分積X・Z3i(ただし、i=0、1・・・n−1)を
求めるには、後述するように基本的に被乗数Xとその3
倍の数値データと、1ビットシフトと、2ビットシフト
と、2の補数操作と0倍操作があればよい。これによ
り、生成される部分積X・Z2iの個数はn個となり、乗
数Xの桁数の3分の1となる。
[0050] than the defining equation of Z 3i, Z 3i -4, -3, -
It takes any value of 2, -1, 0, 1, 2, 3, and 4.
In order to obtain the partial product X · Z 3i (where i = 0, 1,..., N−1), the multiplicand X and its 3
It suffices if there are double numerical data, 1-bit shift, 2-bit shift, 2's complement operation, and 0-fold operation. As a result, the number of partial products X · Z 2i generated is n, which is one third of the number of digits of the multiplier X.

【0051】このアルゴリズムを用いることにより、図
1においてエンコーダ1〜3及び部分積生成制御回路7
〜9の個数が上記従来の定数乗算器(図10)に較べて
少なくなっている。エンコーダ2の回路図を図2に示
す。乗数Yのy2〜y5が入力される。エンコーダ2より
出力されるM3はZ3の絶対値が3のとき1となり、そ
れ以外のとき0となる信号である。S1はZ3の絶対値
が1又は3のとき1となり、それ以外のとき0となる信
号である。
By using this algorithm, the encoders 1-3 and the partial product generation control circuit 7 shown in FIG.
9 is smaller than that of the conventional constant multiplier (FIG. 10). FIG. 2 shows a circuit diagram of the encoder 2. The multipliers y 2 to y 5 are input. M3 outputted from the encoder 2 is a signal absolute value of Z 3 becomes 0 becomes 1, at other times when the 3. S1 is 0 and becomes signal when the 1, and the other when the absolute value of Z 3 is 1 or 3.

【0052】S2はZ3の絶対値が2のとき1となり、
それ以外のとき0となる信号である。S4はZ3の絶対
値が4のとき1となり、それ以外のとき0となる信号で
ある。NGはZ3が負数のとき1となり、正数のとき0
となる信号である。尚、Z3が0のとき、NGは理論上
はどの値でもよいが、本実施形態では回路を簡単にする
ため、y2〜y5がすべて0のときNGは0となり、y2
〜y5がすべて1のときNGは1のとなるようにする。
S2 becomes 1 when the absolute value of Z 3 is 2,
Otherwise, it is a signal that becomes 0. S4 is a signal which becomes 1 when the absolute value of Z 3 is 4, and becomes 0 otherwise. NG is 1 when Z 3 is a negative number, and 0 when Z 3 is a positive number.
This is the signal. When Z 3 is 0, NG may be any value in theory, but in this embodiment, NG is 0 when y 2 to y 5 are all 0, and y 2
When ~y 5 are all 1 NG is set to be one of.

【0053】y2〜y5より信号M3、S1、S2、S
4、NGの出力を得るため、XORゲート21〜23
と、ANDゲート24〜26、NOTゲート27〜29
が設けられている。XORゲート21でy2とy3の排他
的論理和をとる。これにより、S1が得られる。XOR
ゲート22でy3とy4の排他的論理和をとる。XORゲ
ート22の出力と、XORゲート21の出力から更にN
OTゲート27で否定をとったものがANDゲート25
に入力される。ANDゲート25より出力される信号が
S2である。XORゲート23でy4とy5の排他的論理
和をとる。XOR23の出力と、XORゲート21の出
力はANDゲート24で論理積がとられる。これによ
り、M3が得られる。
From the signals y 2 to y 5 , the signals M3, S1, S2, S
4. To obtain NG output, use XOR gates 21 to 23
AND gates 24-26, NOT gates 27-29
Is provided. An XOR gate 21 takes an exclusive OR of y 2 and y 3 . Thereby, S1 is obtained. XOR
XORing y 3 and y 4 by the gate 22. From the output of the XOR gate 22 and the output of the XOR gate 21,
The result of negating the OT gate 27 is the AND gate 25
Is input to The signal output from the AND gate 25 is S2. XORing y 4 and y 5 in XOR gate 23. The output of XOR 23 and the output of XOR gate 21 are ANDed by AND gate 24. Thereby, M3 is obtained.

【0054】また、XORゲート21の出力はNOTゲ
ート28で否定がとられ、ANDゲート26に入力され
る。XORゲート22の出力はNOTゲート29で否定
がとられ、ANDゲート26に入力される。XORゲー
ト23の出力もANDゲート26に入力される。AND
ゲート26は入力される信号が全て1のとき1を出力
し、それ以外では0を出力する。これにより、ANDゲ
ート26の出力がS4となる。y5がそのまま信号NG
となる。その真理値表を表2に示す。
The output of the XOR gate 21 is negated by a NOT gate 28 and input to an AND gate 26. The output of the XOR gate 22 is negated by a NOT gate 29 and input to an AND gate 26. The output of the XOR gate 23 is also input to the AND gate 26. AND
The gate 26 outputs 1 when all the input signals are 1, and outputs 0 otherwise. As a result, the output of the AND gate 26 becomes S4. y 5 is as it is signal NG
Becomes Table 2 shows the truth table.

【0055】[0055]

【表2】 [Table 2]

【0056】尚、図1において、エンコーダ1、3につ
いても、入力される数値データの桁が異なるだけで同様
の構成となっている。ただし、エンコーダ3ではy0
2の3ビットが入力されるが、y-1=0に対応して最
下位ビットに0が入力される。これにより、図2に示す
回路図と同様の構成となる。エンコーダ1もy5〜y7
3ビットが入力されるが、図2に示す回路に符号拡張す
ることにより、4ビットの入力としてもよい。また、そ
れと同等の出力が得られるように別の回路構成とし、3
ビットの入力としてもよい。尚、3ビットの入力の場合
のエンコーダ1の回路図は図示しないが、簡単に構成す
ることができる。
In FIG. 1, the encoders 1 and 3 have the same configuration except that the digits of the input numerical data are different. However, in the encoder 3 y 0 ~
Three bits of y 2 are input, and 0 is input to the least significant bit corresponding to y −1 = 0. Thereby, a configuration similar to that of the circuit diagram shown in FIG. 2 is obtained. Encoder 1 is also 3 bits of y 5 ~y 7 is input, by sign extension to the circuit shown in FIG. 2 may be 4-bit input. In addition, another circuit configuration is used so that an output equivalent to that is obtained.
It may be a bit input. Although a circuit diagram of the encoder 1 in the case of 3-bit input is not shown, it can be simply configured.

【0057】エンコーダ1はy5〜y7の3ビットの入力
なので、M3は0となり、S4も0となる。簡単化のた
め、エンコーダ1より信号M3、S4をメモリ4や部分
積生成制御回路7に送らない。エンコーダ2、3より出
力される信号M3がメモリ5、6に入力される。メモリ
4〜6のアドレス入力を選択することにより、格納され
ているいくつかの定数から被乗数Xが選択される。図3
に示すように、M3が0のとき、メモリ5、6は被乗数
Xの1倍の数値データを出力し、M3が1のとき、被乗
数Xの3倍の数値データを出力する。その出力は2進数
でmj(ただし、j=0、1・・・r)である。特に、
最下位ビット(LSB)の値がm0であり、最上位ビッ
ト(MSB)がmrである。尚、メモリ4にはM3が入
力されず、被乗数Xの1倍の数値データが出力される。
また、m-1=0、m-2=0とする。
[0057] Since the encoder 1 input of 3-bit y 5 ~y 7, M3 is 0, S4 also becomes zero. For simplicity, the encoder 1 does not send the signals M3 and S4 to the memory 4 and the partial product generation control circuit 7. The signal M3 output from the encoders 2 and 3 is input to the memories 5 and 6. By selecting the address input of the memories 4 to 6, the multiplicand X is selected from some stored constants. FIG.
As shown in (1), when M3 is 0, the memories 5 and 6 output numerical data that is one times the multiplicand X. When M3 is 1, the memories 5 and 6 output numerical data that is three times the multiplicand X. The output is m j (where j = 0, 1,... R) in binary. Especially,
The value of the least significant bit (LSB) is m 0, the most significant bit (MSB) is m r. Note that M3 is not input to the memory 4, and numerical data that is one times the multiplicand X is output.
Further, it is assumed that m −1 = 0 and m −2 = 0.

【0058】部分積生成制御回路7〜9ではメモリ1〜
3が出力する数値データを信号S1、S2、S4、NG
を用いてそれぞれ部分積X・Z3iを生成する。部分積生
成制御回路7〜9より出力される部分積X・Z3iのj番
目のビットの値をPj(ただし、j=0、1・・・r+
1)とする。部分積生成制御回路7〜9の各桁には図4
に示す回路2が接続されている。部分積生成制御回路7
〜9のそれぞれ被乗数Xの桁数に対応して、r+2個の
図4に示す回路が接続されている。
In partial product generation control circuits 7-9, memories 1-
3 are output as signals S1, S2, S4, NG
Are used to generate partial products X · Z 3i . The value of the j-th bit of the partial product X · Z 3i output from the partial product generation control circuits 7 to 9 is represented by P j (where j = 0, 1,... R +
1). Each digit of the partial product generation control circuits 7 to 9 is shown in FIG.
Is connected. Partial product generation control circuit 7
In addition, r + 2 circuits shown in FIG. 4 are connected in correspondence with the number of digits of the multiplicand X of each of .about.9.

【0059】S1が1のとき、ANDゲート31はmj
を出力する。S2が1のとき、ANDゲート32はm
j-1を出力する。S4が1のとき、ANDゲート33は
j-2を出力する。ANDゲート31〜33の出力はO
Rゲート34に入力される。ORゲート34はS1が1
のときmjを出力し、S2が1のときmj-1を出力し、S
4が1のときmj-2を出力する。また、S1、S2及び
S4がともに0のとき、ORゲート94は0を出力す
る。
When S1 is 1, the AND gate 31 outputs m j
Is output. When S2 is 1, AND gate 32 outputs m
Output j-1 . When S4 is 1, the AND gate 33 outputs mj-2 . The output of AND gates 31-33 is O
Input to the R gate 34. In the OR gate 34, S1 is 1
Outputs m j when, S2 outputs the m j-1 when 1, S
When 4 is 1, m j-2 is output. When S1, S2 and S4 are all 0, the OR gate 94 outputs 0.

【0060】S1はメモリ4〜9より出力される数値デ
ータをシフトすることなく、そのまま部分積とするとき
の信号である。S1が1のとき、ORゲート34からの
数値データをそのまま出力する。S2はメモリ4〜6よ
り出力される数値データを1ビット上位にシフトすると
きの信号である。S2が1のとき、1つ下位ビットに対
応するmj-1を出力する。これにより、メモリ4〜6よ
り出力される数値データを2倍する。S4はメモリ5、
6より出力される数値データを2ビット上位にシフトす
るときの信号である。S4が1のとき、2つ下位ビット
に対応するmj-2を出力する。これにより、2ビット上
位にシフトしたことになり、メモリ5、6より出力され
る数値データを4倍する。
S1 is a signal when the numerical data output from the memories 4 to 9 is used as a partial product without shifting. When S1 is 1, the numerical data from the OR gate 34 is output as it is. S2 is a signal used to shift the numerical data output from the memories 4 to 6 upward by one bit. When S2 is 1, mj-1 corresponding to one lower bit is output. As a result, the numerical data output from the memories 4 to 6 is doubled. S4 is the memory 5,
This signal is used to shift the numerical data output from No. 6 upward by 2 bits. When S4 is 1, mj-2 corresponding to the two lower bits is output. As a result, the numerical data output from the memories 5 and 6 is quadrupled by shifting to 2 bits higher.

【0061】その後、ORゲート34の出力とNGはX
ORゲート35で排他的論理和をとり、Pjが出力され
る。前述したように、NGはZ3iが負数のとき1となる
信号である。NGが1のとき2の補数をとるため、OR
ゲート34の出力を反転してPjとする。尚、後述する
ように、ビット反転後に1を加える最終的な2の補数操
作は加算器10で行われる。一方、NGが0のとき、O
Rゲート34の出力がそのままPjとなる。加算器10
では部分積X・Z3iを23i倍しながら加算する。高速に
加算を行うために、加算器10は、例えば、加算木と並
列加算器から成る。このようにして、乗算結果16が得
られる。
Thereafter, the output of the OR gate 34 and NG are X
Are exclusive-ORed by OR gate 35, P j is outputted. As described above, NG is a signal that becomes 1 when Z 3i is a negative number. When NG is 1, 2's complement is taken, so OR
The output of the gate 34 is inverted to Pj . As will be described later, the final two's complement operation of adding 1 after bit inversion is performed by the adder 10. On the other hand, when NG is 0, O
The output of the R gate 34 becomes Pj as it is. Adder 10
Then, the addition is performed while multiplying the partial product X · Z 3i by 23i . In order to perform high-speed addition, the adder 10 includes, for example, an adder tree and a parallel adder. In this way, a multiplication result 16 is obtained.

【0062】前述したように、加算するとき、部分積X
・Z3iを符号拡張する。その様子を図5を用いて説明す
る。部分積41〜43は部分積生成制御回路7〜9が出
力する部分積X・Z3iである。ただし、被乗数Xは8桁
である。部分積41〜43の符号を上位側から順に
1、S4、S7とする。前述したように、加算すると
き、図5(a)に示すように、点線領域にそれぞれ
7、S4、S1の符号を拡張する。このとき、符号の拡
張を、次のように簡単化する。符号S7、S4、S1につ
いてのみ加算を考える。
As described above, when adding, the partial product X
-Sign- extend Z3i . This will be described with reference to FIG. The partial products 41 to 43 are partial products X · Z 3i output from the partial product generation control circuits 7 to 9. However, the multiplicand X has eight digits. And S 1, S 4, S 7 the sign of the partial product 41 to 43 from the upper side. As described above, at the time of addition, as shown in FIG. 5A, the signs of S 7 , S 4 , and S 1 are extended in the dotted line areas, respectively. At this time, the extension of the code is simplified as follows. Consider addition only for the symbols S 7 , S 4 and S 1 .

【0063】[0063]

【数8】 (Equation 8)

【0064】これにより、図5(c)に示すように、S
1、S4、S7の反転ビットと所定の桁に1を加えればよ
い。前述したように図面的に求めると、図5(a)より
反転ビットを用いて図5(b)とし、取消線44、45
の部分を消去する。これによっても、図5(c)に示す
ように簡単化できる。尚、NG1、NG4、NG7は部
分積41〜43が負数の場合、2の補数操作の際に加え
られるエンコーダ1、2、3より出力される1ビットの
信号NGである。
As a result, as shown in FIG.
It suffices to add 1 to the inverted bits of 1 , S 4 and S 7 and a predetermined digit. As described above, when drawing is obtained, FIG. 5B is obtained by using the inverted bit from FIG.
Erase the part. This can also be simplified as shown in FIG. Note that NG1, NG4, and NG7 are 1-bit signals NG output from the encoders 1, 2, and 3 that are added at the time of 2's complement operation when the partial products 41 to 43 are negative numbers.

【0065】このように、前述した従来の定数乗算器
(図10)に較べ、本実施形態では3個のエンコーダ1
〜3と、3個の部分積生成制御回路7〜9となるので、
定数乗算器の回路規模が小さくなる。また、部分積の個
数も減少するので加算器10の回路規模も小さくなる。
このように、高速性を失うことなく、全体の回路規模が
小さくなるので、消費電力も小さくなる。
As described above, in the present embodiment, as compared with the above-described conventional constant multiplier (FIG. 10), three encoders 1 are used.
-3 and three partial product generation control circuits 7-9,
The circuit scale of the constant multiplier is reduced. Further, since the number of partial products is reduced, the circuit scale of the adder 10 is also reduced.
As described above, since the entire circuit scale is reduced without losing the high speed, the power consumption is also reduced.

【0066】また、部分積生成制御回路7〜9におい
て、入力される被乗数Xを3倍することができると、メ
モリ4〜6を省略し、任意の変数の被乗数Xを入力する
ことができる。ただし、このとき、部分積生成制御回路
7〜9では、例えば、1ビット上位シフト演算を行い、
更に元の被乗数Xを加算することにより、被乗数Xの3
倍となるが、処理が複雑になるので、図1の定数乗算器
に較べ、回路規模が大きくなる。また、言うまでもな
く、被乗数Xは8桁でなくてもよい。乗数Yの桁数も適
当な符号拡張や同等のエンコーダを用いることにより、
積X・Yを得ることができるので、任意の桁数でよい。
In the partial product generation control circuits 7 to 9, if the input multiplicand X can be tripled, the memories 4 to 6 can be omitted and the multiplicand X of an arbitrary variable can be input. However, at this time, the partial product generation control circuits 7 to 9 perform, for example, a 1-bit upper shift operation,
Further, by adding the original multiplicand X, 3 of the multiplicand X is calculated.
However, since the processing is complicated, the circuit scale is larger than that of the constant multiplier of FIG. Needless to say, the multiplicand X need not be eight digits. The number of digits of the multiplier Y can also be increased by using an appropriate code extension or an equivalent encoder.
Since the product X and Y can be obtained, any number of digits may be used.

【0067】<第2の実施形態>次に、本発明の第2の
実施形態を図6〜図9を用いて説明する。図6は本実施
形態のブロック図である。前述した第1の実施形態(図
1)と同じアルゴリズムを用いてほぼ同様の構成となっ
ているが、エンコーダ1〜3より出力されるNG信号が
メモリ4a〜6aに入力される点が主に異なる。尚、図
6において図1と同一の部分については同一の符号を付
し、説明を省略する。
<Second Embodiment> Next, a second embodiment of the present invention will be described with reference to FIGS. FIG. 6 is a block diagram of the present embodiment. The configuration is almost the same using the same algorithm as that of the first embodiment (FIG. 1) described above, except that NG signals output from encoders 1 to 3 are input to memories 4a to 6a. different. In FIG. 6, the same portions as those in FIG. 1 are denoted by the same reference numerals, and description thereof will be omitted.

【0068】メモリ5a、6aは同じ構成であり、図7
に示す。メモリ5a、6aにM3とNGが入力される。
M3=0、NG=0のとき、メモリ5a、6aから被乗
数Xの1倍の数値データが出力される。M3=0、NG
=1のとき、メモリ5a、6aから被乗数Xの−1倍の
数値データが出力される。M3=1、NG=0のとき、
メモリ5a、6aから被乗数Xの3倍の数値データが出
力される。M3=1、NG=1のとき、メモリ5a、6
aから被乗数Xの−3倍の数値データが出力される。
The memories 5a and 6a have the same configuration.
Shown in M3 and NG are input to the memories 5a and 6a.
When M3 = 0 and NG = 0, the memories 5a and 6a output numerical data that is one times the multiplicand X. M3 = 0, NG
When = 1, the memories 5a and 6a output numerical data of -1 times the multiplicand X. When M3 = 1 and NG = 0,
Numerical data three times the multiplicand X is output from the memories 5a and 6a. When M3 = 1 and NG = 1, the memories 5a and 6
Numerical data of -3 times the multiplicand X is output from a.

【0069】これにより、r+1桁の数値データm
j(ただし、j=0、1・・・r)がメモリ5a、6a
より出力される。また、メモリ4aではM3が0となる
ので、NGだけを入力する。これに伴い、メモリ4aに
は被乗数Xの1倍、−1倍の数値データを格納する。特
に、最下位ビット(LSB)はm0であり、最上位ビッ
ト(MSB)はMrである。また、m-1=0、m-2=0
とする。このように、前述した第1の実施形態のメモリ
4〜6に較べて、メモリ4a〜6aに格納するデータ量
が2倍となる。
Thus, numerical data m of r + 1 digits
j (where j = 0, 1,... r) is the memory 5a, 6a
Output. Since M3 is 0 in the memory 4a, only NG is input. Along with this, the memory 4a stores numerical data that is 1 time and -1 time the multiplicand X. In particular, the least significant bit (LSB) is m 0 and the most significant bit (MSB) is M r . Also, m −1 = 0, m −2 = 0
And As described above, the amount of data stored in the memories 4a to 6a is doubled as compared with the memories 4 to 6 of the first embodiment.

【0070】上記第1の実施形態では、部分積生成制御
回路7〜9に図4に示す回路が用いられていた。本実施
形態では、部分積生成制御回路7a〜9aに図8に示す
回路が用いられる。尚、図8において図4と同一の部分
については同一の符号を付し、説明を省略する。本実施
形態では信号NGが入力されず、XORゲート35(図
4)が省略されている。これは、Z3iが負数のときメモ
リ4a〜6aより負数が出力されるので、部分積生成制
御回路7a〜9aで2の補数操作が不要となっているた
めである。
In the first embodiment, the circuit shown in FIG. 4 is used for the partial product generation control circuits 7 to 9. In the present embodiment, the circuit shown in FIG. 8 is used for the partial product generation control circuits 7a to 9a. In FIG. 8, the same portions as those in FIG. 4 are denoted by the same reference numerals, and description thereof will be omitted. In this embodiment, the signal NG is not input, and the XOR gate 35 (FIG. 4) is omitted. This is because, when Z 3i is a negative number, a negative number is output from the memories 4a to 6a, so that the two's complement operation is not required in the partial product generation control circuits 7a to 9a.

【0071】部分積X・Z3iの加算するときの符号拡張
を図9に示す。尚、図9において図5と同一の部分につ
いては同一の符号を付し、説明を省略する。部分積41
〜43の符号拡張は前述した第1の実施形態の符号拡張
(図5参照)と同じであるが、本実施形態では、部分積
41〜43は負数のとき、既に2の補数表現であるの
で、NG1、NG4、NG7の1を加算しない。
FIG. 9 shows the sign extension when adding the partial products X · Z 3i . In FIG. 9, the same portions as those in FIG. 5 are denoted by the same reference numerals, and description thereof will be omitted. Partial product 41
The sign extension of .about.43 is the same as the sign extension of the first embodiment described above (see FIG. 5). However, in this embodiment, when the partial products 41 to 43 are negative numbers, they are already represented by two's complement. , NG1, NG4, and NG7 are not added.

【0072】回路規模を考えると、本実施形態の方が上
記第1の実施形態に較べてメモリ4a〜6aの記憶容量
が大きくなるため、回路規模が大きくなる。しかし、消
費電力の面から考えると、メモリ4a〜6aで消費する
電力よりも、XORゲート35(図4参照)で消費する
電力の方が大きいので、全体としてこれを省略した本実
施形態の方が低消費電力となる。
In view of the circuit scale, the present embodiment has a larger storage capacity of the memories 4a to 6a than the first embodiment, and therefore has a larger circuit scale. However, from the viewpoint of power consumption, the power consumed by the XOR gate 35 (see FIG. 4) is greater than the power consumed by the memories 4a to 6a. Reduces power consumption.

【0073】[0073]

【発明の効果】【The invention's effect】

<請求項1の効果>乗数Yと被乗数Xの積を求める乗残
回路において、部分積の個数が減少する。これにより、
部分積の和をとる加算器の回路規模を小さくすることが
できる。乗算器の回路規模を小さくすることができ、消
費電力を小さくすることができる。
<Effect of Claim 1> The number of partial products is reduced in the remainder circuit for calculating the product of the multiplier Y and the multiplicand X. This allows
The circuit size of the adder for obtaining the sum of the partial products can be reduced. The circuit scale of the multiplier can be reduced, and power consumption can be reduced.

【0074】<請求項2の効果>記憶装置には定数の被
乗数Xとその3倍の数値データが格納されている。部分
積を求めるとき、被乗数Xの3倍の数値データを用いる
ことにより、部分積X・Z3iを求めるとき、処理が簡単
になる。そのため、更に回路規模が小さくなる。被乗数
Xを定数とする乗算器の全体の回路規模が小さくなり、
消費電力も小さくなる。このように、本発明は、定数乗
算器に有効である。
<Effect of Claim 2> The storage device stores a multiplicand X of a constant and numerical data three times the multiplicand X. By using numerical data three times as large as the multiplicand X when obtaining the partial product, the processing is simplified when obtaining the partial product X · Z 3i . Therefore, the circuit scale is further reduced. The overall circuit scale of the multiplier having the multiplicand X as a constant is reduced,
Power consumption is also reduced. Thus, the present invention is effective for a constant multiplier.

【0075】<請求項3の効果>記憶装置に被乗数Xの
−1倍、−3倍、1倍及び3倍の数値データが格納され
ている。これにより、部分積X・Z3iをもとめるとき、
被乗数Xの0倍操作と1ビット、2ビットのシフトを行
うだけになる。特に、2の補数操作が不要となる。記憶
装置に格納するデータ量が増えるが、処理が簡単にな
る。全体では、更に低消費電力となる。
<Effect of Claim 3> Numerical data of -1 times, -3 times, 1 time and 3 times of the multiplicand X is stored in the storage device. Thus, when determining the partial product X · Z 3i ,
Only the operation of multiplying the multiplicand X by 0 and shifting by 1 bit and 2 bits are performed. In particular, the two's complement operation becomes unnecessary. Although the amount of data stored in the storage device increases, the processing is simplified. As a whole, power consumption is further reduced.

【0076】<請求項4の効果>乗数Yの桁数は3の倍
数でなくても、符号拡張することにより、上記乗算を行
うことができる。このように、乗数Yは任意の桁数でも
被乗数Xと乗数Yの積X・Yが求められる。また、直
接、符号拡張を行わなくても、それと同等の効果を持つ
処理でもよい。
<Effect of Claim 4> Even if the number of digits of the multiplier Y is not a multiple of 3, the above multiplication can be performed by sign extension. As described above, the product XY of the multiplicand X and the multiplier Y can be obtained even when the multiplier Y has an arbitrary number of digits. Further, even if the sign extension is not directly performed, a process having an equivalent effect may be performed.

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

【図1】 本発明の第1の実施形態の定数乗算器のブロ
ック図。
FIG. 1 is a block diagram of a constant multiplier according to a first embodiment of the present invention.

【図2】 そのエンコーダの回路図。FIG. 2 is a circuit diagram of the encoder.

【図3】 そのメモリのブロック図。FIG. 3 is a block diagram of the memory.

【図4】 その部分積生成制御回路の各ビットの回路
図。
FIG. 4 is a circuit diagram of each bit of the partial product generation control circuit.

【図5】 その部分積の符号拡張を説明する図。FIG. 5 is a diagram illustrating sign extension of the partial product.

【図6】 本発明の第2の実施形態の定数乗算器のブロ
ック図。
FIG. 6 is a block diagram of a constant multiplier according to a second embodiment of the present invention.

【図7】 そのメモリのブロック図。FIG. 7 is a block diagram of the memory.

【図8】 その部分積生成制御回路の各ビットの回路
図。
FIG. 8 is a circuit diagram of each bit of the partial product generation control circuit.

【図9】 その部分積の符号拡張を説明する図。FIG. 9 is a view for explaining sign extension of the partial product.

【図10】 従来の定数乗算器のブロック図。FIG. 10 is a block diagram of a conventional constant multiplier.

【図11】 そのエンコーダの回路図。FIG. 11 is a circuit diagram of the encoder.

【図12】 そのメモリのブロック図。FIG. 12 is a block diagram of the memory.

【図13】 その部分積生成制御回路の各ビットの回路
図。
FIG. 13 is a circuit diagram of each bit of the partial product generation control circuit.

【図14】 その部分積の符号拡張を説明する図。FIG. 14 is a diagram illustrating sign extension of the partial product.

【符号の説明】[Explanation of symbols]

1〜3 エンコーダ 4〜6 メモリ 7〜9 部分積生成制御回路 10 加算器 35 XORゲート mj 数値データ1-3 encoder 4-6 memory 7-9 partial product generation control circuit 10 adder 35 XOR gate m j numerical data

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 2の補数表現が用いられたディジタルの
被乗数Xと乗数Yを入力し、被乗数Xと乗数Yの積X・
Yを出力する乗算器において、 乗数Yの2iの位の値がyi(ただし、i=0、1・・・
3n−1)で表されるとき、y-1を0と定義し、 Z3i=−4y3i+2+2y3i+1+y3i+y3i-1 より、各i(ただし、i=0、1・・・n−1)につい
てZ3iを求め、Z3i及び被乗数Xより、部分積 X・Z3i を求め、更に、部分積X・Z3iを23i倍して、i(ただ
し、i=0、1・・・n−1)について和をとることを
特徴とする乗算器。
1. A digital multiplicand X and a multiplier Y using a two's complement representation are input, and a product X · of the multiplicand X and the multiplier Y is input.
In the multiplier that outputs Y, the value of the order 2 i of the multiplier Y is y i (where i = 0, 1,...)
3n-1), y -1 is defined as 0, and from Z 3i = -4y 3i + 2 + 2y 3i + 1 + y 3i + y 3i-1 , each i (where i = 0, 1, · · n-1) obtains the Z 3i for, from Z 3i and the multiplicand X, obtains a partial product X · Z 3i, further, the partial product X · Z 3i and 2 3i times, i (although, i = 0 , 1... N−1).
【請求項2】 定数を記憶する記憶装置を設け、被乗数
Xの1倍及び3倍の数値データを前記記憶装置に記憶
し、Z3iの絶対値が3であるか判別する手段を設け、そ
の信号によりZ3iの絶対値が3のとき前記記憶装置は被
乗数Xの3倍の数値データを出力し、一方、Z3iの絶対
値が3以外のとき前記記憶装置は被乗数Xの1倍の数値
データを出力し、この数値データを用いて部分積X・Z
3iを求めることを特徴とする請求項1に記載の乗算器。
2. A storage device for storing a constant is provided. Numerical data of one and three times the multiplicand X is stored in the storage device, and means for determining whether the absolute value of Z 3i is 3 is provided. When the absolute value of Z 3i is 3, the storage device outputs numerical data that is three times the multiplicand X, while when the absolute value of Z 3i is other than 3, the storage device outputs the numerical value that is one time the multiplicand X. Data is output, and the partial product X · Z is
3. The multiplier according to claim 1, wherein 3i is obtained.
【請求項3】 定数を記憶する記憶装置を設け、被乗数
Xの−1倍、−3倍、1倍及び3倍の数値データを前記
記憶装置に記憶し、Z3iが負数であるか判別する手段
と、絶対値が3であるか判別する手段を設け、それらの
信号により、Z3iが−3のとき前記記憶装置は被乗数X
の−3倍の数値データを出力し、Z3iが3のとき前記記
憶装置は被乗数Xの3倍の数値データを出力し、Z3i
正数で3以外のとき前記記憶装置は被乗数Xの1倍の数
値データを出力し、Z3iが負数で−3以外のとき前記記
憶装置は被乗数Xの−1倍の数値データを出力し、この
数値データを用いて部分積X・Z3iを求めることを特徴
とする請求項1に記載の乗算器。
3. A storage device for storing a constant is provided, and numerical data of -1 times, -3 times, 1 time, and 3 times of the multiplicand X are stored in the storage device, and it is determined whether Z 3i is a negative number. Means and means for determining whether the absolute value is 3 are provided. When Z 3i is -3, the storage device stores the multiplicand X
When Z 3i is 3, the storage device outputs numerical data that is three times the multiplicand X. When Z 3i is a positive number other than 3, the storage device outputs the multiplicand X. The storage device outputs numerical data of 1 time, and when Z 3i is a negative number other than -3, the storage device outputs numerical data of -1 times the multiplicand X, and obtains a partial product X · Z 3i by using the numerical data. The multiplier according to claim 1, wherein:
【請求項4】 任意の桁数の乗数Yを符号拡張すること
により、乗数Yの2iの位の値をyi(ただし、i=0、
1・・・3n−1)とみなすことにより、部分積X・Z
3i求めることを特徴とする請求項1乃至請求項3のいず
れかに記載の乗算器。
4. Sign-extending a multiplier Y of an arbitrary number of digits to change the value of the 2 i -th place of the multiplier Y to y i (where i = 0,
1... 3n-1), the partial product X · Z
The multiplier according to any one of claims 1 to 3, wherein 3i is obtained.
JP8161434A 1996-06-21 1996-06-21 Multiplier Pending JPH1011267A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8161434A JPH1011267A (en) 1996-06-21 1996-06-21 Multiplier

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8161434A JPH1011267A (en) 1996-06-21 1996-06-21 Multiplier

Publications (1)

Publication Number Publication Date
JPH1011267A true JPH1011267A (en) 1998-01-16

Family

ID=15735046

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8161434A Pending JPH1011267A (en) 1996-06-21 1996-06-21 Multiplier

Country Status (1)

Country Link
JP (1) JPH1011267A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009527060A (en) * 2006-02-15 2009-07-23 クゥアルコム・インコーポレイテッド Booth multiplier with extended reduced tree circuit configuration
US7809783B2 (en) 2006-02-15 2010-10-05 Qualcomm Incorporated Booth multiplier with enhanced reduction tree circuitry

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009527060A (en) * 2006-02-15 2009-07-23 クゥアルコム・インコーポレイテッド Booth multiplier with extended reduced tree circuit configuration
US7809783B2 (en) 2006-02-15 2010-10-05 Qualcomm Incorporated Booth multiplier with enhanced reduction tree circuitry

Similar Documents

Publication Publication Date Title
GB2365636A (en) Parallel counter and multiplication logic circuit
JP3153370B2 (en) Multiplication device
US4868777A (en) High speed multiplier utilizing signed-digit and carry-save operands
JPS588009B2 (en) digital multiplier
US4866655A (en) Arithmetic processor and divider using redundant signed digit
JPH06236255A (en) Parallel carry generation network, parallel adder network, carry generation module, multibit adder network and modular carry propagation unit
US4118786A (en) Integrated binary-BCD look-ahead adder
JPH1011267A (en) Multiplier
JP3660075B2 (en) Dividing device
JP2541758B2 (en) Remainder calculation circuit
JPH08314697A (en) Multiplier used for both number with sign and number withoutsign
JPH076024A (en) Decimal number multiplier
JPS62219027A (en) Carry look-ahead circuit
JP2606326B2 (en) Multiplier
JP4954019B2 (en) Arithmetic unit
JP3231298B2 (en) Multiplication device
KR0161485B1 (en) Booth Algorithm Multiplication Unit using Arithmetic Unit
Pamidimukkala et al. A Novel Area Efficient Approximate Stochastic Computing Approach for Edge Devices
JPH05216626A (en) Multiplier
KR950001480A (en) High Speed Compact Digital Multiplier
JP2000187584A (en) Arithmetic circuit
JP3612950B2 (en) Arithmetic apparatus and method
JPH06230933A (en) Operation processor
JP3522167B2 (en) Arithmetic processing circuit and arithmetic processing method
JPH05334050A (en) Multiplier