N-POINT COMPLEX FOURIER TRANSFORM STRUCTURE HAVING ONLY 2N REAL MULTIPLIES, AND OTHER MATRIX MULTIPLY OPERATIONS

Information

  • Patent Application
  • 20220398295
  • Publication Number
    20220398295
  • Date Filed
    January 24, 2022
    2 years ago
  • Date Published
    December 15, 2022
    a year ago
Abstract
An integrated circuit chip implementing multiplication of an M×N element matrix with an N-element vector to obtain an M-element product by combining the vector with rows of bits of the same significance selected from the matrix one bit-row at a time to form partial products, exploiting the fact that the same potential combinations are needed for all bit-rows and all matrix rows to precompute all of the combinations once and for all, and combining selected partial products for different bit place-significance with a shift-and-add operation only once for each of the M product elements, thereby effectively using only M multiply-equivalent structures. An N-point Complex Fourier Transform can therefore be claimed which only needs 2N real multiplies and the product of an N×N matrix with another N×N matrix requires only N2 multiplies.
Description
FIELD OF THE INVENTION

The present invention is directed to radar systems, and more particularly to the processing of received data.


BACKGROUND OF THE INVENTION

In digital signal processing for radio and radar applications, the need to form the product of a matrix with a vector is often encountered. Often the values are complex numbers having a real and imaginary part, but the operation is implemented using real multiplies and adds. For example, a number N of sequentially received time samples may be subjected to a Fourier Analysis to obtain N spectral components. The well-known Fast Fourier Transform or FFT is conventionally used for this process as it requires a number of complex multiply/accumulate operations only of the order of N log2(N) as opposed to the Discrete Fourier Transform (DFT) which needs N2 such operations.


Digital beamforming is another operation that may be required in communications or radar applications.


For reception, a first number of antenna elements of an antenna array receive signals which are then digitized and submitted to digital beamforming to determine the signals received from each of a second number of directions. Such a receive beamforming operation may be expressed as multiplication of a vector of signal samples received at the same instant by the antenna elements by a fixed matrix of beamforming coefficients, the signal sample vector changing from sampling instant to sampling instant while the “fixed” matrix of beamforming coefficients may change only slowly if at all.


For transmission, digital beamforming takes a first plurality of digitized signal streams for transmission and creates therefrom a second plurality of signals to be transmitted from the second plurality of transmitter-antenna elements such that each signal is transmitted in a different desired direction. This also may be expressed as a matrix-times-vector operation similar to receive beamforming.


SUMMARY OF THE INVENTION

A logic structure suitable for chip integration is described that performs multiplication of an M×N matrix of multi-bit values to a vector of N multi-bit values in parallel, yielding all outputs at the same time. The structure treats a single bit of each element of one row of the matrix at a time, bits of like significance forming a row of single digits that in the binary case may be regarded as having values of (1 or 0), (1 or −1) or (1, 0, or −1). The latter ternary states arise if the matrix row values are in sign-magnitude form.


The row of single digits is then multiplied to the multi-bit vector. Since the digits are only +/−1 or 0, no multiplication is involved, and the result is simply sums and differences of the multi-bit vector. The inventive structure forms all possible sums and differences of groups of the multibit vector elements where a group size L can be smaller than the vector length N to keep the number of sums and differences, which is either 2L or 3L within a reasonable number. For example, a group of size L=8 would produce 256 combinations for binary digits or 6,561 in the ternary case. To avoid the much greater number in the ternary case, the following procedure is used:


The applications of interest (such as Fourier transforms and beamforming) have complex matrix elements which are of the form Exp(jθ)={cos(θ)+j sin(θ)}. That is, every value has a magnitude less or equal to 1, which is added to all elements making their values lie between 0 and +2 and dividing by 2 makes the values lie between zero and 1. The addition of 1 to the matrix followed by division by 2 is compensated by multiplying the resulting matrix-vector product 2 and subtracting the sum of the vector elements from each result. Thus, ternary values caused by negative matrix values are thus eliminated and the bit-rows of the matrix are then binary, 1 or 0.


