diff options
author | Clifford Wolf <clifford@clifford.at> | 2018-06-20 12:57:38 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2018-06-20 12:57:38 +0200 |
commit | cb9c6c6ef271a6f5297d74c81807bca01a0d8319 (patch) | |
tree | a186af7f47bf814c3705578ee7a73150a0e7ccf8 /ice40/arch.cc | |
parent | c3837027b22b67a5079d84419bae20c4d545430b (diff) | |
download | nextpnr-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.cc | 5 |
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 |