您好,欢迎访问三七文档
当前位置:首页 > 电子/通信 > 综合/其它 > -基于FPGA的电子密码锁的设计
本科毕业设计基于FPGA的电子密码锁的设计摘要随着现代电子技术的迅猛发展,相信电子密码锁将会逐渐取代普通的机械密码锁。主要是由于电子密码锁拥有几个普通机械密码锁不可能替代的优点:保密系能好、安全度高、即防盗性能强,不需要使用钥匙、即记住密码就可开锁等等。本文主要阐述了一种基于现场可编程门阵列FPGA器件的电子密码锁的设计方法。用FPGA器件构造系统,所有算法完全由硬件电路来实现,使得系统的工作可靠性大为提高。而且由于FPGA具有现场可编程功能,当设计需要更改时,只需更改FPGA中的控制和接口电路,利用EDA工具将更新后的设计下载到FPGA中即可,无需更改外部电路的设计,大大提高了设计的效率。因此,采用FPGA开发的数字系统,不仅具有很高的工作可靠性,而且升级也极其方便。此设计采用EDA技术,利用MAX+PLUSⅡ工作平台和VHDL硬件描述语言,设计了一种电子密码锁,并通过本学院的实验箱FPGA芯片实现。关键词:电子密码锁FPGAVHDL硬件描述语言EDAMAX+PLUSⅡTheDesignofElectronicLocksBasedonFPGAWuYaoxiao(CollegeofEngineering,SouthChinaAgriculturalUniversity,Guangzhou510642,China)Abstract:Withtherapiddevelopmentofmodernelectronictechnology,electroniclockswillgraduallyreplacetheordinarymechanicallocks.ConfidentialDepartmenthastheadvantagesofseveralordinarymechanicallockscannotsubstituteelectroniclocks,suchashighsecurity,anti-theftperformance,anddoesnotrequiretheuseofakey,Rememberpasswordcanunlock.Thisarticlefocusesonthedesignmethodwhichisbasedonfieldprogrammablegatearray(FPGA)devices,electroniclocks.FPGAdeviceconstructedsystem,allofthealgorithmscompletelyrealizedbyahardwarecircuitsothattheoperationalreliabilityofthesystemcanbegreatlyimproved.Andwithfield-programmablefunction,whenitneedtochangethemethodsofthedesign,justchangetheFPGAcontrolandinterfacecircuitwithusingEDAtoolsupdateddesignthatisdownloadedtotheFPGAwithouttheneedtochangetheexternalcircuitdesign,greatlyimprovingtheefficiencyofthedesign.Therefore,theuseofdigitalsystemsdevelopedbytheFPGA,notonlyhasaveryhighoperatingreliability,butalsoextremelyeasytoupgrade.ThedesignofthesystemusestheEDAtechnology,MAX+PLUSⅡsoftwareandVHDLhardwaredescriptionlanguage,designedanelectroniclock,andimplementedbytheInstituteofexperimentalboxFPGAchip.Keywords:electroniclocksFPGAVHDLhardwaredescriptionlanguageEDAMAX+PLUSII目录1前言........................................................................................................................................11.1EDA技术及其发展............................................................................................................11.2电子密码锁的国内外发展状况.........................................................................................11.3电子密码锁的重要性.........................................................................................................22MAX+PLUSⅡ软件环境概述..............................................................................................32.1MAX+PLUSⅡ设计流程...................................................................................................32.2MAX+PLUSⅡ支持的硬件描述语言...............................................................................52.3MAX+PLUSⅡ工作过程...................................................................................................53硬件环境FPGA的工作原理及其结构................................................................................63.1FPGA的基本结构..............................................................................................................63.2FPGA的设计流程..............................................................................................................74基于FPGA电子密码锁系统的基本描述............................................................................94.1电子密码锁的系统的方案比较与选择.............................................................................94.2基于FPGA的电子密码锁的设计的思路.......................................................................104.3本系统设计的目的和意义...............................................................................................105基于FPGA电子密码锁系统的仿真与分析......................................................................115.1底层文件仿真与分析.......................................................................................................115.1.1扫描时钟产生模块........................................................................................................115.1.2按键去抖模块................................................................................................................125.1.3键盘扫描模块................................................................................................................125.1.44*4键盘编码及其按键功能的设置模块.....................................................................135.1.5数码管显示模块............................................................................................................155.1.6比较判断和功能描述模块............................................................................................165.2顶层文件仿真与分析.......................................................................................................176结论......................................................................................................................................18参考文献..............................................................................................................................20附录............................................................................................................................21致谢............................................................................................................................38华南农业大学本科生毕业设计成绩评
本文标题:-基于FPGA的电子密码锁的设计
链接地址:https://www.777doc.com/doc-5864918 .html