Skip to content

Commit

Permalink
Don't include bin num in key
Browse files Browse the repository at this point in the history
Signed-off-by: Ryszard Rozak <rrozak@antmicro.com>
  • Loading branch information
RRozak committed Jan 13, 2025
1 parent ecf9227 commit aa59fec
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/V3EmitCFunc.h
Original file line number Diff line number Diff line change
Expand Up @@ -609,8 +609,7 @@ class EmitCFunc VL_NOT_FINAL : public EmitCConstInit {
void visit(AstCoverDecl* nodep) override {
putns(nodep, "vlSelf->__vlCoverInsert("); // As Declared in emitCoverageDecl
puts("&(vlSymsp->__Vcoverage[");
std::string key = nodep->modName() + nodep->varName() + " "
+ cvtToStr(nodep->dataDeclThisp()->binNum());
std::string key = nodep->modName() + nodep->varName();
if (m_indices.find(key) == m_indices.end()) {
m_indices[key] = nodep->dataDeclThisp()->binNum();
}
Expand Down Expand Up @@ -640,8 +639,8 @@ class EmitCFunc VL_NOT_FINAL : public EmitCConstInit {
puts(");\n");
}
void visit(AstCoverInc* nodep) override {
std::string key = nodep->declp()->modName() + nodep->declp()->varName() + " "
+ cvtToStr(nodep->declp()->dataDeclThisp()->binNum());
std::string key = nodep->declp()->modName() + nodep->declp()->varName();
std::cout << std::endl << key << std::endl;
if (m_indices.find(key) == m_indices.end()) {
m_indices[key] = nodep->declp()->dataDeclThisp()->binNum();
}
Expand Down

0 comments on commit aa59fec

Please sign in to comment.