isInput method

bool isInput(
  1. Logic signal
)

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

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

Implementation

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