TWI442315B - Low-error compensation method for fixed-width modified booth multipliers - Google Patents

Low-error compensation method for fixed-width modified booth multipliers Download PDF

Info

Publication number
TWI442315B
TWI442315B TW99103426A TW99103426A TWI442315B TW I442315 B TWI442315 B TW I442315B TW 99103426 A TW99103426 A TW 99103426A TW 99103426 A TW99103426 A TW 99103426A TW I442315 B TWI442315 B TW I442315B
Authority
TW
Taiwan
Prior art keywords
multiplier
lpminor
sub
fixed
value
Prior art date
Application number
TW99103426A
Other languages
Chinese (zh)
Other versions
TW201128524A (en
Original Assignee
Univ Nat Ilan
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 Univ Nat Ilan filed Critical Univ Nat Ilan
Priority to TW99103426A priority Critical patent/TWI442315B/en
Publication of TW201128524A publication Critical patent/TW201128524A/en
Application granted granted Critical
Publication of TWI442315B publication Critical patent/TWI442315B/en

Links

Landscapes

  • Error Detection And Correction (AREA)

Description

具低錯誤率固定寬度改良式布斯乘法器之補償方法Compensation method for fixed Buith multiplier with fixed error width with low error rate

本發明一種具低錯誤率固定寬度改良式布斯乘法器之補償方法,係應用於各種數位信號處理中所需的硬體乘法運算,可依所需的運算位元數,再根據公式做調整後配合使用。The invention relates to a compensation method with a low error rate fixed width modified Booth multiplier, which is applied to hardware multiplication operations required in various digital signal processing, and can be adjusted according to a formula according to a required number of operation bits. Used in conjunction with.

數位信號處理的應用,如濾波器電路、傅立葉(Fourier)轉換,乘法器是最常被使用的運算單元;於硬體現實時,經常在成本考量與實際可行性等因素下,一般會將乘法的乘積輸出限制在某個固定位元寬度,而將剩餘的位元直接捨去,以達成節省大量的硬體成本,基於這個原因,常用的作法為直接省掉明確會被捨去位元之相對應的部分積運算,然而,此舉卻可能帶來很大的輸出誤差值;雖然目前有許多補償方法係解決上述問題,但其硬體架構有些則為較為複雜之補償電路,不僅運算耗時,且共同的最後輸出乘積值之平均誤差仍較為大;因此缺乏一種僅需要簡單的補償電路即可顯著地降低固定寬度乘法之乘積平均誤差值。Digital signal processing applications, such as filter circuits, Fourier transforms, multipliers are the most commonly used arithmetic units; in real-time, often in terms of cost considerations and practical feasibility, they will generally be multiplied. The product output is limited to a fixed bit width, and the remaining bits are directly rounded off to achieve a large amount of hardware cost savings. For this reason, it is common practice to directly eliminate the phase that is clearly discarded. Corresponding partial product operation, however, this may bring a large output error value; although there are many compensation methods to solve the above problems, some of the hardware architectures are more complicated compensation circuits, not only computationally time-consuming. And the average error of the common final output product value is still relatively large; therefore, the lack of a simple compensation circuit can significantly reduce the product average error value of the fixed width multiplication.

再者,硬體乘法器的實現分成許多種類,如常見的傳統陣列式與布斯(Booth)編碼等方法;如圖二A所示,係以基底為4的改良式布斯編碼表,其中yj 為第j個位元的被乘數值,ppi 為第i個乘法部分積,X為乘數,根據本表的對應轉換及最後加總,即可得到最後的乘積。其中最後乘積位元pi 可分成主部(Major Part;MP)與副部(Minor Part;LP)等兩個部分,根據上述僅會保留主部,而副部則直接被捨棄,其中上述的副部又可分為以「行」為單位的LPmajor 與LPminor 如圖二C所標示,其中LPmajor 為包含n 3 ,LPmajor 的行數可變,目前現今的補償方法大部分僅選擇一個垂直行數的LPmajor 做為基礎,再進一步提出各種不同的誤差補償方法,但LPminor 一般則會被完全忽略不計,這種方式雖然可以大量節省電路,但明顯地對於較大位元數的運算,則會產生嚴重的誤差。Furthermore, the implementation of the hardware multiplier is divided into many types, such as the common conventional array and Booth coding methods; as shown in FIG. 2A, the improved Booth code table with a base of 4, wherein y j is the multiplicative value of the jth bit, pp i is the i-th multiplicative partial product, and X is the multiplier. According to the corresponding conversion and the final summation of this table, the final product can be obtained. The last product bit p i can be divided into two parts, a main part (Mary Part; MP) and a sub part (Minor Part; LP). According to the above, only the main part is retained, and the auxiliary part is directly discarded, wherein the above The vice department can be divided into LP major and LP minor in "row" as shown in Figure 2C, where LP major is included. , , , With n 3 , the number of rows of LP major is variable. At present, most of the compensation methods are based on LP major , which only selects one vertical line number. Further, various error compensation methods are proposed, but LP minor is generally completed. Neglected, although this method can save a lot of circuit, it is obviously a serious error for the operation of a large number of bits.

由此可見,上述慣用方法仍有諸多缺失,實非一良善之設計,因而亟待加以改良。It can be seen that there are still many shortcomings in the above-mentioned conventional methods, which is not a good design and therefore needs to be improved.

本案發明人鑑於上述慣用系統及其方法所衍生的各項缺點,乃亟思加以改良創新,並經過多年苦心孤詣潛心研究後,終於成功研發完成本件一種簡易且具低錯誤率固定寬度改良式布斯乘法器之補償方法。In view of the shortcomings derived from the above-mentioned conventional systems and methods, the inventor of the present invention has improved and innovated, and after years of painstaking research, finally succeeded in research and development of this piece of simple and low error rate fixed width improved Booth. The compensation method of the multiplier.

本發明之目的係在於提供一種於固定位元輸出寬度下,可達到較少誤差之乘法器補償方法,於減少硬體成本及達到較低輸出誤差之中取得平衡。SUMMARY OF THE INVENTION It is an object of the present invention to provide a multiplier compensation method that achieves less error at a fixed bit output width, balancing the reduction in hardware cost and achieving lower output errors.

達成上述發明目的之「一種具低錯誤率固定寬度改良式布斯乘法器之補償方法」,包含一編碼模組,其係利用基底為4(Radix-4)之改良式布斯乘法編碼表,將輸入之乘數(X)以及被乘數(Y)經編碼後,經處理模組計算得到乘積結果(P),所得乘積結果(P)可分為主部(MP)與副部(LP),其中該副部(LP)又利用一主要副部選擇模組,而將LP分為主要副部(LPmajor )以及次要副部(LPminor ),為了進一步降低誤差,接續計算該副部(LP)之最佳部分積垂直行數值(K),其係依據乘數位元數或被乘數位元數之最小值,再運用一個對數公式以決定其LPmajor 之行數後,剩下的LPminor 則暫時省略不計,P即為MP+LPmajor ;為了再將誤差降低,係將先前已被忽略之LPminor 估算出期望值(E),並將最後的P重寫成MP+LPmajor +E。另外,為了降低硬體成本,亦提供另一實施例,係將K值固定設定為1,再同樣接續估算出LPminor 的期望值,以進一步提供較低硬體成本,但準確度要求相對不高時使用。A method for compensating a fixed-width modified Booth multiplier with a low error rate for achieving the above object, comprising an encoding module using a modified Booth multiplication coding table having a base of 4 (Radix-4). After the input multiplier (X) and the multiplicand (Y) are encoded, the product result (P) is calculated by the processing module, and the obtained product result (P) can be divided into a main part (MP) and a sub-part (LP). ), wherein the secondary part (LP) uses a primary secondary selection module, and divides the LP into a primary sub-part (LP major ) and a secondary deputy (LP minor ), and in order to further reduce the error, the pair is successively calculated. The best part of the part (LP) is the vertical line value (K), which is based on the multiplier or the minimum of the multiplicand. After using a logarithmic formula to determine the number of rows of LP major , The LP minor is temporarily omitted, and P is MP+LP major ; in order to reduce the error, the expected value (E) is estimated by the previously ignored LP minor , and the final P is rewritten into MP+LP major + E. In addition, in order to reduce the hardware cost, another embodiment is also provided, in which the K value is fixedly set to 1, and the expected value of LP minor is also successively estimated to further provide lower hardware cost, but the accuracy requirement is relatively low. When used.

