Skip to content

Commit

Permalink
Merge pull request #912 from danc86/nexus-osca-7percent
Browse files Browse the repository at this point in the history
nexus: reduce OSCA worst case to 7%
  • Loading branch information
gatecat authored Feb 10, 2022
2 parents 74c99f9 + 5c30093 commit 6047112
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nexus/pack.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 6047112

Please sign in to comment.