All combinations of a group of L of the N vector values with a weight of 0 or 1 are efficiently computed using just one addition per value, for example by forming the combinations in Grey Code order, in which the bit weights only differ in one position from one value to the next. These combinations will be used repeatedly for different rows of bits from the same and from different rows of matrix values.


If a group size L does not divide into N, different group sizes L1, L2 . . . , etc. can be used which sum to N.


The preformed combinations are then selected according to the specific bit pattern of bits of like significance selected from successive groups of matrix row elements, and the results using successive groups of row elements are added to obtain a partial product of the N-element vector with a whole row of N digits selected from the same matrix row. This is repeated by selected bits of different but like significance from the same matrix row to obtain partial products with other matrix digit-rows, the partial products being combined with a shift to account for the place-significance of the different matrix element digits with which the vector was multiplied. The result is the product of one matrix row with the vector. This is then repeated for all matrix rows to obtain the desired M-value matrix-vector product.


However large M may be, the same preformed combinations of the N-element vector values can be used for each row of digits and for each matrix row, wherein a gain in computational efficient is obtained.


In a preferred implementation, the precomputed combinations are computed on the fly using serial adders, and not stored in memory. The serial output streams of the serial adders are made available on a number of horizontal lines corresponding to the number of combinations, and a number of vertical lines, corresponding to the number of matrix rows M times the number of bits in each multi-bit matrix value, pick up selected precombinations for further addition by placing a serial adder at the crossing of the vertical line with the horizontal line carrying the bit stream of the selected combination. The vertical lines corresponding to bits of different significance of the same matrix row are finally combined with bit shifts corresponding to the bit place significance to yield the final results. This latter operation is the only structure that resembles a multiplier, and so it is claimed that only one multiplier is needed for each of the M output values.


Using the invention to perform multiplication of an N×N DFT matrix with a N-element vector to be transformed, a fully parallel DFT thus needs only N multiplies, which is faster than an FFT.


The method also accelerates the dot product of two vectors. It can be regarded as achieving this by avoiding accumulation of partial products of different place significance for each multiplication and instead accumulating partial products of the same significance across all multiplications before applying one shift-and-add operation to accumulated partial products of different place significance at the end.


For matrix and vector values that are complex, further additions of partial products such as Real×Real−Imaginary×Imaginary and Real×Imaginary+Imaginary×Real are performed. It may be arranged that the real and imaginary parts of a result appear adjacent to one another on a chip to minimize the routing required to perform a square-root-of-sum-of-squares operation on all result values.





BRIEF DESCRIPTION OF THE DRAWINGS


FIG. 1 illustrates an M×N matrix times N-elements vector multiplication in accordance with an embodiment of the present invention;



FIG. 2 illustrates the selection of a row of matrix digits in groups of L in accordance with an embodiment of the present invention;



FIG. 3 illustrates the forming of combinations of L vector values with all possible L-bit binary weight patterns in accordance with an embodiment of the present invention;



FIG. 4 illustrates an exemplary serial adder tree for forming all combinations in accordance with an embodiment of the present invention;



FIG. 5 illustrates the placement of serial adders in a string on vertical lines to select combinations of like significance for further addition in accordance with an embodiment of the present invention;



FIG. 6 illustrates exemplary hardware for forming the first product Ro in accordance with an embodiment of the present invention;



FIG. 7 illustrates the exemplary hardware of FIG. 6 modified to form the first product Ro including subtraction of half the sum of the vector values in accordance with the present invention;



FIG. 8 illustrates an exemplary graph of an exemplary complex-valued matrix multiplied by an exemplary vector in accordance with the present invention; and



FIG. 9 illustrates the exemplary hardware for the production of an exemplary complex-valued case in accordance with the present invention.





DESCRIPTION OF THE PREFERRED EMBODIMENTS

The present invention will now be described with reference to the accompanying figures, wherein numbered elements in the following written description correspond to like-numbered elements in the figures. Methods and systems of the present invention may include a logic structure suitable for chip integration that performs multiplication of an M×N matrix of multi-bit values to a vector of N multi-bit values in parallel, yielding all outputs at the same time. The exemplary structure treats a single bit of each element of one row of the matrix at a time, bits of like significance forming a row of single digits that in the binary case may be regarded as having values of (1 or 0), (1 or −1) or (1, 0, or −1). The latter ternary states arise if the matrix row values are in sign-magnitude form.


