Skip to content

Disallow negative binary point #7

@mvanbeirendonck

Description

@mvanbeirendonck

Hi,

I have followed your progress on the FixedPoint type after initially opening chipsalliance/chisel#3161. Thanks a lot for taking that up!

I wanted to ask about "Disallow negative binary point" in one of your latest commits: cb42069. Is disallowing negative binary points necessary?

I know this is also not supported in the current FixedPoint of chisel-3.5.6, but it's actually a feature that I've wanted to use in the past. For example, val fp = FixedPoint(8.W, -8.BP) would represent a 16-bit integer fp * 2^8. This is useful when we're only interested in the most significant bits of an integer.

Is there any reason to explicitly disallow this in the current implementation?

Thanks,
Michiel

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions