Generate one trigger per SenItem instead of per SenTree (#5483)

This commit is contained in:
Geza Lore
2024-09-25 10:35:50 +01:00
committed by GitHub
parent 6c61a9aff3
commit 3bc09d49fb
10 changed files with 253 additions and 186 deletions
+6 -1
View File
@@ -31,7 +31,7 @@
#include "V3Clock.h"
#include "V3Sched.h"
#include "V3Const.h"
VL_DEFINE_DEBUG_FUNCTIONS;
@@ -176,6 +176,11 @@ public:
// CONSTRUCTORS
explicit ClockVisitor(AstNetlist* netlistp) {
m_evalp = netlistp->evalp();
// Simplify all SenTrees
for (AstSenTree* senTreep = netlistp->topScopep()->senTreesp(); senTreep;
senTreep = VN_AS(senTreep->nextp(), SenTree)) {
V3Const::constifyExpensiveEdit(senTreep);
}
iterate(netlistp);
}
~ClockVisitor() override = default;