Qes - to the first bit is 0) If S =1 then it will behave as...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Q. 1 How to implement Adder and Subtracter by using single circuit? Ans: Take one selection input i.e. S and connect this to the first bit of the circuit. Also connect this S input along with B input to a XOR gate and output of the XOR gate connect to circuit for input B. Now if S = 0 circuit will behave as Adder. (It will not change the B value and the carry in
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: to the first bit is 0) If S =1 then it will behave as a Subtractor. (B input will be complemented with the help of XOR gate and carry in to the first bit of the circuit is 1 so in it gives two's complement of the input B) Above logic you can implement for more than one bit as well....
View Full Document

Ask a homework question - tutors are online