請參閱圖一所示,為本發明一種具低錯誤率固定寬度改良式布斯乘法器之架構圖,包含:一編碼模組11,其係利用Radix-4之改良式布斯乘法表,將被乘數(Y)編碼後,輸出至處理模組12;一處理模組12,其係將乘數(X)與編碼後之被乘數(Y)進行加總計算後,其所得結果為乘積(P),此乘積又可分成主部(MP)與副部(LP);一主要副部選擇模組13,其係將副部(LP)分為主要副部(LPmajor )以及次要副部(LPminor )後,係計算該副部(LP)之最佳部分積垂直行數值(K),其係依據乘數位元數(m)或被乘數位元數(n)之最小值,利用一對數公式以決定其LPmajor 之行數;一次要副部估算模組14,係將該主要副部選擇模組13剩餘之LPminor 估算出其期望值(E[LP minor ]),並將最後的乘積(P)重寫成Referring to FIG. 1 , an architecture diagram of a fixed-width modified Booth multiplier with a low error rate according to the present invention includes: an encoding module 11 that utilizes a modified Buss multiplication table of Radix-4. After being multiplied (Y), the result is output to the processing module 12; a processing module 12, after multiplying the multiplier (X) and the encoded multiplicand (Y), the result is Product (P), which can be divided into main part (MP) and sub-part (LP); a main deputy selection module 13, which divides the sub-part (LP) into main sub-parts (LP major ) and times After the sub-part (LP minor ), the optimum partial product vertical line value (K) of the sub-portion (LP) is calculated, which is based on the multiplier bit number (m) or the minimum number of multiplicand bits (n). The value is determined by a one-to-one formula to determine the number of rows of its LP major ; the primary sub-estimation module 14 estimates the expected value (E[ LP minor ]) of the remaining LP minor of the primary secondary selection module 13 And rewrite the last product (P) into .

