Sine/cosine value generation apparatus
First Claim
1. An apparatus for generating sine/cosine values of an input phase ranging from 0 to 2*pi and expressed with an N-bit number, comprising:
- a phase projector mapping the input phase into an octant phase, and determining a flag indicating whether or not the input phase happens to be pi/4, 3*pi/4, 5*pi/4 or 7*pi/4;
an LUT-arithmetic unit receiving the octant phase for provision of its corresponding sine/cosine values;
a temp sine/cosine generator receiving the corresponding sine/cosine values of the octant phase for provision of temp sine/cosine values based on the flag; and
a sine/cosine value generator selectively swapping or inverting the temp sine/cosine values as the sine/cosine values of the input phase based on an octant index indicating which octant the input phase actually locates;
wherein;
the phase projector further determines the octant index;
the phase projector further comprises;
a first acquiring unit acquiring the first 3 MSB bits of the input phase for output as the octant index;
a second acquiring unit acquiring the last N-3 LSB bits of the input phase;
a 2'"'"'s complement code generator finding the 2'"'"'s complement of the output of the second acquiring unit;
a selector selectively choosing the output of the second acquiring unit or the output of the 2'"'"'s complement code generator as the octant phase based on the LSB bit of the octant index; and
a logic circuit generating the flag based on the octant phase and the LSB bit of the octant index.
2 Assignments
0 Petitions
Accused Products
Abstract
An apparatus for generating sine/cosine values of an input phase is disclosed. The apparatus includes a phase projector, an LUT-arithmetic unit, a temp sine/cosine generator and a sine/cosine value generator. The phase projector maps the input phase angle into an octant phase and determines an octant index indicating which octant the input phase angle actually locates and a flag indicating whether or not the input phase happens to be pi/4, 3*pi/4, 5*pi/4 or 7*pi/4. The LUT-arithmetic unit receives the octant phase for provision of its corresponding sine/cosine values. The temp sine/cosine generator receives the corresponding sine/cosine values of the octant phase for provision of temp sine/cosine values based on the flag. The sine/cosine value generator selectively swaps and inverts the temp sine/cosine values as the sine/cosine values of the input phase based on a swap index derived from the octant index.
9 Citations
9 Claims
-
1. An apparatus for generating sine/cosine values of an input phase ranging from 0 to 2*pi and expressed with an N-bit number, comprising:
-
a phase projector mapping the input phase into an octant phase, and determining a flag indicating whether or not the input phase happens to be pi/4, 3*pi/4, 5*pi/4 or 7*pi/4; an LUT-arithmetic unit receiving the octant phase for provision of its corresponding sine/cosine values; a temp sine/cosine generator receiving the corresponding sine/cosine values of the octant phase for provision of temp sine/cosine values based on the flag; and a sine/cosine value generator selectively swapping or inverting the temp sine/cosine values as the sine/cosine values of the input phase based on an octant index indicating which octant the input phase actually locates; wherein; the phase projector further determines the octant index; the phase projector further comprises; a first acquiring unit acquiring the first 3 MSB bits of the input phase for output as the octant index; a second acquiring unit acquiring the last N-3 LSB bits of the input phase; a 2'"'"'s complement code generator finding the 2'"'"'s complement of the output of the second acquiring unit; a selector selectively choosing the output of the second acquiring unit or the output of the 2'"'"'s complement code generator as the octant phase based on the LSB bit of the octant index; and a logic circuit generating the flag based on the octant phase and the LSB bit of the octant index. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
Specification