Skip to content

Commit

Permalink
Using the hierarchy name instead of the flattened name for the parser…
Browse files Browse the repository at this point in the history
… ps (#1446)
  • Loading branch information
STFleming authored and schelleg committed Oct 11, 2024
1 parent 640867f commit 988fab8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pynq/metadata/runtime_metadata_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,9 @@ def __init__(self, md: Module) -> None:
self.xclbin_data = None
self.dtbo_data = None
self.systemgraph = self.md
self.ps_name = list(md.get_processing_systems().keys())[0]
self.ps = md.get_processing_systems()[self.ps_name]
ps_blocks = md.get_processing_systems()
self.ps = ps_blocks[list(ps_blocks.keys())[0]]
self.ps_name = self.ps.hierarchy_name
self.family_ps = self.ps.ps_name

self.interrupt_controllers_view = InterruptControllersView(self.md)
Expand Down Expand Up @@ -113,4 +114,4 @@ def assign_interrupts_to_ip(self)->None:
if block in self.ip_dict:
self.ip_dict[block]["interrupts"][pin] = val
elif block in self.hierarchy_dict:
self.hierarchy_dict[block]["interrupts"][pin]= val
self.hierarchy_dict[block]["interrupts"][pin]= val

0 comments on commit 988fab8

Please sign in to comment.