Skip to content

Commit 061ae18

Browse files
authored
Merge pull request #33 from dnorthcote/master
Upgrade rfsoc-qpsk to v1.3
2 parents d76a059 + 4c9c313 commit 061ae18

File tree

682 files changed

+46230
-12587
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

682 files changed

+46230
-12587
lines changed

.gitignore

+21-9
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,27 @@
1-
boards/ZCU111/rfsoc_pynq/
2-
.Xil
3-
vivado.jou
4-
vivado.log
5-
6-
*.log
1+
# Ignore Other
72
*.htm
8-
93
.ipynb_checkpoints
104
.idea
5+
6+
# Ignore Logs
7+
*.log
8+
9+
# Ignore Simulink Files
10+
*.autosave
1111
*.slxc
12+
*\.hbs
13+
*\.Xil
14+
*\hdl_prj
1215
*\slprj
1316
*\wavedata
14-
*.autosave
15-
boards/ip/sysgen/tx/wavedata/AXI_QPSK_Tx.tcl
17+
18+
# Ignore Vivado Files
19+
*.jou
20+
*vivado.txt
21+
*vivado.jou
22+
*vivado.log
23+
24+
# Ignore ./rfstrath/rfstrath/
25+
**/rfsoc_qpsk/rfstrath
26+
**/rfsoc_qpsk/rfsoc_pynq
27+
**/rfsoc_qpsk/rfsoc_qpsk

README.md

+51-24
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,83 @@
1-
<img src="https://www.strath.ac.uk/media/1newwebsite/webteam/logos/xUoS_Logo_Horizontal.png.pagespeed.ic.M6gv_BmDx1.png" width="350">
1+
<img src="strathclyde_banner.png" width="100%">
22

