Skip to content

[HDL] Signed vs. Unsigned Multiplication in VHDL/Verilog #698

@Jiahui17

Description

@Jiahui17

The HW implementations of unsigned and 2's complement multiplication are different.

Currently, the VHDL implementation interprets any multiplication as signed multiplication:

Image

The Verilog implementation interprets any multiplication as unsigned multiplication:

Image
  • In the VHDL case, the result would be incorrect for unsigned multiplication if any input number is greater than half the maximum possible number
  • In the Verilog case, the result would be incorrect if any operand is negative

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