chili-chips-ba / openCologne

Spicing up the first and only EU FPGA chip with a flashy new board, loaded with a suite of engaging demos and examples. https://www.chili-chips.xyz/open-cologne
https://nlnet.nl/project/openCologne
BSD 3-Clause "New" or "Revised" License
46 stars 2 forks source link

CC_PLL Verilog simulation model bug #14

Closed tarik-ibrahimovic closed 4 months ago

tarik-ibrahimovic commented 5 months ago

The provided simulation Verilog model of CC_PLL isn't a correct representation of the true CC_PLL's behavior. Whatever parameters put in when instantiating CC_PLL get lost and the output clock frequency is just half the input.

This can be especially confusing when running simulation of the examples built in with the tools.

chili-chips-ba commented 5 months ago

GateMate-PLL-Sim-Model-Bug

chili-chips-ba commented 4 months ago

Hi @pu-cc , given recent finding related to Issue#17: ... there is indeed a misconfiguration of a CPE that leads to incorrect inversion..., could that also be the root cause of this PLL simulation problem?

pu-cc commented 4 months ago

No, the CPE configuration and the simulation models are completely unrelated to each other.

The PLL model is used exclusively for the simulation and has so far been kept so simple on purpose; of course with the disadvantage that no real frequencies are generated. We have now revised the model for the upcoming update. I will let you know here so that we can close #14. Incidentally, this is not a bug, but a functional enhancement.

pu-cc commented 4 months ago

We have now improved the simulation model of CC_PLL in bin/p_r/cpelib.v.