
EDA课程设计出租车计价器.pdf
32页1 课程设计学生姓名: 专业班级:指导教师: 工作单位 : 题 目 : 出租车计价器的设计初始条件:2 本设计利用 QuartusⅡ软件编写 VHDL 代码, 运用 EDA 实验箱上的 FPGA、 数码管、LED 灯、拨码开关、 3/8 译码器、系统 20MHz 时钟等硬件资源,实现简易的出租车计价器的相关功能要求完成的主要任务 : (包括课程设计工作量及技术要求, 以及说明书撰写等具体要求)1、课程设计工作量: 2 周2、技术要求:① 设计一个出租车计价器要求显示行驶里程、停车时间和计费值②出租车的起步价为 3 元,当里程行驶到 1km 后,费用为 4 元;当里程行驶到1.5km 后,费用为 5 元;,当里程行驶到 2km 后,费用为 6 元;当里程行驶到2.5km 后,费用为 7 元;当里程行驶到 3km 后,费用为 8 元;此后每公里计费为 0.7 元当计费达到 20 元后,每公里加收 50%的车费停车每达 3 分钟,增加 0.7 元3、查阅至少 5 篇参考文献按《武汉理工大学课程设计工作规范》要求撰写设计报告书全文用 A4 纸打印,图纸应符合绘图规范时间安排:1. 2011 年 1 月 10 日集中,作课设具体实施计划与课程设计报告格式的要求说明。
2. 2011 年 1 月 11 日,查阅相关资料,学习电路的工作原理3. 2011 年 1 月 12 日 至 2011 年 1 月 16 日,方案选择和程序设计设计4. 2011 年 1 月 17 日 至 2011 年 1 月 20 日,电路调试和设计说明书撰写5. 2011 年 1 月 21 日上交课程设计成果及报告,同时进行答辩课设答疑地点:鉴主 13 楼电子科学与技术实验室指导教师签名: 年 月 日系主任(或责任教师)签名: 年 月 日摘 要本文介绍了一种采用单片 FPGA 芯片进行出租车计费器的设计方法,主要阐述如何使用新兴的 EDA 器件取代传统的电子设计方法,利用 FPGA 的可编程性,简洁而又多变的设计方法,缩短了研发周期,同时使出租车计费器体积更小功能更强大本设计实现了出租车计费器所需的一些基本功能,计费包括起步价、行车里程计费、等待时间计费,同时3 考虑到出租车行业的一些特殊性,更注重了把一些新的思路加入到设计中主要包括采用了 FPGA 芯片, 使用 VHDL 语言进行编程, 使其具有了更强的移植性, 更加利于产品升级关键词 : VHDL ;计费器; QuartusⅡ; FPGA4 Abstract This paper describes the use of a single chip FPGA for the design of accounting-fee machine, mainly on how to use the emerging EDA electronic devices designed to replace traditional methods, using the programmable FPGA, concise and changing the design Ways to shorten the development cycle, so that taxi accounting-fee machine in a smaller more powerful. The design and implementation of the taxi accounting-fee machine for some basic functions, including billing starting price, driving metered, the waiting time billing, taking into account the special nature of some of the taxi industry, to pay more attention to a number of new Ideas into the design. Mainly including the use of the FPGA chip, the use of VHDL programming, so as to make it a stronger transplanted, and more conducive to product upgrades. Key words: VHDL, accounting-fee machine , Quartus Ⅱ , FPGA 5 目 录摘 要 .................................................................................................................................................................. 2 Abstract .............................................................................................................................................................. 4 目 录 .................................................................................................................................................................. 5 1.绪论 ................................................................................................................................................................. 6 2.设计内容及要求 .......................................................................................................................................... 7 2.1.设计的目的及主要任务 ................................................................................................................. 7 2.2.设计思想 ............................................................................................................................................. 7 3. 设计原理 ...................................................................................................................................................... 8 3.1.设计原理及方法 ............................................................................................................................... 8 3.2.单元模块设计 .................................................................................................................................... 9 4. 代码仿真结果 ............................................................................................................................................11 4.1.有限次数脉冲发生模块仿真结果 ..............................................................................................11 4.2.计数器模块仿真结果 .................................................................................................................... 12 4.3.七段数码管模块仿真结果 ........................................................................................................... 12 4.4.分频器模块仿真结果 .................................................................................................................... 13 5. 硬件调试 .................................................................................................................................................... 14 6. 心得体会 .................................................................................................................................................... 15 7. 参考文献 .................................................................................................................................................... 16 8. 附录 ............................................................................................................................................................. 17 8.1.程序源代码 ...................................................................................................................................... 17 。












