Skip to content

Commit

Permalink
gowin: Himbaechel. Global router BUGFIX.
Browse files Browse the repository at this point in the history
Ignore networks without users.

Signed-off-by: YRabbit <[email protected]>
  • Loading branch information
yrabbit authored and gatecat committed Jan 29, 2024
1 parent a65ddff commit b05cb86
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions himbaechel/uarch/gowin/globals.cc
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,6 @@ struct GowinGlobalRouter
break;
}
}
if (!routed) {
ctx->unbindWire(src);
}
return routed;
}

Expand Down Expand Up @@ -280,7 +277,10 @@ struct GowinGlobalRouter
for (auto &net : ctx->nets) {
NetInfo *ni = net.second.get();
CellInfo *drv = ni->driver.cell;
if (drv == nullptr) {
if (drv == nullptr || ni->users.empty()) {
if (ctx->verbose) {
log_info("skip empty or driverless net:%s\n", ctx->nameOf(ni));
}
continue;
}
if (driver_is_buf(ni->driver)) {
Expand All @@ -294,7 +294,10 @@ struct GowinGlobalRouter
for (auto &net : ctx->nets) {
NetInfo *ni = net.second.get();
CellInfo *drv = ni->driver.cell;
if (drv == nullptr) {
if (drv == nullptr || ni->users.empty()) {
if (ctx->verbose) {
log_info("skip empty or driverless net:%s\n", ctx->nameOf(ni));
}
continue;
}
if (driver_is_clksrc(ni->driver)) {
Expand Down

0 comments on commit b05cb86

Please sign in to comment.