slang::ast::FieldSymbol class

Represents a field member of a struct or union.

Base classes

class VariableSymbol
Represents a variable declaration.

Public variables

uint32_t bitOffset
uint32_t fieldIndex
The index of the field within its parent structure.
RandMode randMode
If this field was marked with random qualifier, the mode indicated by that qualifier.

Variable documentation

uint32_t slang::ast::FieldSymbol::bitOffset

The offset of the field within its parent structure or union, in bits. For unpacked types this offset is in "selectable bits" which is how overlapping drivers to a given field are expressed, but don't necessarily correspond to how many bits would be used if the entire type were serialized.