基于 FPGA 的键盘接口设计
专业:电子信息科学与技术系 先仙 指导老师:强
摘要:现场可编程逻辑门阵列 FPGA (Field Programmalbe Gate Array)具有掩膜可编程门阵列的通用结构,由
逻辑功能块排成阵列组成,并由可编程的互联资源连接这些逻辑功能块以与相应的输入/输出单元来实现不同的设计。
在电子产品中,键盘是最基本的输入设备,然而在应用中都采用通用的键盘扫描器件是不现实的,需要单独设计成专
用的小键盘。随着电子技术和 EDA(Electronic Design Automatic,电子设计自动化)技术的发展,大规模可编程逻辑
器件 PLD(Programmable Logic Device)、现场可编程门阵列 FPGA 完全可以取代大规模集成电路芯片,实现计算机可
编程接口的功能,并可将若干接口电路的功能集成到一片 PLD 或 FPGA 芯片中。鉴于大规模 PLD 或 FPGA 的计算机
接口电路不仅具有集成度高、体积小和功耗低等优点,而且还具有独特的用户可编程能力,从而实现计算机系统的功
能重构。本文设计首先介绍行列式键盘的原理和应用,通过对其接口电路的详细分析;然后利用 VHDL 硬件描述语言
和 FPGA 器件并采用模块化设计的方法完成了基于 FPGA 的行列式键盘接口电路的设计;最后通过计算机仿真,对本
文设计的行列式键盘接口电路的正确性进行了验证。
关键词:键盘;仿真;VHDL语言;FPGA;模块化设计
Based on FPGA Keyboard Connection Design
Major:Electronic Information Science and Technology
Author: Li Xianxian Instructor: Liu Qiang
Abstract: The Filed Programmmalbe Gate Array,shorted by FPGA,which has a mask-programmable gate array of
generic structure and function blocks in the logic array of line,through a programmable logic of internet resources
connecting these function blocks and the corresponding input/output modules to achieve different design.In electronic
products,the keyboard isthe most basic input device,however,it’sunrealistic of using general keyboard scanningdevice in
the application ,we need for the separate designing of the small keyboard. With the development of Electronic and
EDA(Electronic Design Automatic)technology,Large Scale Integration chips can be replaced by PLD(Programmable Logic
Device)and FPGA ,which can realize the function of the Programmable Interface chips and feature a number of interface
circuits integated into one of the PLD or FPGA chips.The computer interface circuit based on the technology of PLD and
FPGA not only has the virtue of high integration,low volume and low power loss, but also has the unique programmable
function,which can realize reconstruction of the function of computer system.The designing of this article first
introduced the determinant keyboard’stheory and application,through to analysisits connection electric circuitin very
great detail ,and then used VHDL hardware description language and FPGA device to complete FPGA-based determinant
keyboard connection electric circuit design with modular design mathod.Fianally,through the method of simulations to
verify the accuracy of the determinant keyboardconnection electric circuit of the design.
Key words: Keyboard; Simulalion; VHDL lauguage; FPGA; Modular design