aboutsummaryrefslogtreecommitdiffstats
path: root/common/placer1.cc
diff options
context:
space:
mode:
Diffstat (limited to 'common/placer1.cc')
-rw-r--r--common/placer1.cc13
1 files changed, 7 insertions, 6 deletions
diff --git a/common/placer1.cc b/common/placer1.cc
index a4906985..368d9dde 100644
--- a/common/placer1.cc
+++ b/common/placer1.cc
@@ -183,8 +183,9 @@ class SAPlacer
auto bound_cell = ctx->getBoundBelCell(bel);
if (bound_cell) {
- log_error("Cell \'%s\' cannot be bound to bel \'%s\' since it is already bound to cell \'%s\'\n",
- cell->name.c_str(ctx), loc_name.c_str(), bound_cell->name.c_str(ctx));
+ log_error(
+ "Cell \'%s\' cannot be bound to bel \'%s\' since it is already bound to cell \'%s\'\n",
+ cell->name.c_str(ctx), loc_name.c_str(), bound_cell->name.c_str(ctx));
}
ctx->bindBel(bel, cell, STRENGTH_USER);
@@ -198,7 +199,6 @@ class SAPlacer
// Sort to-place cells for deterministic initial placement
-
for (auto &cell : ctx->cells) {
CellInfo *ci = cell.second.get();
if (ci->bel == BelId()) {
@@ -225,7 +225,8 @@ class SAPlacer
assign_budget(ctx);
ctx->yield();
auto iplace_end = std::chrono::high_resolution_clock::now();
- log_info("Initial placement time %.02fs\n", std::chrono::duration<float>(iplace_end - iplace_start).count());
+ log_info("Initial placement time %.02fs\n",
+ std::chrono::duration<float>(iplace_end - iplace_start).count());
log_info("Running simulated annealing placer.\n");
} else {
for (auto &cell : ctx->cells) {
@@ -951,7 +952,8 @@ bool placer1(Context *ctx, Placer1Cfg cfg)
}
}
-bool placer1_refine(Context *ctx, Placer1Cfg cfg) {
+bool placer1_refine(Context *ctx, Placer1Cfg cfg)
+{
try {
SAPlacer placer(ctx, cfg);
placer.place(true);
@@ -970,5 +972,4 @@ bool placer1_refine(Context *ctx, Placer1Cfg cfg) {
}
}
-
NEXTPNR_NAMESPACE_END