aboutsummaryrefslogtreecommitdiffstats
path: root/common/place_sa.cc
diff options
context:
space:
mode:
authorDavid Shah <davey1576@gmail.com>2018-06-17 11:45:41 +0200
committerDavid Shah <davey1576@gmail.com>2018-06-17 11:45:41 +0200
commit3afce5ff5a6adfa1baccb4f4625005300b9a3862 (patch)
tree6217511802c19514a1168a4e6412d1268ac07fb3 /common/place_sa.cc
parentc604426341c75bc34b9d97ad5cd49cc28f9198fb (diff)
downloadnextpnr-3afce5ff5a6adfa1baccb4f4625005300b9a3862.tar.gz
nextpnr-3afce5ff5a6adfa1baccb4f4625005300b9a3862.tar.bz2
nextpnr-3afce5ff5a6adfa1baccb4f4625005300b9a3862.zip
Improving the placer output
Signed-off-by: David Shah <davey1576@gmail.com>
Diffstat (limited to 'common/place_sa.cc')
-rw-r--r--common/place_sa.cc14
1 files changed, 8 insertions, 6 deletions
diff --git a/common/place_sa.cc b/common/place_sa.cc
index aef759f8..7532213c 100644
--- a/common/place_sa.cc
+++ b/common/place_sa.cc
@@ -183,7 +183,8 @@ static bool try_swap_position(Design *design, CellInfo *cell, BelId newBel,
chip.bindBel(oldBel, other_cell->name);
}
- if (!isBelLocationValid(design, newBel) || ((other != IdString() && !isBelLocationValid(design, oldBel)))) {
+ if (!isBelLocationValid(design, newBel) ||
+ ((other != IdString() && !isBelLocationValid(design, oldBel)))) {
chip.unbindBel(newBel);
if (other != IdString())
chip.unbindBel(oldBel);
@@ -309,7 +310,7 @@ void place_design_sa(Design *design)
autoplaced.push_back(cell.second);
placed_cells++;
}
- log_info("placed %d/%d\n", int(placed_cells), int(total_cells));
+ // log_info("placed %d/%d\n", int(placed_cells), int(total_cells));
}
// Build up a fast position/type to Bel lookup table
int max_x = 0, max_y = 0;
@@ -345,9 +346,9 @@ void place_design_sa(Design *design)
state.n_move = state.n_accept = 0;
state.improved = false;
- // if (iter % 50 == 0)
- log(" at iteration #%d: temp = %f, wire length = %f\n", iter,
- state.temp, state.curr_wirelength);
+ if (iter % 5 == 0)
+ log(" at iteration #%d: temp = %f, wire length = %f\n", iter,
+ state.temp, state.curr_wirelength);
for (int m = 0; m < 15; ++m) {
// Loop through all automatically placed cells
@@ -403,7 +404,8 @@ void place_design_sa(Design *design)
IdString cell = design->chip.getBelCell(bel, false);
if (cell != IdString())
cell_text = std::string("cell '") + cell.str() + "'";
- log_error("post-placement validity check failed for Bel '%s' (%s)", design->chip.getBelName(bel).c_str(), cell_text.c_str());
+ log_error("post-placement validity check failed for Bel '%s' (%s)",
+ design->chip.getBelName(bel).c_str(), cell_text.c_str());
}
}
}