1、 课课 程程 设设 计计 说说 明明 书书 课程设计名称:课程设计名称: EDA 技术课程设计 题题 目:目: 流水灯电路设计 学学 生生 姓姓 名:名: 专专 业:业: 信息工程 学学 号:号: 指指 导导 教教 师:师: 日期:2014 年 6 月 17 日 成绩 第 页 1 摘要摘要: :本次设计要求采用可编程逻辑器件实现一个流水灯控制电路,8 个 LED 灯能连续 发出三种不同的流水显示形式,先是 8 个 LED 灯从左到右依次点亮,左边亮四个,右边 亮四个,最后从中间往两边亮、两边往中间亮,实现了灯光的移动和闪亮效果,特别是 用于夜晚装饰,可以使我们的生活更为丰富多彩,同时也发挥出可
2、编程器件的灵活性特 点,可以改动电路实现多种效果。 流水灯是一串按一定的规律像流水一样连续闪亮, 流水灯控制是可编程控制器的一 个应用,其控制思想在工业控制技术领域也同样适用。流水灯控制可用多种方法实现, 但对现代可编程控制器而言,基于 EDA 技术的流水灯设计也是很普遍的。 关键字:关键字:EDA,CPLD,LED,状态机; Abstract: The design requirements by using the programmable logic device implements a water light control circuit, eight LED lights out
3、 for three different water display form, The first 8 LED lights lit up sequentially from left to right, the left four bright bright,right four, finally from the middle to both sides, both sides to the middle of the brightlight, realize the middle of mobile and ablaze effect, especially used for deco
4、ration, night can make our life more rich and colorful, also play a programmable device of flexibility, can change characteristics DuoZhong circuit implementation effect. Water lamp is a string of according to certain rules for shining, like water flowing water light control is a programmable contro
5、ller, the control application in industrial control technology thought also applies. Water light control method can be used DuoZhong, but for modern programmable controller based on the technology for EDA water lamp design also is very common. Key word: EDA, CPLD, LED, state machine; 目目 录录 1、前言 . 1
6、1.1EDA 技术介绍 1 1.2 Verilog HDL 简介 1 2、总体方案设计 . 2 2.2 设计方案比较 2 2.3 方案论证 . 2 2.4 方案选择 . 3 3、单元模块设计 . 4 3.1 CPLD 系统电路 . 4 3.1.1 时钟电路 . 4 3.1.2 JTAG 下载电路 . 4 3.2 LED 灯输出电路 . 5 3.3 电源模块电路设计 . 5 4、特殊器件的介绍 7 4.1 CPLD 器件介绍 . 7 5、软件实现 8 5.1 软件设计的程序 8 6、系统仿真及调试 9 6.1 仿真 9 6.2 调试.11 7.1 设计小结 12 7.2 设计收获 13 7.3 致谢 .14 8、参考文献 .14 附录一:CPLD 中顶层模块连接图.15 第 页 1 1 1、前言、前言 1.1EDA1.1EDA 技术介绍技术介绍 EDA 是电子设计自动化(Electronic Design Automation)缩写,是 90