proper clock calc due after funcion change

This commit is contained in:
Miodrag Milanovic 2023-10-02 09:28:36 +02:00 committed by myrtle
parent f0325730a8
commit e4cb7ea337

View File

@ -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;
}
}