课程设计说明书课程设计名称:EDA技术课程设计题目:流水灯电路设计学生姓名:专业:信息工程学号:指导教师:阳小明日期:2014年6月17日成绩第页1西华大学课程设计说明书说明书摘要:本次设计要求采用可编程逻辑器件实现一个流水灯控制电路,8个LED灯能连续发出三种不同的流水显示形式,先是8个LED灯从左到右依次点亮,左边亮四个,右边亮四个,最后从中间往两边亮、两边往中间亮,实现了灯光的移动和闪亮效果,特别是用于夜晚装饰,可以使我们的生活更为丰富多彩,同时也发挥出可编程器件的灵活性特点,可以改动电路实现多种效果。流水灯是一串按一定的规律像流水一样连续闪亮,流水灯控制是可编程控制器的一个应用,其控制思想在工业控制技术领域也同样适用。流水灯控制可用多种方法实现,但对现代可编程控制器而言,基于EDA技术的流水灯设计也是很普遍的。关键字:EDA,CPLD,LED,状态机;Abstract:Thedesignrequirementsbyusingtheprogrammablelogicdeviceimplementsawaterlightcontrolcircuit,eightLEDlightsoutforthreedifferentwaterdisplayform,Thefirst8LEDlightslitupsequentiallyfromlefttoright,theleftfourbrightbright,rightfour,finallyfromthemiddletobothsides,bothsidestothemiddleofthebrightlight,realizethemiddleofmobileandablazeeffect,especiallyusedfordecoration,nightcanmakeourlifemorerichandcolorful,alsoplayaprogrammabledeviceofflexibility,canchangecharacteristicsDuoZhongcircuitimplementationeffect.Waterlampisastringofaccordingtocertainrulesforshining,likewaterflowingwaterlightcontrolisaprogrammablecontroller,thecontrolapplicationinindustrialcontroltechnologythoughtalsoapplies.WaterlightcontrolmethodcanbeusedDuoZhong,butformodernprogrammablecontrollerbasedonthetechnologyforEDAwaterlampdesignalsoisverycommon.Keyword:EDA,CPLD,LED,statemachine;西华大学课程设计说明书说明书目录1、前言.............................................................................................................................................................11.1EDA技术介绍..............................................................................................................................11.2VerilogHDL简介..................................................................................................................12、总体方案设计.............................................................................................................................................22.2设计方案比较.........................................................................................................................22.3方案论证.................................................................................................................................22.4方案选择.................................................................................................................................33、单元模块设计.............................................................................................................................................43.1CPLD系统电路........................................................................................................................43.1.1时钟电路...............................................................................................................................43.1.2JTAG下载电路......................................................................................................................43.2LED灯输出电路......................................................................................................................53.3电源模块电路设计.................................................................................................................54、特殊器件的介绍.........................................................................................................................................74.1CPLD器件介绍........................................................................................................................75、软件实现.....................................................................................................................................................85.1软件设计的程序.....................................................................................................................86、系统仿真及调试.......................................................................................................................................106.1仿真..........................................................................................................................................106.2调试.........................................................................................................................................127.1设计小结...............................................................................................................................137.2设计收获...............................................................................................................................137.3致谢.......................................................................................................................................148、参考文献...................................................................................................................................................15附录一:CPLD中顶层模块连接图................................................................................................................16第页1西华大学课程设计说明书说明书1、前言1.1EDA技术介绍EDA是电子设计自动化(ElectronicDesignAutomation)缩写,是90年代初从CAD(计算机辅助设计)、CAM(计算机辅助制造)、CAT(计算机辅助测试)和CAE(计算机辅助工程)的概念发展而来的。EDA技术是以计算机为工具,根据硬件描述语言HDL(HardwareDescriptionlanguage)完成的设计文件,自动地完成逻辑编译、化简、分割、综合及优化、布局布线、仿真以及对于特定目标芯片的适配编译和编程下载