Question

The contents of a four‐bit register is initially 0111. The register is shifted six times to...

The contents of a four‐bit register is initially 0111. The register is shifted six times to the right with the serial input being 1010100. What is the content of the register after each shift?

Explain each part in details.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Right Shift of Register:-

C Input State
0 - 0111
1 1 1011
2 0 0101
3 1 1010
4 0 0101
5 1 1010
6 0 0101

Total number of times register content is shifted=6

Input value= 1010100

Step 1: Register initial value is 0111

Step 2: Before the right shift by one bit = 0111

After right shift by one bit = 1011 i.e., the first bit of input is inserted as the first bit of register content and all the values of the register are shifted to the right side and the last index value of the register is thus removed.

Step 3: Similarly, the 2nd index value of input i.e., 0 is now inserted as the first bit of register content and all the values of the register are shifted to the right side, removing the last bit. So, register content after 2nd shift becomes 0101.

Similarly, step 4 to 6 is also executed.

Add a comment
Know the answer?
Add Answer to:
The contents of a four‐bit register is initially 0111. The register is shifted six times to...
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