diff options
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; } |