請參考圖二~ 圖四所示,為本發明一種具低錯誤率固定寬度改良式布斯乘法之補償方法:係定義:其中X為乘數,為m個位元數且以2的補數表示之;Y為被乘數,為n個位元數且以2的補數表示之;步驟一:將Y經編碼模組,利用Radix-4之改良式布斯乘法表(請參閱圖二A所示)編碼後,輸出至處理模組;因此Y可被重寫為:Please refer to FIG. 2 to FIG. 4 , which is a compensation method for a fixed width and improved Booth multiplication with low error rate according to the present invention: Where X is a multiplier, is m number of bits and is represented by 2's complement; Y is a multiplicand, is n number of bits and is represented by 2's complement; Step 1: Y coded mode The group is encoded by the modified Buss multiplication table of Radix-4 (see Figure 2A) and output to the processing module; therefore, Y can be rewritten as:

其中ej (布斯係數)=-2y2j+1 +y2j +y2j-1Where e j (Bus coefficient) = -2y 2j+1 + y 2j + y 2j-1 ;

步驟二:X及Y經編碼模組進行編碼轉換及處理模組加總計算後之乘積(P)可分成主部(MP)與副部(LP);(請參閱圖二B所示)Step 2: The product (P) of the X and Y coded modules for encoding conversion and processing module summation can be divided into a main part (MP) and a sub-part (LP); (see Figure 2B)

w =min{m ,n }; w =min{ m , n };

步驟三:利用主要副部選擇模組,將副部(LP)分為主要副部(LPmajor )以及次要副部(LPminor ),即LP=LPmajor +LPminor (請參閱圖二C所示),其中LPmajor 為包含,又,LPmajor 的行數為可變;接續計算該副部(LP)之最佳部分積垂直行數值(K),其係依據X或Y位元數之最小值,利用一對數公式決定其LPmajor 之行數後,剩下的LPminor 則需接續送至下個單元進行處理,K值計算方式與依據如下所述:針對四個常用的位元寬度的乘法進行一個模擬(如圖二D所示),其中命中率(Hit Rate)或稱為吻合率定義為:Step 3: Using the main deputy selection module, divide the sub-part (LP) into the main sub-part (LP major ) and the secondary deputy (LP minor ), ie LP=LP major +LP minor (see Figure 2C ). As shown), where LP major is included Further, the number of rows of LP major is variable; and the optimum partial line vertical value (K) of the sub-portion (LP) is successively calculated, which is determined by a pair-number formula according to the minimum value of the X or Y-bit number. After the number of LP major lines, the remaining LP minors need to be sent to the next unit for processing. The K value calculation method and basis are as follows: Perform a simulation for the multiplication of four commonly used bit widths (as shown in the figure). The second D), where the hit rate or the coincidence rate is defined as:

這裡的後截斷(Post-truncation)值係指在計算所有部分積完後,才截斷副部乘積但保留主部乘積;另外,水平軸表示為保留在副部所屬的部分積垂直行數,其中數值1表示完全截斷所有的副部,數值2表示只留一行(由左至右起算),其他值以此類推,注意由於32×32的乘法計算量過於龐大而耗時,因此我們僅用1000組亂數當測試樣本;由模擬結果可以觀察吻合率欲達到70%以上,對於四個不同位元寬度的乘法而言,其所需保留的部分積垂直行數(K)皆不一,但都符合下面的公式:The post-truncation value here means that the sub-product is truncated but the main product is retained after all the parts have been calculated; in addition, the horizontal axis is expressed as the number of partial vertical lines remaining in the sub-part, where A value of 1 indicates that all the sub-sections are completely truncated, a value of 2 indicates that only one line is left (from left to right), and other values are deduced by analogy. Note that since the 32×32 multiplication calculation is too large and time consuming, we only use 1000. The group random number is the test sample; from the simulation results, it can be observed that the coincidence rate is more than 70%. For the multiplication of four different bit widths, the number of vertical lines (K) of the partial product to be retained is different, but Both meet the following formula:

其中K稱為主要副部之最佳的部分積垂直行數值(由左至右起算),w為取乘數(X)位元數與被乘數(Y)位元數兩者間最小位元數,表取大於或等於x的最小整數;以12×12位元數的乘法為例,w為12,因此可得K為3,而對應的吻合率則大約為82%;事實上,這個結果顯示雖然LPminor 表為最少可能產生進位的部分積,但忽略太多此部分的垂直行數,將造成過大的誤差。圖二E為一個採用最佳K值(K=2)之8×8布斯乘法器之演算圖,其中包含在LPminor 的部分積垂直行數將全數暫時不計,並送至下個模組進行估算。Where K is called the best partial vertical line value of the main sub-portion (from left to right), and w is the smallest bit between the multiplier (X) bit number and the multiplicand (Y) bit number. Yuan, The table takes the smallest integer greater than or equal to x; taking the multiplication of 12×12 bits as an example, w is 12, so K is 3, and the corresponding coincidence rate is about 82%; in fact, this result shows Although the LP minor table is the least possible partial product of the carry, ignoring too many vertical lines in this portion will cause excessive errors. Figure 2E is a calculus diagram of an 8×8 Booth multiplier with the best K value (K=2). The partial vertical line number included in LP minor will be temporarily excluded and sent to the next module. Make an estimate.

步驟四:將該步驟三所得之次要副部(LPminor ),利用次要副部估算模組,估算出其期望值(E[LP minor ]),並將最後的乘積(P)重寫成Step 4: The secondary sub-section (LP minor ) obtained in step 3 is estimated by the secondary sub-estimation module, and the expected product (E[ LP minor ]) is estimated, and the last product (P) is rewritten into .

注意上述步驟三及步驟四,可以在最後硬體設計進行前先行計算,再將結果融入實際的電路設計裡,成為硬體的一部份,因此並不需實施在完成的電路中,以節省可觀的硬體成本。Note that the above steps 3 and 4 can be calculated before the final hardware design, and then the results are integrated into the actual circuit design, which becomes part of the hardware, so it does not need to be implemented in the completed circuit to save Considerable hardware costs.

第一實施例:First embodiment:

得到最佳的部分積垂直行數值(K)後,雖然得到LPmajor ,但為了再進一步降低乘法器的平均誤差,即提升吻合率,我們顯然不能完成排除LPminor 於最後乘積(P)加總時所產生的進位影響,但又不能完全保留它,徒增不必要的硬體成本,因此本發明提出一個折衷的誤差補償方法,又稱為Type-I乘法器,此實施例需估算LPminor 的期望值(Expect Value),以作為誤差補償用,再送至主部及LPmajor 所屬的部分積一起加總,此期望值計算如下面的方程式所示:After getting the best partial product vertical row value (K), although LP major is obtained, in order to further reduce the average error of the multiplier, that is, to increase the coincidence rate, we obviously cannot complete the exclusion of LP minor in the last product (P). The carry effect generated at the time, but can not completely retain it, adding unnecessary hardware cost, so the present invention proposes a compromise error compensation method, also known as Type-I multiplier, this embodiment needs to estimate LP minor The Expect Value is used as the error compensation and is sent to the main part and the partial product to which the LP major belongs. The expected value is calculated as shown in the following equation:

E [LP minor ]=a 0 2- w -1 +a 1 2- w -2 +...+a K-1 2- w - K E [ LP minor ]= a 0 2 - w -1 + a 1 2 - w -2 +...+ a K-1 2 - w - K