3-
# RFSoC QPSK Transceiver
3+
# RFSoC QPSK Transceiver
4+
This repository is only compatible with [PYNQ images v2.6](https://github.com/Xilinx/PYNQ/releases) for the [ZCU111](https://www.xilinx.com/products/boards-and-kits/zcu111.html) and [RFSoC2x2](http://rfsoc-pynq.io/).
45

56
## Introduction
67
This repo contains all the files needed to build and run the RFSoC QPSK demonstrator that was published in [IEEE Access](https://ieeexplore.ieee.org/document/9139483) and was presented at both [FPL](https://fpl2018.org/) and [XDF](http://www.xilinx.com/xdf) conferences in 2018. The design is a full QPSK transceiver, which transmits and receives randomly-generated pulse-shaped symbols with full carrier and timing synchronisation. [PYNQ](https://github.com/xilinx/pynq) is used to visualise the data at both the DAC and ADC side of the RFSoC data converters, as well as visualising various DSP stages throughout the transmit and receive signal path.
78

89
<p align="center">
9-
<img src="https://github.com/strath-sdr/rfsoc_qpsk/blob/master/img/constellation_small.gif" width="400" height="400" />
10+
<img src="demonstration.gif" width="787" height="513" />
1011
<p/>
1112

1213
## Quick Start
14+
Follow the instructions below to install the QPSK demonstrator on your development board. **You will need to give your board access to the internet**.
15+
* Power on your RFSoC2x2 or ZCU111 development board with an SD Card containing a fresh PYNQ v2.6 image.
16+
* Navigate to Jupyter Labs by opening a browser (preferably Chrome) and connecting to `http://<board_ip_address>:9090/lab`.
17+
* We need to open a terminal in Jupyter Lab. Firstly, open a launcher window as shown in the figure below:
1318

14-
This repository is only compatible with [PYNQ images v2.5 and greater](https://github.com/Xilinx/PYNQ/releases) for [ZCU111](https://www.xilinx.com/products/boards-and-kits/zcu111.html).
19+
<p align="center">
20+
<img src="../master/open_jupyter_launcher.jpg" width="50%" height="50%" />
21+
<p/>
1522

16-
Connect to the board with **Jupyter Lab** in a browser (not Jupyter Notebook) @ `http://<IP address>/lab`.
23+
* Now open a terminal in Jupyter as illustrated below:
1724

18-
Open a terminal in Jupyter Lab. If you are using PYNQ v2.6, run the following command:
19-
```sh
20-
pip3 install git+https://github.com/strath-sdr/rfsoc_qpsk --no-deps
21-
```
25+
<p align="center">
26+
<img src="../master/open_terminal_window.jpg" width="50%" height="50%" />
27+
<p/>
28+
29+
Now follow the board specific instructions as follows.
30+
31+
## RFSoC2x2 Setup
32+
Your RFSoC2x2 development board does not come preinstalled with the QPSK demonstrator package (rfsoc-qpsk). You can install it by executing the command below in the terminal.
2233

23-
If you are using PYNQ v2.5, simply specify the target branch as shown in the command below:
2434
```sh
25-
pip3 install git+https://github.com/strath-sdr/rfsoc_qpsk@pynq_v2.5.0 --no-deps
35+
pip3 install git+https://github.com/strath-sdr/rfsoc_qpsk
2636
```
2737

28-
The notebook should now be available in the `rfsoc_qpsk/` folder.
29-
Use Chrome if possible — the rendering performance is important.
38+
Once installation has complete, you will find the QPSK demonstrator notebooks located in the jupyter home workspace in the `qpsk-demonstrator` folder.
39+
40+
This repository uses Voila to create simple web applications using Jupyter notebooks. Your RFSoC2x2 development board should already be preinstalled with a version of Voila and no further setup is required.
3041

3142
## ZCU111 Setup
32-
We use DAC2 from tile 229 to transmit and ADC0 from tile 224 to receive. These correspond to connections J5 and J4 on the HW-FMC-XM500 daughter board respectively. SW6 on the ZCU111 must be set to boot from SD card (as shown in the image below).
43+
The ZCU111 PYNQ image already comes preinstalled with the QPSK demonstrator package. To use this repository correctly you should force reinstall the rfsoc-qpsk package by executing the following command in the terminal:
3344

34-
<p align="center">
35-
<img src="https://github.com/strath-sdr/rfsoc_qpsk/blob/master/img/rfsoc_setup.png" width="800">
36-
<p/>
45+
```sh
46+
pip3 install --force-reinstall --no-deps git+https://github.com/strath-sdr/rfsoc_qpsk
47+
```
48+
49+
Once installation has complete, you will find the QPSK demonstrator notebooks located in the jupyter home workspace in the `qpsk-demonstrator` folder.
50+
51+
This repository uses Voila to create simple web applications using Jupyter notebooks. If you would like to use Voila on your ZCU111 development board, simply follow the instructions outlined in this [blog post](https://strath-sdr.github.io/pynq/linux/zynq/fpga/voila/2021/02/22/install-voila-on-pynq-v2-6.html).
3752

3853
## Using the Project Files
39-
All software builds have been tested on Microsoft Windows 10.
40-
#### Requirements
54+
The following software is required to use the project files in this repository.
4155
- Vivado Design Suite 2020.1
4256
- System Generator for DSP
43-
- MATLAB 2020a
57+
- MATLAB R2020a
4458

4559
### System Generator
4660
The Tx and Rx IPs are in separate directories in `rfsoc_qpsk/boards/sysgen/` that can be opened using the appropriate System Generator dialogue. Due to the large amount of decimation and interpolation in both IPs, simulating the output can take an extraordinarily long time. A less extreme multirate system would simulate much faster!
4761

4862
### Vivado
49-
This project can be built with Vivado from the command line:
63+
This project can be built with Vivado from the command line. Open Vivado 2020.1 and execute the following into the tcl console:
64+
65+
```sh
66+
cd /<repository-location>/boards/<board-name>/rfsoc_qpsk/
67+
```
68+
69+
Now that we have moved into the correct directory, make the Vivado project by running the make commands below sequentially.
70+
71+
```sh
72+
make project
73+
make block_design
74+
make bitstream_file
75+
```
76+
77+
Alternatively, you can run the entire project build by executing the following into the tcl console:
5078
```sh
51-
cd rfsoc_qpsk/boards/ZCU111/
52-
vivado -mode batch -nojournal -nolog -source write_project.tcl
79+
make all
5380
```
5481

5582
## License
56-
[BSD 3-Clause](https://github.com/strath-sdr/rfsoc_qpsk/blob/master/LICENSE)
83+
[BSD 3-Clause](../../blob/master/LICENSE)

boards/RFSoC2x2/rfsoc_qpsk/Makefile

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
overlay_name := rfsoc_qpsk
2+
design_name := block_design
3+
4+
all: project block_design bitstream_file
5+
6+
project:
7+
vivado -mode batch -source make_project.tcl -notrace
8+
9+
block_design:
10+
vivado -mode batch -source make_block_design.tcl -notrace
11+
12+
bitstream_file:
13+
vivado -mode batch -source make_bitstream.tcl -notrace
Binary file not shown.

0 commit comments

Comments
 (0)