Skip to content

Commit 21454bf

Browse files
lbrown65Lewis Brown
andauthored
Pynq v2.7 updates (#38)
* update to pynq 2.7 * remove unneeded pynq virtual env activation * update voila to v2.7 button method * Update README.md * ZCU111 Voila for pynq v2.7 Co-authored-by: Lewis Brown <lewisb@xilinx.com>
1 parent f64f5a4 commit 21454bf

File tree

11 files changed

+285
-66
lines changed

11 files changed

+285
-66
lines changed

README.md

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<img src="strathsdr_banner.png" width="100%">
22

33
# 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/).
4+
This repository is only compatible with [PYNQ images v2.7](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/).
55

66
## Introduction
77
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.
@@ -12,7 +12,7 @@ This repo contains all the files needed to build and run the RFSoC QPSK demonstr
1212

1313
## Quick Start
1414
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.
15+
* Power on your RFSoC2x2 or ZCU111 development board with an SD Card containing a fresh PYNQ v2.7 image.
1616
* Navigate to Jupyter Labs by opening a browser (preferably Chrome) and connecting to `http://<board_ip_address>:9090/lab`.
1717
* We need to open a terminal in Jupyter Lab. Firstly, open a launcher window as shown in the figure below:
1818

@@ -26,29 +26,15 @@ Follow the instructions below to install the QPSK demonstrator on your developme
2626
<img src="../master/open_terminal_window.jpg" width="50%" height="50%" />
2727
<p/>
2828

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.
29+
* Now simply install the QPSK demonstrator through PIP by executing the following command in the terminal:
3330

3431
```sh
3532
pip3 install git+https://github.com/strath-sdr/rfsoc_qpsk
3633
```
3734

3835
Once installation has complete, you will find the QPSK demonstrator notebooks located in the jupyter home workspace in the `qpsk-demonstrator` folder.
3936

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.
41-
42-
## ZCU111 Setup
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:
44-
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).
37+
This repository uses Voila to create simple web applications using Jupyter notebooks. Your RFSoC2x2 or ZCU111 development board should already be preinstalled with a version of Voila and no further setup is required.
5238

5339
## Using the Project Files
5440
The following software is required to use the project files in this repository.
Binary file not shown.
Binary file not shown.
19 KB
Loading