其中;此外,我們還可以將上式加1或減1以進行微調,使得整體的誤差補償效果可被提升,最後的乘法乘積可重寫為:among them In addition, we can also add or subtract 1 from the above formula to fine-tune, so that the overall error compensation effect can be improved, and the final multiplication product can be rewritten as:

根據上式套入前述四個常用的位元寬度的乘法進行模擬,其結果如圖三A所示,經使用本補償方法後,可提高吻合率大約10%~ 21%之間。圖三B為一個以8×8 Type-I固定寬度布斯乘法器於本實施例之架構圖;圖三C為使用在圖三B模組中的詳細電路圖。The simulation is carried out according to the multiplication of the above four commonly used bit widths. The result is shown in Fig. 3A. After using this compensation method, the coincidence rate can be improved by about 10% to 21%. FIG. 3B is an architectural diagram of the 8×8 Type-I fixed-width Booth multiplier in this embodiment; FIG. 3C is a detailed circuit diagram used in the module of FIG.

第二實施例:Second embodiment:

如需進一步降低硬體成本,可採用本實施例,亦稱為Type-II乘法器硬體架構,此架構所使用的補償方法和前述的Type-I大致相同,差別僅於步驟三中,將最佳的部分積垂直行數(K)值固定設為1,而最後的乘積LPmajor (K=1)+E[LPminor ]。此方法的優點為電路比Type-I更精簡,但其吻合率會比Type-I差許多,也就是整體平均誤差會降低。圖四為一個以8×8 Type-I固定寬度布斯乘法器於本實施例之架構圖。To further reduce the hardware cost, this embodiment may be used, which is also called a Type-II multiplier hardware architecture. The compensation method used in this architecture is substantially the same as the Type-I described above, and the difference is only in step 3. The best partial product vertical line number (K) value is fixed to 1, and the last product LP major (K=1)+E[LP minor ]. The advantage of this method is that the circuit is more compact than Type-I, but its coincidence rate is much worse than Type-I, that is, the overall average error is reduced. Figure 4 is a block diagram of an 8 x 8 Type-I fixed width Booth multiplier in this embodiment.

數據分析:data analysis:

三個不同位元寬度的誤差比較總結如下列表1~ 表3,在表中所有的數據皆以後截斷(Post-truncation)固定寬度改良式布斯乘法器(慣用技術)當作標準以進行比較,且所有表中的數據皆被放大至2n 倍,n為乘法位元數。此外,截斷方式I(Truncation Method I)為僅保留屬主部垂直行數之部分積,其他屬副部垂直行數之部分積皆全部忽略不計,而截斷方式II(Truncation Method II)為除保留主部部分積外,僅再保留第一行副部部分積,剩餘副部部分積皆被捨棄不計;另外,平均誤差(Average Error)定義為「後截斷固定寬度改良式布斯乘積值」減去「樣本量測值」的誤差值總和,再除以樣本總數。從表1中可觀察所有誤差量測值,本發明所提出的Type-I及Type-II乘法架構皆表現優異,尤其是Type-I在輸出值的吻合率高達88%,且正負誤差皆在±1之間,這使整體平均誤差相對比起其他的架構低許多;此外,由於大位元數的模擬非常耗費時間,因此16×16與32×32位元固定寬度乘法,我們僅使用106 個亂數測試樣本進行模擬,其結果顯示於表2與表3;同樣地,本發明之Type-I及Type-II的效能仍優於其他現有的架構。The error comparison of the three different bit widths is summarized in the following Tables 1 to 3, in which all the data in the table are post-truncation fixed-width modified Booth multipliers (common techniques) as a standard for comparison, And the data in all the tables are enlarged to 2 n times, and n is the number of multiplicative bits. In addition, the truncation method I (Truncation Method I) is only a partial product of the number of vertical lines belonging to the main part, and the partial product of the number of vertical lines of other sub-parts is negligible, and the Truncation Method II is reserved. The main part is partially redundant, and only the first line of the sub-partial product is retained, and the remaining sub-partial product is discarded. In addition, the Average Error is defined as the "post-cutting fixed width modified Buss product value" minus Go to the sum of the error values of the "sample measurements" and divide by the total number of samples. All the error measurement values can be observed from Table 1. The Type-I and Type-II multiplication architectures proposed by the present invention are excellent, especially the Type-I has an coincidence rate of 88% in the output value, and both positive and negative errors are in Between ±1, this makes the overall average error much lower than other architectures; in addition, since the simulation of large bit numbers is very time consuming, 16×16 and 32×32 bits fixed width multiplication, we only use 10 Six random test samples were simulated, and the results are shown in Table 2 and Table 3. Similarly, the performance of Type-I and Type-II of the present invention is still superior to other existing architectures.

