operator < method

Conditional operator <(
  1. dynamic other
)

Conditional assignment operator.

Represents conditionally asigning the value of another signal to this. Returns an instance of ConditionalAssign to be be passed to a Conditional.

Implementation

Conditional operator <(dynamic other) {
  if (_unassignable) {
    throw Exception('This signal "$this" has been marked as unassignable.  '
        'It may be a constant expression or otherwise'
        ' should not be assigned.');
  }

  if (other is Logic) {
    return ConditionalAssign(this, other);
  } else {
    return ConditionalAssign(this, Const(other, width: width));
  }
}