class
#include <slang/symbols/InstanceSymbols.h>
UnknownModuleSymbol Represents an instance of some unknown module (or interface / program). This is a placeholder in the AST so that we don't record further errors after the initial one about the unknown module itself.
Base classes
- class Symbol
Public functions
- auto getPortConnections() const -> span<const AssertionExpr*const >
- auto getPortNames() const -> span<string_view const >
- auto isChecker() const -> bool
Public variables
- string_view moduleName
- The name of the unknown module being instantiated.
- span<const Expression*const > paramExpressions
Function documentation
span<const AssertionExpr*const > slang:: UnknownModuleSymbol:: getPortConnections() const
Gets the self-determined expressions that are assigned to the ports in the instantiation. These aren't necessarily correctly typed since we can't know the destination type of each port.
span<string_view const > slang:: UnknownModuleSymbol:: getPortNames() const
The names of the ports that were connected in the instance. If the names are not known, because ordered connection syntax was used, the associated port name will be the empty string.
bool slang:: UnknownModuleSymbol:: isChecker() const
Returns true if we've determined this must be a checker instance based on the syntax used to instantiate it.
Variable documentation
span<const Expression*const > slang:: UnknownModuleSymbol:: paramExpressions
The self-determined expressions that are assigned to the parameters in the instantiation. These aren't necessarily correctly typed since we can't know the destination type of each parameter.