mirror of
https://github.com/verilator/verilator.git
synced 2026-09-02 02:38:15 +02:00
Fix skipping non-constrained enum constraining when inside object of other class (#8075)
Signed-off-by: Kornel Uriasz <[email protected]>
This commit is contained in:
@@ -5463,6 +5463,8 @@ class RandomizeVisitor final : public VNVisitor {
|
||||
AstEnumDType* const enumDtp
|
||||
= VN_CAST(subVarp->dtypep()->skipRefToEnump(), EnumDType);
|
||||
if (enumDtp) {
|
||||
// Do not emit when enum isn't constrained
|
||||
if (!subVarp->user3()) return;
|
||||
emitEnumConstraint(smtName, enumDtp);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user