Hello,
I recently started using your Bambu HLS tool and I’ve run into a few issues and questions.
I’m attaching the C function and a screenshot showing the simulation results of the case I describe below.
When I run the following command:
bambu fsum.c --top-fname=double_prec_addition --soft-float
using the Bambu 0.9.7 AppImage, I obtain a simulation where the result remains almost zero regardless of the input values, and the done_port signal never goes high.
This happens every time I try to use float or double types.
When I switch to --flopoco, the numerical result is correct, but the done_port signal still does not toggle.
For integer operations, everything works as expected.
I would also like to ask whether it is possible to generate HDL for functions with more than one output, since from what I’ve seen only the return value is considered as an output.
Additionally, I would like to ask about using the ac_fixed type (from the ac_types library).
Does Bambu require any extra configuration to correctly handle ac_fixed?
If possible, could you please provide a minimal working example (for instance, a simple addition) that demonstrates how to use ac_fixed within Bambu?
Thank you very much for your time and for providing such a powerful tool.
Best regards,
double double_prec_addition(double a, double b)
{
return a + b;
}