Signed multiplication overflow detection in Verilog

前端 未结 3 419
既然无缘
既然无缘 2020-12-19 11:54

Beginner here. I\'m trying to code a simple 16-bit microprocessor in Verilog and implement it on a Spartan 6. The ALU implements all signed operations (no unsigned operation

3条回答
  •  情深已故
    2020-12-19 12:05

    That will be failed if you add 7 and -3 for example.

      7 : [0]0111
    - 3 : [1]1101
    = 4 : [1]0100
    

    The result will show this is underflow however this is not underflow but just +4.

提交回复
热议问题