Skip to content
This repository was archived by the owner on Jan 29, 2024. It is now read-only.
This repository was archived by the owner on Jan 29, 2024. It is now read-only.

Confusing explanation about signal width #13

Description

@DurandA

In 6_combining.md there is a slightly confusing explanation:

Here, a+b must be a 17-bit signal because in Python, integers are as wide as they need to be.

Please correct me if I'm wrong, but I think it has nothing to do with Python integers behaviour: Signal operators are overloaded (e.g. __add__ in Value which is inherited by Signal) so this behaviour is down to nMigen.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions