slang::PortSymbol class

Contents

Represents the public-facing side of a module / program / interface port. The port symbol itself is not directly referenceable from within the instance; it can however connect directly to a symbol that is.

Base classes

class ValueSymbol

Public variables

PortDirection direction
The direction of data flowing across the port.
const Symbol* internalSymbol
const Expression* defaultValue
An optional default value that is used for the port when no connection is provided.

Variable documentation

const Symbol* slang::PortSymbol::internalSymbol

An instance-internal symbol that this port connects to, if any. Ports that do not connect directly to an internal symbol will have this set to nullptr.