High Throughput Sine and Cosine
- Updated2023-02-17
- 4 minute(s) read
High Throughput Sine and Cosine
Computes both the sine and cosine of a specified value (x). You must specify x in pi radians, which use fewer FPGA resources than radians. To convert a radian value to pi radians, multiply the value by pi.
Inputs/Outputs

x
An input to this operation.
You must specify this input in pi radians, which use fewer resources than radians. To convert radians to pi radians, multiply the radian value by pi.

input valid
Boolean value that describes whether the next data element has arrived for processing. Wire the output valid output of an upstream node to this input to transfer data from the upstream node to this node.
| True | The next data element has arrived for processing. |
| False | The next data element has not arrived for processing. |

ready for output
Boolean value that specifies whether downstream nodes are ready for this node to return a new value.
Use Feedback Node to wire this input to the ready for input input of a downstream node. If this input is False during a given cycle, output valid returns False during that cycle.
| True | The downstream node is ready for the next data element. |
| False | The downstream node is not ready for the next data element. |
Default value: False

sin(x)
Result of the operation in pi radians, which uses fewer resources on the FPGA.

cos(x)
Result of the operation in pi radians, which uses fewer resources on the FPGA.

output valid
Boolean value that indicates whether this node computes a result that downstream nodes can use.
Wire this output to the input valid input of a downstream node to transfer data from the node to the downstream node.
| True | Downstream nodes can use the result this node computes. |
| False | This node returns an undefined value that downstream nodes cannot use.
Note This node may return different undefined values when executed in simulation mode versus when executed on hardware.
|

ready for input
Boolean value that indicates whether this node is ready to accept new input data.
Use Feedback Node to wire this output to the ready for output output of an upstream node.
| True | The node is ready to accept new input data. |
| False | The node is not ready to accept new input data. |
Configure CORDIC Details
Launches a dialog box that enables you to configure different properties of the CORDIC algorithm used in computation.
Register Inputs
Adds internal registers after the inputs to this function. Selecting this option increases the latency of the function by one cycle.
Register Outputs
Adds internal registers before the outputs of this function. Selecting this option increases the latency of the function by one cycle.
Initiation Interval
Specifies the minimum number of cycles between new data inputs to the function.