為了觀察所提的架構在硬體效能上的表現,我們採用台積電0.18μm的CMOS製程技術,依前述所有表列的架構進行合成,所得硬體成本與執行速度如表4~ 表6所示,由此結果可明顯觀察到我們的Type-I硬體成本比參考文獻[6]高約3%~ 11%,及比參考文獻[4]-[5]與[7]高約11%~ 15%,但吻合率卻高出他們約24%以上。另外,Type-II的硬體成本與其他的架構相較約略差異很小,但其吻合率相較為高,即具較低的平均誤差值;再者觀察執行速度,所有架構其差距也都不大。In order to observe the hardware performance of the proposed architecture, we use TSMC's 0.18μm CMOS process technology to synthesize according to the above-mentioned architecture. The hardware cost and execution speed are shown in Tables 4 to 6. thus our results clearly observed hardware costs than Type-I reference [6] from about 3% to 11% higher than the reference, and [4] - [5] and [7] height of about 15 ~ 11% %, but the coincidence rate is higher than about 24% of them. In addition, the hardware cost of Type-II is slightly different from other architectures, but the coincidence rate is relatively high, that is, it has a lower average error value. In addition, the execution speed is observed, and the gap between all architectures is not Big.

綜合以上的數據表現,我們提出的兩類架構,在整體表現皆優於現有的架構,如要求較低的平均誤差值時,可選用Type-I架構;如需較低成本或較低功率消耗時,但不要求較低的平均誤差值,可選Type-II架構。Based on the above data performance, the two types of architectures we propose are better than the existing ones. If a lower average error value is required, the Type-I architecture can be used; if lower cost or lower power consumption is required Time, but does not require a lower average error value, optional Type-II architecture.

本發明所提供之一種具低錯誤率固定寬度改良式布斯乘法器之補償方法,與其他慣用技術相互比較時,更具備下列優點:The invention provides a compensation method with a low error rate fixed width modified Booth multiplier, which has the following advantages when compared with other conventional techniques:

●本發明提供兩種實施例,可供依據低錯誤率或者低成硬體成本之需求,選擇其一的乘法器使用。The present invention provides two embodiments for selecting one of the multipliers for use based on low error rate or low hardware cost requirements.

上列詳細說明係針對本發明之一可行實施例之具體說明,惟該實施例並非用以限制本發明之專利範圍,凡未脫離本發明技藝精神所為之等效實施或變更,均應包含於本案之專利範圍中。The detailed description of the preferred embodiments of the present invention is intended to be limited to the scope of the invention, and is not intended to limit the scope of the invention. The patent scope of this case.

綜上所述,本案不但在技術思想上確屬創新,並能較慣用電路增進上述多項功效,應已充分符合新穎性及進步性之法定發明專利要件,爰依法提出申請,懇請 貴局核准本件發明專利申請案,以勵發明,至感德便。In summary, this case is not only innovative in terms of technical thinking, but also able to enhance the above-mentioned multiple functions compared with conventional circuits. It should fully comply with the statutory invention patent requirements of novelty and progressiveness, and apply in accordance with the law. You are requested to approve this document. Invention patent application, in order to invent invention, to the sense of virtue.

11‧‧‧編碼模組11‧‧‧Code Module

12‧‧‧處理模組12‧‧‧Processing module

13‧‧‧主要副部選擇模組13‧‧‧Main Deputy Selection Module

14‧‧‧次要副部估算模組14‧‧‧Sub-Deputy Estimation Module

