Skip to content

parthpower/PYNQ

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PYNQ

(PY)thon on Zy(NQ)

SDCard Image Files

  • All Pynq-Z1 images including the latest are available here:
file://xsj-pvstd2t01-w/xrlabs/grahams/public/pynq-z1_images/
  • All Zybo images including the latest are available here:
file://xsj-pvstd2t01-w/xrlabs/grahams/public/zybo_images/
  • After imaging, change Zybo's hostname to avoid network conflicts
sudo /home/xilinx/scripts/hostname.sh A_UNIQUE_HOSTNAME

Updating pynq using update_pynq.sh

This is a recommended way to update the pynq package. The script will do the following:

  • Back up the existing package on board.
  • Git clone from the repository.
  • Install the pynq package.
  • Copy board-specific files into the pynq package.
  • Copy Jupyter notbooks.
  • (Optional) Build the documentation.

To run this script, first verify the $BOARD environment variable has been set correctly:

echo $BOARD
  • If $BOARD is not set, add export BOARD=<board_name> (e.g., <board_name> can be Zybo or Pynq-Z1) to /home/xilinx/.profile. Then either reboot the board, or run the following:
source /home/xilinx/.profile
  • If $BOARD has already been set, just run:
sudo /home/xilinx/script/update_pynq.sh

Updating pynq using pip

It is not recommended to update pynq using pip, since there are still many board-specific files to be copied from the repository.

The developer mode will pull entire github repository into /src, but again, the board-specific files are not copied to pynq.

# (deprecated)
sudo -H pip install --upgrade 'git+https://github.com/Xilinx/PYNQ@master#egg=pynq&subdirectory=python'


# (deprecated) Developer mode
sudo -H pip install -e 'git+https://github.com/Xilinx/PYNQ@master#egg=pynq&subdirectory=python'

Running Regression from Terminal

cd /usr/local/lib/python3.4/dist-packages/pynq
py.test –vsrw

About

Python Productivity for ZYNQ

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Jupyter Notebook 66.0%
  • C 15.6%
  • C++ 7.7%
  • Python 4.1%
  • Tcl 2.5%
  • Verilog 1.2%
  • Other 2.9%