基于FPGA的出租车计价器的设计摘要出租车计价器是乘客与司机双方的交易准则。
具有良好性能的计价器无论是对广大出租车司机朋友还是乘客来说都是很必要的。
现在各大中城市出租车行业都已普及自动计价器,而部分小城市尚未普及,但随着城市建设日益加快,象征着城市面貌的出租车行业也将加速发展,所以计价器的普及也是毫无疑问的。
本论文阐述了EDA的发展及其优势、FPGA的发展趋势及结构特点和VHDL语言的优点及语法结构,并分析了出租车计价器各模块的功能要求、基本原理以及实现方法。
本论文的设计采用VHDL硬件描述语言进行编程,基于Quartus II软件平台进行编译和仿真。
论文介绍了采用FPGA芯片设计出租车计价器的方法,阐述了该计价器的主要组成单元:车轮大小选择模块、计程模块、计时模块及计费模块、数据分配模块、分频模块、译码模块的设计方法,同时给出了详细的仿真波形,实现了出租车基本计费功能,还能模拟汽车启动,停止,暂停等状态,同时提高了计费系统的可靠性、通用性。
本设计在FPGA 试验箱上运行良好,实现了计费器的各项功能。
关键字FPGA,VHDL,Quartus II,出租车计价器Subject: The design of the taxi meter based on FPGASpecialty: Microeletronics Science and EngineeringName:Dan Shen (Signature) ___________ Instructor: Gaili Yue (Signature) ___________ABSTRACTTaxi meter is the rule of passenger and driver. Have a good performance of the meter for our taxi driver or passenger is very necessary. Now the automatic taxi meter has popularized, and some small city has not been popular, but with the quickening of city construction, the symbol of the city will accelerate development of the taxi industry.This article elaborates the concept and development of EDA , the development trend and structure of the FPGA, andexplains the advantages and grammar structure of VHDL ,meanwhile, analysed the function request, the basic principle as well as the method ofaccomplishment of each parts. This system's design programmes in the VHDL, compiled and emulated basing on Quartus II platform of Altera consists of four modules, that is speed, mileage, timing and billing module. This paper introduce one method that can use a chip of FPGA to design taxi meter, which consists of four modules, that is speed, mileage, timing and billing module, and then, describe the design of each module and give out the simulation. This taxi meter can be self-charging according to mileage, which also can simulate the state of speed,such as start, stop, and pause, at the same time, its reliability and commonality also can be improved. This design FPGA test box on running well, realize the different functions of the message accounting device.KEY WORDS FPGA , VHDL , Quartus II ,The taxi meter目录第1章绪论 (1)1.1课题研究背景及目的 (1)1.2课题研究现状 (2)1.3课题研究方法 (3)第2章设计相关工具介绍 (4)2.1EDA介绍 (4)2.1.1 EDA的发展 (4)2.1.2 EDA的优势 (5)2.2FPGA介绍 (5)2.2.1 FPGA的发展趋势 (6)2.2.2 FPGA结构及其特点 (7)2.3VHDL介绍 (7)2.3.1 VHDL简介 (7)2.3.2 VHDL代码结构 (8)2.3.3 VHDL语言设计硬件电路的优点 (9)2.4Q UARTUS II (10)2.4.1 QuartusⅡ简介 (10)2.4.2 QuartusⅡ设计流程 (10)2.5实验箱简述 (11)第3章系统的设计 (13)3.1总体设计 (13)3.1.1 出租车计价器的设计要求 (13)3.1.2 总体框架设计 (13)3.1.3流程图 (14)3.2主要模块设计 (16)3.2.1 出租车总体模块设计 (16)3.2.2 车轮大小选择模块设计 (17)3.2.3 计程模块设计 (18)3.2.4 计时模块设计 (18)3.2.5 计费模块设计 (19)3.2.6 数据分配模块设计 (21)3.2.7 译码模块设计 (21)3.2.8 分频模块设计 (22)第4章仿真及调试结果 (23)4.1仿真结果 (23)4.1.1 出租车总体模块仿真波形 (23)4.1.2 车轮大小选择模块仿真波形 (23)4.1.3 计程模块仿真波形 (24)4.1.4 计时模块仿真波形 (24)4.1.5 计费模块仿真波形 (25)4.1.6 数据分配模块仿真波形 (25)4.1.7 译码模块仿真波形 (26)4.1.8 分频模块仿真波形 (26)4.2管脚分配及说明 (27)4.3调试结果及分析 (27)第5章总结 (31)致谢 (34)参考文献 (35)附录 (36)源代码 (36)第1章绪论1.1 课题研究背景及目的出租车计价器是乘客与司机之间用于公平贸易的工具,同时它也是出租车行业发展的重要标志。