Skip to content

Tighter bounds for integer negation of 1-bit signals #1631

@CatsAreFluffy

Description

@CatsAreFluffy
>>> from amaranth import *
>>> (-Signal(unsigned(1))).shape()
signed(2)
>>> (-Signal(signed(1))).shape()
signed(2)

The first one can be signed(1), and the second one can be unsigned(1).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions