3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-24 01:25:33 +00:00
This commit is contained in:
Alain Dargelas 2024-11-14 16:36:12 -08:00
parent 0379a8b287
commit 6297d3763d

View file

@ -49,6 +49,8 @@ struct ReconstructBusses : public ScriptPass {
}
}
if (!valid_index) {
log_warning("Invalid net name %s\n", prefix.c_str());
log_flush();
continue;
}
@ -62,9 +64,12 @@ struct ReconstructBusses : public ScriptPass {
break;
}
}
if (end == prefix.begin())
if (end == prefix.begin()) {
// Last _ didn't mean there was another _
log_warning("Invalid net name %s\n", prefix.c_str());
log_flush();
continue;
}
std::string no_bitblast_prefix;
std::copy(prefix.begin(), end, std::back_inserter(no_bitblast_prefix));
wire_groups[no_bitblast_prefix].push_back(wire);