slang::ast::RandSequenceStatement class final

Represents a randsequence statement.

Base classes

class Statement
The base class for all statements in SystemVerilog.

Public types

struct ProdBase
The base class for productions in a rule.
struct ProdItem
A production item, which invokes another production.
struct CodeBlockProd
A block of procedural code that runs as part of a rule.
struct IfElseProd
A production that chooses between items based on a condition.
struct RepeatProd
A production that repeats an item a number of times.
struct CaseItem
An item in a case production.
struct CaseProd
A production that chooses an item with a case statement.
struct Rule
A rule of a production, which is one of its alternatives.
struct Production
A production in the random sequence along with its rules.
enum class ProdKind { Item, CodeBlock, IfElse, Repeat, Case }
Specifies the kinds of productions that can appear in a rule.

Public variables

const RandSeqProductionSymbol* firstProduction
A pointer to the first production that starts the random sequence, or nullptr if the sequence is empty.
std::span<const Production> productions
A list of all productions in the random sequence.

Enum documentation

enum class slang::ast::RandSequenceStatement::ProdKind

Specifies the kinds of productions that can appear in a rule.

Enumerators
Item

A reference to another production, with optional arguments.

CodeBlock

A block of procedural code.

IfElse

A production chosen by an if-else condition.

Repeat

A production repeated a given number of times.

Case

A production chosen by a case statement.