CN101126974A - Improved Booth2 multiplier structure - Google Patents

Improved Booth2 multiplier structure Download PDF

Info

Publication number
CN101126974A
CN101126974A CNA2007101754928A CN200710175492A CN101126974A CN 101126974 A CN101126974 A CN 101126974A CN A2007101754928 A CNA2007101754928 A CN A2007101754928A CN 200710175492 A CN200710175492 A CN 200710175492A CN 101126974 A CN101126974 A CN 101126974A
Authority
CN
China
Prior art keywords
partial product
booth
multiplier
partial
improved
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.)
Granted
Application number
CNA2007101754928A
Other languages
Chinese (zh)
Other versions
CN101126974B (en
Inventor
陈雷
赵元富
姜爽
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.)
China Aerospace Modern Electronic Co 772nd Institute
Mxtronics Corp
Original Assignee
China Aerospace Modern Electronic Co 772nd Institute
Mxtronics 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 China Aerospace Modern Electronic Co 772nd Institute, Mxtronics Corp filed Critical China Aerospace Modern Electronic Co 772nd Institute
Priority to CN2007101754928A priority Critical patent/CN101126974B/en
Publication of CN101126974A publication Critical patent/CN101126974A/en
Application granted granted Critical
Publication of CN101126974B publication Critical patent/CN101126974B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Complex Calculations (AREA)

Abstract

The utility model relates to an improved Booth 2 multiplier structure, which comprises two partial products realized by hardware and an adder for adding the two partial products; wherein, a bit adding circuit is respectively added on the highest two bits of the two partial product circuits; all partial product bits of the adder are made into same length, at the same time, the number of the partial products does not increase. The utility model has the advantages of small circuit area, simple and regular structure and small influence on the circuit performance.

Description

