fastmachinelearning / hls4ml

Machine learning on FPGAs using HLS
https://fastmachinelearning.org/hls4ml
Apache License 2.0
1.19k stars 390 forks source link

No return in allocate_mem function ( axi_stream_driver Alveo) #771

Open davidecarini opened 1 year ago

davidecarini commented 1 year ago

Quick summary

In the function allocate_mem in hls4ml/templates/vivado_accelerator/alveo/python_drivers/axi_stream_driver.py there is no return of the 2 buffers: input_buffer and output_buffer. When an user wirtes the host code with pinq is very important to have this 2 buffers returned from the function.

Possible fix

Include at the end of the function the line: return input_buffer, output_buffer