Claims
- 1. A multiplier circuit, comprising:
- (a) a partial product generating part for generating a plurality of partial products from a plurality of multiplicand elements and a plurality of multiplier elements, said multiplicand elements each being at least one digit which forms a multiplicand A (=A.sub.(M-1) . . . A.sub.1 A.sub.0) which is expressed in M digits in a D-ary, said multiplier elements each being at least one digit which forms a multiplier B (=B.sub.(N-1) . . . B.sub.1 B.sub.0) which is expressed in N digits in the D-ary; and
- (b) an addition processing part for adding up said partial products while aligning said partial products digit to digit to each other.
- wherein said addition processing part comprises (b-1) a rounding half adder which includes a first and a second input terminals for each receiving a 1-digit value and a first and a second output terminals, a value which is available at said first output terminal of said rounding half adder being a relatively higher digit of a sum of values which are given to said first and said second input terminals and an auxiliary number, a value which is available at said second output terminal of said rounding half adder being a relatively lower digit of the sum of the values which are given to said first and said second input terminals and said auxiliary number, said rounding half adder being located at a position which corresponds to the K-th most significant digit of a product E of said multiplicand A and said multiplier B.
- 2. The multiplier circuit of claim 1, wherein said auxiliary number is a minimum value which is equal to or larger than a half of said number D.
- 3. The multiplier circuit of claim 1, wherein said number D is 2 and said auxiliary number is 1.
- 4. The multiplier circuit of claim 3, wherein said rounding half adder comprises:
- (b-1-1) a first gate which includes a first, a second and a third terminals, said first terminal being connected to said first input terminal, said second terminal being connected to said second input terminal, said third terminal providing said first output terminal with an OR of values which are given to said first and said second terminals of said first gate; and
- (b-1-2) a second gate which includes a first, a second and a third terminals, said first terminal being connected to said first input terminal, said second terminal being connected to said second input terminal, said third terminal providing said second output terminal with an exclusive NOR of values which are given to said first and said second terminals of said second gate.
- 5. The multiplier circuit of claim 4, wherein said addition processing part further comprises:
- (b-2) a first adder group which is formed by (M-1) half adders;
- (b-3) a k-th adder group which is formed by (M-1) full adders (2.ltoreq.k.ltoreq.N-1); and
- (b-4) a carry look ahead adder which has input terminals for (M-1) digits and output terminals for M digits,
- wherein in said addition processing part,
- (c-1) one of said partial products C.sub.(M-1)j (1.ltoreq.j.ltoreq.N-2) is supplied to a most significant digit full adder of said (j+1)-th adder group;
- (c-2) one of said partial products C.sub.ij (0.ltoreq.i.ltoreq.M-2, 2.ltoreq.j.ltoreq.N-1) is supplied to an (i+1)-th least significant digit full adder of said j-th adder group;
- (c-3) one of said partial products C.sub.i1 (0.ltoreq.i.ltoreq.M-2) is supplied to an (i+1)-th least significant digit half adder of said first adder group;
- (c-4) one of said partial products C.sub.i0 (0.ltoreq.i.ltoreq.M-1) is supplied to an i-th least significant digit half adder of said first adder group;
- (c-5) the most significant digit input terminal of said carry look ahead adder is provided with one of said partial products C.sub.(M-1)(N-1) and a relatively higher digit of an output of said most significant digit full adder of said (N-1)-th adder group;
- (c-6) a p-th least significant digit input terminal (1.ltoreq.p.ltoreq.(M-2)) of said carry look ahead adder is provided with a relatively higher digit of an output of a p-th least significant digit full adder of said (N-1)-th adder group and a relatively lower digit of an output of a (p+1)-th least significant digit full adder of said (N-1)-th adder group;
- (c-7) a p-th least significant digit full adder of said j-th adder group (3.ltoreq.j.ltoreq.N-1) is provided with a relatively lower digit of an output of a (p+1)-th least significant digit full adder of said (j-1)-th adder group and a relatively higher digit of an output of a p-th least significant digit full adder of said (J-1)-th adder group;
- (c-8) the most significant digit full adder of said j-th adder group is further provided with a relatively higher digit of an output of the most significant digit full adder of said (j-1)-th adder group;
- (c-9) a p-th least significant digit full adder of said second adder group is provided with a relatively lower digit of an output of a (p+1)-th least significant digit half adder of said first adder group and a relatively higher digit of an output of a p-th least significant digit half adder of said first adder group; and
- (c-10) the most significant digit full adder of said second adder group is provided with a relatively higher digit of an output of the most significant digit half adder of said first adder group,
- and wherein of said first adder group, said half adder which is located at a position which corresponds to the K-th most significant digit of a product E is said rounding adder.
- 6. The multiplier circuit of claim 5, wherein said numbers M and N are equal to each other.
- 7. The multiplier circuit of claim 3, wherein said multiplier elements, said multiplicand elements and said partial products are all 1-digit value "0" or "1,"
- and wherein said partial product generating part comprises (a-1) M.times.N gates for each obtaining, as one of said partial products, a logical product C.sub.mn of one of said multiplicand elements A.sub.m which corresponds to the m-th digit of said multiplicand A (0.ltoreq.m.ltoreq.M-1) and one of said multiplier elements B.sub.n which corresponds to the n-th digit of said multiplier B (0.ltoreq.n.ltoreq.N-1).
- 8. The multiplier circuit of claim 7, wherein said addition processing part forms a Wallace tree circuit.
- 9. The multiplier circuit of claim 8, wherein said numbers M and N are equal to each other.
- 10. The multiplier circuit of claim 3, wherein said multiplier and said multiplicand are each expressed as a complement of 2 if they are negative numbers,
- said multiplicand corresponds to said multiplicand elements,
- said multiplier elements are formed by a plurality of digits which are successive in said multiplier,
- said partial product generating part comprises a plurality of Booth partial product generating circuits which generate said partial products according to the Booth algorithm, and
- said addition processing part adds up said partial products while aligning the most significant digits of said partial products to each other.
- 11. The multiplier circuit of claim 10, wherein said number N is an even number,
- said plural of multiplier elements are divided into a 0-th to an i-th 3-digit multiplier elements (B.sub.2i+1 B.sub.2i B.sub.2i-1) where 0.ltoreq.i.ltoreq.(N-2) / 2 and B.sub.-1 =0,
- said partial products are divided into a 0-th to an i-th partial products which are obtainable by performing a predetermined calculation on said multiplicand elements and said 0-th to said i-th multiplier elements,
- said addition processing part further comprises:
- (b-2) a first adder group which includes a plurality of half adders which are provided in correspondence with said 0-th partial product except for the least two significant bits of said 0-th partial product and with said first partial product;
- (b-3) a (j+1)-th adder group which includes:
- (b-3-1) j half adders which are provided successively at the lower digit side, lower digit (j+1) outputs of said j adder group (1.ltoreq.j.ltoreq.(N-2)/2-1) being given to said j-th adder group with their digits aligned to each other; and
- (b-3-2) full adders which are provided successively at the higher digit side, outputs of said j-th adder group and said (j+1)-th partial product being given to said full adders in correspondence with each other,
- and wherein of said half adders, one which is located at a position which corresponds to the K-th most significant digit of a product E is said rounding adder.
- 12. The multiplier circuit of claim 11, wherein said numbers M and N are equal to each other.
Priority Claims (1)
Number |
Date |
Country |
Kind |
5-061832 |
Mar 1993 |
JPX |
|
Parent Case Info
This is a division of application Ser. No. 08/212,926 filed on Mar. 15, 1994 now U.S. Pat. No. 5,444,647.
US Referenced Citations (8)
Foreign Referenced Citations (2)
Number |
Date |
Country |
3901995 |
Aug 1989 |
DEX |
3909713 |
Apr 1990 |
DEX |
Divisions (1)
|
Number |
Date |
Country |
Parent |
212926 |
Mar 1994 |
|