圖一為本發明一種具低錯誤率固定寬度改良式布斯乘法器之架構圖;圖二A為本發明「一種具低錯誤率固定寬度改良式布斯乘法之補償方法」使用之以4為底改良式布斯乘法表;圖二B為本發明「一種具低錯誤率固定寬度改良式布斯乘法之補償方法」之8×8布斯乘法的部分積演算圖;圖二C為本發明「一種具低錯誤率固定寬度改良式布斯乘法之補償方法」之8×8布斯乘法含LPmajor 及LPminor 的部分積演算圖;圖二D為本發明「一種具低錯誤率固定寬度改良式布斯乘法之補償方法」之不同部分積垂直行數的吻合率值模擬;圖二E為本發明「一種具低錯誤率固定寬度改良式布斯乘法之補償方法」之運用最佳垂直行數之8×8布斯乘法的部分積演算圖;圖三A為採用不同垂直行數下之吻合率比較圖;圖三B為本發明「一種具低錯誤率固定寬度改良式布斯乘法之補償方法」之第一實施例架構圖;圖三C為本發明「一種具低錯誤率固定寬度改良式布斯乘法之補償方法」之第一實施例中各模組的詳細電路圖;圖四為本發明「一種具低錯誤率固定寬度改良式布斯乘法之補償方法」之第二實施例架構圖。1 is a structural diagram of a modified Buss multiplier with a low error rate fixed width; FIG. 2A is a "compensation method for a fixed width modified Buith multiplication with a low error rate" used in FIG. Bottom-improved Booth multiplication table; FIG. 2B is a partial product calculus diagram of 8×8 Booth multiplication of a method for compensating a fixed-width modified Booth multiplication with low error rate; FIG. "A kind of compensation scheme for 8×8 Buss multiplication with low error rate fixed width modified Booth multiplication" with LP major and LP minor ; Figure 2D is a fixed error width with low error rate. Simulation of the coincidence rate value of the different partial line numbers of the modified method of the modified Booth multiplication method; Fig. 2E is the best vertical application of the "compensation method of the improved double-error rate fixed-width modified Booth multiplication method" The partial product calculus of 8×8 Buss multiplication of the number of rows; Figure 3A is a comparison graph of the coincidence rate under different vertical rows; Figure 3B is a modified Buss multiplication with a fixed error width with low error rate. The method of compensation FIG. 3C is a detailed circuit diagram of each module in the first embodiment of the present invention, a method for compensating a fixed-width modified Booth multiplication with low error rate; FIG. 4 is a schematic diagram of the present invention. A second embodiment architecture diagram of a method for compensating for an error rate fixed width modified Booth multiplication.

11...編碼模組11. . . Coding module

12...處理模組12. . . Processing module

13...主要副部選擇模組13. . . Main auxiliary selection module

14...次要副部估算模組14. . . Secondary deputy estimation module

Claims (3)

一種具低錯誤率固定寬度改良式布斯乘法器之補償方法,其中運算之方法係包含:步驟一:被乘數(Y)經利用基底為4之改良式布斯乘法表編碼與乘數(X)作相乘運算,其中該被乘數(Y)重寫為:;ej (布斯係數)=-2y2j+1 +y2j +y2j-1 ;步驟二:被乘數(Y)及乘數(X)經編碼模組進行編碼轉換及處理模組加總計算後之乘積(P)可分成主部(MP)與副部(LP),其該乘積(P):; 其該主部(MP)與該副部(LP): w =min{m,n},w 為取乘數(X)位元數與被乘數(Y)位元數兩者間最小位元數;步驟三:將副部(LP)分為主要副部(LPmajor)以及次要副部(LPminor),即LP=LPmajor+LPminor;接續計算該副部(LP)之最佳部分積垂直行數值(K),其係依據乘數(X)或被乘數(Y)位元之最小值,利用一對數公式決定其LPmajor之行數後,剩下的LPminor則送至步驟四進行處理;步驟四:將該步驟三所得之次要副部(LPminor),估算出其期望值(E[LPminor]),並將最後的乘積(P)重寫成P=X×YMP+LPmajor+E[LPminor]。A compensation method with a low error rate fixed width modified Booth multiplier, wherein the operation method comprises: Step 1: The multiplicand (Y) is coded and multiplied by a modified Booth multiplication table using a base of 4 ( X) is a multiplication operation in which the multiplicand (Y) is rewritten as: ; e j (Bus coefficient) = -2y 2j + 1 + y 2j + y 2j-1 ; Step 2: The multiplicand (Y) and multiplier (X) are encoded and converted by the coding module and processed by the module. The total calculated product (P) can be divided into a main part (MP) and a sub-part (LP), and the product (P): The main part (MP) and the sub-part (LP): , w =min{m,n}, w is the minimum number of bits between the number of multipliers (X) and the number of multiplicands (Y); Step 3: Divide the secondary (LP) into primary The LPmajor and the LPminor, LP=LPmajor+LPminor; successively calculate the optimum partial vertical line value (K) of the sub-part (LP), which is based on the multiplier (X) or The minimum value of the multiplicand (Y) bit, after determining the number of LPmajor lines by the one-to-one formula, the remaining LPminor is sent to step four for processing; step four: the secondary sub-part of the third step ( LPminor), estimate its expected value (E[LPminor]), and rewrite the last product (P) to P=X×Y MP+LPmajor+E[LPminor]. 如申請專利範圍第1項所述之一種具低錯誤率固定寬度改良式布斯乘法器之補償方法,其中該步驟四之期望值([LPminor]): A compensation method for a fixed-width modified Booth multiplier with a low error rate, as described in claim 1, wherein the expected value of the step 4 ([LPminor]): 如申請專利範圍第1項所述之一種具低錯誤率固定寬度改良式布斯乘法器之補償方法,其中該步驟三之對數公式係為K =log2 w /2,其中w 為取乘數(X)位元數與被乘數(Y)位元數兩者間最小位元數。A method for compensating a Buick multiplier with a low error rate and a fixed width as described in claim 1, wherein the logarithmic formula of the step 3 is K = Log 2 w /2 Where w is the minimum number of bits between the number of multipliers (X) and the number of multiplicands (Y).
TW99103426A 2010-02-05 2010-02-05 Low-error compensation method for fixed-width modified booth multipliers TWI442315B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW99103426A TWI442315B (en) 2010-02-05 2010-02-05 Low-error compensation method for fixed-width modified booth multipliers

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW99103426A TWI442315B (en) 2010-02-05 2010-02-05 Low-error compensation method for fixed-width modified booth multipliers