A kind of improved Booth 2 multiplier architectures
Technical field
The present invention relates to a kind of improved Booth 2 multiplier architectures.
Background technology
The Booth algorithm is at two's complement data form, and in the process of multiply operation, it is long-pending mainly to be responsible for generating portion.The core of Booth algorithm is the long-pending generation form of Booth coded portion of two's complement data.For example, consider the two A=(a of a N position N-1, a N-2..., a 0), its Booth coding form is as follows:
A=-a N-1·2 N-1+∑a i·2 i=∑(a i-1-a i)2 i (1)
Wherein (i=0,1 ..., N-1); a -1=0
So:
P=A×B=∑(a i-1-a i)×B×2 i (2)
Above formula is Booth 1 rank codings, can obtain actual Booth 1 coding schedule by formula, and the operation of corresponding partial product, and is as shown in table 1.
Table 11 rank Booth coding schedule
a i a i-1 The Booth coding Corresponding multiply operation
0 0 0 Partial product moves to left one
0 1 1 Add B to partial product, and the result is moved to left one
1 0 -1 Add-B is to partial product, and the result is moved to left one
1 1 0 Partial product moves to left one
·Booth 2
Cry again and improve Booth algorithm (Modified Booth Method).The partial product number that produces is few more, and the multiplication iterations is few more, and speed is fast more.Here, multiplier is divided into the form of 2 hytes, when still carrying out Booth decoding, once checks 3, and wherein 2 is the group of current decoding, and 1 is the low level in the adjacent high hyte in addition.Times multiplying factor of partial product is that { ± 2, ± 1,0} just can realize by simple displacement and supplement.The number of partial product is
Figure A20071017549200041
(n is the multiplier bit wide), the iteration that promptly only need carry out about right and wrong Booth mode one demidegree just can be finished and take advantage of operation.
·Booth 3
Similar with Booth 2, multiplier bit is divided into the form of 3 hytes, 4 hytes that each iteration inspection overlaps.The number of partial product is
Figure A20071017549200042
Than Booth 2 still less.Shortcoming is that not only Booth decoding logic complexity rises, and partial product generation logic scale is very big.Especially times multiplying factor of correspondence ± 4, ± 3, ± 2, ± 1, among the 0}, take advantage of for ± 3 times and can not only realize by displacement and supplement, also need adding of a carry propagation, bring the area of partial product generation and the sharp increase of time-delay.
Booth 4 algorithms can also be arranged, further reduce the number of partial product.But, times multiplying factor in Booth 4 algorithms become ± 8, ± 7, ± 6, ± 5, ± 4, ± 3, ± 2, ± 1,0}, a times multiplying factor that needs special carry propagate adder to realize has ± 7, ± 5, ± 3 three classes.Not only carry propagate adder is many, and area is very huge, and combinatorial path is also very long, and the Booth decoding logic is also quite complicated.
Because Booth 2 algorithms are at the complement code design, if directly realization is the most significant digit that sign bit expands to array with regard to the most significant digit that requires each partial product.So will make the scale of PPA partial product array become very big, and the length of each partial product is inconsistent, has brought the difficulty of design.The method that prevents sign extended is discussed below.
Multiplier with the 16*16 position is an example, supposes that at first all partial products all are positive, adopts Booth 2 algorithms, and the synoptic diagram that can obtain array as shown in Figure 1.Each stain is represented of partial product among Fig. 1, notices among Fig. 1 overflowing when preventing positive and negative 2 times of situations, and except last partial product, remaining partial product all is 17.Because last partial product can not overflowed, so it is 16 owing to mend two 0 in the multiplier front.Opposite with the situation of Fig. 1, Fig. 2 has provided all partial products and has been negative situation.At this moment, all partial products all will become anti-and add 1 in the position, end, are equivalent to become complement code.And the sign bit of front must polishing during the complement code addition.
1 of upper left corner sign bit among Fig. 2 can be obtained in advance, is added in the array as a fixing value.Be without loss of generality, suppose that multiplication is to carry out between the multiplicand A of a n position and the multiplier B of m position (m is an even number), adopt Booth 2 algorithms.All partial products are all born, will to each partial product all use 1 the expansion, so 1 of all sign extended and be:
signs = Σ i = 0 m / 2 - 1 ( 2 n + m - 2 n + 1 + 2 i ) mod 2 n + m = - 2 n + 1 Σ i = 0 m / 2 - 1 2 2 i
= - ( 2 m - 2 + 2 m - 4 + · · · 2 2 + 2 0 ) · 2 n + 1
Figure A20071017549200053
(3)
This number can be used as a fixing value and is added in the partial product, its total m position, and the weights of lowest order are 2 N+1So just obtained Fig. 3.
Previously discussed all is that partial product is entirely for just or entirely being negative situation.If for the situation of Fig. 3, suppose that some partial products are non-negative, be equivalent on the lowest order of sign bit, add one 1, so become a stringly 0 in a string 1 of partial product front, this moment, Fig. 3 just became the situation of Fig. 4.S represents sign bit, and partial product is for negative when s=1, and corresponding partial product is wanted the step-by-step negate.
To the situation of Fig. 4, two " 11 " that first partial product adds previously just can with
Figure A20071017549200054
Merge, thereby make the height of PPA partial product array reduce.Promptly 11 + s ‾ = s ‾ ss . Fig. 5 is so just arranged, and first partial product is Duoed one than the long-pending figure place of other parts in Fig. 5.
For the signed number of complement representation, revise as long as carry out some on the basis in front.For the multiplication of data without sign, utilize Booth 2 algorithms, the generation of last partial product is owing to fill two 0 as sign bit in the multiplier front, does not just need to have done like this for signed number.Be equivalent to reduce a partial product, but can not guarantee that last partial product is non-negative than the situation of front.Can obtain Fig. 6.The length of first partial product and other parts are long-pending different as can be seen from Figure 6, and needing increases by 3, and are regular so inadequately.Realize well that for hardware the another kind of scheme of proposition is also arranged, 1 of each partial product front among Fig. 6 is added in the array as a partial product separately, get the method shown in Fig. 7.This method various piece is long-pending equally long, and all being increases by two, but has increased a partial product.So existing design exists the partial product circuit not reuse, and perhaps needs to increase the shortcoming of partial product number, makes that circuit area consumption is big, complex structure, the irregular shortcoming of circuit.
Summary of the invention
Technology of the present invention is dealt with problems and is: overcome the deficiencies in the prior art, a kind of chip occupying area improvement Booth little, simple in structure is provided 2 multiplier circuit structures.
Technical solution of the present invention: a kind of improved Booth 2 multiplier architectures that symbol is arranged, its characteristics are: comprise that hard-wired first partial product and second partial product reach the totalizer to described two partial product additions; A circuit is added in the highest two interpolations first at described first partial product, adds a circuit in the highest two interpolations second of described second partial product, thereby makes the long-pending figure place of various piece of multiplier equally long, and the partial product number does not increase simultaneously.
Described multiplier also comprises a Booth coding unit and the 2nd Booth coding unit, is connected on the input end of 3-2 totalizer in first partial product and the second portion respectively.
The input termination control end of most significant digit full adder in the described first partial product
Figure A20071017549200061
With power vd D, control end Be to be produced through reverser by control signal C, time high-order full adder input end adds control signal C in the first partial product; Two of the most significant digit full adder input end grounding GND in the second partial product, an input of time high-order full adder termination power vd D in the second partial product makes hardware multiplexing.
The length of described first partial product and second portion is random length.
The coding number that a described Booth coding unit and the 2nd Booth coding unit produce is an any number.
Principle of the present invention is: make that by simple increase control end the long-pending figure place of various piece is equally long, the partial product number does not increase simultaneously.Consider that there is following relation in binary number
E + 1 = E E ‾ , E ‾ + 1 = E ‾ E , E + E ‾ = 1 - - - ( 4 )
Can derive
( E _ + 1 ) E = E ‾ EE
( E + 1 ) E ‾ = E EE ‾ (5)
E ( E ‾ + 1 ) = ( E + E ‾ ) E = 1 E - - - ( 6 )
E ‾ ( E + 1 ) = ( E ‾ + E ) E ‾ = 1 E ‾ - - - ( 7 )
According to top equation Fig. 6 is improved to Fig. 8 method.
Because it is that the serial timesharing produces that Booth multiplier partial product produces, when first partial product produces C = 0 , C ‾ = 1 , Other parts are amassed when producing then C = 1 , C ‾ = 0 . At this moment promptly produce the situation of Fig. 9, Fig. 9 is of equal value according to the equation relation with Fig. 6.
The present invention's advantage compared with prior art is: the present invention promptly adds a circuit by increasing simple control end, makes the long-pending figure place of various piece of multiplier equally long, and the partial product number does not increase simultaneously.The present invention has little, the simple in structure rule of circuit area, circuit performance is influenced little characteristics.
Description of drawings
Fig. 1 is positive Booth 2 algorithm patterns for partial product;
Booth 2 algorithm patterns when Fig. 2 is negative for partial product;
The negative PPA partial product array figure that Fig. 3 sues for peace in advance for sign bit;
Fig. 4 is PPA partial product array figure completely;
The completely PPA partial product array figure of Fig. 5 for highly reducing;
Fig. 6 is the PPA partial product array figure of signed number multiplication;
Fig. 7 is the array of figure of partial product equal in length;
Fig. 8 is the improved PPA partial product array figure that the sign multiplication device is arranged of the present invention;
The improved partial array figure that the sign multiplication device is arranged when Fig. 9 considers the C value for the present invention;
Figure 10 improves Booth 2 multiplier circuit figure for the present invention;
Figure 11 is Booth 2 codings of coefficient among the ROM among the present invention.
Embodiment
Improved Booth2 multiplier of specific implementation of the present invention uses method shown in Figure 9.Concrete detailed circuit such as Figure 10.In Figure 10, adopt the 3-2 totalizer to come to the partial product computing.Figure 10 provide can be multiplexing first partial product 117 and second partial product 118.Add first respectively and add a circuit 115 and second and add a circuit 116 the highest two of described first partial product 117 and second partial product 118, thereby make the long-pending figure place of various piece of multiplier equally long, the partial product number does not increase simultaneously.First partial product 117 is made of 20 3-2 totalizers 113 and 21 full adder FA, and the concrete totalizer and the number of full adder constitute and can determine that present embodiment adopts above-mentioned quantity according to designing requirement.3-2 totalizer 113 by 2 with door, 1 or and 1 XOR gate composition.Second partial product 118 is made of 20 3-2 totalizers 114 and 21 full adder FA, 3-2 totalizer 132 respectively by 2 with door, 1 or and 1 with or door composition.
Figure 10 has shown the highest two methods of adding the position of first partial product 117, second partial product 118.Increase by first in the first partial product 117 and add a circuit 115, the input termination control end of first partial product 117 full adder FA 120
Figure A20071017549200081
With power vd D, full adder FA 121 input ends add C in the first partial product 117,
Figure A20071017549200082
Be to produce through reverser by control signal C; Increase by second in the second partial product 118 and add a circuit 116, two of full adder 123 input end grounding GND in the second partial product 118,124 1 inputs of full adder termination power vd D in the second partial product 118, thus can be so that hardware multiplexing.
Multiplier of the present invention also comprises a Booth coding unit 110 and the 2nd Booth coding unit 111, is connected on the input end of 3-2 totalizer in first partial product 117 and the second partial product 118 respectively.Corresponding is output coefficient in the ROM112 unit (as the multiplier of multiplier) therewith.The coefficient of storing among the ROM112 generates 1 times of multiplicand 1M, 2 times multiplicand 2M and sign bit S through a Booth 2 coding units 110, the 2nd Booth 2 coding units 111 among Figure 10.The one Booth coding unit 110 and the 2nd Booth 2 coding units 111 by one with or, an XOR and one or non-the composition.Suppose that coefficient is 13,13 potential coefficients through Booth 2 coding as shown in figure 11, such one has 8 partial products, two partial products of computing during every beating-in, 1. 2., 3. 4., 5. 6. and 7. 8., each multiplication divides 4 to clap and finish.Owing to adopt to add the control signal circuit, thus 3. 4., 5. 6. and 7. 8. partial product can adopt 117 and 118 circuit, so each partial product length is the same, rule simple in structure has been saved hardware area.Result after the summation of two partial products of every bat enters latch to wait for the summation that adds up again of partial product with next bat, clapping computing up to 4 all finishes, then this number has realized that 13 with multiplier are all finished multiplying, enter last latch units after all partial products all add.
The length of first partial product 117 and second partial product 118 can be random length, and two Booth coding units 110 and the 111 coding numbers that produce can be for arbitrarily, this example calculation be 18*13, this multiplier architecture all is suitable for any n*m position multiplication.

