projf / projf-explore

Project F brings FPGAs to life with exciting open-source designs you can build on.
https://projectf.io
MIT License
588 stars 53 forks source link

Improve fixed-point test model #168

Closed WillGreen closed 1 year ago

WillGreen commented 1 year ago

Improve fixed-point test model. Add tests cases for values that can't be precisely represented in binary.

This PR also switches to fixed-point for some GTKWave signals.

Thanks to @democrito for raising issue #164, which revealed this problem.

There is still an inconsistency between how the Python fixed-point model and Verilog handle some numbers that can't be precisely represented in binary: see issue #167.