2. Design a 2-input multi-function circuit that will perform the following operations:
Input Code Operation
00
A+B
01
shift_left(A) (A+A)
10
A+B+1
11
shift_left(A)+1 (A+A+1)
Assume you have available only one multiplexer and one full adder component.
(Hint: Think of a creative way to add the results of 1st and
2nd functions to achieve the 3rd and 4th functions, respectively.)
3. Suppose you are given a full adder, a multiplexer, inverters, AND gates, and OR gates. Construct a 2-function circuit that will add and subtract.