Skip to content

Parse CLKSRC#23

Closed
mariodruiz wants to merge 5 commits into
Xilinx:mainfrom
mariodruiz:clksrc
Closed

Parse CLKSRC#23
mariodruiz wants to merge 5 commits into
Xilinx:mainfrom
mariodruiz:clksrc

Conversation

@mariodruiz

Copy link
Copy Markdown
Collaborator

Expected output

MPSoC

clock_dict_viewzu.clock_dict
{0: {'enable': 1, 'srcsel': 'RPLL', 'divisor0': 15, 'divisor1': 1}, 1: {'enable': 1, 'srcsel': 'RPLL', 'divisor0': 5, 'divisor1': 1}, 2: {'enable': 1, 'srcsel': 'RPLL', 'divisor0': 8, 'divisor1': 1}, 3: {'enable': 0, 'srcsel': 'RPLL', 'divisor0': 4, 'divisor1': 1}}

Zynq

{0: {'enable': 1, 'srcsel': 'IO PLL', 'divisor0': 5, 'divisor1': 2}, 1: {'enable': 1, 'srcsel': 'IO PLL', 'divisor0': 7, 'divisor1': 1}, 2: {'enable': 1, 'srcsel': 'IO PLL', 'divisor0': 5, 'divisor1': 1}, 3: {'enable': 0, 'srcsel': 'IO PLL', 'divisor0': 1, 'divisor1': 1}}

@mariodruiz mariodruiz requested a review from jogomojo June 9, 2025 18:55
@mariodruiz mariodruiz linked an issue Jun 9, 2025 that may be closed by this pull request

@jogomojo jogomojo left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you have a minimal example I can test against? A basic tcl design will do

@mariodruiz

mariodruiz commented Jun 10, 2025

Copy link
Copy Markdown
Collaborator Author

Hi @jogomojo, you can use the hwh from the base overlays. You need to install the pynqmetadata locally and do:

from pynqmetadata.frontends import Metadata
from pynqmetadata.views.runtime import ClockDictView

md = Metadata('<base>.hwh')
clock_dict_view = ClockDictView(md)

print(clock_dict_view)

There are more changes to PYNQ to fully incorporate these changes, but this is the initial step

@mariodruiz mariodruiz closed this Jun 10, 2025
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.

SRCSEL is not being parsed in the clock_dict

2 participants