Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dawsonjon/fpu
synthesiseable ieee 754 floating point library in verilog
https://github.com/dawsonjon/fpu
Last synced: 6 days ago
JSON representation
synthesiseable ieee 754 floating point library in verilog
- Host: GitHub
- URL: https://github.com/dawsonjon/fpu
- Owner: dawsonjon
- License: mit
- Created: 2013-12-07T16:16:44.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2023-03-13T18:44:03.000Z (over 1 year ago)
- Last Synced: 2024-08-02T09:27:20.160Z (3 months ago)
- Language: Verilog
- Size: 99.6 KB
- Stars: 501
- Watchers: 23
- Forks: 139
- Open Issues: 12
-
Metadata Files:
- Readme: README.rst
- License: COPYING.txt
Awesome Lists containing this project
- awesome-opensource-hardware - fpu
- StarryDivineSky - dawsonjon/fpu
README
IEEE 754 floating point arithmetic
==================================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)Test
====Dependencies
------------
To run the test suite, you will need the g++ compiler, and the icarus verilog
simulator.Procedure
---------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.cppThe 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
Interface
=========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.