Table Of Contents

High Throughput Exponential (Clock-Driven Logic)

Last Modified: January 9, 2018

Computes the value of e raised to a specified power.

connector_pane_image
datatype_icon

x

Input to this function. x must be in the range [-1, 1).

This input supports only scalar values of the fixed-point data type.

Computing exp(x) When x is Outside the Valid Range

Complete the following steps to compute exp(x when x is outside the range [-1, 1):

  1. Find an integer q and a real number r, where r is in the range [0, ln(2)), such that x = q * ln(2) + r.
  2. Compute 2q * exp(r), which is equivalent to exp(x). Because r is in the valid range of [-1, 1), you can then use this node to compute exp(r).

Input Coercion

The CORDIC algorithm represents x internally as a fixed-point number with a 1-bit integer word length. The word length of x must be less than or equal to 64 bits, which means the fractional word length must be less than or equal to 63 bits. If you wire a value to x that has a fractional word length greater than 63 bits, this node rounds off the lower bits to achieve a fractional word length of 63 bits. For example, if you wire a fixed-point data type with a configuration of I60<-5, 55> to x, this node coerces the configuration to be I58<-5,53>.

If you wire a fixed-point data type to x with a fractional word length greater than 63 bits and an integer word length less than -62 bits, this node coerces the configuration to be I1<-62, 63> if the data type is signed. If the data type is unsigned, the coerced configuration is U1<-62, 63>.

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 defines whether downstream nodes are ready for this node to return a new value. Use a Feedback Node to wire the ready for input output of a downstream node to this input of the current node.

True Downstream nodes are ready for this node to return a new value.
False Downstream nodes are not ready for this node to return a new value.
spd-note-note
Note  

If this input is False during a cycle, the output valid output returns False during that cycle.

Default: True

datatype_icon

exp(x)

e raised to the power of x.

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