Synthesiseable IEEE 754 floating point library in Verilog.
- Provides Divider, Multiplier and Adder
- Provides float_to_int and int_to_float
- Supports Denormal Numbers
- Round-to-nearest (ties to even)
- Optimised for area
- Over 100,000,000 test vectors (for each function)
To run the test suite, you will need the g++ compiler, and the icarus verilog simulator.
For each arithmetic function, a test-bench is provided. The testbench consists of a Python script run_test.py and a Simple C model used as the reference for verification. The C reference model is contained in the c_test subfolder. To recompile the C model run the following command:
~$ cd c_test ~$ g++ -o test test.cpp
The test suite consists of corner cases, edge cases, and 100,000,000 constrained random vectors. The test suite could take several days to run to completion. To run the test suite, run the following command:
~$ ./run_test.py
Each arithmetic module accepts two 32-bit data streams a and b, and outputs a data stream z. The stream interface is decribed in the chips manual manual.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。