Hi, dear PYNQ experts,
I use PYNQ-Z1 for application development.
In the beginning, I put all the python program in one single .py file and then execute via python3.6 xxx.py. It includes loading the overlay .bit, the configuration of control registers in the PL and then enables the hardware in the PL. However, it takes a very long time to wait for complete in command script mode.
After some debugging by profiling the execution time of the .py code, I found that the loading of the overlay .bit file takes 6.x sec which dominates the 99% of the execution time of the .py code. For the demo, it’s not a good user experience since all are waiting for the result to come out.
Thus, I’m thinking how you usually tackle the problem. Can I separate the .py program into one .py program to load the overlay and one .py program for configuration and enable the hardware in the PL and then execute the two .py program in sequence? I only need to load the overlay once before execution of the Python PL driver code.
Would you please share your comments or best practices if any ?