- PYNQ version
PYNQ3.0.1
- Board name
PYNQ-ZI
- Tool Version
Vitis HLS 2022.2
Vivado 2022.2
- There is no wrong messages, but I got 0 output for every overlay that I generate. So there must be something wrong.
jupyter
from pynq import Overlay
overlay=Overlay('./add_test.bit')
add_fun=overlay.add_0
add_fun.register_map
add_fun.register_map.a = 3
add_fun.register_map.b = 4
add_fun.register_map.c
the output is
Register(c=0)
with code
add_fun.write(0x10,4)
add_fun.write(0x18,4)
add_fun.read(0x20)
output is also 0
blockdesign
hls code is same as pynq toturial.
At first I think it is the version problem(PYNQv2.5 with Vitis 2022.2), but it still brothers me on PYNQ3.0
I’m new to ZYNQ and PYNQ. Is there any possible reason for the situation?
Hi @MS-chang,
Welcome to the PYNQ community.
Which tutorial are you referring to?
Mario
thanks for reply.
Overlay Tutorial — Python productivity for Zynq (Pynq)
the hls code is
void add(int a, int b, int& c) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=a
#pragma HLS INTERFACE s_axilite port=b
#pragma HLS INTERFACE s_axilite port=c
c = a + b;
}
Can you please report the full add_fun.register_map?
OK I got the reason now. Do not use the boards-files for PYNQ-Z1 supported on Board Settings — Python productivity for Zynq (Pynq).
It is WRONG! just select the part xc7z020clg400-1 for PYNQ-Z1.
I’ve been back-stabbed by the official website document.
From here I got the clues: overlay_tutorial/ip/scalar_add/script.tcl at main · schelleg/overlay_tutorial (github.com).