Skip to content

Commit

Permalink
grt: Issue an error if design does not have any routable net (with at…
Browse files Browse the repository at this point in the history
… least 2 terms).

Signed-off-by: Christian Costa <[email protected]>
  • Loading branch information
titan73 committed Aug 9, 2024
1 parent 44d89bc commit 0259c27
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/grt/src/GlobalRouter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,19 @@ void GlobalRouter::globalRoute(bool save_guides,
bool start_incremental,
bool end_incremental)
{
bool has_routable_nets = false;
for (auto net : db_->getChip()->getBlock()->getNets()) {
if (net->getITerms().size() + net->getBTerms().size() > 1) {
has_routable_nets = true;
break;
}
}
if (!has_routable_nets) {
logger_->error(GRT,
5,
"Design does not have any routable net "
"(with at least 2 terms)");
}
if (start_incremental && end_incremental) {
logger_->error(GRT,
251,
Expand Down

0 comments on commit 0259c27

Please sign in to comment.