VHDL code for a machine help trying to build a security system. I should set up a
Question:
VHDL code for a machine help trying to build a security system. I should set up a password for your protection device as a user. I will arm the security system while you are leaving your building. If the device is protected, I need to insert the appropriate password to unlock the protection system when I return and enter the building. I'll have 30 seconds to type the right password and I just have 3 trials. When I enter incorrect passwords three times, or if I do not enter the right password within 30 seconds, an alert goes off with a warning that the device is being attempted to break.
Device Specifications — Password: a 3-digit decimal number (from 000 to 999) — Minimum permissible amount of attempted failure is 2— Time of disarming credential entry: 30 seconds— Reset button will be activated, restoring the device to original state and configuration.
The system should have 4 modes. The first is the IDLE mode, from this mode we can go to arm mode or password setup mode.
The 2nd is the mode for setting up the password, under this mode, anytime the same push-button is pushed, the password will be registered to the machine, and it returns to idle mode.
The 3rd is the arm mode, to enter this mode a push-button should be designated. The status LED will be ON continuously.
The 4th mode is the door open mode, To enter this mode a push-button should be designated. This mode can only be accessed from arm mode. The timer will start counting down from 30 seconds when the door is open. The second status LED which means the opening of the door should be ON continuously. Setting a BCD number through switches and pressing a push-button will enter a password. When entering an appropriate password, the machine reverts to idle mode. If an incorrect password is used, one LED signals it, and the device remains in open mode at the entrance. When a second-time incorrect password is entered, it is indicated by one more LED and the system remains in open mode at the door. When a second-time incorrect password is used, it is signaled by one more LED and the device stays in open mode at the entrance. On a third time entering an incorrect answer, 3 LEDs will start flashing at a frequency of 1 Hz. If 30 seconds pass without entering a correct password, 3 LEDs should begin blinking at a frequency of 1 Hz. If system alerts, it can only go in IDLE mode by pressing the Reset button.