diff options
author | Eddie Hung <eddieh@ece.ubc.ca> | 2018-08-06 08:22:08 -0700 |
---|---|---|
committer | Eddie Hung <eddieh@ece.ubc.ca> | 2018-08-06 08:22:08 -0700 |
commit | 0f3459dbe56619402469897f1857d06b2b3d3bb7 (patch) | |
tree | f61cb156922329d2f08e0ae991ab59e59af2f898 /ice40 | |
parent | d0312514bd29fa30d1a214d746ce4f1e176cac32 (diff) | |
download | nextpnr-0f3459dbe56619402469897f1857d06b2b3d3bb7.tar.gz nextpnr-0f3459dbe56619402469897f1857d06b2b3d3bb7.tar.bz2 nextpnr-0f3459dbe56619402469897f1857d06b2b3d3bb7.zip |
Fix ice40's getBudgetOverride() to override only for COUT -> CIN
Diffstat (limited to 'ice40')
-rw-r--r-- | ice40/arch.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ice40/arch.cc b/ice40/arch.cc index b8bb13ea..1e7a383b 100644 --- a/ice40/arch.cc +++ b/ice40/arch.cc @@ -640,7 +640,7 @@ std::vector<GroupId> Arch::getGroupGroups(GroupId group) const bool Arch::getBudgetOverride(const NetInfo *net_info, const PortRef &sink, delay_t &budget) const { const auto &driver = net_info->driver; - if (driver.port == id_cout) { + if (driver.port == id_cout && sink.port == id_cin) { auto driver_loc = getBelLocation(driver.cell->bel); auto sink_loc = getBelLocation(sink.cell->bel); if (driver_loc.y == sink_loc.y) |