基于FPGA的抢答器设计

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

河南科技大学本科毕业设计(论文)I基于FPGA的抢答器设计摘要本文介绍了一种采用EDA技术,基于FPGA并在QuartusⅡ工具软件环境下使用Verilog硬件描述语言编写的数码管显示4路抢答器的电路设计。本次设计的抢答器能够同时供应4位选手或者4个代表队进行抢答比赛,分别使用4个按钮a,b,c,d表示。同时需要设置系统复位和抢答控制开关,这需由主持人控制。主持人在允许抢答的情况下,计时器开始从30s开始倒计时,直到有人抢答成功后,由锁存器将时间锁存住,此时数码管上将显示剩余时间及抢答成功选手号码,同时对应选手的LED灯也被点亮。在判断选手是否回答正确后,由主持人控制加减按钮进行给分。在一轮比赛结束后,主持人按下复位按钮,则除了计分模块外,其他模块都复位为初始时刻,为下一轮的比赛做好准备。系统芯片主要采用EP2C8Q208,由抢答判别模块,计时模块,分频器模块,计分模块,锁存器模块,数码管驱动模块组成。经过编译及其仿真所设计的程序,该设计的抢答器基本能够实现此次设计的要求,从而完成了抢答器应具备的功能。关键词:抢答器,数码显示,硬件描述语言,可编程逻辑门阵列河南科技大学本科毕业设计(论文)IIFPGA-BASEDRESPONDERDESIGNABSTRACTThisarticleintroducesthedesignof4answeringdevicecircuitusinganEDAtechnologyVerilogHDLlanguageinFPGAandQuartusⅡenvironment.Atthesametime,the4answeringdevicecircuitisdisplayedbythedigital.TheRespondercanalsosupplyfourplayersorfourteamstoanswerinthegame,respectively,usingfourbuttonsa,b,c,d.Settingresetandanswerinasystemcontrolswitch,whichcontrolsrequiredbythemoderator.Whenthemoderatorallowstoanswer,thetimerstartscountsdownfromthe30suntilsomeoneanswerssuccessfully,bythetimethelatchlatcheswilltolive,thentheremainingtimeandthenumberoftheplayerwhorespondssuccessfullywillbedisplayedonthedigitaltube,atthesametimetheLEDofthecorrespondingplayerlightswillbelighted.Determinedwhetherthecontestantanswerscorrectly,themoderatorwillgivepointsbycontrollingtheadditionandsubtractionbutton.Attheendofthegame,themoderatorpressestheresetbutton,othersmodulesareresetedtotheinitialtimeforthenextroundofthegameexceptthescoringmodule.ThesystemusesmainlytheEP2C8Q208.Atthesametimethesystemismadefromtheanswerindecisionblock,timingmodule,dividerblock,scoringmodulelatchmodule,LEDdrivermodules.Aftercompilationandsimulationofthedesignprocess,thedesignRespondercanbasicallyachievethedesignrequirements,thuscompletingtheResponderfunction.KEYWORDS:Responder,Digitaldisplay,HDL,FPGA河南科技大学本科毕业设计(论文)III目录前言.............................................................................................1第1章绪论....................................................................................3§1.1选题背景..............................................................................3§1.1.1EDA技术发展..............................................................3§1.1.2课题研究的必要性........................................................4§1.2研究课题的内容..................................................................4第2章系统方案设计....................................................................6§2.1FPGA简介...........................................................................6§2.1.1FPGA芯片结构............................................................8§2.1.2FPGA设计流程..........................................................12§2.1.3FPGA软件设计..........................................................13§2.1.4FPGA的应用..............................................................14§2.2VerilogHDL概述..............................................................15§2.2.1VerilogHDL简介.......................................................15§2.2.2VerilogHDL主要功能................................................16§2.2.3VerilogHDL与VHDL的区别....................................16§2.3抢答器总体设计方案.........................................................17§2.3.1抢答器构成.................................................................18§2.3.2抢答器工作原理.........................................................18第3章抢答器模块设计与实现...................................................19§3.1抢答判别模块....................................................................19§3.2数码管驱动模块................................................................20§3.3计时模块............................................................................22§3.4分频器模块........................................................................23§3.5计分模块............................................................................23§3.6锁存模块............................................................................24§3.7总体模块............................................................................24第4章抢答器程序设计、实现与仿真........................................26河南科技大学本科毕业设计(论文)IV§4.1抢答判别程序设计.............................................................26§4.2数码管驱动模块程序设计.................................................28§4.3计时模块程序设计.............................................................29§4.4分频模块程序设计.............................................................31§4.5计分模块程序设计.............................................................32§4.6锁存模块程序设计.............................................................36结论.............................................................................................38参考文献.......................................................................................39致谢...........................................................................................41附录...........................................................................................42河南科技大学本科毕业设计(论文)1前言随着人类社会的高速发展,电子行业也随之迅猛的发展,这也使得人们越来越想方设法的是自己更加方便、轻松的生活,例如:自从有了电视遥控器开启电视,更改电视频道,我们再也不用跑来跑去用手改换频道;自从有了全自动洗衣机,我们再也不用半自动洗衣机或者人工搓衣板去清洗衣服;自从有了交通灯,不仅省去了很多人力

1 / 76
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功