Open main menu

DAVE Developer's Wiki β

Changes

BELK-TN-005: Running PYNQ on Bora

248 bytes added, 08:14, 13 November 2018
Testing the PYNQ framework
The test consisted of the following steps:
*First, a an FIR filter was generated using the wizard [https://www.xilinx.com/products/intellectual-property/fir_compiler.html FIR Compiler] provided by Vivado.
*The resulting IP was instantiated in Programmable Logic (PL).
*Using Jupyter Notebooks, the a simple Python test code was edited and runto exercise the filter.
**Two different approaches were used: generic driver and IP-specific driver.
*To move files to/from Jupyter Notebook it is convenient to share the home directory of the target's <code>xilinx </code> user. For instance, to access the Pynq home area as a network drive via Samba protocol:
*Open a file browser and click "Go" > "Enter Location"
*Insert location <code>smb://192.168.2.99/xilinx</code>*Log as ''<code>xilinx'' </code> with password ''<code>xilinx''</code>.
# WRITE AND RUN PYTHON FUNCTIONS===Editing and executing Python functions===Before implementing the FIR filter in PL, we tested a software implementation created with the [https://www.scipy.org/ SciPy] library and applied it to a noisy signal.
This section describes how to write and run python code on the web interface.In essence we - create * created a new notebook by clicking on the "''New" '' button at the top and select "''Python 3"'' - select "*selected ''Code" '' on the top bar and write some Python code - click "* clicked ''Run" '' on the top bar to run code on kernel.
/*
*/
The procedure was tested For more deatils, please refer to the section [http://www.fpgadeveloper.com/2018/03/how-to-accelerate-a-python-function-with a -pynq.html ''Software FIR filter from using SciPy library applied to a noisy signal''].
/* vedi http://www.fpgadeveloper.com/2018/03/how-to-accelerate-===Implementing ahardware-python-function-with-pynq.html fino al paragrafo "Software accelerated version of the FIR filter using SciPy" */in PL===
 
# ACCELERATE A PYTHON FUNCTION
 
# INTRO
To accelerate a Python function on the Zynq-7000, PYNQ can load a custom overlay.
Overlays are built with Vivado 2018.2 and are composed by:
The test consisted of the following steps:
- First, a an FIR filter was generated using the wizard provided by Vivado.
- The resulting IP was instantiated in Programmable Logic (PL).
- Using Jupyter Notebooks, the Python test code was edited and run.
4,650
edits