PYNQ-Metadata is an open-source project from Xilinx and is part of the PYNQ ecosystem. It's aims are to provide an abstract description of reconfigurable system designs. It is currently used internally within PYNQ to represent the hardware design currently configured in the Programmable Logic of Zynq-based devices. It is currently in pre-release.
PYNQ-Metadata can parse the design of a system in the following formats:
To install PYNQ-Metadata use the following command:
python3 -m pip install pynqmetadata
To parse a design use the following python commands:
from pynqmetadata.frontends import Metadata
md = Metadata('xsa_file.xsa')
md = Metadata('hwh_file.hwh')
md = Metadata('pynq_metadata_json_file.json')
Once a design has been parsed it can then be easily walked, searched, modified, extended, and much more.
Coming soon: Documentation on how to use PYNQ-Metadata to manipulate and inspect designs.
All python code for the PYNQ-Metadata
package can be found in the /pynqmetadata
folder.
pynqmetadata/frontends
-- contains the frontend parsers for taking an XSA, HWH, or more into the PYNQMetadata format.pynqmetadata/models
-- contains the class hierarchy for the internal object model of a PYNQMetadata representation.pynqmetadata/errors
-- contains the exception classes.此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。