From e4cb7ea337901b541a8d58232a9b5c97cd0dc19a Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Mon, 2 Oct 2023 09:28:36 +0200 Subject: [PATCH] proper clock calc due after funcion change --- machxo2/pack.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/machxo2/pack.cc b/machxo2/pack.cc index a9de6bee..8877ca32 100644 --- a/machxo2/pack.cc +++ b/machxo2/pack.cc @@ -1345,7 +1345,7 @@ class MachXO2Packer for (int i = 0; i < 64; i++) { if (osc_freq[i] == freq) { found = true; - set_constraint(ci, id_OSC, simple_clk_contraint(delay_t(1000.0 / std::stof(freq)))); + set_constraint(ci, id_OSC, simple_clk_contraint(delay_t(1.0e6 / std::stof(freq)))); break; } }