mirror of
https://github.com/verilator/verilator.git
synced 2026-08-31 18:14:33 +02:00
Generate one trigger per SenItem instead of per SenTree (#5483)
This commit is contained in:
+6
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user