A Verilog-based password-protected digital lock system using a 4x4 keypad interface, FSM-based password matching, and Vivado testbench simulation.
This project implements a password-protected digital lock system using Verilog HDL. It simulates a 4x4 keypad input with FSM-based password matching and shows LOCKED/UNLOCKED status based on user input. Simulated and tested using Xilinx Vivado.
- 4x4 Keypad input scanning
- FSM-based password matcher
- Configurable password (
default: 1-2-3-4) - Outputs
unlockedorlockedstatus - Works with Vivado simulation (XSim)
- Pure Verilog, no SystemVerilog extensions
| File | Description |
|---|---|
keypad_scanner.v |
Scans 4x4 keypad input and detects valid keypresses |
password_matcher.v |
Matches entered keys against the password |
top.v |
Top-level wrapper connecting keypad and matcher |
tb_top.v |
Testbench simulating user input via keypad |
- Simulated using Vivado XSim
- Testbench feeds correct/incorrect key sequences
- View
unlockedandlockedoutput in waveform
verilog-keypad-password-lock/
|
|ββ src/
| βββ keypad_scanner.v
| βββ password_matcher.v
| βββ top.v
|
|ββ tb/
| βββ tb_top.v
|
|ββ waveform.png
'ββ README.md
Dayanand Bisanal