Structure in HLS

Hi, everyone
I found the source code and its function input is a structure.
image


image
How can I use PYNQ to run the board by building structure in python as input. Or should I change the structure into normal value?

1 Like

This is mainly a HLS question, so you might learn more by searching on the Xilinx forums and HLS documentation for structs.

Have you built your hardware successfully? If yes, then search for a *_hw.h file in your HLS project directory. This should show the register offsets to access the parameters for your function.

You may also be able to use the register_map feature in PYNQ to discover the registers/offsets: example video of register map here: Using the PYNQ 'register map' functionality - YouTube

Cathal

2 Likes