port property

  1. @override
Logic get port
override

Provides a reference to a Logic on an interface in this reference.

For inputs and inOuts, this is the internal interface port if it exists. Otherwise, if the port is directionless or an output, this is the external interface port.

Implementation

@override
Logic get port => (!isDirectionless &&
            (direction == PortDirection.input ||
                direction == PortDirection.inOut)
        ? (interfaceReference.internalInterface ??
            interfaceReference.interface)
        : interfaceReference.interface)
    .port(portName);