Version:

Last Modified: September 10, 2016

Implements an adder-subtractor that operates on bit patterns. You can cascade and pipeline AddSub nodes to achieve higher throughput rates.

A Boolean that determines whether this node accounts for an additional least-significant bit (LSB).

True | Adds one extra LSB to x + y when sub? is False. Computes x – y normally when sub? is True. |

False | Subtracts one extra LSB from x – y when sub? is True. Computes x + y normally when sub? is False. |

**Default: **False

A Boolean that determines whether this node ignores the value you wire to **x**.

True | This node uses a value of 0 instead of the value you wire to x. |

False | This node uses the value you wire to x. |

Use this Boolean to remove **x** from the expression this node calculates. For example, use this Boolean to return –**y** instead of **x** – **y**.

**Default: **False

An input to this node.

This input supports scalar values of integer and fixed-point data types.

An input to this node.

This input supports scalar values of integer and fixed-point data types.

The result this node computes. The result depends on not only the values of **x** and **y** but also the values of any Boolean inputs.

**Where This Node Can Run: **

Desktop OS: none

FPGA: All devices