U.S. Pat. No. 6,219,365 to current inventor Paul W. Dent, filed 19 Jan. 1999 and entitled “Apparatus for Performing Multiplication of a Vector of Multi-Bit Values by a Matrix of Multi-Bit Coefficients” describes a “fast” matrix times vector method and apparatus when the matrix is fixed and the vector is variable by multiplying the matrix to a column of single bits of the vector elements at a time, the bits being of like place-significance. Since the bits take on only one of two values, for example (1 or 0), or (1 or −1), this multiplication generates only one of a limited number of all possible sums and differences of the matrix coefficients, which combinations can be precomputed and stored in look-up tables. In case the look-up tables become too large, the bit vector can be divided into smaller bit vectors that are multiplied by a correspondingly smaller number of matrix coefficients leading to smaller look-up tables. In the transmit beamforming case, it was disclosed that modulation of digital data on to a radio frequency carrier using linear modulation can be exchanged in order with the linear operation of transmit beamforming, such that the transmit beamforming only need operate on a single column of data bits at the data bit rate. The outputs of the beamformer were then subjected to the linear modulation operation, up-sampling and filtering after beamforming to produce spectrally-shaped I,Q samples at a sample rate of multiple samples per data bit. Thus, switching the order of modulation and beamforming resulted in the beamformer input vector having only a single column of binary values and the matrix multiplication with it takes place only at data bit rate instead of the higher I/O sample rate. Moreover, there are no multiplies to be performed. The U.S. Pat. No. 6,219,365 patent is hereby incorporated by reference herein in its entirety.


Multiplication is a more complex operation than addition, and thus, there is a strong motivation to reduce multiplication operations. Multiplier hardware structures take more chip area and power than adder structures so there is also strong motivation to reduce multiplier structures needed for a given speed of computation.


The above-incorporated '365 patent also discloses how to perform fully parallel multiplication of an N×N matrix of multi-bit values to a vector of N multi-bit values using only N multiplier structures compared to the N2 that would be needed with a conventional approach.


The matrix-times-multi-bit-vector method of the '365 patent comprises performing matrix multiplication with a single column of the vector's bits of like significance at a time using look-up tables precomputed as a function of the matrix coefficients, and then combining the results for bit columns of different place significance by shifting the results according to place significance and adding. The latter operation is analogous to a multiplier structure that adds partial products; however, there is only one such structure needed per output value computed.


In a current application, a matrix-times-vector operation is required in which the matrix is M×N and the vector is of length N, and the number of rows M of the matrix is much greater than the number of columns, N; for example, N=256 and M=8192. In that case, the method of the '365 patent results in an excessive number of look-up tables to be precomputed and stored in memory. Therefore, an alternative method is sought which is described herein.


Referring to FIG. 1, a matrix of M×N fixed values is to be multiplied to different N-element vectors using custom chip hardware fabricated according to the invention described herein to maximize throughput while having small silicon area and low power consumption. The matrix values in a first exemplary explanation are specific real constants while the vector values S0, S1, S2, . . . S6 are the as yet unknown inputs and R1, R2, R3, . . . RM are the results to be computed.


It may be deduced from FIG. 1 that:






R1=1*S0+0.9*S1+0.9*S2−0.75*S3+0.8*S4+0.9*S5,


where * stands for fixed point multiplication.



FIG. 2 illustrates an expression of the first row of the matrix in binary sign-magnitude form and the selection of a group of L=3 digits of the same place significance. The upper row of bits are bits to the left of the binary point and only the first value (=1) has a non-zero bit in that position. The lower rows are bits to the right of the binary point of successively lower significance.


The selection of fewer than all N row values (N is only six in this case) results in a reduction of the number of combinations of the vector values that have to be formed. Using an exemplary L=3 and looking at the 3rd bit down, the first group 100 in FIG. 5 is 011 and weights vector values S0, S1 and S2, so that the combination 0*S0+1*S1+1*S2=S1+S2 results. This same combination is needed in rows 2, 4, 7, and 8, but only need be formed once. The second group 200 in FIG. 5 is −1, 1, 1 and weights S3, S4 and S5 resulting in −S3+S4+S5, and this same combination is required for the second group of bit row 2.


