Port constructor
Implementation
Port(String name, [int width = 1])
: super(
name: name,
width: width,
// make port names mergeable so we don't duplicate the ports
// when calling connectIO
naming: Naming.mergeable,
) {
if (!Sanitizer.isSanitary(name)) {
throw InvalidPortNameException(name);
}
}