PYNQ Introduction¶
PYNQ is an open-source project from AMD. It provides a Jupyter-based framework with Python APIs for using AMD Xilinx Adaptive Computing platforms. PYNQ supports Zynq® and Zynq Ultrascale+™, Zynq RFSoC™, Kria™ SOMs, Alveo™ and AWS-F1 instances.
PYNQ enables architects, engineers and programmers who design embedded systems to use Adaptive Computing platforms, without having to use ASIC-style design tools to design programmable logic circuits.
PYNQ Background¶
- Programmable logic circuits are presented as hardware libraries called overlays. These overlays are analogous to software libraries. A software engineer can select the overlay that best matches their application. The overlay can be accessed through an Python API. Creating a new overlay still requires engineers with expertise in designing programmable logic circuits. The key difference however, is the build once, re-use many times paradigm. Overlays, like software libraries, are designed to be configurable and re-used as often as possible in many different applications.
This is a familiar approach that borrows from best-practice in the software community. Every day, the Linux kernel is used by hundreds of thousands of embedded designers. The kernel is developed and maintained by fewer than one thousand, high-skilled, software architects and engineers. The extensive re-use of the work of a relatively small number of very talented engineers enable many more software engineers to work at higher levels of abstraction. Hardware libraries or overlays are inspired by the success of the Linux kernel model in abstracting so many of the details of low-level, hardware-dependent software.
- PYNQ supports Python for programming both the embedded processors and the overlays. Python is a “productivity-level” language. To date, C or C++ are the most common, embedded programming languages. In contrast, Python raises the level of programming abstraction and programmer productivity. These are not mutually exclusive choices, however. PYNQ uses CPython which is written in C, and integrates thousands of C libraries and can be extended with optimized code written in C. Wherever practical, the more productive Python environment should be used, and whenever efficiency dictates, lower-level C code can be used.
- PYNQ is an open-source project that aims to work on any computing platform and operating system. This goal is achieved by adopting a web-based architecture, which is also browser agnostic. We incorporate the open-source Jupyter notebook infrastructure to run an Interactive Python (IPython) kernel and a web server directly on the ARM processor of the Zynq device, or host processor in the case of Alveo and AWS-F1. The web server brokers access to the kernel via a suite of browser-based tools that provide a dashboard, bash terminal, code editors and Jupyter notebooks. The browser tools are implemented with a combination of JavaScript, HTML and CSS and run on any modern browser.
Summary¶
PYNQ is the first project to combine the following elements to simplify and improve Adaptive Computing system design:
- A high-level productivity language (Python in this case)
- FPGA overlays with extensive APIs exposed as Python libraries
- A web-based architecture served from the embedded processors, and
- The Jupyter Notebook framework deployed in an embedded context
© Copyright 2022, Advanced Micro Devices, Inc. Revision a056b845 .
Built with Sphinx using a theme provided by Read the Docs.
Read the Docs v: latest
Versions latest v3.0.0 v2.7.0 v2.6.1 v2.5.1 v2.5 v2.4 v2.3 v2.2.1 v2.1 v2.0 Downloads On Read the Docs Project Home Builds Free document hosting provided by Read the Docs.