slang::ast::MultiPortSymbol class

Represents a multi-port, which is a port symbol that externally appears as a single connection but internally connects to multiple names, potentially with varying directions.

Base classes

class Symbol

Public functions

auto hasInitializer() const -> bool
Placeholder functions to enable generic code. Multi-ports never have initializers.

Public variables

ArgumentDirection direction
bool isNullPort

Variable documentation

ArgumentDirection slang::ast::MultiPortSymbol::direction

The direction of data flowing across the various ports. This is the most restrictive aggregated direction out of all the ports. You need to check each individual port to know how the data actually flows.

bool slang::ast::MultiPortSymbol::isNullPort

Always set to false on multi-ports; included for parity for PortSymbols so that generic code can work on both types.