Claims (5)

1. improved Booth 2 multiplier architectures is characterized in that: comprise that hard-wired first partial product (117) and second partial product (118) reach the totalizer (109) to described two partial product additions; A circuit (115) is added in the highest two interpolations first at described first partial product (117), add a circuit (116) in the highest two interpolations second of described second partial product (118), thereby the long-pending figure place of the various piece that makes whole multiplier is equally long, and the partial product number does not increase simultaneously.
2. a kind of improved Booth 2 multiplier architectures according to claim 1, it is characterized in that: described multiplier also comprises a Booth coding unit (110) and the 2nd Booth coding unit (111), is connected on the input end of 3-2 totalizer in first partial product (117) and the second partial product (118) respectively.
3. a kind of improved Booth 2 multiplier architectures according to claim 1 and 2 is characterized in that: the input termination control end of most significant digit full adder (120) in the described first partial product (117)
Figure A2007101754920002C1
With power vd D, control end Be to be produced through reverser by control signal C, time high-order full adder (121) input end adds control signal C in the first partial product (117); Two input end grounding GND of most significant digit full adder (123) in the second partial product (118), (124) inputs of time high-order full adder termination power vd D in the second partial product (118) makes hardware multiplexing.
4. a kind of improved Booth 2 multiplier architectures according to claim 1 and 2, it is characterized in that: the length of described first partial product (117) and second partial product (118) is random length.
5. a kind of improved Booth 2 multiplier architectures according to claim 2 is characterized in that: the coding number that a described Booth coding unit (110) and the 2nd Booth coding unit (111) produce is an any number.
CN2007101754928A 2007-09-29 2007-09-29 Improved Booth2 multiplier structure Active CN101126974B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2007101754928A CN101126974B (en) 2007-09-29 2007-09-29 Improved Booth2 multiplier structure

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2007101754928A CN101126974B (en) 2007-09-29 2007-09-29 Improved Booth2 multiplier structure

