1、摘摘 要要 随着电子技术的发展,具有防盗报警等功能的电子密码锁代替密码量少、安全性 差的机械式密码锁已是必然趋势。电子密码锁与普通机械锁相比,具有许多独特的优 点:保密性好,防盗性强,可以不用钥匙,记住密码即可开锁等。目前使用的电子密 码锁大部分是基于单片机技术,以单片机为主要器件,其编码器与解码器的生成为软 件方式。在实际应用中,由于程序容易跑飞,系统的可靠性能较差。 本文主要阐述了一种基于现场可编程门阵列 FPGA 器件的电子密码锁的设计方 法。用 FPGA 器件构造系统,所有算法完全由硬件电路来实现,使得系统的工作可靠 性大为提高。由于 FPGA 具有现场可编程功能,当设计需要更改时,只
2、需更改 FPGA 中的控制和接口电路,利用 EDA 工具将更新后的设计下载到 FPGA 中即可,无需更 改外部电路的设计,大大提高了设计的效率。因此,采用 FPGA 开发的数字系统,不 仅具有很高的工作可靠性,而且升级也极其方便。 本文采用 EDA 技术,利用 Quartus II 工作平台和硬件描述语言,设计了一种电 子密码锁,并通过一片 FPGA 芯片实现。 关键词:关键词:电子密码锁;FPGA;硬件描述语言;EDA Abstract With the development of electronic technology, electronic password lock with b
3、urglar alarm and other functions replacing less password and poor security mechanical code lock is an inevitable trend. compared electronic password lock with ordinary mechanical locks, it has many unique advantages : confidentiality, and security in nature, do not use the key, remember password can
4、 unlock it etc .Most electronic password locks we used now is based upon SCM technology ,SCM is its mainly device ,and the creating of encoding and decoding devices is the fashion of Software mode. In practical application, the reliability of the system may be worse because of easy running fly of the programme. This paper mainly expatiates a design method of electronic password lock based upon Field Programmable Gate Array device. We use FPGA devices to construct system , all of the algorithm