I follow the youtube tutorial https://www.youtube.com/watch?v=BUVbKonhc2w
C/RTL Cosimulation OK
Add the IP to Vivado with BRAM and Axi BRAM controller
Generate tcl and bit file. Upload to PYNQ
I spend some time look for how to control axis_lite peripherla. And found the driver file on the ouput of HLS
I also need IEEE 754 format converter to conver float value to uint32
Maybe I need to convert decimal format to hex too
In the end, the IP calculate the result by x bram data only for all res bram[0-99]
The math function is OK. But the BRAM access seems has problem.
Or maybe I should move BRAM into my HLS , instead of leave it outside.
Sorry, My Bad . I need to add function to convert data from float to IEEE 754 binary format.
Also change Read/Write BRAM function
And the result is correct.
Take away lesson:
2.IEEE 754 format translation
Download CFN.zip (HLS Source Code , tcl, bit and Jupyter Notebook)