Fix ice40's getBudgetOverride() to override only for COUT -> CIN

This commit is contained in:
Eddie Hung 2018-08-06 08:22:08 -07:00
parent d0312514bd
commit 0f3459dbe5

View File

@ -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)