boards/RFSoC2x2/rfsoc_qpsk/notebooks/rfsoc_qpsk_demonstrator.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@
252252
" symbol_quantise = lambda i, q: bit_quantise(i) + 1j*bit_quantise(q)\n",
253253
" return np.fromiter(\n",
254254
" map(symbol_quantise, np.real(frame), np.imag(frame)),\n",
255-
" dtype=np.complex\n",
255+
" dtype=complex\n",
256256
" )\n",
257257
"\n",
258258
"ol.plot_group(\n",
@@ -464,7 +464,7 @@
464464
"name": "python",
465465
"nbconvert_exporter": "python",
466466
"pygments_lexer": "ipython3",
467-
"version": "3.6.5"
467+
"version": "3.8.2"
468468
},
469469
"widgets": {
470470
"application/vnd.jupyter.widget-state+json": {

boards/RFSoC2x2/rfsoc_qpsk/notebooks/voila_rfsoc_qpsk_demonstrator.ipynb

Lines changed: 138 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,20 @@
33
{
44
"cell_type": "markdown",
55
"metadata": {
6+
"extensions": {
7+
"jupyter_dashboards": {
8+
"activeView": "grid_default",
9+
"views": {
10+
"grid_default": {
11+
"col": null,
12+
"height": 2,
13+
"hidden": true,
14+
"row": null,
15+
"width": 2
16+
}
17+
}
18+
}
19+
},
620
"tags": [
721
"ignore_me"
822
]
@@ -14,6 +28,20 @@
1428
{
1529
"cell_type": "markdown",
1630
"metadata": {
31+
"extensions": {
32+
"jupyter_dashboards": {
33+
"activeView": "grid_default",
34+
"views": {
35+
"grid_default": {
36+
"col": null,
37+
"height": 2,
38+
"hidden": true,
39+
"row": null,
40+
"width": 2
41+
}
42+
}
43+
}
44+
},
1745
"tags": [
1846
"ignore_me"
1947
]
@@ -74,27 +102,13 @@
74102
"## Running this Demonstration <a class=\"anchor\" id=\"running-this-demonstration\"></a>\n",
75103
"Voila can be used to execute the QPSK demonstrator and ignore all of the markdown and code cells typically found in a normal Jupyter notebook. The Voila dashboard can be launched following the instructions below:\n",
76104
"\n",
77-
"* Open the Jupyter Quick Launch window as below:\n",
105+
"* Click on the \"Open with Voila Gridstack in a new browser tab\" button at the top of the screen:\n",
78106
"\n",
79107
"<figure>\n",
80-
"<img src='images/open_jupyter_launcher.jpg' height='25%' width='25%'/>\n",
108+
"<img src='images/open_voila.png' height='50%' width='50%'/>\n",
81109
"</figure>\n",
82110
"\n",
83-
"* Open a terminal window.\n",
84-
"\n",
85-
"<figure>\n",
86-
"<img src='images/open_terminal_window.jpg' height='30%' width='30%'/>\n",
87-
"</figure>\n",
88-
"\n",
89-
"* Start a Voila session by running the command below in the terminal (just copy and paste it into the terminal):\n",
90-
"\n",
91-
"```bash\n",
92-
"voila /home/xilinx/jupyter_notebooks/qpsk-demonstrator/voila_rfsoc_qpsk_demonstrator.ipynb --ExecutePreprocessor.timeout=180 --theme=dark --port=8866 --TagRemovePreprocessor.remove_cell_tags='{\"ignore_me\"}'\n",
93-
"```\n",
94-
"\n",
95-
"* You can now open a new browser tab and enter the following into the address bar: http://board_ip_address:8866\n",
96-
"\n",
97-
"After you open the new tab at the address above, the kernel will start and the notebook will run. Only the QPSK demonstrator will be displayed. The initialisation process takes around 2 minutes.\n",
111+
"After the new tab opens the kernel will start and the notebook will run. Only the QPSK Demonstrator will be displayed. The initialisation process takes around 1 minute.\n",
98112
"\n",
99113
"## The Voila Procedure <a class=\"anchor\" id=\"the-voila-procedure\"></a>\n",
100114
"Below are the code cells that will be ran when Voila is called. The procedure is fairly straight forward. Load the rfsoc-qpsk library, initialise the overlay, and display the QPSK demonstrator. All you have to ensure is that the above command is executed in the terminal and you have launched a browser tab using the given address. You do not need to run these code cells individually to create the voila dashboard.\n",
@@ -105,7 +119,22 @@
105119
{
106120
"cell_type": "code",
107121
"execution_count": null,
108-
"metadata": {},
122+
"metadata": {
123+
"extensions": {
124+
"jupyter_dashboards": {
125+
"activeView": "grid_default",
126+
"views": {
127+
"grid_default": {
128+
"col": null,
129+
"height": 2,
130+
"hidden": true,
131+
"row": null,
132+
"width": 2
133+
}
134+
}
135+
}
136+
}
137+
},
109138
"outputs": [],
110139
"source": [
111140
"from rfsoc_qpsk.qpsk_overlay import QpskOverlay"
@@ -114,6 +143,20 @@
114143
{
115144
"cell_type": "markdown",
116145
"metadata": {
146+
"extensions": {
147+
"jupyter_dashboards": {
148+
"activeView": "grid_default",
149+
"views": {
150+
"grid_default": {
151+
"col": null,
152+
"height": 2,
153+
"hidden": true,
154+
"row": null,
155+
"width": 2
156+
}
157+
}
158+
}
159+
},
117160
"tags": [
118161
"ignore_me"
119162
]
@@ -125,7 +168,22 @@
125168
{
126169
"cell_type": "code",
127170
"execution_count": null,
128-
"metadata": {},
171+
"metadata": {
172+
"extensions": {
173+
"jupyter_dashboards": {
174+
"activeView": "grid_default",
175+
"views": {
176+
"grid_default": {
177+
"col": null,
178+
"height": 2,
179+
"hidden": true,
180+
"row": null,
181+
"width": 2
182+
}
183+
}
184+
}
185+
}
186+
},
129187
"outputs": [],
130188
"source": [
131189
"qpsk = QpskOverlay(dark_theme=True)"
@@ -134,6 +192,20 @@
134192
{
135193
"cell_type": "markdown",
136194
"metadata": {
195+
"extensions": {
196+
"jupyter_dashboards": {
197+
"activeView": "grid_default",
198+
"views": {
199+
"grid_default": {
200+
"col": null,
201+
"height": 2,
202+
"hidden": true,
203+
"row": null,
204+
"width": 2
205+
}
206+
}
207+
}
208+
},
137209
"tags": [
138210
"ignore_me"
139211
]
@@ -145,7 +217,23 @@
145217
{
146218
"cell_type": "code",
147219
"execution_count": null,
148-
"metadata": {},
220+
"metadata": {
221+
"extensions": {
222+
"jupyter_dashboards": {
223+
"activeView": "grid_default",
224+
"views": {
225+
"grid_default": {
226+
"col": 0,
227+
"height": 16,
228+
"hidden": false,
229+
"row": 0,
230+
"width": 12
231+
}
232+
}
233+
}
234+
},
235+
"tags": []
236+
},
149237
"outputs": [],
150238
"source": [
151239
"qpsk.qpsk_demonstrator_application()"
@@ -154,6 +242,20 @@
154242
{
155243
"cell_type": "markdown",
156244
"metadata": {
245+
"extensions": {
246+
"jupyter_dashboards": {
247+
"activeView": "grid_default",
248+
"views": {
249+
"grid_default": {
250+
"col": null,
251+
"height": 2,
252+
"hidden": true,
253+
"row": null,
254+
"width": 2
255+
}
256+
}
257+
}
258+
},
157259
"tags": [
158260
"ignore_me"
159261
]
@@ -166,6 +268,21 @@
166268
],
167269
"metadata": {
168270
"celltoolbar": "Tags",
271+
"extensions": {
272+
"jupyter_dashboards": {
273+
"activeView": "grid_default",
274+
"version": 1,
275+
"views": {
276+
"grid_default": {
277+
"cellMargin": 2,
278+
"defaultCellHeight": 60,
279+
"maxColumns": 12,
280+
"name": "grid",
281+
"type": "grid"
282+
}
283+
}
284+
}
285+
},
169286
"kernelspec": {
170287
"display_name": "Python 3",
171288
"language": "python",
@@ -181,7 +298,7 @@
181298
"name": "python",
182299
"nbconvert_exporter": "python",
183300
"pygments_lexer": "ipython3",
184-
"version": "3.6.5"
301+
"version": "3.8.2"
185302
},
186303
"widgets": {
187304
"application/vnd.jupyter.widget-state+json": {
Binary file not shown.
Binary file not shown.
19 KB
Loading

0 commit comments

Comments
 (0)