aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgatecat <gatecat@ds0.me>2022-02-10 11:21:18 +0000
committerGitHub <noreply@github.com>2022-02-10 11:21:18 +0000
commit604711275343ef6c60ffe76d7fad756a7b938915 (patch)
treeab29034939397edc2c4a10e7f955c947064cb51a
parent74c99f9195eeb47d106ca74b7abb894cfd47cc03 (diff)
parent5c300933609b5213322e271a4e745e2d4a101b31 (diff)
downloadnextpnr-604711275343ef6c60ffe76d7fad756a7b938915.tar.gz
nextpnr-604711275343ef6c60ffe76d7fad756a7b938915.tar.bz2
nextpnr-604711275343ef6c60ffe76d7fad756a7b938915.zip
Merge pull request #912 from danc86/nexus-osca-7percent
nexus: reduce OSCA worst case to 7%
-rw-r--r--nexus/pack.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/nexus/pack.cc b/nexus/pack.cc
index 5e9da304..81a729b1 100644
--- a/nexus/pack.cc
+++ b/nexus/pack.cc
@@ -1987,7 +1987,7 @@ struct NexusPacker
copy_constraint(ci, id_CLKI, id_CLKO, 1);
} else if (ci->type == id_OSC_CORE) {
int div = int_or_default(ci->params, ctx->id("HF_CLK_DIV"), 128);
- const float tol = 1.15f; // OSCA has +/-15% frequency tolerance, assume the worst case.
+ const float tol = 1.07f; // OSCA has +/-7% frequency tolerance, assume the worst case.
set_period(ci, id_HFCLKOUT, delay_t((1.0e6 / 450) * (div + 1) / tol));
set_period(ci, id_LFCLKOUT, delay_t((1.0e3 / 10) / tol));
} else if (ci->type == id_PLL_CORE) {