I am new to logical desing and I am not sure how to start the exercise.
The problem:
Assume that we have 2 assinged numbers of 2 bits (A = a1 a0 and B = b1 b0). Desing a combinational logical circuit that computes the S = 4A + 3B and uses half and full adders, only.
What I am thinking is to use 2 full adders to compute the "4 * A", another 2 to compute the "3 * B" and another one to compute the S = 4A + 3B. This mean that I will need 5 full adders in total.
Is this the best and most efficient solution? I guess no but I can't think something better.
Is this diagram right?
3B
is the same asB+2B
, while2B
is shifting as well. So.. looks like you can get away with just two adders :) \$\endgroup\$