Altera_Forum
Honored Contributor
13 years agoSigned adder and subtractor
Hi, I don't know if this is the ideal forum to ask, but I hope someone could help me!
I need to make a simple adder and a subtractor, signed (2's complement), with 9-bits in, 10-bits out, really any bits, I'll have to make several different bits adder/subtractor. It can be 2 different entities, one for adder and one for subtractor. I'm having a problem cause of the overflow, sometimes i have my answer in 8-bits and sometimes in 9-bits.. And I need my answer ALWAYS with 9-bit. Its a little hard to explain, but I guess you guys that are used to programming knows what i'm talking...if not, please respond and I'll send some examples. Oh..I'm using VHDL. Really Thanks!!!