pagu
Design a clocked synchronous state machine for a combinational lock with two inputs (y and z) and one output (x).
Input ‘y’ is used to initialise the sequence entry.
Input ‘z’ is used to enter the binary sequence to unlock.
Output ‘x’ will be turned on if and only if the binary sequence is entered in proper order after the initialisation and must remain on as long as y input remains high.
This combinational lock operates as follows.
Input ‘y’ must have changed from low to high in the previous clock period and should remain high afterwards (Initialisation). Entry of first binary digit must be done before the next clock cycle starts and entry of the remaining digits is done on the subsequent clocks. If a wrong sequence is entered, it will require re-initialising to start entering the correct sequence. binary digits = 10010000