Design an arithmetic circuit with one selection variable S and two n-bit data inputs A and B.

Question:

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.

S 0 1 Cin=0 D A + B (add) DA 1 (decrement) Cin = 1 DA +1 (increment) D= A + B + 1 (subtract)

Step by Step Answer:

Related Book For  answer-question

Computer System Architecture

ISBN: 9780131755635

3rd Edition

Authors: M. Morris Mano

Question Posted: