Skip to content

[opentitantool] Add set-pll command #12870

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
May 25, 2022
Merged

Conversation

alphan
Copy link
Contributor

@alphan alphan commented May 25, 2022

This PR adds the set-pll command for configuring the output frequency of the PLL on CW310 to 100 MHz. While
not thoroughly documented, this is basically a re-implementation of some of the methods here: chipwhisperer/hardware/naeusb/pll_cdce906.py.

$ ./opentitantool set-pll --help
opentitantool-set-pll 0.0.0
Program the CDCE906 PLL chip with defaults

USAGE:
    opentitantool set-pll

I also took some notes here.

@cfrantz, I ended up implementing support for arbitrary frequencies but didn't expose it as a CLI option to avoid confusion.

I tested this change by writing a piece of code that configures, misconfigures, and prints PLL settings.

@alphan alphan requested review from cfrantz and a team as code owners May 25, 2022 19:22
@alphan alphan requested review from jon-flatley and removed request for a team May 25, 2022 19:22
alphan added 4 commits May 25, 2022 16:44
This commit adds support for configuring CW310's PLL chip CDCE906. While
not thoroughly documented, this is basically a re-implementation of some
of the methods here: `chipwhisperer/hardware/naeusb/pll_cdce906.py`.

Signed-off-by: Alphan Ulusoy <[email protected]>
This commit adds the `set-pll` command for configuring the output
frequency of the PLL on CW310 to 100 MHz.

Signed-off-by: Alphan Ulusoy <[email protected]>
@alphan alphan force-pushed the opentitantool-pll branch from 72ef5a4 to b40d289 Compare May 25, 2022 20:44
@alphan alphan requested a review from rswarbrick as a code owner May 25, 2022 20:44
@alphan alphan merged commit 90cc0cc into lowRISC:master May 25, 2022
@alphan alphan deleted the opentitantool-pll branch May 25, 2022 23:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants