isPort method

bool isPort(
  1. Logic signal
)

Returns true iff signal is the same Logic as an input, output, or inOut port of this Module with the same name.

Implementation

bool isPort(Logic signal) =>
    isInput(signal) || isOutput(signal) || isInOut(signal);