PYNQ version 2.5 & PYNQ-Z2 & Vivado 2019.1
Hi, I am currently working on a project including a timer. When including the timer, I can generate the bitstream, and use the .tcl, .hwh and .bit files on the board. The timer is detected on the overlay, but the object is not detected. I can use my PWM analyzer just fine.
from pynq import Overlay
ol = Overlay(“design_emulator.bit”) # load the design
Welcome to PYNQ community =]
Post the address map table as well.
Hi, thanks for the reply.
I’m not sure how to find that, which file is needed ?
I think that’s what you asked for
It raises a key error, I can not access the object. I will send the trace in the morning.
Interesting, I cannot see the issue you had.
My Image is PYNQ 2.7.
Maybe try direct addressing the address:
I see v2.6 removed support for .tcl file and is using .hwh file for the overlay, do you know if I can select to generate the overlay with .tcl or .hwh in v2.5?
Here is the trace :
Traceback (most recent call last):
File “/home/xilinx/jupyter_notebooks/E_CONTROL_2023_SP_EMULATOR/emulator.py”, line 16, in
timer = ol.axi_timer_0
File “/usr/local/lib/python3.6/dist-packages/pynq/overlay.py”, line 337, in __ getattr __
return getattr(self._ip_map, key)
File “/usr/local/lib/python3.6/dist-packages/pynq/overlay.py”, line 737, in __getattr __
driver = ipdescription’driver’
File “/usr/local/lib/python3.6/dist-packages/pynq/overlay.py”, line 602, in __init __
setattr(self, interrupt, Interrupt(details[‘fullpath’]))
File “/usr/local/lib/python3.6/dist-packages/pynq/interrupt.py”, line 98, in __init __
File “/usr/local/lib/python3.6/dist-packages/pynq/interrupt.py”, line 159, in get_controller
ret = _InterruptController(name)
File “/usr/local/lib/python3.6/dist-packages/pynq/interrupt.py”, line 177, in __init __
self.mmio = MMIO(PL.ip_dict[name][‘phys_addr’], 32)
Hand it to @cathalmccabe or @marioruiz
I cannot see the reason behind the issue you are facing.
For 2.7 Image no issue found maybe older version is more unstable?
Incase you can double check my blocks:
Adding an interrupt controller seems to be fixing my issue so far. I’ll update this thread if running into more issues.
Thanks for the help.
Can you repeat the same issue after removing the AXI-interrupt?
I am confused by adding additional AXI interrupt resolve the issue?
How about without interrupt connecting and ZYNQ interrupt is disable?
Yes if I remove the AXI interrupt controller I reproduce the error, adding it back seems to make the setup work fine.
I’m unsure what you ask me to try, remove the IRQ connection between the controller and the PS and disabling IRQ port on PS?
Yes disable the interrupt function in ZYNQ block and leave the irq open.
If this also introduce the same issue?
No there is no issue if I disable the interrupt (I just can not use the interrupt), I can apparently access the registers. The IP is loaded without interrupt.
Could help a bit on such behavior on PYNQ 2.5 image.
Why additional AXI interrupt blocks is needed?
Earlier versions of PYNQ required an interrupt controller, in the latest version a single interrupt can be connected directly to the IRQ pin. More than one interrupt, requires an interrupt controller.