Forum Discussion
Altera_Forum
Honored Contributor
11 years agoBooks try teaching from basics and are many times distant from practice.
if A & B are 4 bits each then their sum needs 5 bits (it is this extra magnitude MSB that can be passed to another adder to complete the job) but all you need is: sum <= std_logic_vector(resize(signed(A),5) + resize(signed(B ) ,5));