Question

Problem 2 (10 points): Consider the serial adder shown in Figure below. It uses two 4-bit serial shift registers A and B. Ini

0 0
Add a comment Improve this question Transcribed image text
Answer #1
0 1 2 3 4
Content of A register 0110 0011 1001 0100 0010
Content of B register 0011 0001 0000 0000 0000
S 0 1 0 0 1
Carry 0 0 1 1 0

Explanation:

x y z S C
0 0 0 0 0
0 0 1 1 0
0 1 0 1 0
0 1 1 0 1
1 0 0 1 0
1 0 1 0 1
1 1 0 0 1
1 1 1 1 1

All binary additions(x+y+z) done in the below solution are referred from above table.

Initial values: Given A register 0110

B register : 0011

Since all are reset the S and C values are also 0

After first shift:

LSB of A and B are passed to x and y respectively and since C is zero, the Q of D flip flop is also 0, hence z= 0;

x+y+z = 0+1+0 results in S= 1 and C= 0;

Now the registers are right shifted by 1 bit. The MSB of A becomes the previous S while that of B becomes 0 as Serial input 0 is always appended after every shift.

Hence A = 0011, B= 0001

After second shift:

LSBs of the contents present in A and B after first shift becomes x and y while z will be the previous C which is 0

x+y+z = 1+1+0 results in S=0 and C=1;

while A becomes 1001 (MSB from previous S) and B = 0000

After third shift:

LSBs of the contents present in A and B after second shift becomes x and y and z will be the previous C which is 1;

x+y+z = 1+0+1 results in S= 0 and C=1

while A becomes 0100 and B = 0000

After fourth shift:

LSBs of the contents present in A and B after third shift becomes x and y and z will be the previous C which is 1;

x+y+z = 0+0+1 results in S=1 and C=0

while A becomes 0010 and B = 0000

Add a comment
Know the answer?
Add Answer to:
Problem 2 (10 points): Consider the serial adder shown in Figure below. It uses two 4-bit...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT