For the final project of the class Digital Electronics, we were told to make an electronic vault. These are the sources to the CPLD that control everything. It met all of the specifications except two: the stepper motor burned out and there was a backdoor that somehow slipped past my professor unnoticed. If the backdoor code was used, the alarm would sound, but the vault would still open.
The code is entered into the keypad. If the combination is correct, the stepper motor opens the lock, otherwise, the alarm sounds. The reset button is pushed, and the cycle starts over again.
Files:
Electronic Vault VHDL Source Code (zip)