yuenkit
Advanced Member level 4
signed adder
Hi, I am wondering, how does a 8-bit SIGNED adder work.
there are 3 inputs
a, b, cin
and 2 outputs
sum, cout
normally for unsigned operation, the msb is sent to cout, but for Signed operation, should the msb be sent to cout? how do we know which is carry bit? how do we propagate the sign (+ or -) to the next signed adder block?
Can someone show me with verilog code? thanks.
Edited **************
sorry, the msb i referred is msb of the summation.
Hi, I am wondering, how does a 8-bit SIGNED adder work.
there are 3 inputs
a, b, cin
and 2 outputs
sum, cout
normally for unsigned operation, the msb is sent to cout, but for Signed operation, should the msb be sent to cout? how do we know which is carry bit? how do we propagate the sign (+ or -) to the next signed adder block?
Can someone show me with verilog code? thanks.
Edited **************
sorry, the msb i referred is msb of the summation.