Resetting the Overlay

Board: Pynq-z2, latest version
Vivado: 2023.2

I’ve noticed that if I try to replace a custom overlay with a new version, it doesn’t really replace the original. For example, I recently doubled the size of a Block RAM, but the notebook still saw the original size. Other times, I’ve changed the names of things, but the notebook still only saw the original names. Resetting the kernel doesn’t help.

The only solution I’ve found is to reboot the board, which OK if I remember to do it while the project is synthesizing, but since I’m using DHCP, it sometimes changes the board IP, which is annoying.

Is there any other solution to this problem?

It’s the bug in PYNQ 3. I have already talked about it before. There is some caching issue that doesn’t reload the updated hwh file. You can use PL.reset() before loading the overlay. It will solve the problem

1 Like

Thanks, that’s very helpful!