Digital Locker implemented in Verilog HDL using a Finite State Machine (FSM). Unlocks with sequence 1010, includes simulation, RTL schematic, and documentation.
This project implements a Digital Locker using Verilog HDL and is designed/tested using Intel Quartus Prime and ModelSim-Altera.
The locker is modeled as a Finite State Machine (FSM) that unlocks when the correct sequence 1010
is entered.
After 3 failed attempts, the system enters a lockout state until reset.
- Intel Quartus Prime – for synthesis and RTL generation
- ModelSim-Altera – for simulation and waveform analysis
- FPGA (optional) – design can be implemented on Intel/Altera FPGA boards
- LaTeX – documentation and report
Main Verilog source code
docs/
→ Report (LaTeX + PDF) with FSM diagram, flowchart, RTL schematic, and waveforms
- Open Quartus Prime → create a new project.
- Add
Locker.v
to the project. - Compile/synthesize to generate RTL schematic.
- Launch ModelSim-Altera from Quartus.
- Add
testbench.v
+Locker.v
→ run simulation. - Open waveforms in ModelSim Wave window or export to GTKWave.
- Idle → Waiting for input
- S1, S2, S3 → Sequence progress
- Unlocked → Correct sequence entered
- Error → Wrong input (attempt counter increments)
- Lockout → After 3 failed attempts
- FSM State Diagram
- RTL Schematic from Quartus
- Simulation Waveform from ModelSim
Licensed under the MIT License – free to use, modify, and share.
Verilog
FSM
Digital Locker
Quartus
ModelSim
Altera FPGA
RTL Design
Sequence Detector