J
Juha Turunen
Guest
Hi,
I need to add too signed binary numbers which are in a format such
that the MSB is the sign and the rest of the bits are the number's
absolute value. The addition can be done with combinatorial logic
and must be implemented with 74-series logic. Using such number
format probably doesn't make much sense, but homework assignments
rarely do
So what I planned was to make a circuit that first converts the
numbers to 1's complement if the sign bit is 1 with XOR gates and
then adding them together. The carry out of the last adder must be
connected to the carry in of the first adder, right? The result is
converted back to the original number format.
Will this work?
--
Juha Turunen (turunen(at)iki.fi) elpuri@IRC | The problem with the global
Torikatu 5A4, 53900 Lappeenranta, Finland | village are all the global
GSM: 040-7092525, http://iki.fi/turunen/ | village idiots.
I need to add too signed binary numbers which are in a format such
that the MSB is the sign and the rest of the bits are the number's
absolute value. The addition can be done with combinatorial logic
and must be implemented with 74-series logic. Using such number
format probably doesn't make much sense, but homework assignments
rarely do
So what I planned was to make a circuit that first converts the
numbers to 1's complement if the sign bit is 1 with XOR gates and
then adding them together. The carry out of the last adder must be
connected to the carry in of the first adder, right? The result is
converted back to the original number format.
Will this work?
--
Juha Turunen (turunen(at)iki.fi) elpuri@IRC | The problem with the global
Torikatu 5A4, 53900 Lappeenranta, Finland | village are all the global
GSM: 040-7092525, http://iki.fi/turunen/ | village idiots.