Negator

Library: Arithmetic
Introduced: 2.0 Beta 22
Appearance:

Behavior

Computes the two's-complement negation of the input. This negation is performed by maintaining all the lower-order bits up to the lowest-order 1, and complementing all bits above that.

If the value to be negated happens to be the least negative value, then its negation (which cannot be represented in two's-complement form), is still the least negative value.

Pins

West edge (input, bit width matches Bit Width attribute)
The value to negate.
East edge, labeled -x (output, bit width matches Bit Width attribute)
The negation of the input. If the input happens to be the least negative value representable in bitWidth bits, however, then the output matches the input.

Attributes

Bit Width
The bit width of the component's input and output.

Poke Tool Behavior

None.

Text Tool Behavior

None.

Back to Library Reference