Fix toggle coverage dataDeclp error on multi-edge driven signals.

This commit is contained in:
Wilson Snyder
2024-02-08 19:21:44 -05:00
parent be471e9ccc
commit a23cf1ceea
7 changed files with 56 additions and 3 deletions
+4 -1
View File
@@ -48,6 +48,8 @@ class CoverageJoinVisitor final : public VNVisitor {
V3DupFinder dupFinder; // Duplicate code detection
// Hash all of the original signals we toggle cover
for (AstCoverToggle* nodep : m_toggleps) dupFinder.insert(nodep->origp());
if (dumpLevel() || debug() >= 9)
dupFinder.dumpFile(v3Global.debugFilename("coveragejoin") + ".hash", false);
// Find if there are any duplicates
for (AstCoverToggle* nodep : m_toggleps) {
// nodep->backp() is null if we already detected it's a duplicate and unlinked earlier
@@ -85,7 +87,8 @@ class CoverageJoinVisitor final : public VNVisitor {
}
// VISITORS
void visit(AstNetlist* nodep) override {
void visit(AstActive* nodep) override {
m_toggleps.clear();
// Find all Coverage's
iterateChildren(nodep);
// Simplify