JPH01295331A - Multiplier - Google Patents
MultiplierInfo
- Publication number
- JPH01295331A JPH01295331A JP63126217A JP12621788A JPH01295331A JP H01295331 A JPH01295331 A JP H01295331A JP 63126217 A JP63126217 A JP 63126217A JP 12621788 A JP12621788 A JP 12621788A JP H01295331 A JPH01295331 A JP H01295331A
- Authority
- JP
- Japan
- Prior art keywords
- multiplier
- multiplication
- equal
- input
- bits
- 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
Abstract
Description
【発明の詳細な説明】
(産業上の利用分W)
この発明は、複数ビットの入力データを乗算する乗算器
、特に乗数が定数である場合に、乗数を入力することな
く被乗数入力に対する乗算結果を得ることができる乗算
器に関するものである。Detailed Description of the Invention (Industrial Application W) This invention provides a multiplier that multiplies input data of multiple bits, especially when the multiplier is a constant. It concerns a multiplier that can obtain .
〔従来の技術)
第4図は、例えばrLsI化が進む並列演算方式による
乗算器の回路方式を見る」、日経エレクトロニクス、1
978年5月29日、76〜90頁に示されている従来
の4×4ビット乗算器を示すもので、図中、(21)は
部分積の生成、部分積の加算を行なう単位回路、(22
)、(23)、(24)はこの補数表示による乗算の結
果生じる補正を行なう単位回路、(X、)、(x−)
、(x−) 、 (x4)は乗算の際の被乗数入力で、
そのうち(x4)はこの補数のサインビット、(yt)
、(y2)、(y3)、(y4) は乗算の際の乗数入
力で、そのうち(y4)はこの補数のサインビット、(
Ps)、(P2)、(P、)、(P4)、(Ps)−(
Pa)、(P、)は乗算結果出力である。なお、図中の
単位回路(22)、(23)に付随している[相]印は
インバート入力である。[Prior art] Figure 4 shows the circuit system of a multiplier based on the parallel operation method, which is increasingly becoming rLsI,'' Nikkei Electronics, 1.
This figure shows a conventional 4×4 bit multiplier as shown on May 29, 1978, pages 76 to 90. In the figure, (21) is a unit circuit that generates partial products and adds partial products; (22
), (23), and (24) are unit circuits that perform corrections resulting from multiplication using this complement representation, (X, ), (x-)
, (x-), (x4) are the multiplicand inputs during multiplication,
Of these, (x4) is the sign bit of this complement, (yt)
, (y2), (y3), (y4) are the multiplier inputs for multiplication, among which (y4) is the sign bit of this complement, (
Ps), (P2), (P, ), (P4), (Ps)-(
Pa) and (P,) are the multiplication result outputs. Note that the [phase] marks attached to the unit circuits (22) and (23) in the figure are invert inputs.
第5図は、第4図の乗算器を構成する単位回路のブロッ
ク図であり、図中、(25)はANDゲート、(26)
は全加算器、(k)は前段の加算結果入力、(X)は被
乗数、(y)は乗数、(C)キャリー人力、(Co)は
キャリー出力、(P)は部分積加算結果出力である。FIG. 5 is a block diagram of a unit circuit constituting the multiplier of FIG. 4, in which (25) is an AND gate, (26)
is a full adder, (k) is the input of the previous stage addition result, (X) is the multiplicand, (y) is the multiplier, (C) is the carry manual, (Co) is the carry output, and (P) is the partial product addition result output. be.
従来の乗算器は上記のように構成され、被乗数入力(X
t)〜(X4)および乗数入力(yt)〜(y4)が入
力されると、単位回路(21)が、数値部の部分積の生
成、加算を行なうとともに、単位回路(22)、(23
)、(24)が、この補数表示による乗算の結果生じる
補正を行なう、そして、上記数値部の部分積および補正
部の演算結果の総和は、乗算結果出力(p+)〜(P7
)として出力される。A conventional multiplier is constructed as described above, with a multiplicand input (X
When t) to (X4) and multiplier inputs (yt) to (y4) are input, the unit circuit (21) generates and adds partial products of the numerical part, and the unit circuits (22) and (23)
), (24) perform the correction resulting from the multiplication by this complement representation, and the sum of the partial products of the numerical part and the calculation result of the correction part is the multiplication result output (p+) ~ (P7
) is output as
(発明が解決しようとする課題〕
従来の乗算器は以上のように構成されていることから、
この補数表示のための補正が必要で、部分積の加算を行
なわなければならないため、そのためのハードウェアを
設ける必要があり、またそのための時間が必要である等
の課題があった。(Problem to be solved by the invention) Since the conventional multiplier is configured as described above,
Correction for this complement representation is necessary and addition of partial products must be performed, so there are problems such as the need to provide hardware for this and the time required for it.
この発明は、かかる課題を解決するためになされたもの
で、この補数表示を補正なしに実行できるとともに、部
分積の生成、加算が不要で、高速で乗算結果を求めるこ
とができ、かつハードウェア構成の簡略化が可能な乗算
器を得ることを目的とする。This invention was made to solve these problems, and it is possible to perform this complement representation without correction, eliminate the need to generate or add partial products, and obtain multiplication results at high speed. The purpose is to obtain a multiplier whose configuration can be simplified.
(課題を解決するための手段〕
この発明に係る乗算器は、複数ビットの被乗数入力に乗
数を乗じた結果を出力する乗算器において、論理素子の
組合せにより構成され入力される被乗数入力と固定乗数
との乗算結果を算出する乗算回路を設けるようにしたも
のである。(Means for Solving the Problems) A multiplier according to the present invention is a multiplier that outputs the result of multiplying a multiplicand input of multiple bits by a multiplier. A multiplication circuit is provided to calculate the result of multiplication with .
(作用)
この発明においては、論理素子の組合せにより構成され
る乗算回路により、固定数である乗算入力を行なうこと
なく、被乗数人力との乗算結果が算出され、部分積の生
成、加算を行なうことを要しない。(Function) In the present invention, the multiplication result of the multiplicand is calculated by the multiplication circuit configured by a combination of logic elements without inputting a fixed number of multiplications, and the partial products are generated and added. does not require
(実施例)
第1図はこの発明の一実施例に係る乗算器を示すもので
、4ビツトの被乗数人力に対し局倍する乗算器である0
図中、第4図と同一符号は同−又は相当部分を示す、(
1)はこの補数表示のための単位回路、(2)、(3)
、(4)、(5)は数値部の演算を行なう単位回路で、
相互にカスケード接続されている。(Embodiment) Fig. 1 shows a multiplier according to an embodiment of the present invention, which is a multiplier that multiplies a 4-bit multiplicand.
In the figure, the same reference numerals as in Fig. 4 indicate the same or corresponding parts.
1) is the unit circuit for this complement representation, (2), (3)
, (4), and (5) are unit circuits that perform calculations on the numerical part,
are cascaded together.
第2図は、第1図の乗算器を構成する各単位回路(1)
〜(5)の論理回路図であり、図中、(A)、CB)は
被乗算入力、(Bl)はボロー人力、(Y)は上記3ビ
ツトの入力に対し局の乗算を乗じた積、(BOG)、(
BOI)はボロー出力、(6)、(7)、(8) はN
ANDゲート、(9)はNOTゲート、(1o)はOR
ゲート、(11)はNORゲート、(12)はEx−O
R(Exclusive OR)ゲート、(13)はA
NDゲートである。Figure 2 shows each unit circuit (1) constituting the multiplier in Figure 1.
~(5) is a logic circuit diagram, in which (A), CB) are multiplicable inputs, (Bl) is the borrow power, and (Y) is the product obtained by multiplying the above 3-bit input by the multiplication of the station. , (BOG), (
BOI) is borrow output, (6), (7), (8) are N
AND gate, (9) is NOT gate, (1o) is OR
gate, (11) is NOR gate, (12) is Ex-O
R (Exclusive OR) gate, (13) is A
It is an ND gate.
上記のように構成された乗算器において、まず単位回路
は次のように動作する。すなわち、各単位回路(1)〜
(5)は、(81)、(A)、(B)の3ビツトの入力
に対し、局の固定乗数を乗じた積として(Y)、余りと
して(no。)、(BOl)の2ビツトを出力している
。In the multiplier configured as described above, the unit circuit operates as follows. That is, each unit circuit (1) ~
(5) is the product of the 3-bit inputs (81), (A), and (B) multiplied by the station's fixed multiplier (Y), and the remainder (no.) and 2-bit (BOl). is outputting.
入力が全て0のときには、出力も全て0である。入力の
最下位ビットrBjが1のとき、積であル(Y)は01
余りの2ビツトのうち(Bob)はol(80゜)は1
どなる。When the inputs are all 0, the outputs are also all 0. When the least significant bit rBj of the input is 1, the product Y is 01
Of the remaining 2 bits, (Bob) is 1 (80°)
bawl.
入力のうち(A)のみが1のとき、積である(Y)はO
1余りの2ビツトのうちの(Bob)は1 、 (BO
o)は0となる。When only (A) among the inputs is 1, the product (Y) is O
Of the 2 bits with a remainder of 1, (Bob) is 1, (BO
o) becomes 0.
上記のような入力と出力との関係を、真理値表として第
3図に示す。The relationship between input and output as described above is shown in FIG. 3 as a truth table.
次に、上記各単位回路(1)〜(5)をカスケード接続
して構成される4ビツトの局乗算器について説明する。Next, a 4-bit station multiplier constructed by cascading the above unit circuits (1) to (5) will be described.
最上位の単位回路(1)はこの補数表示のための回路で
ある。この補数表示のサインビットである(×4)が1
であるとき、出力(Boo)はO、(80,)は1とな
り、(not)は単位回路(2)の(Bl)に接続され
ているため、単位回路(2)の(Y)、すなわち出力(
P、)は必ず1となる。The highest unit circuit (1) is a circuit for this complement display. The sign bit of this complement representation (×4) is 1
When , the output (Boo) is O, (80,) is 1, and (not) is connected to (Bl) of unit circuit (2), so (Y) of unit circuit (2), i.e. output(
P, ) is always 1.
単位回路(2)〜(5)は数値部の演算を行なう回路で
あり、(Y)は乗算結果出力(P2)〜(PS)に、(
BOo)は次段の入力「A」に、(BOt)は次段の入
力rBI、に接続されており、前段の余り2ビツトと人
力(X、)〜(x3)を合わせた3ビツトに月の乗数を
乗じて横1ビットと余り2ビツトとを出力している。Unit circuits (2) to (5) are circuits that perform calculations on the numerical part, and (Y) outputs the multiplication results (P2) to (PS).
BOo) is connected to the input "A" of the next stage, and (BOt) is connected to the input rBI of the next stage. The multiplier is multiplied by the multiplier, and the horizontal 1 bit and the remainder 2 bits are output.
(P、)は最下位の余り出力であり、積の求めるたに出
力している。すなわち、(PI)を(Ps)〜(P2)
に加えれば四捨五入、(P、)を使用しなければ切り捨
てとなる。(P,) is the lowest remainder output, which is output every time the product is calculated. That is, (PI) is (Ps) ~ (P2)
If you add it to , it will be rounded off, and if you do not use (P,), it will be rounded down.
なお、上記実施例では、4ビツトの場合について示した
が、ビット数は何ビットでもよく、また単位回路(1)
〜(5)は、論理素子の組合わせで構成されれば、第2
図の構成に限定されない、また乗数も、局に限らずどの
ような固定乗数でもよい。In the above embodiment, the case of 4 bits is shown, but the number of bits may be any number, and the unit circuit (1)
~(5) is composed of a combination of logic elements, then the second
The configuration is not limited to the one shown in the figure, and the multiplier may be any fixed multiplier regardless of the station.
また、上記実施例では、数値部の演算を行なう単位回路
(2)、(3)、(4)、(5)を相互にカスケード接
続する構成としたが、その他の論理素子の組合せにより
構成することもできる。Furthermore, in the above embodiment, the unit circuits (2), (3), (4), and (5) for calculating the numerical part are connected in cascade to each other, but it may be configured by combining other logic elements. You can also do that.
(発明の効果)
この発明は以上説明したとおり、部分積の生成、加算を
行なわず、論理素子を組合わせて乗算回路を構成したこ
とから、固定乗数による乗算を実現しているので、ハー
ドウェアを簡素化してしかも高速な乗算器を得ることが
できる等の効果がある。(Effects of the Invention) As explained above, this invention does not generate or add partial products, but instead configures a multiplier circuit by combining logic elements, thereby realizing multiplication using a fixed multiplier. This has the advantage that it is possible to simplify the process and obtain a high-speed multiplier.
第1図はこの発明の一実施例に係る乗算器を示す構成図
、第2図は第1図の乗算器を構成する単位回路を示す論
理回路図、第3図は第2図の単位回路の入出力関係を示
す真理値表、第4図は従来の乗算器を示す構成図、第5
図は従来の乗算器を構成する単位回路を示す論理回路図
である。
(1)、(2)、(3)、(4)、(5)・・・単位回
路、(×鳳)、(x2)、(Xs)、 (X、)・・・
被乗数入力、(Pl)、(P、)、(Pl)、(P4)
、(Pg)・・・乗算結果出力。
なお、各図中、同一符号は同−又は相当部分を示すもの
とする。FIG. 1 is a block diagram showing a multiplier according to an embodiment of the present invention, FIG. 2 is a logic circuit diagram showing a unit circuit forming the multiplier in FIG. 1, and FIG. 3 is a unit circuit in FIG. 2. Figure 4 is a configuration diagram showing a conventional multiplier, Figure 5 is a truth table showing the input/output relationship of
The figure is a logic circuit diagram showing unit circuits constituting a conventional multiplier. (1), (2), (3), (4), (5)...Unit circuit, (x Otori), (x2), (Xs), (X,)...
Multiplicand input, (Pl), (P, ), (Pl), (P4)
, (Pg)... Multiplication result output. In each figure, the same reference numerals indicate the same or corresponding parts.
Claims (1)
乗算器において、論理素子の組合わせにより構成され入
力される被乗数入力と固定乗数との乗算結果を算出する
乗算回路を設けたことを特徴とする乗算器。A multiplier that outputs the result of multiplying a multiplicand input of multiple bits by a multiplier, characterized in that a multiplier circuit configured by a combination of logic elements and configured to calculate the result of multiplying the input multiplicand input and a fixed multiplier is provided. Multiplier to do.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP63126217A JPH01295331A (en) | 1988-05-24 | 1988-05-24 | Multiplier |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP63126217A JPH01295331A (en) | 1988-05-24 | 1988-05-24 | Multiplier |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH01295331A true JPH01295331A (en) | 1989-11-29 |
Family
ID=14929636
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP63126217A Pending JPH01295331A (en) | 1988-05-24 | 1988-05-24 | Multiplier |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH01295331A (en) |
-
1988
- 1988-05-24 JP JP63126217A patent/JPH01295331A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US6233597B1 (en) | Computing apparatus for double-precision multiplication | |
| EP0328063B1 (en) | Absolute value calculating circuit having a single adder | |
| JP3479438B2 (en) | Multiplication circuit | |
| US5457804A (en) | Accumulating multiplication circuit executing a double-precision multiplication at a high speed | |
| US5038315A (en) | Multiplier circuit | |
| JPS6068433A (en) | Parallel multiplier circuit | |
| US5870322A (en) | Multiplier to selectively perform unsigned magnitude multiplication or signed magnitude multiplication | |
| JPH0234054B2 (en) | ||
| JP3019796B2 (en) | Multiplier | |
| JPH03259330A (en) | Two-input logical operation system for addition or subtraction and decimal addition/subtraction system | |
| JP2996024B2 (en) | Multiplication circuit | |
| JPS60129834A (en) | Multiplier and divider | |
| JPH0784762A (en) | Multiplication circuit | |
| JPH02114324A (en) | Multiplier | |
| JPH02148326A (en) | Multiplier | |
| JPH0368415B2 (en) | ||
| JP2568608B2 (en) | Multiplication circuit | |
| JPH01241622A (en) | Multiplying device | |
| JPS63182738A (en) | multiplication circuit | |
| JPH0285922A (en) | Arithmetic circuit | |
| JPH04246722A (en) | Adder/subtracter | |
| JPH04149731A (en) | Multiplier circuit | |
| JPS62163139A (en) | High radix non-recoverable divider | |
| JPH0695852A (en) | Serial multiplier with addition function | |
| JPS6037034A (en) | Multiplying circuit for pipeline formation with mode |