3 Star 0 Fork 0

mirrors_Xilinx / PYNQ-Metadata

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
BSD-3-Clause

pynq_logo

version 0.1.7

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.

Quick Start

PYNQ-Metadata can parse the design of a system in the following formats:

  • A HWH file
  • An XSA file
  • A JSON PYNQ-Metadata description

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.

Tutorials

Coming soon: Documentation on how to use PYNQ-Metadata to manipulate and inspect designs.

Python Source Code

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.

Changelog

  • v0.1.7 : Relaxing constraint on address mapping due to issues with rfsoc4x2_base parsing.
  • v0.1.6 : Python3.11 support added (Thanks @modularizer)
  • v0.1.5 : Prevent parsing error when external AXI ports are present in the design.
  • v0.1.4 : Fixing runtime metadata views for when the PS is contained within a hierarchy. Relaxing the Python version constraint (for x86).
  • v0.1.3 : Fixing python version requirement
  • v0.1.2 : Fixed issue where custom IP was being interpreted as an empty hierarchy
  • v0.1.1 : Fixed circular dependency issue with PYNQ-Utils
BSD 3-Clause License Copyright (c) 2022, Xilinx All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

简介

暂无描述 展开 收起
Python 等 2 种语言
BSD-3-Clause
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/mirrors_Xilinx/PYNQ-Metadata.git
git@gitee.com:mirrors_Xilinx/PYNQ-Metadata.git
mirrors_Xilinx
PYNQ-Metadata
PYNQ-Metadata
main

搜索帮助