High Throughput Add
- Updated2023-02-17
- 4 minute(s) read
High Throughput Add
Computes the sum of two addends.
To enable handshaking, select the Four wire checkbox in the Item tab.
Inputs/Outputs

x
First addend.
This input accepts a fixed-point number or a 1D array of fixed-point numbers.

y
Second addend.
This input accepts a fixed-point number or a 1D array of fixed-point numbers.

input valid
Boolean value that specifies whether the next data point is valid and can be processed.
Wire output valid of an upstream node to this input to transfer data from the upstream node to this node.
This input is available only when you select the Four wire checkbox in the Item tab.
| True | The data point is valid and can be processed. |
| False | The data point is not valid. |

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 this input of the current node. If this input is False during a given cycle, output valid returns False during that cycle.
This input is available only when you select the Four wire checkbox in the Item tab.
| True | The downstream node is ready for the next data point. |
| False | The downstream node is not ready for the next data point. |
Default value: True

operation overflow
Boolean value that indicates whether the theoretical computed value exceeds the valid range of the output data type.
| True | The theoretical computed value exceeds the valid range of the output data type. |
| False | The theoretical computed value is within the valid range of the output data type. |
This output can return a Boolean or a 1D array of Booleans.

x+y
Sum of x and y.
This output can return a fixed-point number or a 1D array of fixed-point numbers.

output valid
Boolean value that indicates whether this node has computed 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.
This output is available only when you select the Four wire checkbox in the Item tab.
| True | The node has computed a result that downstream nodes can use. |
| False | The node has not computed a result that downstream nodes can use and returns an undefined value.
Note This node may return different undefined values when executed in simulation mode versus 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 ready for output of an upstream node.
This output is available only when you select the Four wire checkbox in the Item tab.
| True | The node is ready to accept new input data. |
| False | The node is not ready to accept new input data. |
Node Behaviors When x and y Are Arrays
When both x and y are arrays, this node performs calculation on the two arrays element by element. If the two arrays are of different sizes, this node performs calculation on the first N elements, where N is the number of elements of the smaller array. When one input is an array and the other is a scalar, this node performs calculation on each element of the array with the scalar.
When Does This Node Discard Data
If ready for input 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.