The present invention relates to improvements in digital IC squarers, multipliers, dividers, including square and accumulate, and multiply and accumulate functions.
Non-linear signal processing, including the square function, as well as other mathematical functions such as multiplication are required in many computational applications, including machine learning and artificial intelligence where many of squarers and multipliers may be needed in a chip with low cost and low power consumption and mid-to-high resolution.
Generally speaking, die area (i.e., integrated circuit cost) and power consumption of conventional digital integrated circuit (IC) squarers and multipliers increase exponentially with increasing the digital input bit word length (i.e., resolution).
Until recently, innovations in semiconductor manufacturing and fabrication have lowered costs significantly and made very faster chips which has provided technology markets with the fuel to grow the digital economies with meaningful integrated circuit cost reductions year-after-year, consistent with the predictions of the Moore's law.
With Moore's law at the end of its rope, IC manufacturing and fabrication technologies have run out of steam to be the primary fuel for die size reduction. Despite the end of Moore's law, demand for both smaller ICs and also ones with higher performance and higher levels of integration (for lower cost chips) persists.
Moreover, post Moore's law era, semiconductor manufacturing advancements and already shrunk FETs can no longer do the heavy lifting to improve IC's performance. As such, there is increased demand (as a matter of both priority and necessity) for efficiently arranged and designed signal processing chips and innovative circuit designs that not only occupy smaller die area, but also consume lower powers and have reasonable resolution, which is the objective of this invention.
Considering the above, it is the objective of the present disclosure to provide improvements to squarers and multipliers including (but not limited to) the following (in part or combination thereof):
An objective of this disclosure is to provide digital IC approximate squarer suitable for digital IC approximate computing.
Another objective of the present invention is to utilize digital IC approximate squaring to perform approximate multiplication by utilizing the quarter square method. Accordingly, digital IC multiplication can be performed by deducting the square of subtraction of two digital words (x, y) from the square of their summation as in (x+y)2+(x−y)2=4xy.
Another objective of the present invention is to provide a digital IC approximate squarer and approximate multiplication functions whose degree of approximation can be pre-programed and or programmed real-time (on the fly) depending on the application and or different set of the real time data. In other words, for an application whose set of data needs more precision (less approximation), the approximate squarer and or approximate multiplier can be programmed on the fly to compute the squaring of the set data with less approximation. Conversely, in the same application whose another set of data needs less precision (more approximation), the approximate squarer and or multiplier may (on the fly) be programmed real-time differently to compute the squaring of the another set of data with more approximation, which can save on power consumption and computation speed. This would enable optimizing digital IC computation (pre-programmed or real-time programming) for precision versus speed versus power consumption versus cost, as required by the application and data-sets.
Another objective of this disclosure is to provide digital IC approximate squarer and approximate multiplier functions with less gate count which occupies smaller area and costs less.
Considering that generally in a digital chip the more gate counts the higher power consumption of the chip, another objective of this invention can provide the digital IC approximate squarer and multipliers having lower power consumption.
Another objective of this invention is to provide cost effective and low power digital IC approximate squaring and accumulating for cost sensitive and power sensitive machine learning and artificial intelligence applications.
Another objective of this invention is to provide a single or few asynchronous and synchronous digital IC approximate squarers and or approximate multipliers that can be time multiplexed or digitally shared so to generate many (plurality of) squaring and or multiplication functions.
Another objective of this invention is to provide asynchronous and synchronous digital IC approximate squaring and accumulating (SAC) for low-power and low cost-machine learning and artificial intelligence applications.
Utilizing the disclosed digital IC approximate squarer (through the quarter square method to perform approximate multiplication) another objective of this invention is to provide digital IC approximate multiplication and accumulating (MAC) for low-cost and low-power machine learning and artificial intelligence applications.
Utilizing the disclosed digital IC approximate squarer (through the quarter square method to perform approximate multiplication), another objective of this invention is to provide plurality of digital IC MACs that can be utilized in digital IC artificial neural networks (ANN) for low-cost and low-power machine learning and artificial intelligence applications.
Another objective of the present invention is to provide mixed-mode approximate squaring and or mixed-mode approximate multiplications, wherein the internal summation and or subtraction functions of the approximate squaring and or multiplication can be performed in analog and or mixed-mode (current-mode and or voltage mode). For example, plurality of outputs of approximate digital IC squarers or approximate digital IC multipliers can be inputted to plurality of current mode Digital-to-Analog-Converters (iDACs), wherein by the function of summation (e.g., adding two multiplications) can be performed simply by coupling together the current output terminals of plurality of iDACs.
Another objective of the present invention is to utilize mixed-mode approximate squarer and mixed-mode approximate multiplier in a mixed-mode approximate square and accumulate (SAC) and or multiply and accumulate (MAC), wherein the summation and subtraction functions of the SAC and MAC can be performed in analog or mixed mode (current-mode and or voltage mode).
An aspects of the embodiments disclosed herein include an approximate digital squaring (aSQR) method in a digital state machine in an integrated circuit, the method comprising: receiving an at least one input digital word (Di), wherein the at least one Di has a digital value spanning from zero scale (ZS) to full scale (FS); programming at least one total number of digital interpolation steps (n); initializing each digital word of an at least one digital array O to zero, wherein each of the at least one digital array O is comprised of a plurality of digital words; initializing each digital word of an at least one digital array P to zero, wherein each of the at least one digital array P is comprised of a plurality of digital words; beginning at an at least one first digital interpolation step of j=1 and ending at a digital interpolation step of j=n, generating and storing an at least one sequence of digital words into the at least one digital array O respectively into digital words Oj by adding: an at least one respective sequence of 2×Σk=1j-1 Pj digital words to an at least one respective sequence of FS/2j digital words, and subtracting the result of that addition from a respective at least one Di word, generating an at least one selected digital sequence by selecting a sequence of an at least one maximum of an at least one digital words Oj and a digital zero word, and storing the at least one selected digital sequence into the at least one digital array P respectively into digital words Pj. Further aspect of the approximate digital squaring (aSQR) method in a digital state machine in an integrated circuit, the method further comprising: generating an at least one Sn signal by respectively computing at least one summation Σj=1n Pj×½(j-2) at each of a summation step j beginning at a first summation step and ending at a summation step of n; and wherein the at least one Sn signal is an approximate equivalent square of the at least one Di (˜Di2). Further aspect of approximate digital squaring (aSQR) method in a digital state machine in an integrated circuit, the method further comprising: programming a plurality n of digital interpolation steps, real-time on the fly, generating a plurality of respective Sn signals, real-time on the fly; and wherein the plurality of respective Sn signals are the respective approximate equivalents of the respective squares of a plurality of the at least one Di, corresponding respectively to the plurality of n digital interpolation steps. Further aspect of the approximate digital squaring (aSQR) method in a digital state machine in an integrated circuit, the method further comprising: performing the summation functions in computing the respective Σj=1n Pj×½(j-2) by utilizing at least one of an at least one digital adder and an at least one analog adder to generate the at least one Sn signal; and wherein the at least one analog adder is comprised of an at least one Digital-to-Analog-Converter (DAC). Further aspect of the approximate digital squaring (aSQR) method in a digital state machine in an integrated circuit, the method further comprising: generating an at least one summing absolute value digital word (|Dis|), wherein the at least one |Dis| digital word is an at least one summation of an at least two digital words (X+Y); generating an at least one deducting absolute value digital word (|Did|), wherein the at least one |Did| digital word is an at least one subtraction of an at least two digital words (X−Y); generating an at least one summing approximate square signal (Sn
Another aspects of the embodiments disclosed herein include an approximate digital squaring (a′SQR) method in a digital state machine in an integrated circuit, the method comprising: receiving at least one input digital word (Di), wherein the at least one Di has a digital value spanning from zero scale (ZS) to full scale (FS); subtracting an at least one digital word having a value of one half of FS from the at least one Di digital word to generate an at least one first offset digital word (O1), wherein O1=Di−F×2−1; selecting an at least one first maximum of the at least one O1 digital word, and an at least a digital word having a value of ZS, to generate an at least one first positive digital word (P1), wherein P1=max (O1, ZS); subtracting the sum of 2 times the at least one P1 digital word and an at least one digital word having a value of ¼th of FS from the at least one Di digital word to generate an at least one second offset digital word (O2), wherein O2=Di−(FS×2−2+2×P1); and selecting an at least one second maximum of the at least one O2 digital word and an at least one digital word having a value of ZS to generate an at least one second positive digital word (P2), wherein P2=max (O2, ZS). Further aspect of The approximate digital squaring (a′SQR) method in a digital state machine in an integrated circuit, the method further comprising: generating at least one S2 signal, wherein S2=21×P1+20×P2≈Di22; and wherein the at least one S2 signal represents an at least one square approximation of the at least one Di (˜Di22). Another aspect of the approximate digital squaring (a′SQR) method in a digital state machine in an integrated circuit, the method further comprising: subtracting the sum of 2 times the at least one P1 digital word, 2 times the at least one P2 digital word, and an at least one digital word having a value of ⅛th of FS from the at least one Di digital word to generate an at least one third offset digital word (O3), wherein O3=Di−(FS×2−2+2×P1+2×P2); and selecting an at least one third maximum of the at least one O3 digital word and an at least one digital word having a value of ZS to generate an at least one third positive digital word (P3), wherein P3=max (O3, ZS). Further aspect of the approximate digital squaring (a′SQR) method in a digital state machine in an integrated circuit, the method further comprising: generating an at least one S3, wherein S3=21×P1+20×P2+2−1×P3≈Di32; and wherein the at least one S3 signal represent an at least one square approximation of the at least one Di (˜Di32). Another aspect of the approximate digital squaring (a′SQR) method in a digital state machine in an integrated circuit, the method further comprising: subtracting the sum of 2 times the at least one P1 digital word, 2 times the at least one P2 digital word, 2 times the at least one P3, and an at least one digital word having a value of 1/16th of FS from the at least one Di digital word to generate an at least one fourth offset digital word (O4), wherein O4=Di−(FS×2−2+2×P1+2×P2+2×P3); and selecting an at least one fourth maximum of the at least one O4 digital word and an at least one digital word having a value of ZS to generate an at least one fourth positive digital word (P4), wherein P4=max (O4, ZS). Further aspect of the approximate digital squaring (a′SQR) method in a digital state machine in an integrated circuit, the method further comprising: generating at least one S4, wherein S4=21×P1+20×P2+2−1×P3+2−2×P4≈Di42; and wherein the at least one S4 signal represent an at least one square approximation of the at least one Di (˜Di42). Another aspect of the approximate digital squaring (a′SQR) method in a digital state machine in an integrated circuit, the method further comprising: subtracting the sum of 2 times the at least one P1 digital word, 2 times the at least one P2 digital word, 2 times the at least one P3, 2 times the at least one P4, and an at least one digital word having a value of 1/32nd of FS from the at least one Di digital word to generate an at least one fifth offset digital word (Os), wherein O5=Di−(FS×2−2+2×P1+2×P2+2×P3+2×P4); and an at least one fourth maximum of the at least one Os digital word and an at least one digital word having a value of ZS to generate an at least one fifth positive digital word (P5), wherein P5=max(Os, ZS). Further aspect of the approximate digital squaring (a′SQR) method in a digital state machine in an integrated circuit, the method further comprising: generating an at least one S5, wherein S5=21×P1+20×P2+2−1×P3+2−2×P4+2−3×P5≈Di52; and wherein the at least one S5 signal represent an at least one square approximation of the at least one Di (˜Di52). Further aspect of the approximate digital squaring (a′SQR) method in a digital state machine in an integrated circuit, the method further comprising: subtracting the sum of 2 times the at least one P1 digital word, 2 times the at least one P2 digital word, 2 times the at least one P3, 2 times the at least one P4, 2 times the at least one P5, and an at least one digital word having a value of 1/64th of FS from the at least one Di digital word to generate an at least one sixth offset digital word (O6), wherein O6=Di−(FS×2−2+2×P1+2×P2+2×P3+2×P4+2×P5); and selecting an at least one fourth maximum of the at least one O6 digital word and an at least one digital word having value of ZS to generate an at least one sixth positive digital word (P6), wherein P6=max (O6, ZS). Further aspect of the approximate digital squaring (a′SQR) method in a digital state machine in an integrated circuit, the method further comprising: generating an at least one S6, wherein S6=21×P1+20×P2+2−1×P3+2−2×P4+2−3×P5+2−4×P6≈Di62; and wherein the at least one S6 signal represent an at least one square approximation of the at least one Di (˜Di62). Further aspect of the approximate digital squaring (a′SQR) method of in a digital state machine in an integrated circuit, the method further comprising: generating an at least one of S2, S3, S4, S5, and S6; wherein S2=21×P1+20×P2≈Di22; wherein S3=21×P1+20×P2+2−1×P3≈Di32; wherein S4=21×P1+20×P2+2−1×P3+2−2×P4≈Di42; wherein S5=21×P1+20×P2+2−1×P3+2−2×P4+2−3×P5≈Di52; wherein S6=21×P1+20×P2+2−1×P3+2−2×P4+2−3×P5+2−4×P6≈Di62; wherein the summing of the at least one of P1 through P6 digital words is performed by at least one digital adder and converting the at least one of P1 through P6 digital words to analog by at least one of digital-to-analog converter (DAC) wherein the outputs of the more than one of the at least one DACs are summed together in analog; and wherein the at least one S2≈Di22, S3≈Di32, S4≈Di42, S5≈Di52, and S6≈Di62 signals represent an at least one square approximation of the at least one Di.
Another aspects of the embodiments disclosed herein include an approximate digital squaring (a″SQR) method in a digital state machine in an integrated circuit, the method comprising: receiving at least one input digital word (Di), wherein the at least one Di has a digital value spanning from zero scale (ZS) to full scale (FS); receiving a total number of digital interpolation steps (n); programming a digital state machine to cycle a plurality (j) of steps, wherein the cycle starts at a first step and increments up to n steps; initializing a first digital array (P) to zero scale, wherein the first digital array P is comprised of a plurality of digital words (Pj); initializing a second digital array (O) to zero scale; wherein the second digital array O is comprised of a plurality of digital words (Oj); looping the digital state machine to perform the following cycle of the plurality (j) of steps: a first step
then save Oj digital word value; next Pj=max (ZS, Oj); then save Pj digital word value; next if j<n, then increment j by 1 and return to the first step; otherwise if j=n, then exit the loop; after exiting the loop then generating a summation digital word Sn=Σj=1n(Pj×½(j-2)); and wherein Sn is an approximate digital representation of the square of Di (˜Di2).
The subject matter presented herein is illustrated by way of example, and not by way of limitation, in the figures of the accompanying drawings and illustrations, and in which like reference numerals refer to similar elements, and in which:
Numerous embodiments are described in the present application and are presented for illustrative purposes only and is not intended to be exhaustive. The embodiments were chosen and described to explain principles of operation and their practical applications. The present disclosure is not a literal description of all embodiments of the disclosure(s). The described embodiments also are not, and are not intended to be, limiting in any sense. One of ordinary skill in the art will recognize that the disclosed embodiment(s) may be practiced with various modifications and alterations, such as structural, logical, and electrical modifications. For example, the present disclosure is not a listing of features which must necessarily be present in all embodiments. On the contrary, a variety of components are described to illustrate the wide variety of possible embodiments of the present disclosure(s). Although particular features of the disclosed embodiments may be described with reference to one or more particular embodiments and/or drawings, it should be understood that such features are not limited to usage in the one or more particular embodiments or drawings with reference to which they are described, unless expressly specified otherwise. The scope of the disclosure is to be defined by the claims.
Although process (or method) steps may be described or claimed in a particular sequential order, such processes may be configured to work in different orders. In other words, any sequence or order of steps that may be explicitly described or claimed does not necessarily indicate a requirement that the steps be performed in that order. The steps of processes described herein may be performed in any order possible. Further, some steps may be performed simultaneously despite being described or implied as occurring non-simultaneously (e.g., because one step is described after the other step). Moreover, the illustration of a process by its depiction in a drawing does not imply that the illustrated process is exclusive of other variations and modifications thereto, does not imply that the illustrated process or any of its steps are necessary to the embodiment(s). In addition, although a process may be described as including a plurality of steps, that does not imply that all or any of the steps are essential or required. Various other embodiments within the scope of the described disclosure(s) include other processes that omit some or all of the described steps. In addition, although a circuit may be described as including a plurality of components, aspects, steps, qualities, characteristics and/or features, that does not indicate that any or all of the plurality are essential or required. Various other embodiments may include other circuit elements or limitations that omit some or all of the described plurality.
Throughout this disclosure, the terms FET is field-effect-transistor; MOS is metal-oxide-semiconductor; MOSFET is MOS FET; PMOS is p-channel MOS; NMOS is n-channel MOS; BiCMOS is bipolar CMOS; LSP of a signal is the Least-Significant-Portion of the signal; MSP of the signal is the Most-Significant-Portion of the signal; and the sum of the MSP of the signal plus the LSP of the signals is equal to the whole signal; and the MSP or LSP can be represented in analog or digital form or combination thereof; MSB is Most-Significant-Bit and LSB is Least-Significant-Bit; SPICE is Simulation Program with Integrated Circuit Emphasis which is an industry standard circuit simulation program; micro is μ which is 10−6; nano is n which is 10−9; and pico is p which is 10−12. Bear in mind that VDD (as a positive power supply) and VSS (as a negative power supply) are applied to all the circuitries, block, or systems in this disclosure, but may not be shown for clarity of illustrations. The VSS may be connected to a negative power supply or to the ground (zero) potential. Body terminal of MOSFETs can be connected to their respective source terminals or to the MOSFET's respective power supplies, VDD and VSS.
Keep in mind that for descriptive clarity, illustrations of the disclosed inventions are simplified, and their improvements beyond simple illustrations would be obvious to one skilled in the arts.
In section A1′ and
Some of the benefits of the aSQR method operating synchronously is summarized below:
First, the aSQR method enables a digital IC state machine to perform on-the fly or pre-programming of precision versus power consumption, and speed of an approximate squarer. The lower the precision requirement, the faster the squaring and the lower the power consumption per the squaring operation. As such, the precision of squarer approximation can be traded off with cost, speed, and power consumption depending on application cots-performance objectives.
Second, relatively speaking while addition (subtraction) occupy a large area in the digital domain, a digital IC state machine arranged in accordance with the disclosed aSQR method utilizes fewer adders compared to conventional digital IC squarers. Instead, the disclosed aSQR method requires functions such as multiply or divide by two, that can be implemented by a simple shift to the right or left in the digital domain, which takes a small die area. Moreover, the aSQR method utilizes functions such as adding or subtracting a fixed digital value (in proportion to an input digital word's full scale), which also take a relatively small area.
Third, the disclosed digital IC approximate squaring can be arranged to perform approximate multiplication by utilizing the quarter square method. Accordingly, digital IC multiplication can be performed by deducting the square of subtraction of two digital words (x, y) from the square of their summation as in (x+y)2+(x−y)2=4xy.
Fourth, the disclosed digital IC approximate squaring can be arranged, in the back-end, to performed square and accumulate (SAC) and multiply and accumulate (MAC) functions in mixed-mode. For example, plurality of outputs of approximate digital IC squarers or approximate digital IC multipliers can be inputted to plurality of current mode Digital-to-Analog-Converters (iDACs), wherein by the function of summation (e.g., adding two multiplications) can be performed simply by coupling together the current output terminals of plurality of iDACs.
In
In the first interpolation (n=1), the Di word is shifted by half of full-scale to arrange a digital word O1 which is a Di word that is digitally offset by half of FS. As such, O1=Di−FS×2−1. Then, a maximum of the O1 word and zero-scale is selected that outputs a P1 digital word which is a positive word P1=max (O1, ZS). Accordingly, the P1 word represents the positive portion of the Di word above ½ of FS.
In the second interpolation (n=2) stage, the Di word is shifted by a sum of 2×P1 word and a quarter of full-scale to generate a digital word O2 which is a Di word that is offset down by FS×2−2+2×P1. That is to say O2=Di−(FS×2−2+2×P1). Then, a maximum of the O2 word and zero-scale is selected that generates a P2 word which is a positive word with respect to zero-scale or P2=max (O2,ZS). Accordingly, the P2 word represents the positive portion of the Di word above the sum of ¼ of FS and 2×P1 word. Here at the second interpolation point, an approximate squared digital word S2=Di22 (that is an approximate representation of the square of the Di word) is be generated by summing the binarily scaled P1 and P2 words. Stated mathematically, Di2≈S2=Di22=21×P1+20×P2. As depicted in
When a squarer with greater than 93.6% of precision is required, another interpolation (n=3) can be implemented in accordance to the aSQR method. In the third interpolation stage, the Di word is shifted by a sum of 2×(P1+P2) word and one eighth of full-scale to generate a digital word O3 which is a Di word that is offset by FS×2−3+2×(P1+P2). That is to say O3=Di−{FS×2−3+2×(P1+P2)}. Then, the maximum of the O3 word and zero-scale is selected which generates a P3 word that is a positive word with respect to zero-scale or P3=max (O3, ZS). Accordingly, the P3 word represents the positive portion of the Di word above the sum of ⅛ of FS and 2×(P1+P2) word. Here at the third interpolation point, an approximate squared digital word S3=Di32 (that is an approximate representation of the square of the Di word) is be generated by summing the binarily proportioned P1, P2, and P3 words. Stated mathematically, Di2≈S3=Di32=21×P1+20×P2+2−1×P3≈Di32. As depicted in
Where a squarer with greater than 98.4 of precision is required, another interpolation (n=4) can be implemented in accordance to the aSQR method. In the fourth interpolation stage, the Di word is shifted by a sum of 2×(P1+P2+P3) word and one sixteenth of full-scale to arrange a digital word O4 which is a Di word that is offset by FS×2−4+2×(P1+P2+P3). Put differently, O4=Di−{FS×2−4+2×(P1+P2+P3)}. Then, a maximum of the O4 word and zero-scale is selected that generates a P4 word which is a positive word with respect to zero-scale or P4=max (O4, ZS). Accordingly, the P4 word represents the positive portion of the Di word above the sum of 1/16 of FS and 2×(P1+P2+P3) word. Here again at the fourth interpolation point, an approximate squared digital word S4=Di42 (that is an approximate representation of the square of the Di word) is be generated by summing binarily proportioned P1, P2, P3, and P4 words. Stated mathematically, Di2≈S4=Di42=21×P1+20×P2+2−1×P3+2−2×P4. As depicted in
Again, if an approximate squarer with higher precision than 0.4% (accurate to ˜8-bits) is required, another interpolation (n=5) can be implemented in accordance to the aSQR method. As such, the Di word can be shifted by a sum of 2×(P1+P2+P3+P4) words and 1/32 of full-scale to arrange a digital word O5 which is a Di word that is offset by FS×2−5+2×(P1+P2+P3+P4). Said differently, O5=Di−{FS×2−5+2×(P1+P2+P3+P4)}. Then, a maximum of the O5 word and zero-scale is selected that generates a P5 word which is a positive word with respect to zero-scale or P5=max (O5, ZS). Accordingly, the P5 word represents the positive portion of the Di word above the sum of 1/32 of FS and 2×(P1+P2+P3+P4) word. Here again, an approximate squared digital word S5=Di52 can be arranged by summing binarily proportioned P1, P2, P3, P4, and Ps words, wherein S5=Di52 word is an approximate representation of the square of the Di word. Stated mathematically, Di2≈S5=Di52=21×P1+20×P2+2−1×P3+2−2×P4+2−3×P5. As depicted in
Similarly, if an approximate squarer with better than ˜0.1% precision (accuracy of ˜10-bits) is needed, another interpolation (n=6) can be implemented in accordance to the aSQR method. As such, the Di word is shifted by a sum of 2×(P1+P2+P3+P4+P5) words and 1/64 of full-scale to arrange a digital word O6 which is a Di word that is offset by FS×2−6+2×(P1+P2+P3+P4+P5). Stated differently, O6=Di−{FS×2−6+2×(P1+P2+P3+P4+P5)}. Then, a maximum of the O6 word and zero-scale is selected that generates a P6 word which is a positive word with respect to zero-scale or P6=max (O6, ZS). Accordingly, the P6 word represents the positive portion of the Di word above the sum of 1/64 of FS and 2×(P1+P2+P3+P4+P5) words. Here again at the sixth interpolation point, an approximate squared digital word S6=Di62 (that is an approximate representation of the square of the Di word) is be generated by summing binarily proportioned P1, P2, P3, P4, and P5 words. Stated mathematically, Di2≈S5=Di52=21×P120×P2+2−1×P3+2−2×P4+2−3×P5+2−4×P6. As depicted in
Form the above description, it becomes clear that if an approximate squarer with better than ˜0.025% precision (accuracy of ˜12-bits) is needed, then more interpolation (n>6) can be implemented in accordance to the aSQR method.
In summary, the benefits of:
First, full adders occupy large area in the digital domain, generally speaking. The aSQR method can be implemented in the digital domain with fewer adders (compared to a conventional digital squarer) which makes it more area efficient.
Second, implementing the aSQR method requires a number multiply or divide by two operations which can be implemented inexpensively in the digital domain by a shift right or left operation, respectively.
Third, utilizing the aSQR method having more interpolations, the peak-to-peak digital value of sequential Pi digital words diminish, which can help reduced the overall logic gate-count of its implementation.
Fourth, the aSQR method generates a number of points (digital words) that exactly (represent) fit the square function, and linearly interpolates in-between those points. The larger the number of interpolation (n), the greater number of points that exactly fit an ideal square function and thus the less the error associated with linearly interpolating in between those exact fit points.
Fifth, fewer gates in a digital circuit generally go hand-in-hand with lower dynamic power consumption and faster speed. As such, since the aSQR method requires fewer gates for implementing a square function, it can function with higher speed and lower dynamic power consumption compared to convocational digital IC squarer implementations, for a given resolution.
Sixth, the disclosed digital IC approximate squaring can be arranged to perform approximate multiplication by utilizing the quarter square method. Accordingly, digital IC multiplication can be performed by deducting the square of subtraction of two digital words (x, y) from the square of their summation as in (x+y)2+(x−y)2=4xy.
Seventh, the disclosed digital IC approximate squaring can be arranged to performed square and accumulate (SAC) and multiply and accumulate (MAC) functions in mixed-mode. For example, plurality of outputs of approximate digital IC squarers or approximate digital IC multipliers can be inputted to plurality of current mode Digital-to-Analog-Converters (iDACs), wherein by the function of summation (e.g., adding two multiplications) can be performed simply by coupling together the current output terminals of plurality of iDACs.
The horizontal axis shows the digital input word Di spanning from zero scale (ZS) at zero milli-seconds (ms) to full scale (FS) at 10 ms.
The vertical axis shows the percent (%) of inaccuracy of the squarer approximation (S2 to S6) as compared to an ideal square (Di).
Bear in mind that for sake of clarity (e.g., avoid over-lapping graphs), some of the error waveforms in the upper and lower graphs of
The lower part of
The upper part of
The A and B are 1-bit wide digital input ports, Ci is the carry-in 1-bit port port, So is the summation output 1-bit port, and Co is the carry-out 1-bit port.
The a1 to a4 (a1:a4) are the first 4-bit wide input port and b1 to b4 (b1:b4) are the second 4-bit wide input port of the 4-bit wide full adder of
The a1 to a6 (a1:a6) are the first 6-bit wide input port and b1 to b6 (b1:b6) are the second 6-bit wide input port of the 6-bit wide full adder of
The a1 to a8 (a1:a8) are the first 8-bit wide input port and b1 to b8 (b1:b8) are the second 8-bit wide input port of the 8-bit wide full adder of
Here, the digital input word Di is an 8-bit wide word (D1:D8) where D1 is the Most-Significant-Bit (MSB) and D8 is the Least-Significant-bit (LSB).
In the asynchronous embodiment of aSQR method depicted in
The D1/
The D1/
The D1/
The D2/
The 4-bit full adder 4FA2a adds the 2-bit wide digital word Z7:Z8 (with proper scaling via arranging a1:a2=0) to the 4-bit wide Y5: Y8 digital word. Then, the Q1:Q4 four-bit wide digital output word of 4FA2a (with proper scaling via arranging a1′:a2′=0) is added the 6-bit wide digital word X3:X8 through the 6-bit full adder 6FA2a. Next, the Q1:Q6 six-bit wide digital output word of 6FA2a (with proper scaling via arranging a1″:a2″=0) is added the 8-bit wide digital word W2:W8 (with b8=0) through the 8-bit full adder 8FA2a.
The 8-bit digital output word Q1:Q8 of 8FA2a represents the equivalent to the S4 digital word of
The SPICE simulation of digital design in
It is obvious to one skilled in the art that other combination logic designs can be implemented in accordance with the aSQR method. Moreover, it is known by those skilled in the arts that for asynchronous logic, alternative digital IC embodiments (e.g., flip-flops, clocked latches, etc.) may be utilized to prevent (e.g., adder output, etc.) glitches due to intermediate digital values rippling through the stages of digital IC logic paths. Also, keep in mind that for clarity of illustration of
The benefits of approximate squarer summarized in sections 1A and 1A′ are applicable here to
The horizontal axis shows the digital input word Di spanning from zero scale (ZS) at zero milli-seconds (ms) to full scale (FS) at 50 μs.
The vertical axis shows the percent (%) of inaccuracy of the asynchronous squarer of
Number | Name | Date | Kind |
---|---|---|---|
3013724 | Thompson et al. | Dec 1961 | A |
3084862 | Nathan | Apr 1963 | A |
3102951 | Nathan | Sep 1963 | A |
3106639 | Nathan | Oct 1963 | A |
3120605 | Nathan et al. | Feb 1964 | A |
3197626 | Platzer et al. | Jul 1965 | A |
3253135 | Collings et al. | May 1966 | A |
3261971 | Nathan | Jul 1966 | A |
3296429 | Nathan | Jan 1967 | A |
3304419 | Huntley, Jr. et al. | Feb 1967 | A |
3536904 | Jordan, Jr. et al. | Oct 1970 | A |
3543288 | Collings | Nov 1970 | A |
3562553 | Roth | Feb 1971 | A |
3610906 | Stampler et al. | Oct 1971 | A |
3621226 | Wittlinger | Nov 1971 | A |
3633005 | Leighton | Jan 1972 | A |
3683165 | Grobert et al. | Aug 1972 | A |
3689752 | Gilbert | Sep 1972 | A |
3838262 | Van De Plassche | Sep 1974 | A |
3858036 | Lunsford | Dec 1974 | A |
3956622 | Lyon | May 1976 | A |
3956643 | Hite | May 1976 | A |
3959639 | Köethmann | May 1976 | A |
4001602 | Birchenough | Jan 1977 | A |
4004141 | Curtis | Jan 1977 | A |
4071777 | Herrmann | Jan 1978 | A |
4156283 | Gilbert | May 1979 | A |
4181967 | Nash et al. | Jan 1980 | A |
4308471 | Misawa | Dec 1981 | A |
4313174 | White | Jan 1982 | A |
4353000 | Noda | Oct 1982 | A |
4387439 | Lin | Jun 1983 | A |
4482977 | Ross | Nov 1984 | A |
4546275 | Pena-Finol et al. | Oct 1985 | A |
4572975 | Bowers | Feb 1986 | A |
4586155 | Gilbert | Apr 1986 | A |
4677369 | Bowers et al. | Jun 1987 | A |
4707798 | Nakano | Nov 1987 | A |
4817028 | Masson et al. | Mar 1989 | A |
4999521 | Rusznyak | Mar 1991 | A |
5042001 | Brightman et al. | Aug 1991 | A |
5107150 | Kimura | Apr 1992 | A |
5122687 | Schmidt | Jun 1992 | A |
5157350 | Rubens | Oct 1992 | A |
5220525 | Anderson et al. | Jun 1993 | A |
5254889 | Han | Oct 1993 | A |
5268857 | Chen et al. | Dec 1993 | A |
5283579 | Tasdighi | Feb 1994 | A |
5294927 | Levinson et al. | Mar 1994 | A |
5337267 | Colavin | Aug 1994 | A |
5381352 | Shou et al. | Jan 1995 | A |
5389840 | Dow | Feb 1995 | A |
5434809 | Taniguchi | Jul 1995 | A |
5617346 | Inoue | Apr 1997 | A |
5629885 | Pirson et al. | May 1997 | A |
5640084 | Tero et al. | Jun 1997 | A |
5668710 | Caliboso et al. | Sep 1997 | A |
5734260 | Tasdighi et al. | Mar 1998 | A |
5734291 | Tasdighi et al. | Mar 1998 | A |
5805007 | Colli | Sep 1998 | A |
5814995 | Tasdighi | Sep 1998 | A |
5912834 | Kimura | Jun 1999 | A |
5923208 | Tasdighi et al. | Jul 1999 | A |
6005374 | Tasdighi | Dec 1999 | A |
6018758 | Griesbach et al. | Jan 2000 | A |
6032169 | Malzahn et al. | Feb 2000 | A |
6054823 | Collings et al. | Apr 2000 | A |
6122284 | Tasdighi et al. | Sep 2000 | A |
6205458 | Beiu | Mar 2001 | B1 |
6260056 | Dalal | Jul 2001 | B1 |
6298368 | Miller, Jr. | Oct 2001 | B1 |
6301598 | Dierke et al. | Oct 2001 | B1 |
6393453 | Purcell | May 2002 | B1 |
6463452 | Schulist | Oct 2002 | B1 |
6490608 | Zhu | Dec 2002 | B1 |
6535901 | Grisamore | Mar 2003 | B1 |
6721774 | Lee et al. | Apr 2004 | B1 |
6763367 | Kwon et al. | Jul 2004 | B2 |
6883011 | Rumynin et al. | Apr 2005 | B2 |
6941334 | Rogenmoser et al. | Sep 2005 | B2 |
6978426 | Parhi et al. | Dec 2005 | B2 |
6982588 | Lin et al. | Jan 2006 | B1 |
7003544 | Langhammer | Feb 2006 | B1 |
7024448 | Matsugaki et al. | Apr 2006 | B2 |
RE39385 | Brightman et al. | Nov 2006 | E |
7139788 | Talwar et al. | Nov 2006 | B2 |
7197292 | Kouwenhoven et al. | Mar 2007 | B1 |
7206801 | Chang et al. | Apr 2007 | B2 |
7266579 | Dupaquis et al. | Sep 2007 | B2 |
7308471 | Rumynin | Dec 2007 | B2 |
7313585 | Winterrowd | Dec 2007 | B2 |
7318080 | Berkeman | Jan 2008 | B2 |
7334200 | Parhi et al. | Feb 2008 | B2 |
7437401 | Zheng et al. | Oct 2008 | B2 |
7562106 | Lablans | Jul 2009 | B2 |
7702716 | Rösener | Apr 2010 | B2 |
7739324 | Das et al. | Jun 2010 | B1 |
8407277 | Das | Mar 2013 | B1 |
8610486 | Al-Absi et al. | Dec 2013 | B1 |
8639737 | Shearer | Jan 2014 | B2 |
8707225 | Das | Apr 2014 | B1 |
8819094 | Han et al. | Aug 2014 | B2 |
8862652 | Drane | Oct 2014 | B2 |
9043735 | Das et al. | May 2015 | B1 |
9519304 | Far | Dec 2016 | B1 |
9684489 | Thornton | Jun 2017 | B2 |
9698779 | Varadarajan et al. | Jul 2017 | B2 |
9780652 | Far | Oct 2017 | B1 |
9793912 | Ferris et al. | Oct 2017 | B1 |
9921600 | Far | Mar 2018 | B1 |
10177713 | Far | Jan 2019 | B1 |
10198022 | Far | Feb 2019 | B1 |
10411597 | Far | Sep 2019 | B1 |
10491167 | Far | Nov 2019 | B1 |
10536117 | Far | Jan 2020 | B1 |
10560058 | Far | Feb 2020 | B1 |
10581448 | Far | Mar 2020 | B1 |
10594334 | Far | Mar 2020 | B1 |
10700695 | Far | Jun 2020 | B1 |
20030184338 | Comer et al. | Oct 2003 | A1 |
20060170580 | Lauilzen et al. | Aug 2006 | A1 |
20080036523 | Nijrolder | Feb 2008 | A1 |
20140043087 | Li et al. | Feb 2014 | A1 |
20150123724 | Al-Absi et al. | May 2015 | A1 |
20160248437 | Zhang et al. | Aug 2016 | A1 |
Entry |
---|
M. Bilal et al., FPGA Design for Statistics-Inspired Approximate Sum-of-Squared-Error computation in Multimedia Applications, IEEE Transactions on Circuits and Systems II: Express Briefs, vol. 59, No. 8, 2012 (Year: 2012). |
J.M.P. Langlois, et al., Carry-Free Approximate Squaring Functions with O(n) Complexity and O(1) Delay, IEEE Transactions on Circuits and Systems II, Express Briefs, vol. 53, No. 5, 2006 (Year: 2006). |
M. Loukrakpam et al., Energy-efficient approximate squaring hardware for error-resilient digital systems, 2018 IEEE Electron Device Kolkata Converence (EDKCON), 2018 (Year: 2018). |
A. Far, “Small size class AB amplifier for energy harvesting with ultra low power, high gain, and high CMRR,” 2016 IEEE International Autumn Meeting on Power, Electronics and Computing (ROPEC), Ixtapa, 2016, pp. 1-5. |
A. Far, “Compact ultra low power class AB buffer amplifier,” 2017 IEEE International Autumn Meeting on Power, Electronics and Computing (ROPEC), Ixtapa, 2017, pp. 1-6. |
A. Far, “Subthreshold current reference suitable for energy harvesting: 20ppm/C and 0.1%/V at 140nW,” 2015 IEEE International Autumn Meeting on Power, Electronics and Computing (ROPEC), Ixtapa, 2015, pp. 1-4. |
A. Far, “Amplifier for energy harvesting: Low voltage, ultra low current, rail-to-rail input-output, high speed,” 2016 IEEE International Autumn Meeting on Power, Electronics and Computing (ROPEC), Ixtapa, 2016, pp. 1-6. |
A. Far, “Class AB amplifier with noise reduction, speed boost, gain enhancement, and ultra low power,” 2018 IEEE 9th Latin American Symposium on Circuits & Systems (LASCAS), Puerto Vallarta, Mexico, 2018, pp. 1-4. |
A. Far, “Low noise rail-to-rail amplifier runs fast at ultra low currents and targets energy harvesting,” 2017 IEEE International Autumn Meeting on Power, Electronics and Computing (ROPEC), Ixtapa, 2017, pp. 1-6. |
A. Far, “A 5 μW fractional CMOS bandgap voltage and current reference,” 2013 IEEE Global High Tech Congress on Electronics, Shenzhen, 2013, pp. 7-11. |
A. Far, “A 400nW CMOS bandgap voltage reference,” 2013 International Conference on Electrical, Electronics and System Engineering (ICEESE), Kuala Lumpur, 2013, pp. 15-20. |
A. Far, “Enhanced gain, low voltage, rail-to-rail buffer amplifier suitable for energy harvesting,” 2017 IEEE International Autumn Meeting on Power, Electronics and Computing (ROPEC), Ixtapa, 2017, pp. 1-6. |
A. Far, “Subthreshold bandgap voltage reference aiming for energy harvesting: 100na, 5 ppm/c, 40 ppm/v, psrr-88db,” 2015 IEEE 5th International Conference on Consumer Electronics—Berlin (ICCE—Berlin), Berlin, 2015, pp. 310-313. |
A. Far, “A 220nA bandgap reference with 80dB PSRR targeting energy harvesting,” 2016 IEEE Canadian Conference on Electrical and Computer Engineering (CCECE), Vancouver, BC, 2016, pp. 1-4. |
A. Far, “Sub-1 volt class AB amplifier with low noise, ultra low power, high-speed, using winner-take-all,” 2018 IEEE 9th Latin American Symposium on Circuits & Systems (LASCAS), Puerto Vallarta, Mexico, 2018, pp. 1-4. |
A. Far, “A low supply voltage 2 μW half bandgap reference in standard sub-μ CMOS,” 2014 IEEE International Conference on Electronics, Computing and Communication Technologies (CONECCT), Bangalore, 2014, pp. 1-5. |
A. Far, “Current reference for energy harvesting: 50um per side, At 70 nW, regulating to 125C,” 2014 IEEE International Autumn Meeting on Power, Electronics and Computing (ROPEC), Ixtapa, 2014, pp. 1-5. |