780 views
0 votes
0 votes
In shift register, we can make it "multiply by 2" and "divide by 2" circuit by right triggering and left triggering respectively? (True/False)

1 Answer

Best answer
0 votes
0 votes
yes

so 2*2=4

2 in binary 0010

4 in binary 0100

so whenever we multiply a number by  2 we just have to perform left shift operation

7*2 = 0111 + left shift = 1110= 14

Similar logic applies for division by 2 we just have to perform right shift

eg: 8/2=4 now 8=1000 in binary 4= 0100 in binary

 

bonus: 7/2

7=0111 now right shift 0011.1=3.5

so if your LSB has 1 and you have to perform right shift just move that 1 after decimal position

similarly 5/2= 0101 +right shift =0010.1=2.5
selected by

Related questions

1 votes
1 votes
1 answer
1
sh!va asked Feb 28, 2017
1,105 views
Given shift register is initially loaded with the bit pattern "1010". After how many clock cycles will the content of shift register be "1010" again?a) 5b) 9c) 7d) 15
1 votes
1 votes
1 answer
2
reena_kandari asked Jan 29, 2017
630 views
I feel answer is 70 in hexadecimal.need confirmation?
1 votes
1 votes
1 answer
3
vaishali jhalani asked Jan 10, 2017
390 views
Ans given is 6.
0 votes
0 votes
0 answers
4
vaishali jhalani asked Dec 16, 2016
249 views