1、 毕业设计(论文)毕业设计(论文) 题目:4 位数字密码锁设计(密码设置及验证电路) 学 生 姓 名: 学号: 学 部 (系) : 信息科学与技术学部 专 业 年 级: 08 通信工程 指 导 教 师: 职称或学位: 2012 年 05 月 31 日 目录目录 1 绪论 .5 1.1 设计内容5 1.2 设计要求5 2 系统设计 .5 2.1 模块划分 .5 2.1 系统原理框图 5 3 功能模块的实现6 3.1 时序电路6 3.2 密码设置7 3.3 密码输入7 3.4 密码验证8 4 软件仿真 9 5 数字逻辑系统简介 10 5.1 Quartus II 软件简介 10 5.2 硬件描述语
2、言. 11 5.2.1 VHDL 语言 11 5.2.2 Verilog 语言 . 12 6 结论 13 附录 14 1 时序电路 14 2 密码设置输入 . 16 3 密码验证 17 参考文献 . 19 谢辞 20 摘要摘要:本设计利用 FPGA 作为核心控制板,用 Verilog 硬件描述语言进行编程,利用计 算机软硬件控制技术,设计一个基于 FPGA 的数字密码锁,能实现密码设定(如果密码 没设定则默认密码为 0000) ,密码输入及验证,当密码输入错误时报警或则指示灯亮; 反之,密码输入正确时,另外一个指示灯亮。将程序下载到 Altera 公司的 Cyclone 系 列目标芯片 EP2
3、C5T144C8 上调试通过,并观察实际现象,满足设计要求。 关键词关键词:FPGA Verilog 数字密码锁 Abstract The design using the FPGA as the core of the control panel, Verilog hardware description language for programming, Computer hardware and software control technology, design an FPGA-based digital code lock, Set the password(if the pass
4、word is not set then the default password is 000000), Password input and verification, Alarm or the light when the password input error; On the contrary, enter the correct password , a light. Program downloaded to the target chip EP2C5T144C8 Alteras Cyclone series through debugging , and to observe the actual phenomenon , to meet the design requirements. Keywords: FPGA Verilog Digital code lock 引 言 随着人们生活水平的提高,如何实现家庭防盗这一问题也变得尤其的突出,传统的 机械锁由于其构造的简单,被