gets method

  1. @override
void gets(
  1. Logic other
)
override

Connects this Logic directly to be driven by other.

Every time other transitions (glitches), this signal will transition the same way.

Implementation

@override
void gets(Logic other) {
  if (other.width != width) {
    throw SignalWidthMismatchException(other, width);
  }

  var index = 0;
  for (final element in leafElements) {
    element <= other.getRange(index, index + element.width);

    index += element.width;
  }
}