aboutsummaryrefslogtreecommitdiffstats
path: root/common/archcheck.cc
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2018-08-08 10:27:08 +0200
committerDavid Shah <davey1576@gmail.com>2018-08-09 10:39:53 +0200
commit5ddde5c49ffaf6c2f827e9805caac0b7dd43f4a0 (patch)
tree3ce490a0df0ddce0487277cee8f55720247f8178 /common/archcheck.cc
parenta9b6543361ba35202cbe6c6c16860c3e8a388bc4 (diff)
downloadnextpnr-5ddde5c49ffaf6c2f827e9805caac0b7dd43f4a0.tar.gz
nextpnr-5ddde5c49ffaf6c2f827e9805caac0b7dd43f4a0.tar.bz2
nextpnr-5ddde5c49ffaf6c2f827e9805caac0b7dd43f4a0.zip
Add pip locations
Signed-off-by: Clifford Wolf <clifford@clifford.at>
Diffstat (limited to 'common/archcheck.cc')
-rw-r--r--common/archcheck.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/archcheck.cc b/common/archcheck.cc
index 5059066d..3d9e4e76 100644
--- a/common/archcheck.cc
+++ b/common/archcheck.cc
@@ -75,7 +75,7 @@ void archcheck_locs(const Context *ctx)
log_assert(0 <= loc.z);
log_assert(loc.x < ctx->getGridDimX());
log_assert(loc.y < ctx->getGridDimY());
- log_assert(loc.z < ctx->getTileDimZ(loc.x, loc.y));
+ log_assert(loc.z < ctx->getTileBelDimZ(loc.x, loc.y));
BelId bel2 = ctx->getBelByLocation(loc);
dbg(" ... %s\n", ctx->getBelName(bel2).c_str(ctx));
@@ -88,7 +88,7 @@ void archcheck_locs(const Context *ctx)
dbg("> %d %d\n", x, y);
std::unordered_set<int> usedz;
- for (int z = 0; z < ctx->getTileDimZ(x, y); z++) {
+ for (int z = 0; z < ctx->getTileBelDimZ(x, y); z++) {
BelId bel = ctx->getBelByLocation(Loc(x, y, z));
if (bel == BelId())
continue;