diff options
author | gatecat <gatecat@ds0.me> | 2022-03-17 19:24:05 +0000 |
---|---|---|
committer | gatecat <gatecat@ds0.me> | 2022-03-17 19:24:05 +0000 |
commit | 14d53dfec8dba93996f5c2877d60f6ed167d14fb (patch) | |
tree | f49f9dbf30d2fb467018ec92f94eb6288169724b /nexus/pack.cc | |
parent | 2635bab2f1b1a32b2505e0918caa2a91c18ce571 (diff) | |
download | nextpnr-14d53dfec8dba93996f5c2877d60f6ed167d14fb.tar.gz nextpnr-14d53dfec8dba93996f5c2877d60f6ed167d14fb.tar.bz2 nextpnr-14d53dfec8dba93996f5c2877d60f6ed167d14fb.zip |
clangformat
Signed-off-by: gatecat <gatecat@ds0.me>
Diffstat (limited to 'nexus/pack.cc')
-rw-r--r-- | nexus/pack.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nexus/pack.cc b/nexus/pack.cc index bb62ec85..26da3dc5 100644 --- a/nexus/pack.cc +++ b/nexus/pack.cc @@ -2007,14 +2007,14 @@ struct NexusPacker copy_constraint(ci, id_CLK0, id_DCSOUT); } else if (!have_clk0 && have_clk1) { copy_constraint(ci, id_CLK1, id_DCSOUT); - } else if ( have_clk0 && have_clk1) { + } else if (have_clk0 && have_clk1) { set_period(ci, id_DCSOUT, std::min(period_clk0, period_clk1)); } } else if (ci->type == id_OSC_CORE) { int div = int_or_default(ci->params, id_HF_CLK_DIV, 128); 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.0e9 / 32) / tol)); + set_period(ci, id_LFCLKOUT, delay_t((1.0e9 / 32) / tol)); } else if (ci->type == id_PLL_CORE) { static const std::array<IdString, 6> div{id_DIVA, id_DIVB, id_DIVC, id_DIVD, id_DIVE, id_DIVF}; static const std::array<IdString, 6> output{id_CLKOP, id_CLKOS, id_CLKOS2, |