slang::BindContext::RandomizeDetails struct

Contents

A collection of information needed to bind names inside inline constraint blocks for class and scope randomize function calls.

Public variables

const Scope* classType
The scope of the class type itself, if randomizing a class.
span<const string_view> nameRestrictions
flat_hash_set<const Symbol*> scopeRandVars

Variable documentation

span<const string_view> slang::BindContext::RandomizeDetails::nameRestrictions

A list of names to which class-scoped lookups are restricted. If empty, the lookup is unrestricted and all names are first tried in class-scope.

flat_hash_set<const Symbol*> slang::BindContext::RandomizeDetails::scopeRandVars

A set of variables for a scope randomize call that should be treated as a rand variable.