《cpldfpga课程设计-基于verilog-hdl的彩灯控制器》由会员分享,可在线阅读,更多相关《cpldfpga课程设计-基于verilog-hdl的彩灯控制器(33页珍藏版)》请在金锄头文库上搜索。
1、 彩灯控制的设计(CPLD/FPGA 课程设计)ICPLD/FPGA 课程设计项目名称 基于 FPGA 的彩灯控制 专业班级 物联网工程 132 班 学生学号 学生姓名 指导教师 2016 年 6 月 15 日物联网工程 112 班,姓名 周浩杰(CPLD/FPGA 课程设计)III摘 要本课程设计提出基于 FPGA 的彩灯控制器的设计与分析,设计由分频器模块,数据选择器模块,彩灯控制模块组成,基本原理是通过分频器产生不同频率时钟信号,表示彩灯显示的快慢,然后通过数据选择器进行选择,进而通过彩灯花型控制器显示不同种类的彩灯花型。本设计运用运用 Verilog HDL 语言在 Modelsim
2、软件上进行了实验程序的编译和波形的仿真,具有代码简单易懂,功能易实现的特点,通过不断地调试和代码的多次完善,最终实现完整的彩灯控制器,达到了自主设计逻辑电路的水平。关键词:彩灯控制; Verilog HDL 语言;Modelsim 软件 彩灯控制的设计(CPLD/FPGA 课程设计)IIIAbstractThe curriculum design is proposed based on FPGA octal lantern controller design and analysis, design by the frequency divider module, data selector
3、 module lantern control module, the basic principle is through a frequency divider generated clock signal with different frequency and express the lantern display of speed, then through the data selector, and then through the lantern flower type controller display lights in different kinds of flower
4、s. This design by using Verilog HDL language in the Modelsim software of experimental program compiling and waveform simulation, with easy to understand code, function is easy to realize the characteristics by continuous debugging and code improved several times, and ultimately complete the lantern
5、controller, up to the level of the independent design of logic circuit.Keywords: The lantern controller; Verilog HDL language ; The Modelsim software摘要和目录统一编页码:为,物联网工程 132 班,许潇洒 彩灯控制器的设计(CPLD/FPGA 课程设计)IV目 录摘 要 .IAbstract.II第一章 绪论 .11.1 课题背景 .11.2 彩灯控制的实际研究意义 .3第二章 彩灯控制相关模块的设计以及原理 .42.1 总体设计 .42.1.1
6、 方案比较 .42.1.2 方案论述 .52.1.3 方案选择 .52.2 相关模块 .52.2.1 时钟信号模块 .52.2.2 节拍快慢控制模块 .62.2.3 彩灯控花型控制模块 .6第三章 彩灯控制的软件程序设计 .83.1 Modelsim 软件介绍 .83.2 彩灯控制程序设计 .93.2.1 分频器程序 .93.2.2 数据选择器程序 .103.2.3 彩灯花样程序 .11第四章 仿真调试 .134.1 仿真过程 .134.2 仿真结果 .15结论 .19参考文献 .20附 录 .21致 谢 .28物联网工程 132 班,许潇洒 彩灯控制器的设计(CPLD/FPGA 课程设计)1第一章 绪论1.1 课题背景1. FPGAFPGA 采用了逻辑单元阵列 LCA(Logic Cell Arra