mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 10:03:44 +02:00
This commit is contained in:
@@ -2771,6 +2771,8 @@ class ParamVisitor final : public VNVisitor {
|
||||
const auto itm = workQueue.cbegin();
|
||||
AstNodeModule* const modp = itm->second;
|
||||
workQueue.erase(itm);
|
||||
// Starting a new module, so what was learned about the last one no longer holds.
|
||||
v3Global.rootp()->clearContainingModules();
|
||||
|
||||
// Process once; note user2 will be cleared on specialization, so we will do the
|
||||
// specialized module if needed
|
||||
@@ -3829,6 +3831,8 @@ void V3Param::param(AstNetlist* rootp) {
|
||||
|
||||
if (dumpTreeEitherLevel() >= 9) V3LinkDotIfaceCapture::dumpEntries("before V3Param");
|
||||
{ ParamTop{rootp}; }
|
||||
// The memo is only good while parameterizing, and the tree moves after.
|
||||
rootp->clearContainingModules();
|
||||
V3LinkDotIfaceCapture::purgeStaleRefs();
|
||||
if (dumpTreeEitherLevel() >= 9) V3LinkDotIfaceCapture::dumpEntries("after V3Param");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user