Your task is to implement a digital circuit in Logisim for a door lock. The door lock works as follows:
It has a digital panel with 10 digits (0, 1, 2, 3, 4, 5, 6, 7, 8, 9)
It has three LED lights installed on it (RED, BLUE, GREEN)
The door is locked with a 4-digit code (your student ID)
At a time only a single LED is switched ON
Initially RED light is ON
While pressing correct digits, BLUE light turns ON
When the whole code is correct, GREEN light turn ON
When the next key is wrong, lock goes back to its initial state and RED light turns ON
After every key press, you have at most 5 seconds to press the next key, otherwise the lock goes back to its initial state and RED light turns ON
Your task is to implement above mentioned circuit. Read chapter 3.4 of the book, which will give you necessary information on how to solve it using FSM