TypedPortReference<PortType extends Logic> constructor
- PortReference reference
Creates a typed view of reference.
Throws a RohdBridgeException if the referenced port is not a PortType.
Implementation
factory TypedPortReference(PortReference reference) {
if (reference.port is! PortType) {
throw RohdBridgeException('Port $reference on ${reference.module} is a '
'${reference.port.runtimeType}, not a $PortType.');
}
return TypedPortReference<PortType>._(reference);
}