Returns true iff signal is the same Logic as an input, output, or inOut port of this Module with the same name.
signal
bool isPort(Logic signal) => isInput(signal) || isOutput(signal) || isInOut(signal);