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 input error, an alarm signal is output , even if the fourth and fifth also enter the correct output alarm signal.This design uses Modelsim software write Verilog HDL hardware description language program to implement a password lock , alarm function. The simulation debugging , using the programmable device FPGA design basic electronic locks to achieve the desired purpose。Key words: FPGA;The digital combination lock;Verilog HDL;目录摘 要 IAbstract 0 第 1 章 所选项目的讨论意义 0 1 。 1 概述 0 1 。 2 数字密码锁的讨论现状 1 1.2 。 1 数字密码锁的应用 1 1.2 。 2 数字密码锁的困难 1 1 。 3 本文讨论意义 2 1.4 设计思路 2 第 2 章 设计方案 3 2 。 1 功能定义 3 2.2 模块设计 3 第 3 章 系统软件设计 5 3 ...