学号: 08446308
常 州 大 学 毕业设计(论文) (2012届)
题 目 采用EDA技术的波形发生器设计 学 生 学 院 专业班级
校内指导教师 专业技术职务 校外指导老师 专业技术职务
二○一二年六月
采用EDA技术的波形发生器设计
摘 要:本课题设计了一种采用VHDL硬件描述语言描述并用FPGA实现的正弦波发生器。本课题的研究结合了FPGA控制、LCD字符显示、DAC芯片驱动等相关知识,运用VHDL语言描述了一个具有幅度可控、频率可调和失真较小的正弦波发生器。设计平台为Altera公司的Quartus II 8.0软件,采用Altera公司的Cyclone系列FPGA实现。本设计中的DAC模块采用TLC5620集成芯片来实现,以此来简化设计,并达到本课题的精度要求。
本文详细介绍了正弦波发生器的设计过程,包括系统软件方案设计、系统硬件方案设计、芯片选型、编译仿真平台选择、功能模块划分、时钟分频模块设计、主控模块设计、按键去抖模块设计、TLC5620驱动模块设计和LCD显示模块等部分的设计与实现,对深入研究EDA技术和波形发生器具有重大的意义。
关键词:EDA;FPGA;VHDL;正弦波发生器
Waveform Generator Design Using EDA Technology
Abstract: This paper designs a sine wave generator using FPGA and VHDL language. The research of this paper is a combination of the FPGA controller, the LCD display, the DAC chip drivers and other related knowledge. We use the VHDL language to describe controllable amplitude, frequency adjustable sine wave generator. The design platform is Altera Quartus II 8.0 software and Altera's Cyclone series FPGA chip. In order to simplify the design and achieve the accuracy requirements of this subject, the design of the DAC module uses the TLC5620 chip.
This paper describes the design process of the sine wave generator, including system software design, system hardware design, chip selection, the choice of the compile and simulation platform, the clock frequency module design, the main control module design, key debounce module design, the TLC5620 drive module design and the LCD display module design. The design and realization give me a good chance to understand the EDA technologies and waveform generator.
Key words: EDA; FPGA; VHDL; Sine Wave Generator
常州大学本科生毕业设计(论文)
目 录
1 引言 ..................................................................................................................................................... 1 1.1 研究背景 .......................................................................................................................................... 1 1.2 波形发生器的现状 .......................................................................................................................... 1 1.3 本文结构及内容安排 ...................................................................................................................... 2 2 EDA开发技术概述 ............................................................................................................................. 3 2.1 EDA技术的含义 .............................................................................................................................. 3 2.2 EDA的工程设计流程 ...................................................................................................................... 3 2.3 Quartus II 8.0简介 ........................................................................................................................... 4 3 方案设计与比较 ................................................................................................................................. 5 3.1 系统功能要求 .................................................................................................................................. 5 3.2 系统框图 .......................................................................................................................................... 5 3.3 软件方案分析与比较 ...................................................................................................................... 5 3.3.1 波形函数方案 ............................................................................................................................... 5 3.3.2 波形ROM方案 ............................................................................................................................. 6 3.3.3 方案比较 ....................................................................................................................................... 6 3.4 硬件方案设计 .................................................................................................................................. 6 3.4.1 设计平台与仿真工具选择 ............................................................................................................ 6 3.4.2 芯片选择方案 ............................................................................................................................... 7 4 FPGA的介绍 ....................................................................................................................................... 9 4.1 FPGA的简介 .................................................................................................................................... 9 4.1.1 背景 ............................................................................................................................................... 9 4.1.2 FPGA与单片机的区别 ................................................................................................................ 10 4.1.3 电路设计中FPGA的应用 ........................................................................................................... 11 4.1.4 产品设计 ..................................................................................................................................... 11 4.1.5 系统级应用 ................................................................................................................................. 11 5 系统设计 ........................................................................................................................................... 12 5.1 系统组成及工作原理 .................................................................................................................... 12 6 FPGA实现与仿真 ............................................................................................................................. 13 6.1 顶层模块图 .................................................................................................................................... 13
I
常州大学本科生毕业设计(论文)
6.2 模块详细设计 ................................................................................................................................ 13 6.2.1 主控模块 ..................................................................................................................................... 13 6.2.2 时钟分频模块 ............................................................................................................................. 15 6.2.3 按键去抖模块 ............................................................................................................................. 16 6.2.4 波形存储模块 ............................................................................................................................. 17 6.2.5 TLC5620驱动模块 ....................................................................................................................... 18 6.2.6 LCD显示模块 .............................................................................................................................. 19 6.3 FPGA的实现功能 .......................................................................................................................... 19 7 结论 ................................................................................................................................................... 21 参考文献 ............................................................................................................................................... 22 致 谢 ..................................................................................................................................................... 23 附 录 ..................................................................................................................................................... 24
II