There can only be 3×3×3=27 possible combinations of three vector values needed whatever the matrix coefficients. The same 27 combinations suffice for all bit rows of all matrix rows, and thus need be formed once only.


For a larger N, it is desirable for L to be as large as possible, but if the single digits in the rows can take on ternary values, the number of combinations to be formed is 3L, which is 243 for L=5. For binary symbols, the value of L can go up to 8, so N can be divided into a smaller number of groups of 8. For example, if N=256, 32 groups of 8 can be used, and each group of 8 results in needing 256 precombinations of 8 vector values to be formed. There are 32 groups of 8 for N=256, so 32 times 256 combinations have to be formed. Alternatively, if L=4, 64 groups of 16 combinations would be needed. It is also possible to use different values of L for different groups if no one L divides into N. For example, if N=255, 31 groups of 8, and one group of 7, could be used, or 51 groups of 5. The greater the number of combinations that are precomputed at this stage, the fewer additions of partial products that have to be combined later, so there a tradeoff between the silicon area and power needed to form the precombinations and the later complexity. This tradeoff depends on how many output values are needed, and a larger number M of output values favors forming more precombinations early on.


Ternary values may be avoided by noting that in Fourier transform-like operations, such as DFTs or antenna beamforming, all the matrix values have real and imaginary parts that lie between −1 and +1. Consideration of the complex case occurs later herein but consider for now a real matrix comprising only cosines or sines with values between +1 and −1. These are all rendered positive by adding 1 to every matrix element, such that the values then lie between 0 and 2. The next step is dividing by 2 so that they all lie between 0 and 1. Adding 1 to all matrix values is equivalent to adding the sum of all the vector values to each result and is therefore compensated by subtracting the sum of all vector values from each of the final results. The division by 2 may be compensated if desired by first multiplying each result by 2 before subtracting the sum of the vector values; alternatively, half the sum of the vector values may be subtracted.



FIG. 3 illustrates how all combinations of a group of L vector values are formed using only one addition per value. Starting at the top, the first bit of a group of L bits multiplies S0 with the result 0 or S0. These are the combinations when all other bits are zero. For the combinations where the second bit is not zero, but 1, since it weights S1, S1 must be added to the previous combinations to get two new combinations, making now four altogether corresponding to all four possible states of the first two bits of the group, with all other bits zero. Now, if the third bit is not zero but 1, since it weights S2, S2 must be added to all four previous values to get the four new combinations corresponding to bit 3=1, making now 8 combinations, and so forth, noting that the number of combinations doubles each time and that the number of adds per combination is only one.



