see we ae receiving bits serially at each clock pulse then if i want to know if received bits are divisable by five at the next clock stopping the reception?wat are all the various ways to find?
see we ae receiving bits serially at each clock pulse then if i want to know if received bits are divisable by five at the next clock stopping the reception?wat are all the various ways to find?
it means if we are getting 101010101......(at every clock we receiving one bit) then if we are stoping the reception at one instant and nxt clock we have to find whether received bit is divisible by 5?how to find ?
ex
input stream 1010101010111.....
if we stoping this reception at 1010101010111 then at nxt clk we have to tell i whether so far received bits are divisible by 5
Use the received bits to step a 5 stage cyclic counter (such as a ring counter). Do a logic test with the next pulse against the output of the counter. If the counter is set at five, then the number of bits in your input string was divisible by 5.