Design an arithmetic circuit with one selection variable S andtwo 4-bit data inputs A and B. The circuit generates the followingfour arithmetic operations in conjunction with the input carry Cin.Draw the logic diagram for the circuit. S Cin = 0 Cin = 1 0 D = A +B’ (subtract with borrow) D = A + 1 (increment by 1) 1 D = A + 2(increment by 2) D = A + B + 1 (add with carry)