Negator
Bibliothek: | Arithmetic |
Eingeführt: | 2.0 Beta 22 |
Aussehen: |
Verhalten
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 Data Bits attribute)
- The value to negate.
- East edge, labeled -x (output, bit width matches Data Bits attribute)
- The negation of the input. If the input happens to be the least negative value representable in dataBits bits, however, then the output matches the input.
Attribute
When the component is selected or being added,
Alt-0 through Alt-9 alter its Data Bits
attribute.
- Data Bits
- The bit width of the component's input and output.
Verhalten des Schaltwerkzeugs
Keines.
Verhalten des Textwerkzeugs
Keines.