triState method

LogicValue triState(
  1. LogicValue other
)

Bitwise tristate merge of this value with other.

Per bit:

  • tristate(0, 0) == 0
  • tristate(0, 1) == x
  • tristate(0, x) == x
  • tristate(0, z) == 0
  • tristate(1, 1) == 1
  • tristate(1, x) == x
  • tristate(1, z) == 1
  • tristate(z, x) == x
  • tristate(z, z) == z
  • tristate(x, x) == x

Implementation

LogicValue triState(LogicValue other) =>
    _twoInputBitwiseOp(other, (a, b) => a._triState2(b));