Design a controller for an electronic lock system. You have these external inputs: 1. 8 data lines,xx. 2. A single line ENTER, which is 1 for 1 clock cycle whenever data are entered from the keyboard. You also have these packages: 1) a pre-programmed, 64 Word by 8 Bit ROM. Each address of the ROM corresponds to a userid and the 8-bit binary number at an address is the passcode for that user. (2) a 3-minute timer. Make start(ST) on the timer 1 for a single clock cycle to start it. (3) Three minutes later the timer's output, Done(D) is 1 for a single clock cycle when the time is up. The timer also has a clock input which must be connected to the system clock. Your circuit has 5 outputs: 1. U, which is O for a locked door and should be made 1 for a single clock cycle to unlock the door 2. W, which is 0 when the warning LED is off (normal operation) and 1 when it is on (bad passcode entered) 3L6-load user id into register 4- L8-load passcode into register S. S-start timer How your circuit is to operate: 1. Wait for a first ENTER signal at which time 6 bits of data (a userid) are available on xxX(the upper 2 bits of x are unused, i.e., junk) wait for a second ENTER signal at which time 8 bits of data (the entered passcode) are available on x 3- Compare the known (ROM) and entered passcodes. If the passcode agrees, then set UNLOCK to 1 for a single clock pulse and go back to step 1. The user gets one try to enter the passcode successfully. If the user succeeds, unlock the door as above. If not, start the 3-minute timer and during the 3 minutes ignore all new keyboard data (ENTER signals). After the 3 minutes are up, return to waiting for a new userid. 2. Ragis Contol Give: ) the State Diagram; () the State Table (including the FF table): (il) the circuit diagram for your controller; (iv) a written description of how your design works. Design the circuit using JK flip-flops. You may turrn your solution in on paper. If turning in hard copy, please submit a dummy file in Canvas so that I can use a rubric to grade it. Do not gate the clock anywhere