slang::ast::RangeSelectExpression class

Represents a range selection expression.

Base classes

class Expression
The base class for all expressions in SystemVerilog.

Public functions

auto value() const -> const Expression&
auto value() -> Expression&
auto left() const -> const Expression&
auto right() const -> const Expression&
auto getSelectionKind() const -> RangeSelectionKind
auto isConstantSelect(EvalContext& context) const -> bool

Function documentation

const Expression& slang::ast::RangeSelectExpression::value() const

Returns the value being selected from

Expression& slang::ast::RangeSelectExpression::value()

Returns the value being selected from

const Expression& slang::ast::RangeSelectExpression::left() const

Returns the left-hand side of the range

const Expression& slang::ast::RangeSelectExpression::right() const

Returns the right-hand side of the range

RangeSelectionKind slang::ast::RangeSelectExpression::getSelectionKind() const

Returns the kind of selection (simple or indexed).

bool slang::ast::RangeSelectExpression::isConstantSelect(EvalContext& context) const

Returns true if this is a constant selection