1、 I 基于 FPGA 的出租车计费器的设计 摘摘 要要 随着 EDA 技术的日益成熟的发展趋势, 与电子设计相关的设计技术与开发 平台等也都有了迅猛的发展。 可编程逻辑器件 CPLD/FPGA 的快速发展与深入应 用也为设计人员提供了很大的便利。 本文主要介绍一种基于 FPGA 芯片的出租车 计费器的设计方法,对该设计方法的研究意义和应用价值进行了阐述,描述了 FPGA 芯片的发展历史和主要应用,介绍了 VHDL(硬件描述语言)的主要功能 和算法设计思想及设计流程。 本次设计高效利用 FPGA 设计方法的多变性和可编程性等优势, 有效的缩短 研发周期,设计出体积小、功能强的出租车计费系统。能够
2、根据需求简便、快捷 地调整出租车计费价格,并且防止作弊现象等问题的产生。 该出租车计费器主要包含五大模块:分频模块向各模块提供驱动信号;计量 模块完成等待时间和所行驶路程数据的统计; 计费方式选择模块是对汽车行驶过 程不同计价状态进行判断输出;计费模块完成总费用统计计算;动态扫描模块最 后将累计等待计费时间、行驶路程以及计费总数等实时显示出来。 本次设计采用 VHDL 硬件描述语言编写计费器的系统程序,Quarters软件 作为开发平台,对程序进行了仿真,最后将生成的目标文件下载到教学实验仪器 ZY11EDA13B 的 FPGA 芯片中,完成了相应的硬件测试和验证,证明了出租车 计费系统的可行
3、性。 关键词:关键词:EDA;FPGA;出租车计费器;出租车计费器;VHDL;Quarters II ABSTRACT With the growing maturity of the development trend of EDA technology, and the technologies and the design of the platform which related to the electronic design , also have a very rapid development.The fast development of Programmable logic
4、 device and in deepth application also offers a great convenience to designers. This Paper introduces a method for FPGA chip to design a taxi billing system and describes the significance and value of the design methods , describes the history and development of FPGA chip main application , introduc
5、es VHDL ( hardware description language ) main function and algorithm design and design processes. Efficient use of FPGA design method variability and programmability advantages could effectively shorten the development cycle, and design a small but powerful taxi billing system. According to effecti
6、vely address the needs of simple , it can quick adjust taxi meter rates to prevent cheating and other issues. The taxi meter mainly includes five modules: the divide module module provides drive signal to other module; the metering module works to statistical date about the wait1ing time and the distance traveled; the control module is used to judge output of the cars with different pricing status; the billing module caculate statistical of the total cost; finally the dynamic scanning m