aboutsummaryrefslogtreecommitdiffstats
path: root/ice40/arch.cc
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2018-06-20 12:57:38 +0200
committerClifford Wolf <clifford@clifford.at>2018-06-20 12:57:38 +0200
commitcb9c6c6ef271a6f5297d74c81807bca01a0d8319 (patch)
treea186af7f47bf814c3705578ee7a73150a0e7ccf8 /ice40/arch.cc
parentc3837027b22b67a5079d84419bae20c4d545430b (diff)
downloadnextpnr-cb9c6c6ef271a6f5297d74c81807bca01a0d8319.tar.gz
nextpnr-cb9c6c6ef271a6f5297d74c81807bca01a0d8319.tar.bz2
nextpnr-cb9c6c6ef271a6f5297d74c81807bca01a0d8319.zip
Changes to estimatePosition API
Signed-off-by: Clifford Wolf <clifford@clifford.at>
Diffstat (limited to 'ice40/arch.cc')
-rw-r--r--ice40/arch.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/ice40/arch.cc b/ice40/arch.cc
index ba372410..3dcd9cb0 100644
--- a/ice40/arch.cc
+++ b/ice40/arch.cc
@@ -295,13 +295,12 @@ std::string Arch::getBelPackagePin(BelId bel) const
}
// -----------------------------------------------------------------------
-bool Arch::estimatePosition(BelId bel, int &x, int &y) const
+void Arch::estimatePosition(BelId bel, int &x, int &y, bool &gb) const
{
assert(bel != BelId());
x = chip_info->bel_data[bel.index].x;
y = chip_info->bel_data[bel.index].y;
-
- return chip_info->bel_data[bel.index].type != TYPE_SB_GB;
+ gb = chip_info->bel_data[bel.index].type == TYPE_SB_GB;
}
delay_t Arch::estimateDelay(WireId src, WireId dst) const