CPLD/FPGA 课程设计项目名称: 基于 FPGA 的数字密码锁设计 专业班级:学生学号:学生姓名:指导老师:2024 年 6 月 4 日摘要本设计是基于现场可编程门阵列 FPGA 器件的电子密码锁的设计
通过 Verilog 语言控制 4 位二进制数,组成数字排列,形成一个简单的数字密码锁,假设预设密码为 4位数:0000,当输入正确时输出为 1、输入错误时输出为 0
同时输出输入的次数,当 3次以上输入错误时,输出一个报警信号,即使第四、五次输入正确也输出报警信号
本设计利用 Modelsim 软件编写 Verilog HDL 硬件描述语言程序以实现输入密码、开锁、报警功能
通过仿真调试,利用可编程器件 FPGA 的电子密码锁的设计基本达到了预期目的
关键词:现场可编程门阵列;数字密码锁;Verilog HDL;AbstractThis design is the electronic code lock field programmable gate array FPGA devices based design
By Verilog language control 4—bit binary number , composed of figures arranged to form a simple digital lock, assuming that the default password is 4 digits : 0000, correct output when the input is 1 , the output of the input error to zero
At the same time the number of input and output , and when more than three times the i