aboutsummaryrefslogtreecommitdiffstats
path: root/common/timing.cc
diff options
context:
space:
mode:
authorMiodrag Milanović <mmicko@gmail.com>2019-03-04 13:53:00 +0100
committerGitHub <noreply@github.com>2019-03-04 13:53:00 +0100
commit661857fe8ec2d49b67625dad23dae46532f4eed7 (patch)
treefa97ffb5ea3cbd97434b2e8df66f755ebcee4363 /common/timing.cc
parentcc5edfd97eb09c625e2559424278e02faa3abac3 (diff)
parent0bcf57bd47f397e3bb29b9b3f8fdd79883e741cc (diff)
downloadnextpnr-661857fe8ec2d49b67625dad23dae46532f4eed7.tar.gz
nextpnr-661857fe8ec2d49b67625dad23dae46532f4eed7.tar.bz2
nextpnr-661857fe8ec2d49b67625dad23dae46532f4eed7.zip
Merge pull request #247 from YosysHQ/timing-allow-fail
Add flag timing-allow-fail to allow PnR to pass with warning
Diffstat (limited to 'common/timing.cc')
-rw-r--r--common/timing.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/timing.cc b/common/timing.cc
index 8ade2660..2a0af874 100644
--- a/common/timing.cc
+++ b/common/timing.cc
@@ -905,6 +905,10 @@ void timing_analysis(Context *ctx, bool print_histogram, bool print_fmax, bool p
log_info("Max frequency for clock %*s'%s': %.02f MHz (%s at %.02f MHz)\n", width, "",
clock_name.c_str(), clock_fmax[clock.first], passed ? "PASS" : "FAIL", target);
else
+ if (bool_or_default(ctx->settings, ctx->id("timing/allowFail"), false))
+ log_warning("Max frequency for clock %*s'%s': %.02f MHz (%s at %.02f MHz)\n", width, "",
+ clock_name.c_str(), clock_fmax[clock.first], passed ? "PASS" : "FAIL", target);
+ else
log_nonfatal_error("Max frequency for clock %*s'%s': %.02f MHz (%s at %.02f MHz)\n", width, "",
clock_name.c_str(), clock_fmax[clock.first], passed ? "PASS" : "FAIL", target);
}