Closed barClaudio closed 1 year ago
Hi,
When --fp-format-interface is used, the top-level interface is modified to generate values according to the user-defined custom floating-point encoding. The generated testbench does not automatically convert I/O values, so the simulation fails. If you need to test such an implementation, I suggest you write a testbench to convert standard floating-point formats into the kernel encoding and back. You can find an example under examples/truefloat
in this repo.
When using the latest AppImage file, the testbench produces an incorrect result when using the following top function:
float user_fp(float a, float b, float c) { return a * b + c; }
I am launching bambu with the following command:bambu module.c -O3 -lm --simulate --top-fname=user_fp --fp-format=user_fp*e5m10b-16nih --fp-format-interface --generate-tb="a=3.0,b=4.0,c=5.0" --print-dot
The same example works using the 0.9.8 AppImage file.
Below is the full output of bambu: