slang::NetType class


Base class for all net types in SystemVerilog.

There is a parallel type system for nets that exists independently from the data type system. Most nets will be one of the built in types, but user defined net types can exist too.

Base classes

class Symbol

Public functions

auto getAliasTarget() const -> const NetType*
If this net type is an alias, gets the target of the alias. Otherwise returns nullptr.
auto getCanonical() const -> const NetType&
Gets the canonical net type for this net type, which involves unwrapping any aliases.
auto getDataType() const -> const Type&
Gets the data type for nets of this particular net type.
auto getResolutionFunction() const -> const SubroutineSymbol*
Gets the custom resolution function for this net type, if it has one.