Publications (2)

Publication Number Publication Date
CN101126974A true CN101126974A (en) 2008-02-20
CN101126974B CN101126974B (en) 2010-11-10

Family

ID=39095024

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2007101754928A Active CN101126974B (en) 2007-09-29 2007-09-29 Improved Booth2 multiplier structure

Country Status (1)

Country Link
CN (1) CN101126974B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102270110A (en) * 2011-06-30 2011-12-07 西安电子科技大学 Improved 16Booth-based coder
CN105183425A (en) * 2015-08-21 2015-12-23 电子科技大学 Fixed-bit-width multiplier with high accuracy and low complexity properties
CN105739945A (en) * 2016-01-22 2016-07-06 南京航空航天大学 Modified Booth coding multiplier based on modified partial product array
CN111258633A (en) * 2018-11-30 2020-06-09 上海寒武纪信息科技有限公司 Multiplier, data processing method, chip and electronic equipment

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102270110A (en) * 2011-06-30 2011-12-07 西安电子科技大学 Improved 16Booth-based coder
CN102270110B (en) * 2011-06-30 2013-06-12 西安电子科技大学 Improved 16Booth-based coder
CN105183425A (en) * 2015-08-21 2015-12-23 电子科技大学 Fixed-bit-width multiplier with high accuracy and low complexity properties
CN105183425B (en) * 2015-08-21 2017-09-01 电子科技大学 A kind of fixation bit wide multiplier with high-precision low complex degree characteristic
CN105739945A (en) * 2016-01-22 2016-07-06 南京航空航天大学 Modified Booth coding multiplier based on modified partial product array
CN105739945B (en) * 2016-01-22 2018-10-16 南京航空航天大学 A kind of amendment Booth encoded multipliers for accumulating array based on improvement part
CN111258633A (en) * 2018-11-30 2020-06-09 上海寒武纪信息科技有限公司 Multiplier, data processing method, chip and electronic equipment
CN111258633B (en) * 2018-11-30 2022-08-09 上海寒武纪信息科技有限公司 Multiplier, data processing method, chip and electronic equipment

