a sequential circuit has one input (X) and one output (F). The circuit examines groups of four consecutive inputs and produces an output F=1 if the input sequence 0101 or 1001 occurs. The circuit resets after every four inputs. Write VHDL code for the circuit.