addPortMap method
- PortReference port,
- InterfacePortReference intfPort, {
- bool connect = false,
Creates a mapping between a module port and an interface port.
This method establishes a connection mapping between port
(a port on
this module) and intfPort
(a port on an Interface).
When connect
is true, the physical connection is made immediately.
Otherwise, the mapping is recorded but the actual connection is deferred.
Returns a PortMap object representing the established mapping.
Implementation
PortMap addPortMap(PortReference port, InterfacePortReference intfPort,
{bool connect = false}) =>
intfPort.interfaceReference.addPortMap(intfPort, port, connect: connect);