Question: Design an arithmetic circuit with two selection variables S 1 and S 0 and two n- bit data inputs A and B. The circuit generates
Design an arithmetic circuit with two selection variables S1 and S0 and two n- bit data inputs A and B. The circuit generates the following eight arithmetic operations in conjunction with carry Cin:

Draw the logic diagram for the two least significant bits of the arithmetic circuit.
S So 0 0 0 1 1 0 1 1 Cin = 0 F = A + B (add) F = A + B F = A 1 (decrement) F = A (1s complement) Cin = 1 F = A + B + 1 (subtract A - B) F = A + B + 1 (subtract B - A) F = F = A + 1 (increment) A + 1 (2s complement)
Step by Step Solution
3.39 Rating (155 Votes )
There are 3 Steps involved in it
Operations Based on S1 and S0 S1 0 S0 0 Cin 0 F A B Cin 1 F A B 1 adding 1 as a carry S1 0 S0 1 Cin ... View full answer
Get step-by-step solutions from verified subject matter experts
