A method for multiplying, at an execution unit of a processor, two complex numbers in which all four scalar multiplications, concomitant to multiplying two complex numbers, can be performed in parallel. A real part of a first complex number is multiplied at the execution unit by a real part of a second complex number to produce a first part of a real part of a third complex number. An imaginary part of the first complex number is multiplied at the execution unit by an imaginary part of the second complex number to produce a second part of the real part of the third complex number. A first arithmetic function is performed at the execution unit between the first part of the real part of the third complex number and the second part of the real part of the third complex number. The imaginary part of the first complex number is multiplied at the execution unit by the real part of the second complex number to produce a first part of an imaginary part of the third complex number. The real part of the first complex number is multiplied at the execution unit by the imaginary part of the second complex number to produce a second part of the imaginary part of the third complex number. A second arithmetic function is performed at the execution unit between the first part of the imaginary part of the third complex number and the second part of the imaginary part of the third complex number.
|
1. A system for multiplying complex numbers, comprising:
a first register configured to store first data having a first operand, the first operand representing a first complex number;
a second register configured to store second data having a second operand, the second operand representing a second complex number;
a processor configured to perform: a multiplication of the first operand by the second operand to produce a first result, the first result representing a third complex number, a rounding operation of the first result to produce a second result, and a saturating operation of the second result to produce a third result that is within a range of numbers; and
a third register configured to store the third result.
32. A system for multiplying complex numbers, comprising:
means for multiplying a real part of a first complex number by a real part of a second complex number to produce a first part of a real part of a third complex number;
means for multiplying an imaginary part of the first complex number by an imaginary part of the second complex number to produce a second part of the real part of the third complex number;
means for performing a first arithmetic function between the first part of the real part of the third complex number and the second part of the real part of the third complex number;
means for multiplying the imaginary part of the first complex number by the real part of the second complex number to produce a first part of an imaginary part of the third complex number;
means for multiplying the real part of the first complex number by the imaginary part of the second complex number to produce a second part of the imaginary part of the third complex number;
means for performing a second arithmetic function between the first part of the imaginary part of the third complex number and the second part of the imaginary part of the third complex number;
means for rounding the third complex number to produce a rounded third complex number; and means for saturating the rounded third complex number to produce a saturated third complex number;
wherein the means for multiplying the real part of the first complex number by the real part of the second complex, the means for multiplying the imaginary part of the first complex number by the imaginary part of the second complex number, the means for multiplying the imaginary part of the first complex number by the real part of the second complex number, and the multiplying the real part of the first complex number by the imaginary part of the second complex number are configured to perform in parallel.
2. The system of
3. The system of
4. The system of
5. The system of
a first multiplication of the least significant bits portion of the first operand by the least significant bits portion of the second operand to produce a third operand;
a second multiplication of the most significant bits portion of the first operand by the most significant bits portion of the second operand to produce a fourth operand;
a subtraction of one of the fourth operand from the third operand if the least significant bits portion of each of the first operand and the second operand represents the real part of the corresponding complex number and the most significant bits portion of each of the first operand and the second operand represents the imaginary part of the corresponding complex number, and the third operand from the fourth operand if the least significant bits portion of each of the first operand and the second operand represents the imaginary part of the corresponding complex number and the most significant bits portion of each of the first operand and the second operand represents the real part of the corresponding complex number, wherein a fifth operand is a difference of the subtraction;
a third multiplication of the most significant bits portion of the first operand by the least significant bits portion of the second operand to produce a sixth operand;
a fourth multiplication of the least significant bits portion of the first operand by the most significant bits portion of the second operand to produce a seventh operand; and
an addition of the seventh operand to the sixth operand, wherein an eighth operand is a sum of the addition.
6. The system of
8. The system of
the fifth operand is one of the least significant bits portion of the first result if the least significant bits portion of each of the first operand and the second operand represents the real part of the corresponding complex number and the most significant bits portion of each of the first operand and the second operand represents the imaginary part of the corresponding complex number, and the most significant bits portion of the first result if the most significant bits portion of each of the first operand and the second operand represents the real part of the corresponding complex number and the least significant bits portion of each of the first operand and the second operand represents the imaginary part of the corresponding complex number; and
the eighth operand is one of the most significant bits portion of the first result if the least significant bits portion of each of the first operand and the second operand represents the real part of the corresponding complex number and the most significant bits portion of each of the first operand and the second operand represents the imaginary part of the corresponding complex number, and the least significant bits portion of the first result if the most significant bits portion of each of the first operand and the second operand represents the real part of the corresponding complex number and the least significant bits portion of each of the first operand and the second operand represents the imaginary part of the corresponding complex number.
9. The system of
10. The system of
11. The system of
12. The system of
a first alteration of the fifth operand so that the fifth operand is represented as the H-bit two's complement signed number; and
a second alteration of the eighth operand so that the eighth operand is represented as the H-bit two's complement signed number.
13. The method system of
a first division of the fifth operand by a power of two; and
a second division of the eighth operand by the power of two.
15. The system of
a first operation to change the fifth operand if the fifth operand is less than −2(H−1);
a second operation to change the fifth operand if the fifth operand is greater than [2(H−1)−1];
a third operation to change the eighth operand if the eighth operand is less than −2(H−1); and
a fourth operation to change the eighth operand if the eighth operand is greater than [2(H−1)−1].
16. The system of
a fifth operation to change, if the fifth operand is less than −2(H−1), the fifth operand to −2(H−1);
a sixth operation to change, if the fifth operand is greater than [2(H−1)−1], the fifth operand to [2(H−1)−1];
a seventh operation to change, if the eighth operand is less than −2(H−1), the eighth operand to −2(H−1); and
an eighth operation to change, if the eighth operand is greater than [2(H−1)−1], the eighth operand to [2(H−1)−1].
17. The system of
a first rounding operation for the fifth operand; and
a second rounding operation for the eighth operand.
18. The system of
a first operation to change, if a fractional part of the fifth operand is equal to one-halt the fifth operand to an even integer closest in value to the fifth operand;
a second operation to change, if the fractional part of the fifth operand is other than equal to one-halt the fifth operand to an integer closest in value to the fifth operand;
a third operation to change, if a fractional part of the eighth operand is equal to one-halt the eighth operand to an even integer closest in value to the eighth operand; and
a fourth operation to change, if the fractional part of the eighth operand is other than equal to one-half, the eighth operand to an integer closest in value to the eighth operand.
19. The system of
a first division of the fifth operand by 2(H−1); and
a second division of the eighth operand by 2(H−1).
20. The system of
a fifth operation to change, if the fifth operand is less than −2(H−1), the fifth operand to −2(H−1);
a sixth operation to change, if the fifth operand is greater than [2(H−1)−1], the fifth operand to [2(H−1)−1];
a seventh operation to change, if the eighth operand is less than −2(H−1), the eighth operand to −2(H−1); and
an eighth operation to change, if the eighth operand is greater than [2(H−1)−1], the eighth operand to [2(H−1)−1].
21. The system of
third data having a ninth operand, the ninth operand representing a signal that causes the processor to perform the multiplication of the first operand by the second operand.
22. The system of
a first multiplication of the least significant bits portion of the first operand by the least significant bits portion of the second operand to produce a third operand;
a second multiplication of the most significant bits portion of the first operand by the most significant bits portion of the second operand to produce a fourth operand;
an addition of the fourth operand to the third operand, wherein a fifth operand is a sum of the addition:
a third multiplication of the most significant bits portion of the first operand by the least significant bits portion of the second operand to produce a sixth operand;
a fourth multiplication of the least significant bits portion of the first operand by the most significant bits portion of the second operand to produce a seventh operand; and
a subtraction of one of the seventh operand from the sixth operand if the least significant bits portion of each of the first operand and the second operand represents the real part of the corresponding complex number and the most significant bits portion of each of the first operand and the second operand represents the imaginary part of the corresponding complex number, and the sixth operand from the seventh operand if the least significant bits portion of each of the first operand and the second operand represents the imaginary part of the corresponding complex number and the most significant bits portion of each of the first operand and the second operand represents the real part of the corresponding complex number, wherein an eighth operand is a difference of the subtraction.
23. The system of
24. The system of
25. The system of
a first alteration of the fifth operand so that the fifth operand is represented as an H-bit two's complement signed number; and
a second alteration of the eighth operand so that the eighth operand is represented as the H-bit two's complement signed number.
26. The system of
third data having a ninth operand, the ninth operand representing a signal that causes the processor to perform the multiplication of the first operand by the second operand.
27. The system of
at least one of the first operand and the second operand so that the at least one of the first operand and the second operand represents a conjugate of at least one of the first complex number and the second complex number.
28. The system of
third data having a third operand, the third operand representing a signal that causes the processor to perform the alteration.
29. The system of
the third operand by the fourth operand to produce a fourth result, the fourth result representing a sixth complex number;
wherein the first result and the fourth result are third data.
30. The system of
31. The system of
33. The system of
34. The system of
35. The system of
|
This application claims the benefit of U.S. Provisional Application No. 60/506,355, filed Sep. 29, 2003, which is incorporated herein in its entirety by reference.
1. Field of the Invention
The present invention relates to multiplying complex numbers with a processor.
2. Related Art
In older designs for signal processing systems (such as a Digital Subscriber Line (DSL) modem), which are in general more hardware oriented, the signal equalization process and other processes, such as performing a Fast Fourier Transform (FFT), may be performed by fixed-function logic circuits. However, such system designs are commonly hard to adapt for varying application requirements. In order to increase flexibility in modem development and application, it has become more common to use software to perform the various functions in a signal processing device. As performance levels (such as data-rates) required of such devices increase, the requirements of the software efficiently to perform individual processing tasks (such as equalization or FFT) likewise increases.
Performing complex multiplication in software is somewhat complicated to implement. Using conventional instructions (e.g., scalar multiply, add, subtract) it may take many cycles to perform complex multiplication. In some circumstances (e.g., in a DSL modem) it may be necessary to perform millions of complex multiplications every second, as part of the Fast Fourier Transform (FFT) and/or equalization processes.
The complex multiplication process can therefore represent a significant proportion of the total computational cost for a signal processing system, especially in the case of a system where one processor handles the operations for multiple independent processing channels (e.g., in a multi-line DSL modem in a central office). With increasing workloads—in respect of the increasing complexity of the signal processing protocols (e.g., the number of frequencies for which equalization may be needed, in each channel)—it becomes necessary to improve the efficiency of complex multiplication in such systems.
For these and other reasons, more efficient methods and systems for complex multiplication operations are needed.
The present invention provides a method for multiplying, at an execution unit of a processor, two complex numbers in which all four scalar multiplications, concomitant to multiplying two complex numbers, can be performed in parallel. First data is conveyed along at least a first interconnect of the processor. The first data has a first operand. The first operand represents a first complex number. Second data is conveyed along at least a second interconnect of the processor. The second data has a second operand. The second operand represents a second complex number. The first operand is multiplied at the execution unit by the second operand to produce a first result. The first result represents a third complex number.
In an embodiment, a most significant bits portion of the first operand represents an imaginary part of the first complex number, a least significant bits portion of the first operand represents a real part of the first complex number, a most significant bits portion of the second operand represents an imaginary part of the second complex number, a least significant bits portion of the second operand represents a real part of the second complex number, a most significant bits portion of the first result represents an imaginary part of the first result, and a least significant bits portion of the first result represents a real part of the first result.
The processor can multiply the first operand by the second operand in the following manner. The least significant bits (real) portion of the first operand can be multiplied at the execution unit by the least significant bits (real) portion of the second operand to produce a third (real) operand. The most significant bits (imaginary) portion of the first operand can be multiplied at the execution unit by the most significant bits (imaginary) portion of the second operand to produce a fourth (real) operand. The fourth (real) operand can be subtracted at the execution unit from the third (real) operand. A fifth (real) operand can be a difference of the subtracting. The most significant bits (imaginary) portion of the first operand can be multiplied at the execution unit by the least significant bits (real) portion of the second operand to produce a sixth (imaginary) operand. The least significant bits (real) portion of the first operand can be multiplied at the execution unit by the most significant bits (imaginary) portion of the second operand to produce a seventh (imaginary) operand. The seventh (imaginary) operand can be added at the execution unit to the sixth (imaginary) operand. An eighth (imaginary) operand can be a sum of the adding. Advantageously, the four scalar multiplications can be performed in parallel. Advantageously, the subtraction and the addition can also be performed in parallel.
Optionally, the present invention can also be extended so that a single instruction causes multiplication operations to be performed on additional pairs of complex numbers. In addition to the first operand, the first data can also have a ninth operand. The ninth operand can represent a fourth complex number. The ninth operand can be a most significant bits portion of the first data. The first operand can be a least significant bits portion of the first data. In addition to the second operand, the second data can also have a tenth operand. The tenth operand can represent a fifth complex number. The tenth operand can be a most significant bits portion of the second data. The second operand can be a least significant bits portion of the second data. The ninth operand can be multiplied at the execution unit by the tenth operand to produce a second result. The second result can represent a sixth complex number. The first result and the second result can be third data. The first result can be a least significant bits portion of the third data. The second result can be a most significant bits portion of the third data. Advantageously, multiplying the first operand by the second operand can be performed in parallel with multiplying the ninth operand by the tenth operand.
In another embodiment, a real part of a first complex number is multiplied at an execution unit of a processor by a real part of a second complex number to produce a first part of a real part of a third complex number. An imaginary part of the first complex number is multiplied at the execution unit by an imaginary part of the second complex number to produce a second part of the real part of the third complex number. A first arithmetic function is performed at the execution unit between the first part of the real part of the third complex number and the second part of the real part of the third complex number. The imaginary part of the first complex number is multiplied at the execution unit by the real part of the second complex number to produce a first part of an imaginary part of the third complex number. The real part of the first complex number is multiplied at the execution unit by the imaginary part of the second complex number to produce a second part of the imaginary part of the third complex number. A second arithmetic function is performed at the execution unit between the first part of the imaginary part of the third complex number and the second part of the imaginary part of the third complex number. The multiplying steps are performed in parallel.
The accompanying drawings, which are incorporated herein and form part of the specification, illustrate the present invention and, together with the description, further serve to explain the principles of the invention and to enable a person skilled in the pertinent art to make and use the invention.
The present invention is now described with reference to the figures where like reference numbers indicate identical or functionally similar elements. Also in the figures, the left most digit(s) of each reference number identifies the figure in which the reference number is first used.
I. Introduction
A. Complex Numbers
Complex numbers are numbers of the form (a+bi), where i is the square root of minus one, and a and b are real numbers. A complex number is the sum of a real part (a) and an imaginary part (bi). Multiplication and addition of complex numbers possess the same commutative and transitive properties as with real numbers. Complex multiplication is distributive over complex addition. Thus, we can evaluate the multiplication of two complex numbers (a+bi) and (c+di) as follows:
Complex numbers have numerous applications in mathematics and engineering. As an example, in signal processing applications, when transformed into the frequency domain, an arbitrary signal can be considered as a function that maps frequency onto a complex number. The real and imaginary parts correspond, respectively, to the relative amplitudes of cosine and sine waves of that frequency. When summed over all frequencies, the amplitudes of the cosine and sine waves make up the signal amplitude.
When a signal is transmitted, its amplitudes and phases are altered, depending upon the resistance, inductance, and capacitance of the circuitry through which the signal passes. In order to recover the original signal, a process of equalization is applied, which can include the step of multiplying a complex amplitude at each frequency by a complex correction-factor, which varies with frequency as it varies with time.
In the abstract, complex numbers have infinite precision. For practical purposes, however, it is usually sufficient to approximate the true value to one of a finite set of values. For example, the real and imaginary components a and b belong to a finite range of integers that are multiplied by a scale-factor. Preferably, the scale-factor is a power of two, either positive or negative. Use of a negative scale-factor allows the representation of values having fractional parts rather than just integers (whole numbers). A fixed-point representation of the numbers can be used if all of the numbers one wishes to use can be represented using a common range of integers and a common scale-factor. Arithmetic between numbers having fixed-point representation is referred to as fixed-point arithmetic.
In other situations, a floating-point representation of the numbers can be used if a suitable common scale-factor cannot be found for the ranges of numbers being manipulated. In this case there is no fixed scale-factor, so the position of the (binary) point between the whole number part (if any) and the fractional part (if any) of each value is not fixed, but rather is said to “float”. In a floating point representation of numbers, each number comprises at least a mantissa, which represents an integer, and an exponent, which represents a scale-factor specific to that particular number. Both the mantissa part and the exponent part can in general represent both positive and negative numbers. As with fixed point representation, negative exponents allow the representation of numbers with fractional parts. As will be appreciated, there are many possible ways in which floating point numbers can be represented. For example, the mantissa can be represented using sign and magnitude format or using two's complement format. Likewise, the exponent can be represented as a two's complement number, or in an offset manner, or as a sign and magnitude. Additionally, the mantissa might be represented using a normalized format having an “implicit leading one” in which the most significant non-zero bit of the mantissa is not physically represented in the stored format of the number, but is implied to appear one binary place to the left of the top-most bit of the mantissa as stored. As a further variation, different numbers of bits may be assigned to different parts of a floating point number. By way of an example of a floating point number format, one might use a sign bit of a mantissa, along with an 8-bit offset-128 exponent and a 23-bit magnitude of the mantissa (represented using “implicit leading one”) for a total of 32 bits.
The complex-conjugate of a complex number (a+bi) is defined as (a−bi). The concept has many uses within mathematics and engineering. As an example, when performing a Fast Fourier Transform (FFT), it is sometimes necessary to multiply one complex number by the complex conjugate of another. The FFT is commonly used in signal processing applications, such as a Digital Subscriber Line (DSL) modem.
B. Single Instruction Multiple Data Processing
Single Instruction Multiple Data (SIMD), describes a style of digital processor design in which a single instruction controls the processing of multiple data values in parallel (all being processed in the same manner).
SIMD operations can be implemented in digital processor designs by data processing units which receive multiple input values. For example, a 64-bit wide input value can be subdivided into and treated as multiple smaller values (e.g., 8×8-bit values, 4×16-bit values, or 2×32-bit values).
To illustrate SIMD working, consider the following exemplary Add Half-words (ADDH) instruction:
ADDH c, a, b
ADDH c, a, b takes as input two 64-bit operands from registers a and b, and writes its result back to register c. ADDH performs four 16-bit (half-word) additions: each 16-bit value in a is added to the corresponding 16-bit value within b to produce 4×16-bit results in the 64-bit output value c.
This SIMD method of working allows for an increase in computational power compared with other types of processors where an instruction can only operate on a single set of input data values (e.g., one 16-bit operand from a, one 16-bit operand from b giving one 16-bit result in c). For situations, such as are common in digital signal processing applications, where the same operation is to be performed repeatedly across an array of values, SIMD allows in this instance a speed-up by a factor of four in the basic processing rate, since four add operations can be performed at once rather than only one.
II. Example Implementations
A. Instruction for Complex Multiplication Operations
An example implementation of the invention is described below. The invention is not, however, limited to the example implementation. Based on the description herein, one skilled in the relevant art(s) will understand that the invention can be implemented in other ways as well. In an embodiment, the example implementation can be used in conjunction with a digital signal processor.
In the example implementation, the instruction is called ‘CMULH’ (for Complex-MULtiply-Halfwords), but the mnemonic used is incidental here. CMULH is defined to take two 64-bit input operands ‘src’ and ‘src2’ and a 64-bit output operand ‘dest’. CMULH also takes as input a one-bit flag called ‘conjugate’ located in a status register called ‘BSR’. This flag can be set or cleared beforehand using other instructions according to the required direction of complex multiplication. The new instruction is then:
CMULH dest, src1, src2
which is defined to perform complex multiplication in a two-way SIMD manner by multiplying each of two complex numbers in a register ‘src1’ by the corresponding complex number in a register ‘src2’, producing the result as two complex numbers in a register ‘dest’.
The operation performed by the instruction is described by the following sub-operations:
CMULH_lane(dest.<31..0>, src1.<31..0>, src2.<31..0>, conjugate)
CMULH_lane(dest.<63..32>, src1.<63..32>, src2.<63..32>, conjugate)
CMULH_lane(d, s1, s2) is defined as:
If: (BSR.conjugate)
Then:
{d.re = SAT[RND((s1.re * s2.re) + (s1.im * s2.im))]
d.im = SAT[RND((s1.im * s2.re) − (s1.re * s2.im))]}
Else:
{d.re = SAT[RND((s1.re * s2.re) − (s1.im * s2.im))]
d.im = SAT[RND((s1.im * s2.re) + (s1.re * s2.im))]}
where:
val.re
means the lower 16-bits of the 32-bit value ‘val’,
containing the real component of val;
val.im
means the upper 16-bits of the 32-bit value ‘val’,
containing the imaginary component of val;
(a * b)
means the 32-bit two's-complement signed result of
multiplying the two 16-bit two's-complement signed
numbers a and b;
(a + b)
means the 33-bit two's-complement signed result of
adding the two 32-bit two's-complement signed
numbers a and b;
(a − b)
means the 33-bit two's-complement signed result of
subtracting the 32-bit two's-complement signed number
b from the 32-bit two's-complement signed number a;
RND(x)
means the 18-bit two's-complement result of rounding
the real number y = x/32768, such that if the fractional
part of y is exactly ½, then the result is the nearest
even (i.e., multiple of two) integer to y, otherwise the
result is the nearest integer to y; and
SAT(x)
means the 16-bit two's complement signed result of
saturating (i.e., clipping) x to the nearest integer in the
range −32768 to +32767 inclusive.
B. Method for Multiplying Complex Numbers
In method 200, at a step 202, first data is conveyed along at least a first interconnect of a processor. The first data has a first operand. The first operand represents a first complex number.
At a step 204, second data is conveyed along at least a second interconnect of the processor. The second data has a second operand. The second operand represents a second complex number.
At a step 210, the first operand is multiplied at an execution unit of the processor by the second operand to produce a first result. The first result represents a third complex number.
A most significant bits portion of any operand or any result can represent either an imaginary part of the corresponding complex number or a real part of the corresponding complex number. A least significant bits portion of any operand or any result can also represent either the real part of the corresponding complex number or the imaginary part of the corresponding complex number. If the most significant bits portion represents the imaginary part, then the least significant bits portion represents the real part. If the most significant bits portion represents the real part, then the least significant bits portion represents the imaginary part. Preferably, but not necessarily, the most significant bits portion of each operand and each result represents either the imaginary part or the real part, and the least significant bits portion of each operand and each result represents the part not represented by the most significant bits portion. The imaginary part and the real part can each be represented as a two's complement signed number. Likewise, the imaginary part and the real part can each be represented as a floating point number. The skilled artisan recognizes other schemes by which the imaginary part and the real part can be represented. Therefore, the present invention is not limited to a two's complement representation scheme, a floating point number scheme, or any combination of these schemes.
For example, at
As shown at
Each of least significant bits portion 328 of first operand 310, most significant bits portion 324 of first operand 310, least significant bits portion 336 of second operand 312, most significant bits portion 340 of second operand 312, least significant bits portion 344 of first result 320, and most significant bits portion 340 of first result 320 can be represented as an H-bit two's complement signed number. For example, H can be equal to sixteen. Each of third operand 502, fourth operand 504, sixth operand 508, and seventh operand 510 can be represented as a W-bit two's complement signed number, wherein W equals 2H. This ensures that precision is maintained when first operand 310 is multiplied by second operand 312. For example, W can be equal to thirty-two. Each of fifth operand 506 and eighth operand 512 can be represented as an A-bit two's complement signed number, wherein A is equal to (W+1). A value of a most significant bit of the A-bit two's complement signed number indicates a sign of the A-bit two's complement signed number. This ensures that precision is maintained when fourth operand 504 is subtracted from third operand 502 and when seventh operand 510 is added to sixth operand 508. For example, A can be equal to thirty-three.
Here, in order for least significant bits portion 344 of first result 320 and most significant bits portion 340 of first result 320 each to be represented as the H-bit two's complement signed number, fifth operand 506 and eighth operand 512 must be altered. Returning to
For example, at
Fifth operand 506 and eighth operand 512 can also be altered by clipping each of fifth operand 506 and eighth operand 512. The clipping can be to values between, for example, −2(H−1) and [2(H−1)−1], inclusive.
Fifth operand 506 and eighth operand 512 can also be altered by rounding each of fifth operand 506 and eighth operand 512.
Note that if the fractional part of an operand is equal to one-half and the least significant non-fractional digit of the operand is even, then the operand will be rounded to a lower value. If the fractional part of an operand is equal to one-half and the least significant non-fractional digit of the operand is odd, then the operand will be rounded to a higher value. When large amounts of data are processed, such a rounding scheme is statistically likely to limit distortions of values due to rounding. However, the skilled artisan recognizes other schemes by which the fifth operand and the eighth operand can be rounded. Therefore, the present invention is not limited to the rounding of method 900.
Fifth operand 506 and eighth operand 512 can also be altered by a combination of scaling, clipping, and rounding.
Specifically, at
Returning to
At
Returning to
In an embodiment, causing the product of the multiplying at step 210 to be equivalent to a product of multiplying one of the complex numbers by the conjugate of the other complex number or to be equivalent to a product of multiplying the conjugates of both complex numbers can be accomplished by altering one (or both) operand(s) so that it (they) represent a conjugate(s) of the respective complex number(s). At an optional step 208, the first operand can be altered by the execution unit so that the first operand represents a conjugate of the first complex number, the second operand can be altered by the execution unit so that the second operand represents a conjugate of the second complex number, or both. For example, at
Returning to
Returning to
At optional step 414, the fifth operand is altered at the execution unit so that the fifth operand is represented as an H-bit two's complement signed number. At optional step 416, the eighth operand is altered at the execution unit so that the eighth operand is represented as an H-bit two's complement signed number. As explained above, the fifth operand and the eighth operand can be altered by scaling, clipping, rounding, or any combination of the foregoing.
The present invention can also be extended so that a single instruction causes multiplication operations to be performed on additional pairs of complex numbers. Returning to
The skilled artisan recognizes that the other features of the present invention described above with regards to multiplication operations performed on a single pair of complex numbers also apply to embodiments in which multiplication operations are performed on multiple pairs of complex numbers. Therefore, the present invention also encompasses multiplication operations that include the other features described above and are performed on multiple pairs of complex numbers.
First operand 310 is multiplied at execution unit 318 by second operand 312 to produce first result 320. First result 320 represents third complex number 322. For example, third complex number 322 can be ‘(e+fi)’. Tenth operand 1302 is multiplied at execution unit 318 by eleventh operand 1308 to produce a second result 1318. Second result 1318 represents a sixth complex number 1320. For example, sixth complex number 1320 can be ‘(m+ni)’. First result 320 and second result 1318 are fourth data 1322. First result 320 is, for example, a least significant bits portion 1324 of fourth data 1322. Second result 1318 is, for example, a most significant bits portion 1326 of fourth data 1322.
In an embodiment, the first arithmetic function is subtracting the second part of the real part of the third complex number from the first part of the real part of the third complex number and the second arithmetic function is adding the second part of the imaginary part of the third complex number to the first part of the imaginary part of the third complex number. In another embodiment, the first arithmetic function is adding the second part of the real part of the third complex number to the first part of the real part of the third complex number and the second arithmetic function is subtracting the second part of the imaginary part of the third complex number from the first part of the imaginary part of the third complex number. In both embodiments, the first arithmetic function and the second arithmetic function can be performed in parallel.
While various embodiments of the present invention have been described above, it should be understood that they have been presented by way of example only, and not limitation. Thus, the breadth and scope of the present invention should not be limited by any of the above-described exemplary embodiments, but should be defined only in accordance with the following claims and their equivalents.
Patent | Priority | Assignee | Title |
10514924, | Sep 29 2017 | Intel Corporation | Apparatus and method for performing dual signed and unsigned multiplication of packed data elements |
10552154, | Sep 29 2017 | Intel Corporation | Apparatus and method for multiplication and accumulation of complex and real packed data elements |
10664277, | Sep 29 2017 | Intel Corporation | Systems, apparatuses and methods for dual complex by complex conjugate multiply of signed words |
10795676, | Sep 29 2017 | Intel Corporation | Apparatus and method for multiplication and accumulation of complex and real packed data elements |
10795677, | Sep 29 2017 | Intel Corporation | Systems, apparatuses, and methods for multiplication, negation, and accumulation of vector packed signed values |
10929504, | Sep 29 2017 | Intel Corporation | Bit matrix multiplication |
10977039, | Sep 29 2017 | Intel Corporation | Apparatus and method for performing dual signed and unsigned multiplication of packed data elements |
11074073, | Sep 29 2017 | Intel Corporation | Apparatus and method for multiply, add/subtract, and accumulate of packed data elements |
11243765, | Sep 29 2017 | Intel Corporation | Apparatus and method for scaling pre-scaled results of complex multiply-accumulate operations on packed real and imaginary data elements |
11256504, | Sep 29 2017 | Intel Corporation | Apparatus and method for complex by complex conjugate multiplication |
11573799, | Sep 29 2017 | Intel Corporation | Apparatus and method for performing dual signed and unsigned multiplication of packed data elements |
11755323, | Sep 29 2017 | Intel Corporation | Apparatus and method for complex by complex conjugate multiplication |
11809867, | Sep 29 2017 | Intel Corporation | Apparatus and method for performing dual signed and unsigned multiplication of packed data elements |
9411583, | Dec 22 2011 | Intel Corporation | Vector instruction for presenting complex conjugates of respective complex numbers |
Patent | Priority | Assignee | Title |
3800130, | |||
4354249, | Mar 24 1980 | Motorola Inc. | Processing unit for multiplying two mathematical quantities including at least one complex multiplier |
5262976, | Nov 13 1989 | Intersil Corporation | Plural-bit recoding multiplier |
5576983, | Dec 27 1993 | NEC Electronics Corporation | Arithmetic circuit for adaptive equalizer of LMS algorithm of reduced amount of operation |
5936872, | Sep 05 1995 | Intel Corporation | Method and apparatus for storing complex numbers to allow for efficient complex multiplication operations and performing such complex multiplication operations |
7051061, | May 28 2002 | InterDigital Technology Corporation | Dual use dual complex multiplier and complex divider |
20020161813, | |||
20020169813, |
Executed on | Assignor | Assignee | Conveyance | Frame | Reel | Doc |
Sep 28 2004 | TAUNTON, MARK | Broadcom Corporation | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 015847 | /0518 | |
Sep 29 2004 | Broadcom Corporation | (assignment on the face of the patent) | / | |||
Feb 01 2016 | Broadcom Corporation | BANK OF AMERICA, N A , AS COLLATERAL AGENT | PATENT SECURITY AGREEMENT | 037806 | /0001 | |
Jan 19 2017 | BANK OF AMERICA, N A , AS COLLATERAL AGENT | Broadcom Corporation | TERMINATION AND RELEASE OF SECURITY INTEREST IN PATENTS | 041712 | /0001 | |
Jan 20 2017 | Broadcom Corporation | AVAGO TECHNOLOGIES GENERAL IP SINGAPORE PTE LTD | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 041706 | /0001 |
Date | Maintenance Fee Events |
Dec 10 2012 | M1551: Payment of Maintenance Fee, 4th Year, Large Entity. |
Jan 19 2017 | REM: Maintenance Fee Reminder Mailed. |
Jun 09 2017 | EXP: Patent Expired for Failure to Pay Maintenance Fees. |
Date | Maintenance Schedule |
Jun 09 2012 | 4 years fee payment window open |
Dec 09 2012 | 6 months grace period start (w surcharge) |
Jun 09 2013 | patent expiry (for year 4) |
Jun 09 2015 | 2 years to revive unintentionally abandoned end. (for year 4) |
Jun 09 2016 | 8 years fee payment window open |
Dec 09 2016 | 6 months grace period start (w surcharge) |
Jun 09 2017 | patent expiry (for year 8) |
Jun 09 2019 | 2 years to revive unintentionally abandoned end. (for year 8) |
Jun 09 2020 | 12 years fee payment window open |
Dec 09 2020 | 6 months grace period start (w surcharge) |
Jun 09 2021 | patent expiry (for year 12) |
Jun 09 2023 | 2 years to revive unintentionally abandoned end. (for year 12) |