基于FPGA的出租车计费器课程设计程序_第1页
基于FPGA的出租车计费器课程设计程序_第2页
基于FPGA的出租车计费器课程设计程序_第3页
基于FPGA的出租车计费器课程设计程序_第4页
基于FPGA的出租车计费器课程设计程序_第5页
已阅读5页,还剩4页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

0设计题目PORK出租车计费器草鱼草鱼一、PORK设计实验条件草鱼QUARTUSII72草鱼二、PORK设计目标草鱼实现计费功能。草鱼按行驶里程计费,鲤鱼起步价为600元,鲤鱼并在车行驶3KM后按12元/KM计费,鲤鱼当计费器达到或超过20元时,鲤鱼每千米加收50的车费,鲤鱼车停止和暂停时不计费;PORK草鱼现场模拟汽车的起动、PORK停止、PORK暂停和换挡等状态;PORK草鱼设计数码管动态扫描电路,鲤鱼将车费和路程显示出来,鲤鱼各有两位小数。草鱼草鱼三、PORK设计报告的内容草鱼前言草鱼伴随中国经济的腾飞,鲤鱼城市化的进程也随之加快。草鱼虽然人们出行的选择趋于多样化,鲤鱼但是出租车作为一种重要的交通工具,鲤鱼也为很多人作为出行的选择。草鱼大城市里出租车已经相当普及,鲤鱼但是在中小城市出租车依然处于快速发展的阶段。草鱼出租车的计费方式也在发生变化,鲤鱼由只能显示里程的方式变为现在的自主计费和打印发票及语音提示的智能化方式;PORK根据出租车行业的发展需求,鲤鱼国内许多生产厂商也制造出不同类型的计价器,鲤鱼传统的出租车计费器经过十几年的使用,鲤鱼在稳定性,鲤鱼成本等方面都具有一定的优势。草鱼草鱼利用FPGA设计出满足出租车不同计费需求的计费器,鲤鱼去满足当地出租车的计费需求。草鱼这个课题在实现计费功能的同时,鲤鱼也解决了传统出租车计费器系统的不足。草鱼出租车的需求不断的增大,鲤鱼因此,鲤鱼出租车计费器的需求也将不断增大,鲤鱼计程车的服务也显得越来越重要,鲤鱼因此出租车计费器也就应运而生了。草鱼草鱼草鱼设计主体草鱼(1)设计原理PORK假设出租车有启动键、PORK停止键、PORK暂停键和档位键。草鱼启动键为脉冲触发信号,鲤鱼当它为一个脉冲是,鲤鱼表示汽车已启动,鲤鱼并根据车速的选择和基本车速发出相应频率的脉冲(计费脉冲)实现车费和路程的计数,鲤鱼同时车费显示起步价;PORK当停止键为高电平时,鲤鱼表示汽车熄火,鲤鱼同时停止发出脉冲,鲤鱼此时车费和路程计数清零;PORK当暂停键为高电平时,鲤鱼表示汽车暂停并停止发出脉冲,鲤鱼此时车费和路程计数暂停;PORK档位键用来改变车速,鲤鱼不同档位对应着不同的车速,鲤鱼同时路程计数的速度也不同。草鱼草鱼出租车计费器可分为两大模块,鲤鱼即控制模块和译码显示模块,鲤鱼系统框图如图1所示,鲤鱼控制模块实现了计费和路程的技术,鲤鱼并且通过不同的档位控制车速。草鱼译码显示模块实现了十进制到4位十进制的转换,鲤鱼以及车费和路程的显示。草鱼草鱼草鱼草鱼计费时钟控制模块1档位起动暂停停止草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼图1草鱼草鱼草鱼出租车计费器系统框图草鱼(2)步骤PORK草鱼草鱼首先设计TAXI计费模块,鲤鱼实现计费功能。草鱼起步价为600元,鲤鱼并在车行驶3KM后按12元/KM计费,鲤鱼当计费器达到或超过20元时,鲤鱼每千米加收50的车费,鲤鱼车停止和暂停时不计费。草鱼TAXI模块程序如下PORK草鱼LIBRARY草鱼IEEEPORK草鱼USE草鱼IEEESTD_LOGIC_1164ALLPORK草鱼USE草鱼IEEESTD_LOGIC_UNSIGNEDALLPORK草鱼ENTITY草鱼TAXI草鱼IS草鱼PORTCLKIN草鱼STD_LOGICPORK计费时钟草鱼草鱼草鱼草鱼草鱼草鱼STARTIN草鱼STD_LOGICPORK汽车起动草鱼草鱼草鱼草鱼草鱼草鱼STOPIN草鱼STD_LOGICPORK汽车停止草鱼草鱼草鱼草鱼草鱼草鱼PAUSEIN草鱼STD_LOGICPORK汽车暂停草鱼草鱼草鱼草鱼草鱼草鱼SPEEDUPIN草鱼STD_LOGIC_VECTOR1草鱼DOWNTO草鱼0PORK档位(4个档位)草鱼草鱼草鱼草鱼草鱼草鱼MONEYOUT草鱼INTEGER草鱼RANGE草鱼0草鱼TO草鱼8000PORK车费草鱼草鱼草鱼草鱼草鱼草鱼DISTANCEOUT草鱼INTEGER草鱼RANGE草鱼0草鱼TO草鱼8000PORK路程草鱼ENDPORK草鱼ARCHITECTURE草鱼ONE草鱼OF草鱼TAXI草鱼IS草鱼BEGIN草鱼PROCESSCLK,START,STOP,PAUSE,SPEEDUP草鱼草鱼草鱼草鱼草鱼草鱼VARIABLE草鱼MONEY_REG,DISTANCE_REGINTEGER草鱼RANGE草鱼0草鱼TO草鱼8000PORK车费和路程的寄存器草鱼草鱼草鱼草鱼草鱼草鱼VARIABLE草鱼NUMINTEGER草鱼RANGE草鱼0草鱼TO草鱼9PORK控制车速的计数器草鱼草鱼草鱼草鱼草鱼草鱼VARIABLE草鱼DISINTEGER草鱼RANGE草鱼0草鱼TO草鱼100PORK千米计数器草鱼草鱼草鱼草鱼草鱼草鱼VARIABLE草鱼DSTD_LOGICPORK千米标志位草鱼BEGIN草鱼IF草鱼STOP1THEN汽车停止,鲤鱼计费和路程清零草鱼草鱼草鱼草鱼草鱼草鱼草鱼MONEY_REG0PORK草鱼草鱼草鱼草鱼草鱼草鱼草鱼DISTANCE_REG0PORK草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼DIS0PORK草鱼显示模块2草鱼草鱼草鱼草鱼草鱼草鱼草鱼NUM0PORK草鱼ELSIF草鱼START1THEN汽车起动后,鲤鱼起步价为6元草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼MONEY_REG600PORK草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼DISTANCE_REG0PORK草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼DIS0PORK草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼NUM0PORK草鱼ELSIF草鱼CLKEVENT草鱼AND草鱼CLK1THEN草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼IF草鱼START0AND草鱼SPEEDUP“00“AND草鱼PAUSE0草鱼AND草鱼STOP0THEN1档草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼IF草鱼NUM9草鱼THEN草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼NUM0PORK草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼DISTANCE_REGDISTANCE_REG1PORK草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼DISDIS1PORK草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼ELSE草鱼NUMNUM1PORK草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼END草鱼IFPORK草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼ELSIF草鱼START0AND草鱼SPEEDUP“01“AND草鱼PAUSE0草鱼AND草鱼STOP0THEN2档草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼IF草鱼NUM9草鱼THEN草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼NUM0PORK草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼DISTANCE_REGDISTANCE_REG2PORK草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼DISDIS2PORK草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼ELSE草鱼NUMNUM1PORK草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼END草鱼IFPORK草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼ELSIF草鱼START0AND草鱼SPEEDUP“10“AND草鱼PAUSE0草鱼AND草鱼STOP0THEN3档草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼IF草鱼NUM9草鱼THEN草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼NUM0PORK草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼DISTANCE_REGDISTANCE_REG5PORK草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼DISDIS5PORK草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼ELSE草鱼NUMNUM1PORK草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼END草鱼IFPORK草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼ELSIF草鱼START0AND草鱼SPEEDUP“11“AND草鱼PAUSE0草鱼AND草鱼STOP0THEN4档草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼DISTANCE_REGDISTANCE_REG1PORK草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼DISDIS1PORK草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼END草鱼IFPORK草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼IF草鱼DIS100草鱼THEN草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼D1PORK草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼DIS0PORK草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼ELSE草鱼D0PORK草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼END草鱼IFPORK草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼IF草鱼DISTANCE_REG300草鱼THEN如果超过3KM按12元/千米计算草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼IF草鱼MONEY_REG2000草鱼AND草鱼D1THEN草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼MONEY_REGMONEY_REG180PORK草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼当计费器达到20元,鲤鱼每千米加收50的车费草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼END草鱼IFPORK草鱼3草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼END草鱼IFPORK草鱼草鱼草鱼END草鱼IFPORK草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼MONEYMONEY_IN草鱼THEN草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼COMB1_A“0000“PORK草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼COMB1_B“0000“PORK草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼COMB1_C“0000“PORK草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼COMB1_D“0000“PORK草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼COMB10PORK草鱼草鱼草鱼草鱼草鱼草鱼END草鱼IFPORK草鱼END草鱼IFPORK草鱼END草鱼PROCESSPORK草鱼将路程的十进制转化为4位十进制数草鱼PROCESSCLK20MHZ,DISTANCE_IN草鱼草鱼草鱼草鱼草鱼草鱼VARIABLE草鱼COMB2INTEGER草鱼RANGE草鱼0草鱼TO草鱼8000PORK草鱼草鱼草鱼草鱼草鱼草鱼VARIABLE草鱼COMB2_A,COMB2_B,COMB2_C,COMB2_DSTD_LOGIC_VECTOR3草鱼DOWNTO草鱼0PORK草鱼BEGIN草鱼IF草鱼CLK20MHZEVENT草鱼AND草鱼CLK20MHZ1THEN草鱼草鱼草鱼草鱼草鱼草鱼草鱼IF草鱼COMB2DISTANCE_IN草鱼THEN草鱼草鱼草鱼草鱼草鱼草鱼草鱼COMB2_A“0000“PORK草鱼草鱼草鱼草鱼草鱼草鱼草鱼COMB2_B“0000“PORK草鱼草鱼草鱼草鱼草鱼草鱼草鱼COMB2_C“0000“PORK草鱼草鱼草鱼草鱼草鱼草鱼草鱼COMB2_D“0000“PORK草鱼草鱼草鱼草鱼草鱼草鱼草鱼COMB20PORK草鱼草鱼草鱼草鱼END草鱼IFPORK草鱼END草鱼IFPORK草鱼END草鱼PROCESSPORK草鱼数码管动态扫描草鱼PROCESSCLK1KHZ,M_ONE,M_TEN,M_HUN,M_THO,D_ONE,D_TEN,D_HUN,D_THO草鱼VARIABLE草鱼CNTSTD_LOGIC_VECTOR2草鱼DOWNTO草鱼0PORK草鱼BEGIN草鱼IF草鱼CLK1KHZEVENT草鱼AND草鱼CLK1KHZ1THEN草鱼草鱼草鱼草鱼草鱼草鱼草鱼草鱼CNTCNT1PORK草鱼END草鱼IFPORK草鱼CASE草鱼CNT草鱼IS草鱼草鱼草鱼草鱼草鱼草鱼草鱼WHEN“000“DATADATADATADATADATADATADATADATASEG7SEG7SEG7SEG7SEG7SEG7SEG7SEG7SEG7SEG7“0000000“PORK草鱼END草鱼CASEPORK草鱼END草鱼PROCESSPORK草鱼ENDPORK草鱼对两个模块生成符号文件,鲤鱼连接电路图。草鱼草鱼生成的符号PORK草鱼草鱼图2草鱼草鱼TAXI模块生成符号文件草鱼草鱼草鱼图3草鱼草鱼DECODER模块生成符号文件草鱼草鱼注PORK电路符号,鲤鱼其中CLK为计费时钟脉冲信号输入端,鲤鱼CLK20MHZ为译码高频时钟信号输入端,鲤鱼START为汽车启动键,鲤鱼STOP为汽车停止键,鲤鱼PAUSE为汽车暂停键,鲤鱼SPEED【10】为档位键,鲤鱼SCAN【70】为数码管地址选择信号输出端,鲤鱼SEG7【60】为7段显示控制

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论