Skip to content

Digital Locker implemented in Verilog HDL using a Finite State Machine (FSM). Unlocks with sequence 1010, includes simulation, RTL schematic, and documentation.

License

Notifications You must be signed in to change notification settings

Divyanshu-53/digital-locker-verilog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

digital-locker-verilog

Digital Locker implemented in Verilog HDL using a Finite State Machine (FSM). Unlocks with sequence 1010, includes simulation, RTL schematic, and documentation.

🔐 Digital Locker using Verilog (Quartus + ModelSim)

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.


🛠 Tools Used

  • 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

📂 Repository Contents

Main Verilog source code

  • docs/ → Report (LaTeX + PDF) with FSM diagram, flowchart, RTL schematic, and waveforms

🚀 How to Run (Quartus + ModelSim)

  1. Open Quartus Prime → create a new project.
  2. Add Locker.v to the project.
  3. Compile/synthesize to generate RTL schematic.
  4. Launch ModelSim-Altera from Quartus.
  5. Add testbench.v + Locker.v → run simulation.
  6. Open waveforms in ModelSim Wave window or export to GTKWave.

📊 FSM States

  • Idle → Waiting for input
  • S1, S2, S3 → Sequence progress
  • Unlocked → Correct sequence entered
  • Error → Wrong input (attempt counter increments)
  • Lockout → After 3 failed attempts

📷 Example Outputs

  • FSM State Diagram
  • RTL Schematic from Quartus
  • Simulation Waveform from ModelSim

📜 License

Licensed under the MIT License – free to use, modify, and share.


🔑 Keywords

Verilog FSM Digital Locker Quartus ModelSim Altera FPGA RTL Design Sequence Detector

About

Digital Locker implemented in Verilog HDL using a Finite State Machine (FSM). Unlocks with sequence 1010, includes simulation, RTL schematic, and documentation.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published