divider: Fix overflow calculation
authorPaul Mackerras <paulus@ozlabs.org>
Sat, 7 Dec 2019 04:26:25 +0000 (15:26 +1100)
committerPaul Mackerras <paulus@ozlabs.org>
Sat, 7 Dec 2019 04:30:07 +0000 (15:30 +1100)
commit5a0458dec165d8d52f5b91b6f73c28b2768371ac
tree1d503d102926fd5f7a545b3f69dbc2c939e42ec2
parentd04887fdcd3cc550bbc8b2383ff6f4331bde5f9d
divider: Fix overflow calculation

We were signalling overflow when neg_result=1 but the result was zero.
Fix this.

Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
divider.vhdl