pynq.metadata-hierarchy_dict_view Module

Provides a hierarchy view onto the Metadata object that will display all hierarchies of addressable IP from the Processing System.

All IP when parsed into the HWH file is flat with no hierarchies. However, there is an additional, full_name field that can be used to reconstruct these hierarchies, which is what this view uses.

This view models a dictionary where each key is the name of the hierarchy, and each entry contains:

  • a dictionary of all the IP contained within that level of the hierarchy.
  • a dictionare of all the memory objects within that level of the hierarchy.
  • a dictionary of sub-hierarchies contained within this level of the hierarchy.
  • any drivers that have been assigned to this level of the hierarchy.Provides a hierarchy view onto the Metadata object that will display all hierarchies of addressable IP from the Processing System.

All IP when parsed into the HWH file is flat with no hierarchies. However, there is an additional, full_name field that can be used to reconstruct these hierarchies, which is what this view uses.

This view models a dictionary where each key is the name of the hierarchy, and each entry contains:

  • a dictionary of all the IP contained within that level of the hierarchy.
  • a dictionare of all the memory objects within that level of the hierarchy.
  • a dictionary of sub-hierarchies contained within this level of the hierarchy.
  • any drivers that have been assigned to this level of the hierarchy.
class pynq.metadata.hierarchy_dict_view.HierarchyDictView(module: pynqmetadata.models.module.Module, ip_view: pynq.metadata.ip_dict_view.IpDictView, mem_view: pynq.metadata.mem_dict_view.MemDictView, overlay: object, hierarchy_drivers: object, default_hierarchy: object, device: object)[source]

Bases: pynq.metadata.metadata_view.MetadataView

Provides a hierarchy view onto the Metadata object that will display all hierarchies of addressable IP from the Processing System.

All IP when parsed into the HWH file is flat with no hierarchies. However, there is an additional, full_name field that can be used to reconstruct these hierarchies, which is what this view uses.

This view models a dictionary where each key is the name of the hierarchy, and each entry contains:

  • a dictionary of all the IP contained within that level of the hierarchy.
  • a dictionare of all the memory objects within that level of the hierarchy.
  • a dictionary of sub-hierarchies contained within this level of the hierarchy.
  • any drivers that have been assigned to this level of the hierarchy.
view

Walks down the hierarchy dict and whenever it encounters an IP that is in the ip_dict or mem_dict keep it.

class pynq.metadata.hierarchy_dict_view.HierarchyDriverExetension[source]

Bases: pynqmetadata.models.metadata_extension.MetadataExtension

Extends the metadata for hierarchies with PYNQ runtime driver information