nexus: Tweak delay heuristics
Signed-off-by: David Shah <dave@ds0.me>
This commit is contained in:
parent
a69c595802
commit
c7ad3cece6
@ -545,19 +545,21 @@ delay_t Arch::estimateDelay(WireId src, WireId dst) const
|
|||||||
int dst_x = dst.tile % chip_info->width, dst_y = dst.tile / chip_info->width;
|
int dst_x = dst.tile % chip_info->width, dst_y = dst.tile / chip_info->width;
|
||||||
int dist_x = std::abs(src_x - dst_x);
|
int dist_x = std::abs(src_x - dst_x);
|
||||||
int dist_y = std::abs(src_y - dst_y);
|
int dist_y = std::abs(src_y - dst_y);
|
||||||
return 100 * dist_x + 100 * dist_y;
|
return 100 * dist_x + 100 * dist_y + 250;
|
||||||
}
|
}
|
||||||
delay_t Arch::predictDelay(const NetInfo *net_info, const PortRef &sink) const
|
delay_t Arch::predictDelay(const NetInfo *net_info, const PortRef &sink) const
|
||||||
{
|
{
|
||||||
if (net_info->driver.cell == nullptr || net_info->driver.cell->bel == BelId() || sink.cell->bel == BelId())
|
if (net_info->driver.cell == nullptr || net_info->driver.cell->bel == BelId() || sink.cell->bel == BelId())
|
||||||
return 0;
|
return 0;
|
||||||
|
if (sink.port == id_FCI)
|
||||||
|
return 0;
|
||||||
int src_x = net_info->driver.cell->bel.tile % chip_info->width,
|
int src_x = net_info->driver.cell->bel.tile % chip_info->width,
|
||||||
src_y = net_info->driver.cell->bel.tile / chip_info->width;
|
src_y = net_info->driver.cell->bel.tile / chip_info->width;
|
||||||
|
|
||||||
int dst_x = sink.cell->bel.tile % chip_info->width, dst_y = sink.cell->bel.tile / chip_info->width;
|
int dst_x = sink.cell->bel.tile % chip_info->width, dst_y = sink.cell->bel.tile / chip_info->width;
|
||||||
int dist_x = std::abs(src_x - dst_x);
|
int dist_x = std::abs(src_x - dst_x);
|
||||||
int dist_y = std::abs(src_y - dst_y);
|
int dist_y = std::abs(src_y - dst_y);
|
||||||
return 100 * dist_x + 100 * dist_y;
|
return 100 * dist_x + 100 * dist_y + 250;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Arch::getBudgetOverride(const NetInfo *net_info, const PortRef &sink, delay_t &budget) const { return false; }
|
bool Arch::getBudgetOverride(const NetInfo *net_info, const PortRef &sink, delay_t &budget) const { return false; }
|
||||||
|
Loading…
Reference in New Issue
Block a user