mirror of
https://github.com/verilator/verilator.git
synced 2026-09-02 02:38:15 +02:00
@@ -1390,15 +1390,6 @@ class RandomizeVisitor final : public VNVisitor {
|
||||
return new AstVar{fl, VVarType::VAR, uniqueNamep->get(""),
|
||||
dtypep->findBasicDType(VBasicDTypeKwd::UINT32)};
|
||||
};
|
||||
auto handleUnsupportedStruct = [&](AstNodeExpr* tempElementp) {
|
||||
if (VN_IS(tempElementp->dtypep()->skipRefp(), StructDType)) {
|
||||
tempElementp->dtypep()->v3warn(
|
||||
E_UNSUPPORTED,
|
||||
"Unsupported: CreateArrayForeachLoop currently does not support "
|
||||
"this data type. (Struct-Array unconstrained "
|
||||
"randomization is not fully supported)");
|
||||
}
|
||||
};
|
||||
auto createForeachLoop = [&](AstNodeExpr* tempElementp, AstVar* randLoopIndxp) {
|
||||
AstSelLoopVars* const randLoopVarp
|
||||
= new AstSelLoopVars{fl, exprp->cloneTree(false), randLoopIndxp};
|
||||
@@ -1422,7 +1413,6 @@ class RandomizeVisitor final : public VNVisitor {
|
||||
tempElementp->dtypep(tempDTypep->subDTypep());
|
||||
tempDTypep = tempDTypep->virtRefDTypep();
|
||||
}
|
||||
handleUnsupportedStruct(tempElementp);
|
||||
stmtsp = createForeachLoop(tempElementp, randLoopIndxp);
|
||||
return stmtsp;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user