diff options
| author | gatecat <gatecat@ds0.me> | 2022-12-07 10:27:58 +0100 | 
|---|---|---|
| committer | gatecat <gatecat@ds0.me> | 2022-12-07 10:27:58 +0100 | 
| commit | 603b60da8dcadf23eec8609ffc128f8f191c1122 (patch) | |
| tree | 11ee560444efa1bd2ec56994cb50641290c73662 /common/place/placer_heap.cc | |
| parent | d1afd6c0f1f8452d7461bbf33c84dbfd59236d03 (diff) | |
| download | nextpnr-603b60da8dcadf23eec8609ffc128f8f191c1122.tar.gz nextpnr-603b60da8dcadf23eec8609ffc128f8f191c1122.tar.bz2 nextpnr-603b60da8dcadf23eec8609ffc128f8f191c1122.zip  | |
api: add explain_invalid option to isBelLocationValid
Signed-off-by: gatecat <gatecat@ds0.me>
Diffstat (limited to 'common/place/placer_heap.cc')
| -rw-r--r-- | common/place/placer_heap.cc | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/common/place/placer_heap.cc b/common/place/placer_heap.cc index 8da4ee2e..0dfc29e6 100644 --- a/common/place/placer_heap.cc +++ b/common/place/placer_heap.cc @@ -327,7 +327,7 @@ class HeAPPlacer          bool any_bad_placements = false;          for (auto bel : ctx->getBels()) {              CellInfo *cell = ctx->getBoundBelCell(bel); -            if (!ctx->isBelLocationValid(bel)) { +            if (!ctx->isBelLocationValid(bel, /* explain_invalid */ true)) {                  std::string cell_text = "no cell";                  if (cell != nullptr)                      cell_text = std::string("cell '") + ctx->nameOf(cell) + "'"; @@ -434,7 +434,7 @@ class HeAPPlacer                  }                  ctx->bindBel(bel, cell, STRENGTH_USER); -                if (!ctx->isBelLocationValid(bel)) { +                if (!ctx->isBelLocationValid(bel, /* explain_invalid */ true)) {                      IdString bel_type = ctx->getBelType(bel);                      log_error("Bel \'%s\' of type \'%s\' is not valid for cell "                                "\'%s\' of type \'%s\'\n",  | 
