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.

Implementation

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