Also Published As

Publication number Publication date
CN101126974B (en) 2010-11-10

Similar Documents

Publication Publication Date Title
CN103092560B (en) A kind of low-consumption multiplier based on Bypass technology
JP2004531804A (en) Multiplication logic circuit
CN105183424A (en) Fixed-bit-width multiplier with high accuracy and low energy consumption properties
CN105183425B (en) A kind of fixation bit wide multiplier with high-precision low complex degree characteristic
CN101126974B (en) Improved Booth2 multiplier structure
CN101295237B (en) High-speed divider for quotient and balance
CN102999312B (en) The optimization method of base 16 booth multiplier
CN104038770A (en) Discrete cosine transform (DCT) implementation method and system based on randomized computation
WO2018204898A1 (en) Fast binary counters based on symmetric stacking and methods for same
CN102253822B (en) Modular (2<n>-3) multiplier
US11294632B2 (en) Multiplication accumulating device and method thereof
CN102004720B (en) Variable-length fast fourier transform circuit and implementation method
Dakhole et al. Multi-digit quaternary adder on programmable device: Design & verification
Sari et al. Fully combinational 8× 8 bits multiplier using 130 nm technology
CN105703783B (en) A kind of LDPC encoder of quasi- parallel organization
Luo et al. A single clock cycle approximate adder with hybrid prediction and error compensation methods
CN102955682B (en) Modular(23n-2n)multiplier
CN102929575B (en) Modular multiplier
Zhou et al. Approximate comparator: Design and analysis
Givaki et al. High-performance deterministic stochastic computing using residue number system
Soni et al. An Enhanced Two-Speed, Radix-4 Multiplier using Spurious Power Suppression Technique
Kumar et al. Power Efficient and High Speed Multiplier Bbased on Ancient Mathematics: A Review
CN104410427A (en) LDPC encoder and check bit generation unit thereof
CN103699729A (en) Modulus multiplier
Jothimani et al. VLSI Design of Majority Logic based Wallace Tree Multiplier

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant