1
0
mirror of https://github.com/YosysHQ/nextpnr.git synced 2026-04-10 23:01:12 +00:00

timing_opt: Add locks to optimise()

Signed-off-by: Alyssa Milburn <amilburn@zall.org>
This commit is contained in:
Alyssa Milburn
2019-04-16 15:57:10 +02:00
parent 250c914763
commit c1cc356bb0

View File

@@ -84,6 +84,7 @@ class TimingOptimiser
bool optimise()
{
log_info("Running timing-driven placement optimisation...\n");
ctx->lock();
if (ctx->verbose)
timing_analysis(ctx, false, true, false, false);
for (int i = 0; i < 30; i++) {
@@ -96,6 +97,7 @@ class TimingOptimiser
if (ctx->verbose)
timing_analysis(ctx, false, true, false, false);
}
ctx->unlock();
return true;
}