port property

Logic port
latefinal

The actual Logic port that this reference points to.

This will resolve to the input, output, or inOut port with portName on the module. Throws an exception if the port is not found.

Implementation

late final Logic port = module.tryInput(portName) ??
    module.tryOutput(portName) ??
    module.tryInOut(portName) ??
    (throw RohdBridgeException('Port $portName not found in $module'));