Design an arithmetic circuit with one selection variable S and two n-bit data inputs A and B. The circuit generates the following four arithmetic operations in conjunction with the input carry Cin. Draw the logic diagram for the first two stages. 5 marks S Cin =0 Cin= 1 0 D = A + B (add) D = A + 1 (increment) 1 D = A - 1 (decrement) D = A + B’ + 1 (subtract)
Captured above is the design out: It has the follwing integrated:
S Cin =0 Cin= 0 D = A + B (add) D = A + 1 (increment) 1 D = A - 1 (decrement) D = A + B’ + 1 (subtract)
Comments
Leave a comment