lowRISC / opentitan

OpenTitan: Open source silicon root of trust
https://www.opentitan.org
Apache License 2.0
2.51k stars 745 forks source link

[top_darjeeling,clkmgr] Clock Measurement is wrong for Darjeeling #22424

Open Razer6 opened 5 months ago

Razer6 commented 5 months ago

Darjeeling runs at 1000/250/62.5 MHz. The clkmgr has inbuild measurement primitives. These are however still configured for the Earlgrey frequencies (96/48/24 MHz) like following example shows. (Cnt = 480)

https://github.com/lowRISC/opentitan/blob/e65178ab2dfdd5da7e33d1e56fe759d15dec1fc0/hw/top_darjeeling/ip/clkmgr/rtl/autogen/clkmgr.sv#L602-L623

/cc @neeraj-rv @andreaskurth

matutem commented 2 months ago

These parameters are generated via templates in the master branch.