class final
DistExpressionDenotes an expression along with a distribution of probabilities for that expression.
This can't occur in normal expression code; it's used as part of constraints and properties (and always has the type 'void').
Base classes
- class Expression
- The base class for all expressions in SystemVerilog.
Public types
- struct DistItem
- A single distribution item.
- struct DistWeight
- A weight to apply to a distribution.
Public functions
- const Expression& left() const
-
std::
span<DistItem const> items() const - const DistWeight* defaultWeight() const
Function documentation
const Expression& slang:: ast:: DistExpression:: left() const
Returns | the left-hand side of the distribution operator. |
---|
const DistWeight* slang:: ast:: DistExpression:: defaultWeight() const
Returns | the default weight, if one is specified. |
---|