The built-in 8-bit binary secret code is 10111010. Use this 8-bit binary key to build a sequential circuit that can recognize it. Note that overlap between two consecutive 8-bit sequences shall NOT be considered.
(1) Please draw a state diagram for your 8-bit sequence recognizer in Mealy model. Assume that S0 is the initial state and other states are represented by S1, S2, and ..., etc.
Problem Statement: The "Gotcha Anti-Theft" Machine
There are many anti-theft devices on the market that attempt to foil a would-be robber from starting your car and driving off with it. One popular item has a keypad like a touch-tone telephone. In order to start your car, you must key in a secret four-digit decimal code, such as '3719'. It only "remembers" the most recent four digits you have keyed in. Thus, the sequence '3723719' will let you start your car. For simplicity here we use a code based on a sequence of eight binary bits and use two push buttons to enter a sequence serially. Each press of a button enters the corresponding digit.
Figure 1. The Gotcha machine in action
As you key in the bits in sequence, the device outputs E=0 until the most recent eight bits agree with a built-in secret code byte. Then E switches to 1.