Publications (2)

Publication Number Publication Date
TW201128524A TW201128524A (en) 2011-08-16
TWI442315B true TWI442315B (en) 2014-06-21

Family

ID=45025261

Family Applications (1)

Application Number Title Priority Date Filing Date
TW99103426A TWI442315B (en) 2010-02-05 2010-02-05 Low-error compensation method for fixed-width modified booth multipliers

Country Status (1)

Country Link
TW (1) TWI442315B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103530085B (en) * 2013-09-16 2016-06-22 电子科技大学 A kind of booth encoder and multiplier

Also Published As

Publication number Publication date
TW201128524A (en) 2011-08-16

Similar Documents

Publication Publication Date Title
Zendegani et al. RoBA multiplier: A rounding-based approximate multiplier for high-speed yet energy-efficient digital signal processing
US8903882B2 (en) Method and data processing unit for calculating at least one multiply-sum of two carry-less multiplications of two input operands, data processing program and computer program product
CN108733347B (en) Data processing method and device
TW202115560A (en) Multiplier and method for floating-point arithmetic, integrated circuit chip, and computing device
EP2435904B1 (en) Integer multiply and multiply-add operations with saturation
US20110298788A1 (en) Performing vector multiplication
US8775494B2 (en) System and method for testing whether a result is correctly rounded
Sona et al. Vedic multiplier implementation in VLSI
TWI442315B (en) Low-error compensation method for fixed-width modified booth multipliers
CN107092462B (en) 64-bit asynchronous multiplier based on FPGA
US7673257B1 (en) System, method and computer program product for word-level operator-to-cell mapping
Baluni et al. A fully pipelined modular multiple precision floating point multiplier with vector support
KR101073343B1 (en) A booth multiplier with enhanced reduction tree circuitry
US9569175B2 (en) FMA unit, in particular for utilization in a model computation unit for purely hardware-based computing of function models
Naik Design of carry select adder for low-power and high speed VLSI applications
CN102646033B (en) Provide implementation method and the device of the RSA Algorithm of encryption and signature function
US9804998B2 (en) Unified computation systems and methods for iterative multiplication and division, efficient overflow detection systems and methods for integer division, and tree-based addition systems and methods for single-cycle multiplication
CN111897513A (en) Multiplier based on reverse polarity technology and code generation method thereof
Yun et al. A low complexity floating-point complex multiplier with a three-term dot-product unit
Shawl et al. Implementation of Area and Power efficient components of a MAC unit for DSP Processors
Kumar et al. Design and Implementation of Vedic Multiplier using Compressors
US20140115023A1 (en) Bid to bcd/dpd converters
Hsiao et al. Low-cost design of reciprocal function units using shared multipliers and adders for polynomial approximation and Newton Raphson interpolation
US20080021947A1 (en) Triple-base number digital signal and numerical processing system
CN113033788B (en) Data processor, method, device and chip

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees