mirror of
https://github.com/verilator/verilator.git
synced 2026-08-31 18:14:33 +02:00
This commit is contained in:
+6
-1
@@ -3264,7 +3264,12 @@ class RandomizeVisitor final : public VNVisitor {
|
||||
return;
|
||||
}
|
||||
|
||||
if (nodep->name() != "randomize") return;
|
||||
if (nodep->name() != "randomize") {
|
||||
// Iterate children so nested rand_mode/constraint_mode/randomize calls
|
||||
// inside function arguments are still visited and transformed
|
||||
iterateChildren(nodep);
|
||||
return;
|
||||
}
|
||||
|
||||
if (nodep->classOrPackagep() && nodep->classOrPackagep()->name() == "std") {
|
||||
// Handle std::randomize; create wrapper function that calls basicStdRandomization on
|
||||
|
||||
Reference in New Issue
Block a user