intel / rohd-hcl

A hardware component library developed with ROHD.
https://pub.dev/packages/rohd_hcl
BSD 3-Clause "New" or "Revised" License
81 stars 23 forks source link

Fixed Point Logic and Fixed Point to Floating Point Conversion #116

Closed soneryaldiz closed 3 weeks ago

soneryaldiz commented 1 month ago

Description & Motivation

This PR introduces a new signal type FixedPoint for fixed point arithmetic, and adds a generic module that can convert a fixed-point input to floating-point output with rounding to nearest even.

Related Issue(s)

Testing

Testing includes:

Backwards-compatibility

Is this a breaking change that will not be backwards-compatible? If yes, how so?

Not a braking change.

Documentation

Does the change require any updates to documentation? If so, where? Are they included?

Documentation added to fixed_point.md.

soneryaldiz commented 4 weeks ago

The component supports both normal and subnormal now. I will continue with documentation and configuration.

soneryaldiz commented 3 weeks ago

Resolved comments.

soneryaldiz commented 3 weeks ago

PR ready to merge.