My end objective for this roadtest is to implement a binary neural network (BNN) for image classification on the PYNQ-Z2. I'll need to learn the board hardware and the development framework first. There are a lot of tutorial videos on YouTube, but I found a Xilinx 1-day, hands-on workshop on GitHub that seems to be just what I need. It uses some Pmod and Grove peripherals that I don't have, but they will be well worth the cost if I can get them quickly. I'll blog about my experience as I go through the roadtest.
Here is the workshop link: https://github.com/Xilinx/PYNQ_Workshop
I am also a newbie relative to Jupyter notebooks and I found a very useful overview that explained the basics: https://realpython.com/jupyter-notebook-introduction/#getting-up-and-running-with-jupyter-notebook
PYNQ Tutorial Workshop
Goals
Introduction to the PYNQ project
- Pynq framework
- PYNQ-Z2 board
- Jupyter Notebook Interface
- Overlays and Hardware designs
- Designing overlays
Hands on experience with Jupyter Notebook and the board
Agenda
Introduction
- Introduction to PYNQ
Session 1
- First steps with PYNQ (presentation)
Configure board, SD card
Connect to the board
Labs:
- Getting started with Jupyter Notebooks (notebook)
- Getting started with IPython (notebook)
- Exploring the board (notebook)
- Programming on board peripherals (notebook)
Session 2
- Introduction to overlays (presentation)
Lab
- Grove temperature sensor example (notebook)
- Pmod OLED example (notebook)
- Grove LED bar example (notebook)
- Grove light sensor example (notebook)
Session 3
- Pynq IOPs (presentation)
- logictools overlay (presentation)
Labs:
- Wavedrom tutorial (notebook)
- Logictools Boolean generator (notebook)
- Logictools Boolean generator demo (notebook)
- Logictools pattern generator (notebook)
- Logictools FSM generator (notebook)
- MicroBlaze programming (notebook)
Session 4
- Overlay design methodology (presentation)
Labs:
- PYNQ tutorial on PS GPIO (notebook)
- PYNQ tutorial on AXI GPIO (notebook)
- PYNQ tutorial on MMIO (notebook)
- PYNQ tutorial on XInk (notebook)
- PYNQ tutorial on XInk with PL master (notebook)
- PYNQ tutorial on DMA example (notebook)
- Putting it all together: Resize example (notebook)
Additional hardware required for Labs in Session 2:
The ZYNQ-Z2 has two Pmod connectors to add external peripherals. One will be used for an OLED display and the second will be used with a Grove adapter to interface to the Grove peripherals.
- Grove I2C ADC, use with tempemperature sensor and light sensor
- Grove temperature sensor v1.2 (thermistor)
- Grove light sensor v1.1 (LDR)
- Grove LEDbar v2.0 10 LEDs (7 Green, 1 Light Green, 1 Yellow, 1 Red), uses MY9221 controller
- Pmod OLED 128 x 32 pixels monochrome, uses SSD1306 controller
- Pmod Grove adapter with 4 Grove sockets
Top Comments