七人表决器的vhdl程序设计

七人表决器的vhdl程序设计

ID:11386968

大小:1.63 MB

页数:14页

时间:2018-07-11

七人表决器的vhdl程序设计_第1页
七人表决器的vhdl程序设计_第2页
七人表决器的vhdl程序设计_第3页
七人表决器的vhdl程序设计_第4页
七人表决器的vhdl程序设计_第5页
资源描述:

《七人表决器的vhdl程序设计》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库

1、一、题目用VHDL设计七人表决器二、分析讨论:七人表决器这一功能用C语言、汇编语言或VHDL编程然后下载到单片机上实现,不过用VHDL编程不仅技术含量高而且能让我们更熟练的掌握使用quartus软件的步骤和方法。所以我们使用VHDL完成。七人表决器就是当投票的人中,同意个数过半(即大于等于4)时,认为通过;否则,不通过。在编程中我们使用一个七位二进制输入变量表示投票人;一个七位二进制输出变量表示一个七段数码管显示同意的票数;一个一位的输出变量表示最终的投票结果。此结果能够在quartus软件中通过时序仿真。在

2、硬件上我们用七个拨动开关来表示七个投票人,拨动开关为‘1’时表示同意,为‘0’表示不同意;同意的票数和表决的时间分别通过一个七段数码管显示出来;最终的表决结果用一个LED表示。三、设计方案3.1实现原理首先,编写一个十进制的减法计数器,其输入为clk,clr,en,输出为q[3..0]。外部的时钟信号的频率选择为1KHz,此频率太大无法显示投票的限制时间,所以要用一个分频器来增大计数时间。设计一个分频器的程序,将时钟信号经过分频器输入到计数器中,输入为clk,输出为newclk。当clk有1000个上升沿是n

3、ewclk产生一个脉冲,也就是计数器计数一次。其次,编辑七人表决器在主程序,其输入为clk,clr,en,input[6..0],theirownconditionstodevelopthecorrectroad,themaximumtoavoidinvestmentrisk,gainprofit.(three)vigorouslypromotethebrand.Toestablishbrandawareness,awarenessoftheuseofbrand,brandvalue,brandacquisi

4、tionperformance,enhancethecompetitivestrength.Concentratedmanpower,carefulplanning,packagingandpublicityofanumberofunique,marketinfluenceandcoverageofthebrand,theimplementationofkeybreakthroughs,toenhancethecompetitivestrength,walkingbusinessroadthecompetit

5、ionofalienationandcharacteristics,thepursuitofstabilityanddevelopmentofthemarket.(four)topromotetheintegrationofresources.Tofurtherbroadentheirhorizons,effectiveintegrationofresourceswithinthegroup,thecityresources,otherindustriesandregionalresources,mutual

6、trust,mutualbenefit,seekingwin-winprinciple,intheframeworkofnationalpoliciesandregulations,strictinspectionandargumentation,legalconsultation,examinationandapprovalprocedures,strictregulationofeconomicactivities,attractinjectionthesocialinvestmenttotheindus

7、trygroup,toachieveleveragingthedevelopment,ensurethatthevalueofstate-ownedassets.(five)tostrengthentheconstructionmanagementpersonnel.Strengthenthemanagementofeducationandtrainingofcadresandworkersoftheexistingbusiness,firmlyestablishtheconceptofthemarket,e

8、nhancethesenseofcrisistoadapttomarketcompetition,thesenseofurgency,improvetheabilitytorespondtomarketcompetition,improvemanagementandoperationofthemarket.Atthesametime,accordingtotheneedofindustrialdev

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。