How do you detect a sequence of "1101" arriving serially from a signal line?
try finite state machine logic it will definitely give the output