基于CPLD的出租车自动计价系统的设计作者姓名:李刚刚专业名称:信息工程指导教师:大学讲师基于CPLD的出租车自动计价系统的设计I摘要随着电子行业的迅猛发展,计价器在各个领域中的使用越来越频繁,用户对计价器的要求也越来越高。以出租车多功能计价器为例,用户不仅要求计价器性能稳定,计费准确;不同国家和地区的收费方式存在差异,即使在同一地区,不同车型的出租车其收费方式也有差别,而且出租车还面临几年一次的调价或调整收费方式等问题。传统的基于单片机设计的出租车多功能计价器已远远跟不上这种变化,功能升级很繁琐,需要硬件重组和软件更新同步进行,成本高,并且每次升级都可能产生新的不稳定因素;而本设计是基于复杂可编程逻辑器件(CPLD)的出租车自动计价系统,采用超高速集成电路硬件描述语言VHDL和逻辑综合为基础的自顶向下的电路设计方法,在硬件电路不加改变的前提下,功能升级十分方便,从使用情况看,该设计稳定性好、可靠性高,市场前景良好,而且开发成本低,周期短,极大的满足了用户的变化要求。关键词:硬件设计CPLD超高速集成电路硬件描述语言仿真基于CPLD的出租车自动计价系统的设计IIAbstractAlongwiththefastfiercedevelopmentoftheelectronicsprofession,chargethemachineineachrealmofusageismoreandmoremultifarious,therequestofcustomertothechargemachineisalsomoreandmorehigh.Totakemulti-functionchargemachineoftherentcarasanexample,thecustomernotonlyrequesttochargethemachinefunctionstability,chargeaccurate;thefor-rentcarofdifferentfromthechargesmethodexistencedifferenceoftheregion,eveninsameregion,carindifferentnationtypeitchargesthewaybutalsohavethedifference,andrentthecartostillfacesatimefeehikesofseveralyearsoradjusttochargethewayetc.problem.Traditionalaccordingtoamachinedesignofmulti-functionchargemachineoffor-rentcarhasalreadycannednotkeepupwiththiskindofvarietyfarandfar,thefunctionupgradeisverytedious,needingthehardwarereorganizationtocarryonwiththesoftwarerenewalsynchronously,thecostishigh,andupgradeeachtimemayproducethelatelyunsteadyfactor;butaccordingtoprogrammablelogicarray(CPLD)ofthespotofmulti-functionchargemachineoffor-rentcar,theadoptionhardwaredescriptionlanguagetheVHDLandlogiciscomprehensiveforbasalfromthecrestgetdownoftheelectriccircuitdesignmethod,Doesnotchangeinthehardwareelectriccircuitunderthepremise,thefunctionupgradeextremelyconveniently,lookingfromtheservicecondition,thisdesignstabilitygood,thereliabilityishigh,themarketprospectisgood,moreoverthedevelopmentcostislow,thecycleisshort,enormoushassatisfiedthechangerequestofcustomer..Keywords:Hardwaredesign,ComplexProgrammableLogicDevice,Extremelyhighsoontheintegratedcircuithardwaredescriptionlanguage,Simulation.基于CPLD的出租车自动计价系统的设计III目录摘要...................................................................IABSTRACT...............................................................II1前言..................................................错误!未定义书签。1.1课题研究背景..................................................................................................................11.2本文所做的工作..............................................................................................................32相关技术介绍.........................................................42.1CPLD简介.......................................................................................................................42.1.1CPLD的基本结构....................................................................................................42.1.2CPLD的特点.............................................................................................................52.2XILINX公司可编程逻辑器件介绍..................................................................................52.2.1XC9500系列器件结构简述.....................................................................................52.2.2可编程CPLD芯片XC9572产品规格说明...........................................................82.3VHDL语言简介............................................................................................................102.3.1VHDL语言的优点..................................................................................................102.3.2使用VHDL语言的可行性.....................................................................................122.4XILINXFOUNDATIONF1.5系统简介..............................................................................123出租车自动计价系统的设计..............................................133.1系统基本设计思想及实现的功能及要求....................................................................133.1.1系统基本设计思想..................................................................................................133.1.2系统实现的功能及要求..........................................................................................133.2系统硬件设计................................................................................................................143.2.1外围电路介绍..........................................................................................................153.3系统软件设计................................................................................................................193.3.1电子钟程序设计......................................................................................................193.3.2计价部分程序设计..................................................................................................203.4程序仿真图....................................................................................................................27结论.................................................................31致谢.................................................................32参考文献...............................................................33基于CPLD的出租车自动计价系统的设计IV附录A(系统程序)....................