-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
3,066 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
sds_trace_data.dat | ||
|
||
boards/ZCU111/dsp_pynq/ | ||
boards/ZCU111/bitstreams/ | ||
|
||
boards/ZCU111/notebooks/assets/hpf.wav | ||
boards/ZCU111/notebooks/assets/hpf_hw.wav | ||
boards/ZCU111/notebooks/assets/hpf_coeffs.npy | ||
|
||
.Xil | ||
vivado.jou | ||
vivado.log | ||
|
||
*.log | ||
|
||
*.idea | ||
*.ipynb_checkpoints |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
|
||
Copyright (c) 2019, 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: | ||
|
||
* Redistributions of source code must retain the above copyright notice, this | ||
list of conditions and the following disclaimer. | ||
|
||
* 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. | ||
|
||
* 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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
all: wheel | ||
|
||
wheel: | ||
python3 setup.py bdist_wheel | ||
|
||
bitstream: | ||
cd boards/ZCU111 && $(MAKE) | ||
|
||
clean_bistream: | ||
cd boards/ZCU111 && $(MAKE) clean |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# DSP-PYNQ | ||
These notebooks act as a tutorial on how to develop a DSP application using Python and PYNQ. The first notebook is a primer on both DSP and Python packages centered around DSP functionality. The second notebook takes the knowledge learned from the first and uses it to perform similar functions but using hardware IP on the programmable logic. | ||
|
||
## Getting started | ||
All the material in this repo is available on the v2.4.1 PYNQ image for the ZCU111 - as part of the [PYNQ RFSoC Workshop](https://github.com/Xilinx/PYNQ_RFSOC_Workshop). The image can be downloaded from the [PYNQ website](http://www.pynq.io/board.html) and burned to a micro SD card with at least 16GB capacity. | ||
|
||
If for some reason you would prefer to install this repo separately, then follow the instructions below: | ||
|
||
### Requirements | ||
- RFSoC ZCU111 | ||
- Pynq 2.4.1 image | ||
|
||
### Overlay installation | ||
We supply a pre-built wheel containing the bitstream for that tagged release. This can be installed directly with Pip. | ||
```sh | ||
# pip3 install https://github.com/Xilinx/DSP-PYNQ/releases/download/v1.0_$BOARD/dsp_pynq-1.0-py3-none-any.whl | ||
# python3 -c 'import dsp_pynq; dsp_pynq.install_notebooks()' | ||
``` | ||
The notebooks should then be available from the JupyterLab file browser inside the `dsp_pynq` directory. | ||
|
||
## Building the wheel | ||
> NOTE: This must be built on an x86 Linux PC, with Vivado and Python 3 installed and available on $PATH. This cannot be built on the board. | ||
You can rebuild the entire wheel by running the following commands | ||
```sh | ||
$ git clone https://github.com/Xilinx/DSP-PYNQ | ||
$ cd DSP-PYNQ | ||
$ BOARD=ZCU111 make wheel | ||
``` | ||
|
||
To build only the Vivado project you can run the following command. | ||
```sh | ||
$ make bitstream | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
design_name := dsp_pynq | ||
bitfile := bitstreams/$(design_name).bit | ||
|
||
all: $(bitfile) | ||
|
||
$(bitfile): | ||
vivado -mode batch -notrace -nojournal -nolog -source create_project.tcl | ||
|
||
clean: | ||
rm -rf $(design_name) bitstreams *.jou *.log NA |
Oops, something went wrong.