rohd icon indicating copy to clipboard operation
rohd copied to clipboard

`PairInterface` should enable receiving/driving all sub-interfaces as well

Open mkorbel1 opened this issue 1 year ago • 0 comments

Motivation

When you add a sub-interface to a PairInterface, then if you ever use receiveAll or driveAll, it won't apply to all the subInterfaces. It would be nice if it did (maybe optionally?).

Desired solution

Something sort of like this:

  void receiveOther(PairInterface other, Iterable<PairDirection> tags) {
    super.receiveOther(other, tags);
    subInterfaces.forEach((subIntfName, subIntf) {
      subIntf.receiveOther(other.subInterfaces[subIntfName]!, tags);
    });
  }

Alternatives considered

No response

Additional details

No response

mkorbel1 avatar Nov 06 '23 22:11 mkorbel1