Table Of Contents

High Throughput Sine and Cosine (Clock-Driven Logic)

Last Modified: January 9, 2018

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.

connector_pane_image
datatype_icon

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.

datatype_icon

input valid

Boolean value that describes whether the next data point 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 point has arrived for processing.
False The next data point has not arrived for processing.
datatype_icon

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 ready for input of a downstream node to ready for output of the current 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 point.
False The downstream node is not ready for the next data point.

Default: False

datatype_icon

sin(x)

Result of the operation in pi radians, which uses fewer resources on the FPGA.

This output assumes the same numeric representation as x. When x is of the form x = a + b i, that is, when x is complex, the following equation defines sin:
sin ( x ) = sin ( a ) * cosh ( b ) + i ( cos ( a ) * sinh ( b ) )
datatype_icon

cos(x)

Result of the operation in pi radians, which uses fewer resources on the FPGA.

This output assumes the same numeric representation as x. When x is of the form x = a + b i, that is, when x is complex, the following equation defines cos:
cos ( x ) = cos ( a ) * cosh ( b ) + i ( sin ( a ) * sinh ( b ) )
datatype_icon

output valid

Boolean value that indicates whether this node computes a result that downstream nodes can use.

Wire this output to input valid 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.
spd-note-note
Note  

This node may return different undefined values when executed in simulation mode versus when executed on hardware.

datatype_icon

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 ready for 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.
spd-note-note
Note  

If this output returns False during a given cycle, this node discards any data that other nodes send to this node during the following cycle. This node discards the data even if input valid is True during the following cycle.

Where This Node Can Run:

Desktop OS: none

FPGA: All devices

Web Server: Not supported in VIs that run in a web application


Recently Viewed Topics