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 | |
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')
-rw-r--r-- | ice40/arch.cc | 5 | ||||
-rw-r--r-- | ice40/arch.h | 2 |
2 files changed, 3 insertions, 4 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 diff --git a/ice40/arch.h b/ice40/arch.h index 4a2f6e50..d9631c11 100644 --- a/ice40/arch.h +++ b/ice40/arch.h @@ -753,7 +753,7 @@ struct Arch : BaseCtx // ------------------------------------------------- - bool estimatePosition(BelId bel, int &x, int &y) const; + void estimatePosition(BelId bel, int &x, int &y, bool &gb) const; delay_t estimateDelay(WireId src, WireId dst) const; delay_t getDelayEpsilon() const { return 10; } float getDelayNS(delay_t v) const { return v * 0.001; } |