addPortMap method

PortMap addPortMap(
  1. PortReference port,
  2. InterfacePortReference intfPort, {
  3. 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);