Electrical – Design a sequence detector to detect 1001 or 11

circuit analysiscircuit-designdigital-logicsequence-detector

I want to draw a state diagram about the sequence detector circuit. The circuit will generate a logic “1” output is a sequence of 11 or 1001 is received. I have my answer, but I don't know my answer whether correct. Please help me check.

enter image description here

New result here:
enter image description here

Best Answer

Your second state machine is correct.

10&1001 State Machine