aboutsummaryrefslogtreecommitdiffstats
path: root/common/placer1.cc
diff options
context:
space:
mode:
authorSergiusz Bazanski <q3k@q3k.org>2018-07-25 11:32:21 +0100
committerSergiusz Bazanski <q3k@q3k.org>2018-07-25 11:32:21 +0100
commitaad0d3eb3587b0c09ea89731e5387cd70338b375 (patch)
tree44f4270b4e1dffc62dd2f7b30082ddfbee91470a /common/placer1.cc
parent62bcda87bdd6a847b4ff27e59cf122caa7efba11 (diff)
downloadnextpnr-aad0d3eb3587b0c09ea89731e5387cd70338b375.tar.gz
nextpnr-aad0d3eb3587b0c09ea89731e5387cd70338b375.tar.bz2
nextpnr-aad0d3eb3587b0c09ea89731e5387cd70338b375.zip
ice40: support PLL40_*_PAD, fix pass-through LUT for LOCK
Diffstat (limited to 'common/placer1.cc')
-rw-r--r--common/placer1.cc8
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));
}