From 2f9810a346e35de0dfe00607ee462436af545429 Mon Sep 17 00:00:00 2001 From: David Shah Date: Sun, 17 Jun 2018 16:18:59 +0200 Subject: Speed up placer Signed-off-by: David Shah --- common/place_sa.cc | 4 ---- common/route.cc | 4 ++-- 2 files changed, 2 insertions(+), 6 deletions(-) (limited to 'common') diff --git a/common/place_sa.cc b/common/place_sa.cc index 12ca30d8..a0c32c1d 100644 --- a/common/place_sa.cc +++ b/common/place_sa.cc @@ -191,16 +191,12 @@ static bool try_swap_position(Design *design, CellInfo *cell, BelId newBel, other_cell = design->cells[other]; chip.unbindBel(newBel); } - if (!isValidBelForCell(design, cell, newBel)) - goto swap_fail; for (const auto &port : cell->ports) if (port.second.net != nullptr) update.insert(port.second.net); if (other != IdString()) { - if (!isValidBelForCell(design, other_cell, oldBel)) - goto swap_fail; for (const auto &port : other_cell->ports) if (port.second.net != nullptr) update.insert(port.second.net); diff --git a/common/route.cc b/common/route.cc index 247c8840..4cd2aa99 100644 --- a/common/route.cc +++ b/common/route.cc @@ -440,8 +440,8 @@ void route_design(Design *design, bool verbose) "routing.\n", int(netsQueue.size())); - ripup_pip_penalty *= 1.5; - ripup_wire_penalty *= 1.5; + ripup_pip_penalty += 15; + ripup_wire_penalty += 15; } } -- cgit v1.2.3