FIG. 4 illustrates an exemplary hardware implementation of FIG. 3 using an adder tree 400. If the adders of the adder tree 400 are parallel (word-) adders, each connection comprises multiple lines, one for each bit plus potential bit length expansion as the adding progresses (see FIG. 4). Serial adders on the other hand stream in the values LSB first on single lines. Each adder adds two bits plus a carry from its previous addition and outputs one bit plus a new carry which is fed back through a delay element to the input of the same adder. The delay element can be a flip flop or switched capacitors, known as a bucket-brigade delay line. An advantageous feature of a serial adder tree is that the LSB of the result is output substantially at the same time as the LSBs of the inputs are presented, and the time to perform the additions is simply the time to clock all bits through, plus a few extra clocks to flush out carries corresponding to word-length extension due to the addition of multiple values. A new set of values can be streamed in immediately following carry flushing of the previous set, meaning that successive sets of values shall be separated by an adequate number of zeros (or 1's in the case of 2-s complement negative values). The combinations produced by the adder tree 400 of FIG. 4 each appear on a unique digit-line in the case of serial adders, and each value may be needed to be added to other values in dependence on the actual bits of the matrix coefficients.



FIG. 5 illustrates the matrix of coefficients of FIGS. 1 and 2 transformed to eliminate ternary values by adding 1 to all and dividing by 2.



FIG. 6 illustrates how the precombinations produced by the adder tree of FIG. 4 are selected for further addition according to the transformed coefficients of FIG. 5.


In FIG. 6, a rectangle enclosing the letter D (custom-character) 600 represents a 1-bit delay element, such as a flip flop (there are array of enclosed D's (custom-character) 600 along the bottom of FIG. 6). The solid circles (●) 602 of FIG. 6 represent serial adders, including feedback carry delay. At the top of the illustration, “B8” represents the row of most significant bits of the N coefficients, which are split into groups of L. In this example, N=6 and there are two groups of L=3. Only one significant bit of the N matrix elements in this row is 1 in this case, and multiplies So. Therefore, there is only one adder dot in the B8 column where the vertical line crosses the horizontal line carrying the value So serially.


“B7” represents the row bits just to the right of the binary point, that is, 011 011. The first 011 group signifies the addition of S1 and S2, therefore, a dot (●) (serial adder) 602 is place on the crossing of the “B7” vertical line with the horizontal line carrying the S1+S2 combination. The second group 011 corresponds to the addition of S4 and S5. Therefore, the “B7” vertical line also has a serial adder (●) 602 on the horizontal line corresponding to the combination S4+S5. The vertical lines thus join the output of one adder to the input of the next to form an adders string. Thus, having passed through all adders in the string, the result at the end of the string is the product of the vector with one digit-row of one matrix row, the digits in the row being of the same place significance. Vertical line “B8” carries the serial product of greatest place significance, “B7” is a factor 2 less significant, and so on, down to the least significant partial product on line Bo. These shall all now be added with shifts corresponding to their place significance, which is achieved by delaying bits of high significance in delay elements D (custom-character) 600 so they match up with bits of equal significance in the next least significant partial product. The bit streams are LSB first, so later bits of higher significance. After adding the partial products with place-significant shifts, the final output Ro is the dot product of the first matrix row with the input vector. FIG. 7 illustrates the compensation for the addition of 1 to all matrix values by subtracting the sum of all vector values, which is formed by the rightmost vertical line having adders to sum the combination S0+S1+S2 with the combination S3+S4+S5 and then subtracting it from the sum of the partial products delayed one place to implement division by 2 of the compensating value. The result is strictly speaking half the product of a matrix row with the vector, but such scaling is immaterial as long it is known and fixed.


The structure of FIG. 7 is then repeated, with the adder dots (●) 602 in appropriately different positions according to the coefficients of other matrix rows, by adding further sets of 9 vertical lines and a final delay-and-add circuit and compensating subtraction to obtain R1, R2, . . . to RM.


The physical size of the chip structure can be estimated. For example, each group of L bits creates 2Lcombinations of the input vector values. There are N/L such groups, therefore, the number of horizontal lines is N.2L/L−1.


The number of vertical lines is equal to the product of the number of matrix rows with the number of bits precision of each matrix coefficient. For example, if N=256 and L=8, there are 8,191 horizontal lines, and if the matrix coefficient precision is 9 bits and there are 8,192 matrix rows, there will be 73,728 vertical lines.


Modern semiconductor chips allow 50 nm line-spacing and have, for example, up to ten metal layers. Using only one layer of metallization for the horizontal and vertical lines, 73,728×50 nm=3.7 mm, and the 8,192 horizontal lines occupy 0.4 mm. Thus, the main part of the structure fabricated as FIG. 6 or 7 occupies 0.4×3.7<1.5 mm2 of chip area to multiply an 8,192×256 matrix to a 256-element vector and obtain an 8,192-element vector result.


In an exemplary 5 nm silicon process, it is conceivable that a feasible serial bit rate through the serial adders is 16 GB/s. The benefit of serial adders is that there is no carry propagation to wait for—that being explicitly built into the carry feedback. Assuming a final word length growth to 32 bits, the circuit can perform one such matrix x vector operation every 2 ns. This is equivalent to over 1015 fixed-point multiply-accumulates per second.


A structure for the case where all values are complex will now be developed, using FIG. 8. FIG. 8 illustrates the binary expansion of the complex matrix coefficients after adding 1 and dividing by 2 to make all positive. Now the computation must compute:








Rr

0

=


AR


o



S

R

0

+

A

R


1



S

R

1

+

A

R


2



S

R

2

+

A

R


3



S

R

3

+

A

R


4



SR4

+


R5



SR

5

-


Alo
*


Slo

-

AI


1
*


SI

1

-

AI


2
*


SI

2

-

AI


3
*


SI

3

-

AI


4
*


SI

4

-

AI


5
*


SI

5.






Rio
=


AR


o



S

l

o

+

A

R


1



SI

1

+

A

R


2



SI

2

+

A

R


3



SI

3

+

A

R


4



SI

4

+

AR


5



SI

5

+


Alo
*


SRo

+

AI


1
*


SR

1

+

AI


2
*


SI

2

+

AI


3
*


SR

3

+

AI


4
*


SR

4

+

AI


5
*


SR

5.







As before, the N bit row corresponding to like-significant bits of the binary expanded real parts (101) is divided into groups of L bits, for example, where N=6 in FIG. 8, L=3, so the six-bit row is divided into two groups of three. This gives rise to combinations of the real parts of the vector (SRo . . . SR5) being needed as previously for the real-valued case. Now the same is done for the binary-expanded imaginary parts (201) and all combinations of the imaginary parts SIo . . . SI5 are computed likewise with a repeat of the structure of FIG. 4. FIG. 9 illustrates how the preformed combinations are then selected for further combination to compute the above expressions for the real and imaginary parts of the first result, Rro and Rio.


In FIG. 9, a solid black dot (●) 602 signifies a serial adder cell (similar to FIG. 7) while an open circle (custom-character) 604 signifies a serial subtractor cell. The only difference between a serial subtractor and a serial adder is that the quantity to be subtracted is logically complemented on input and the carry-in is initialized to 1 rather than 0. Subtractors are necessary to form the real parts that comprise Rro, arising from the formula for the real part of the product of two complex numbers:





Real×Real−Imag×Imag,


but only adders are required to form the imaginary part Rio as the imaginary part of a complex product is:





Real×Imag+Imag×Real.


Also, to simplify FIG. 9, the delay and add function is assumed to be combined in the rectangles enclosing a D (custom-character) 900. One string of delay-and-adds combines the real partial products to obtain Rro while a second string of delay-and-adds combines the imaginary partial products to obtain Rio. Subtraction of the sum of all real parts is not shown, but is performed to compensate for the original addition of 1 to all real parts as for the real case, using a vertical line having an adder to combine the precombinations SRo+SR1+SR2 and SR3+SR4+SR5.


Likewise, the final imaginary result is compensated by subtracting the sum of all imaginary vector values formed by a second vertical line having an adder to combine SIo+SI1+SI2 with SI3+SI4+SI5.


It may be mentioned that a “string” of adders in series may beneficially be replaced by a binary tree of adders, in which pairs of values at a time are added in a first rank of adders, then pairs of first rank adder outputs are added in second adders and so forth, the number of adders being the same, but leading to simpler carry-flushing in the serial adder case due to the tree depth being only Loge of the number of adders. Apart from the latter characteristic these two structures shall be regarded herein as functionally interchangeable.



FIG. 9 suggests an alternate layout where all the vertical real lines for one result computation are grouped together, and likewise the imaginary vertical lines are so grouped adjacently, and not interleaved with the real lines, thereby avoiding crossovers to their respective real and imaginary delay-and-add circuits. A benefit of keeping the real and imaginary part of each result in the same vicinity, however, instead of grouping all real parts for all results Rr0 . . . Rr5 and separately grouping all imaginary results Rio . . . Ri5, is that often the magnitude of each result may need to be computed with a square-root of sum-of-squares operation, the magnitude computation needing both the real and the imaginary result to come together in the magnitude computation. Thus, keeping the real part of a result near its imaginary part reduces tracking should it be desired to compute magnitudes.


In FIG. 9, the delay and add circuits are essentially serial multipliers, and thus analogous to parallel multiplication that might be used in a conventional hardware or software implementation. Instead of delay-and-add, the partial products could be clocked into registers and added with a relative shift. Such a structure would be equivalent to a parallel multiplier in complexity and power consumption. This makes it clear that the invention achieves efficiency by needing only one multiplier-equivalent circuit per output value computed, that is M in the case of an M×M matrix multiplied to an N-element vector, instead of M×N with a conventional approach. Moreover, in the complex case, only 2M multiplier-equivalent circuits are needed instead of the 4M×N that would conventionally be needed, due to a conventional complex multiply requiring four real multiplies (or 3 if Gauss' algorithm is used).


Exemplary embodiments can be used to efficiently implement common algorithms that can be expressed as Matrix×Vector. For example, the Discrete N-point Fourier Transform algorithm (also referred to as a complex Fourier Transform) can be expressed as the multiplication of an N×N complex matrix to an N-element complex vector. As the Fourier Transform Matrix is fixed but the vector to be transformed is variable, the inventive algorithm described herein is appropriate. The DFT would be computed with the equivalent of only 2N real multiply-equivalent operations instead of the 4N2 needed for a DFT or the 4N log2(N) real multiplies that are needed with the Fast Fourier Transform. For N=256, this is a factor of 512 times more efficient than the DFT and 16 times more efficient than an FFT. The efficiency gain may translate into lower power consumption when computing a large number of transforms continuously. The chip areas of 1.5 mm2 estimated previously for a 256-in, 8,192-out real matrix multiply becomes 6 mm2 for the complex case. A 256-point Fourier transform engine with 256 in and 256 out is 1/32nd of that size, which is about 0.2 mm2 and performs a transform perhaps every 2 ns.


Although the number base envisioned herein is principally binary, and in some cases ternary, the principle discussed herein is valid for any number base, such as decimal or hexadecimal, although not obviously as efficient for full custom chip implementation.


Accordingly, an exemplary logic structure suitable for chip integration performs multiplication of an M×N matrix of multi-bit values to a vector of N multi-bit values in parallel, yielding all outputs at the same time. The exemplary structure treats a single bit of each element of one row of the matrix at a time, with bits of like significance forming a row of single digits that in the binary case may be regarded as having values of (1 or 0), (1 or −1), or (1, 0, −1). The latter ternary states arise if the matrix row values are in sign-magnitude form. The row of single digits is then multiplied to the multi-bit vector. Since the digits are only +/−1 or 0, no multiplication is involved, and the result is simply sums and differences of the multi-bit vector. The exemplary structure forms all possible sums and differences of groups of the multibit vector elements where a group size L can be smaller than the vector length N to keep the number of sums and differences, which is either 2L or 3L within a reasonable number.


Changes and modifications in the specifically-described embodiments may be carried out without departing from the principles of the present invention, which is intended to be limited only by the scope of the appended claims as interpreted according to the principles of patent law including the doctrine of equivalents.

Claims
  • 1. An integrated circuit comprising a digital logic structure configured for performing an operation of multiplication of an M×N matrix of multi-digit coefficients with an N-element vector of multi-digit values to produce M output values, comprising: adder trees configured to add L groups of the N vector elements with all possible multiplicative weights combinations, wherein each weight takes on all possible values of a digit in the number base of said multi-digit matrix values to produce all possible weighted combinations of the L vector values in a group, and wherein a sum of the L groups is equal to N, wherein the combinations representing all possible partial products of the group of L vector values with digits of equal place significance from L corresponding matrix values;a criss-cross structure of conductors comprising a plurality of parallel conductors in one dimension corresponding to the number of combinations computed by the adder trees for all of the groups of vector values and a plurality of cross conductors in the other dimension, each of the latter joining a set of adder cells in a string to the binary tree, wherein the number of adder strings or trees are equal to the number of real output values to be computed multiplied by the word length in bits of the multi-digit values of the matrix, wherein the adder cells are placed at the crossings of the conductors to combine partial products for all groups of L vector values, wherein the placement of each adder selects the correct partial product for the actual set of L digits of the L matrix values in a group, wherein the output of an adder feeding down the crossing conductors to the input of the next adder in sequence in the same string or binary tree to obtain a final sum of partial products from the final adder in the string or tree; anda set of delay-and-add or shift-and-add circuits for each of the M output values for combining the outputs from the final adders of the adder strings or trees taking into account place significance of the matrix digits used to compute the selected partial products to produce the desired output value as the product of a matrix row with the N element vector.
  • 2. The integrated circuit of claim 1, wherein the multi-digit values are binary values, and the number base is 2.
  • 3. The integrated circuit of claim 1, wherein the multi-digit matrix values are binary and are positive or negative, and wherein the digital logic structure is configured to preconvert the multi-digit matrix values to be all positive by adding the largest value to all.
  • 4. The integrated circuit of claim 1, wherein each of the multi-digit matrix values are binary and are positive or negative but with magnitudes less or equal to 1, and wherein the digital logic structure is configured to preconvert the multi-digit matrix values to be in the range 0 to +1 by adding 1 to all and dividing by 2.
  • 5. The integrated circuit of claim 1, wherein the digital logic structure is configured to multiply a complex M×N matrix with a complex N-element vector to form M complex results, wherein the digital logic structure is configured to form precombinations of the real vector values and separately precombinations of the imaginary vector values; wherein the digital logic structure further comprises strings or binary trees of adders configured to add partial products of real matrix value digits multiplied by real vector parts and to subtract partial products of imaginary matrix value digits multiplied by imaginary vector parts to form a partial product of the desired real result value, and second strings or trees configured to add partial products of real matrix value digits multiplied by imaginary vector parts and to add partial products of imaginary matrix value digits multiplied by real vector parts to form a partial product of the desired imaginary result value; andwherein the digital logic structure is further configured to further combine the partial products for matrix value digits of different place significance by delay-and-add or shift-and-add operations to account for place significance.
  • 6. The integrated circuit of claim 1, wherein the digital logic structure is configured to perform a fully parallel, N-point complex Fourier Transform using only 2N real-multiplier-equivalent structures.
  • 7. The integrated circuit of claim 1, wherein an adder cell of the set of adder cells comprises a feedback carry delay.
  • 8. The integrated circuit of claim 1, wherein the set of delay-and-add circuits comprise serial multipliers.
  • 9. The integrated circuit of claim 8, wherein the set of shift-and-add circuits comprise registers and are configured to clock the partial products into the registers and add them with a relative shift.
  • 10. The integrated circuit of claim 1, wherein the adder trees comprise adders configured as serial adders.
  • 11. The integrated circuit of claim 10, wherein each of the serial adders are configured to stream in values LSB first on single lines, and wherein each adder is configured to add two bits plus a carry from its previous addition and to output one bit plus a new carry which is fed back through a delay element to the input of the same adder.
  • 12. The integrated circuit of claim 11, wherein the delay element is a flip flop or an arrangement of switched capacitors.
  • 13. A method of multiplying with a digital logic structure, an M×N matrix with a N-element vector to obtain an M-element result, comprising the steps of: expressing said matrix values as a set of place-significance-ordered values in a number base;grouping digits of like significance of the values in the same row of matrix coefficients to form groups of L digits;forming, with strings or binary trees of adders of the digital logic structure, precombinations of the L vector values to be multiplied by the corresponding L matrix values, by multiplicatively weighting and adding the L vector values using the values of the digits in the number base as weights, wherein the weights each take on all possible values of a digit in the number base to form partial products of L vector values with a digit of one significance of the corresponding L matrix coefficients;further combining, with strings or binary trees of adders of the digital logic structure, the partial products from different groups of L matrix values and corresponding vector values based on selecting digits of the same significance to obtain complete partial products of a row of N like-significant digits of said matrix values with said N vector values;further combining the complete partial products computed from digits of different significance with a delay-and-add or shift-and-add operation to take account of the different place significance to thereby obtain the product of a matrix row with the N-element vector; andrepeating the above steps for each matrix row to obtain the product of the M×N matrix with the N-element vector.
  • 14. The method of claim 13, wherein the matrix and vector values are complex values having a real and an imaginary part.
  • 15. The method of claim 13, wherein the delay-and-add operation is performed using a set of delay-and-add circuits of the digital logic structure, and wherein the delay-and-add circuits comprise serial multipliers.
  • 16. The method of claim 13, wherein the matrix and vector values are used in at least one of Fourier transforms and transmit/receive beamforming calculations.
CROSS REFERENCE TO RELATED APPLICATIONS

The present application claims the filing benefits of U.S. provisional application, Ser. No. 63/140,567, filed Jan. 22, 2021, which is hereby incorporated by reference herein in its entirety.

Provisional Applications (1)
Number Date Country
63140567 Jan 2021 US