mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 10:03:44 +02:00
Fix toggle coverage dataDeclp error on multi-edge driven signals.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user