Skip to content

Commit

Permalink
check: Omit private wires in loop report
Browse files Browse the repository at this point in the history
  • Loading branch information
povik committed Mar 4, 2024
1 parent b3a094a commit 93dbd13
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions passes/cmds/check.cc
Original file line number Diff line number Diff line change
Expand Up @@ -338,12 +338,15 @@ struct CheckPass : public Pass {
MatchingEdgePrinter printer(message, sigmap, prev, bit);
printer.add_edges_from_cell(driver);

std::string wire_src;
if (wire->has_attribute(ID::src)) {
std::string src_attr = wire->get_src_attribute();
wire_src = stringf(" source: %s", src_attr.c_str());
if (wire->name.isPublic()) {
std::string wire_src;
if (wire->has_attribute(ID::src)) {
std::string src_attr = wire->get_src_attribute();
wire_src = stringf(" source: %s", src_attr.c_str());
}
message += stringf(" wire %s%s\n", log_signal(SigBit(wire, pair.second)), wire_src.c_str());
}
message += stringf(" wire %s%s\n", log_signal(SigBit(wire, pair.second)), wire_src.c_str());

prev = bit;
}
log_warning("%s", message.c_str());
Expand Down

0 comments on commit 93dbd13

Please sign in to comment.