diff options
author | David Shah <davey1576@gmail.com> | 2018-07-25 11:04:26 +0000 |
---|---|---|
committer | David Shah <davey1576@gmail.com> | 2018-07-25 11:04:26 +0000 |
commit | 9bcdf2000901a49d96b3ccd16fcb154ff7abc7b3 (patch) | |
tree | addeb0d07b00e7206c0a9bc3810025f199919f85 /common/placer1.cc | |
parent | e39290b71299843eff858fb51543b99a06178a1d (diff) | |
parent | 2c34a50a7c45d3718629ada8691816497447afe4 (diff) | |
download | nextpnr-9bcdf2000901a49d96b3ccd16fcb154ff7abc7b3.tar.gz nextpnr-9bcdf2000901a49d96b3ccd16fcb154ff7abc7b3.tar.bz2 nextpnr-9bcdf2000901a49d96b3ccd16fcb154ff7abc7b3.zip |
Merge branch 'q3k/pll-pads' into 'master'
ice40: PLL40_*_PAD support
See merge request SymbioticEDA/nextpnr!21
Diffstat (limited to 'common/placer1.cc')
-rw-r--r-- | common/placer1.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/common/placer1.cc b/common/placer1.cc index f713fb88..4659da11 100644 --- a/common/placer1.cc +++ b/common/placer1.cc @@ -94,7 +94,13 @@ class SAPlacer BelType bel_type = ctx->getBelType(bel); if (bel_type != ctx->belTypeFromId(cell->type)) { log_error("Bel \'%s\' of type \'%s\' does not match cell " - "\'%s\' of type \'%s\'", + "\'%s\' of type \'%s\'\n", + loc_name.c_str(), ctx->belTypeToId(bel_type).c_str(ctx), cell->name.c_str(ctx), + cell->type.c_str(ctx)); + } + if (!ctx->isValidBelForCell(cell, bel)) { + log_error("Bel \'%s\' of type \'%s\' is not valid for cell " + "\'%s\' of type \'%s\'\n", loc_name.c_str(), ctx->belTypeToId(bel_type).c_str(ctx), cell->name.c_str(ctx), cell->type.c_str(ctx)); } |