4 ms·
This is probably not what you're looking for because it might not be high performance. But in hardware synthesis/modeling, we use the so called "AC data types"
by MarkusWandel 4y ago
This is probably not what you're looking for because it might not be high performance. But in hardware synthesis/modeling, we use the so called "AC data types" and I just googled that and found it on Github.
https://github.com/hlslibs/ac_types https://github.com/hlslibs/ac_types
Arbitrary bit length, symmetrical and unsymmetrical, rounding and wraparound behaviour specifiable etc. etc.