mirror of
https://github.com/verilator/verilator.git
synced 2026-09-02 10:48:27 +02:00
Fix randcase under fork (#6843).
This commit is contained in:
@@ -2634,6 +2634,7 @@ class RandomizeVisitor final : public VNVisitor {
|
||||
const std::string name = "__Vrandcase" + cvtToStr(m_randCaseNum++);
|
||||
AstVar* const randVarp = new AstVar{fl, VVarType::BLOCKTEMP, name, sumDTypep};
|
||||
randVarp->noSubst(true);
|
||||
randVarp->lifetime(VLifetime::AUTOMATIC_EXPLICIT);
|
||||
if (m_ftaskp) randVarp->funcLocal(true);
|
||||
AstNodeExpr* sump = new AstConst{fl, AstConst::WidthedValue{}, 64, 0};
|
||||
AstNodeIf* const firstIfsp
|
||||
|
||||
Reference in New Issue
Block a user