LSTM PYNQ on PYNQ Z1/Z2 for time series forcasting

Hi!

I’m actually trying to use this repository : GitHub - Xilinx/LSTM-PYNQ

I want to generate RTL code and IP from a Python LSTM network using pytorch to do time series forcasting in real-time. I want to implement that on a pynq z1 or z2 board. The above repository allows that ? How can I generate automatically Vivado HLS generated RTL and IP from my python lstm network ?

Thanks in advance !
Sami

1 Like

You are asking two seperate questions.
The LSTM-PYNQ github repo’s readme will help you guide on how to use it in your use case.

You cannot automatically generate HLS IPs, but you will have to see what math or signal component the lstm network requires and then design the functionality in Vivado HLS.

I see, the example model use a common library like pytorch or keras ?

It is possible to use that example easily for time series forecasting with numerical values ? Can I just change the datasets and the precision or there is some more parameters to adapt. For the moment, I just want to generate an HLS/RTL LSTM model for general time series forecasting.
After that, if I just need to adapt some specifics values, I think this is not a problem.

Thanks!

1 Like