isOutput method

bool isOutput(
  1. Logic signal
)

Returns true iff signal is the same Logic as the output port of this Module with the same name.

Note that if signal is a LogicStructure which contains an output port, but is not itself a port, this will return false.

Implementation

bool isOutput(Logic signal) =>
    _outputs[signal.name] == signal ||
    (signal.isArrayMember && isOutput(signal.parentStructure!));