基于FPGA的密码锁设计【实用文档】doc.doc
上传人:天马****23 上传时间:2024-09-10 格式:DOC 页数:91 大小:3.6MB 金币:10 举报 版权申诉
预览加载中,请您耐心等待几秒...

基于FPGA的密码锁设计【实用文档】doc.doc

基于FPGA的密码锁设计【实用文档】doc.doc

预览

免费试读已结束,剩余 81 页请下载文档后查看

10 金币

下载此文档

如果您无法下载资料,请参考说明:

1、部分资料下载需要金币,请确保您的账户上有足够的金币

2、已购买过的文档,再次下载不重复扣费

3、资料包下载后请先用软件解压,在使用对应软件打开

基于FPGA的密码锁设计【实用文档】doc文档可直接使用可编辑,欢迎下载评语学号14082200163成绩《现代数字系统设计》课程论文题目基于FPGA的密码锁设计作者嘿嘿班级0803BF院别信息与通信工程专业电子信息工程完成时间2011年5月8日基于FPGA的密码锁设计【摘要】基于FPGA设计的电子密码锁是一个小型的数字系统,与普通机械锁相比,具有许多独特的优点:保密性好,防盗性强,可以不用钥匙,记住密码即可开锁等。目前使用的电子密码锁大部分是基于单片机技术,以单片机为主要器件,其编码器与解码器的生成为软件方式。在实际应用中,由于程序容易跑飞,系统的可靠性能较差。本文介绍一种基于现场可编程门阵列FPGA器件的电子密码锁的设计方法采用VerilogHDL语言对系统进行描述,并在EP1K10TC100-3上实现。系统所实现的功能:用户给电子密码锁设定一个密码,当使用本机键盘开锁时,该密码与用户设定的密码比较,如果密码正确,则开锁;如果密码不正确,则允许用户重新输入密码,最多可输入三次,若三次都不正确,则扬声器报警,直到按复位键才允许再次输入代码。通过仿真调试,利用可编程器件FPGA的电子密码锁的设计基本达到了预期目的。当然,该系统在一些细节的设计上还需要不断的完善和改进,特别是对系统的扩展有很好的实用和设计的价值。【关键词】:现场可编程门阵列,硬件描述语言,电子密码锁,扬声器【Abstract】FPGA-baseddesignoftheelectroniccodelockisasmalldigitalsystem,electronicpasswordlockcomparedwithordinarymechanicallocks,withmanyuniqueadvantages:goodprivacy,securityandstrong,cannotkeytorememberpasswordstounlock,andsoon.AtpresenttheuseoftheelectroniccodelockonmostofSCMtechnologytoSCMasthemaindevices,encodersanddecodersofHealthandthesoftwareapproach.Inpractice,sincetheprocesseasyruntofly,thereliabilityofthesystemcanbepoor。Basedonthispaper,afieldprogrammablegatearraysFPGAdeviceselectronicpasswordlockdesign,VerilogHDLlanguageusedtodescribethesystemandachieveEP1K10TC100—3.Implementationofthesystemfeatures:usersofelectronicpasswordlocktosetapassword,whenusingthekeyboardunlockthemachine,theuserpasswordandsetthepassword,ifthecorrectpassword,thenunlockifthepasswordisnotcorrect,allowsUserstoenterapassword,canenteruptothreetimes,threetimesifnotcorrect,thespeakeralarm,untiltheresetbuttononlyallowedtore-enterthecode。ThesimulationtestsusingprogrammabledevicesFPGAelectronicpasswordlockthebasicdesigntoachievetheexpectedgoal.Ofcourse,someofthedetailsofthesysteminthedesignoftheneedtoconstantlyrefinedandimproved,inparticulartheexpansionofthesystemhaveagooddesignandpracticalvalue.【Keywords】:FPGA,VerilogHDL,electronicpasswordlock,speakerTOC\o”1-3”\h\uHYPERLINK\l_Toc12446基于FPGA的密码锁设计PAGEREF_Toc124462HYPERLINK\l_Toc29358一、概述PAGEREF_Toc2