Design a logic which mimics a infinite width register. It takes input serially 1 bit at a time. Output is asserted high when this register holds a value which is divisible by 5.
shinde do we need to take the register length as 4? if yes, then why hav u taken the state S5? and why did u send the condition 0/0 from S2 to S1. i think it should go fro S2 to S2 till it gets 1/0 condition.
do correct me if im wrong.
Added after 1 hours 9 minutes:
if u say that register size is of 4bits then here is what i feel the FSM should be.
hello haneet,
What will happen if we give an input 1001 to your statemachine? Don't you think your statemachine will detect that as divisible by 5??? Correct me if I am wrong!