tomverbeure / math

SpinalHDL Hardware Math Library
BSD 2-Clause "Simplified" License
77 stars 14 forks source link

Refactor tests; Add multiplier rounding support #7

Closed fayalalebrun closed 5 months ago

fayalalebrun commented 6 months ago

For testing I was previously using pre-generated test cases in files. In order to make things cleaner I now take spawn the python/testfloat process directly and consume from stdout. This also makes it easier to add more tests.

The multiplier now has an option to perform correct rounding, so there is no more error compared to IEEE.