Table Of Contents

Signed (Clock-Driven Logic)

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.

    connector_pane_image
    datatype_icon

    carry in/inverted borrow in

    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 xy normally when sub? is True.
    False Subtracts one extra LSB from xy when sub? is True. Computes x + y normally when sub? is False.

    Default: False

    datatype_icon

    bypass x

    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 xy.

    Default: False

    datatype_icon

    sub?

    A Boolean that determines whether this node performs subtraction or addition. Use this Boolean to change the operation of this node programmatically.

    True The node calculates x - y.
    False The node calculates x + y.

    Default: False

    datatype_icon

    x

    An input to this node. If x is a fixed-size Boolean array, the first array element represents the least-significant bit (LSB) and the last element represents the most-significant bit (MSB).

    This input supports scalar Boolean values and arrays of Boolean values.

    datatype_icon

    y

    An input to this node. If y is a fixed-size Boolean array, the first array element represents the LSB and the last element represents the MSB.

    This input supports scalar Boolean values and arrays of Boolean values.

    datatype_icon

    overflow

    A Boolean that indicates if the theoretical computed value of the sum exceeds the valid range of its data type.

    True This node wraps the value of sum.
    False This node does not wrap the value of sum.
    spd-note-note
    Note  

    If you cascade nodes, you must use unsigned versions of the nodes in the intermediate operations. Set the encoding of the final node to the encoding you want for the entire cascaded operation.

    datatype_icon

    sum

    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


    Recently Viewed Topics