外文翻译--模拟单片机外设的高级共仿真和综合.doc
浙江工业大学浙西分校信电系系毕业论文(中英文资料)Modelingmicro-controllerperipheralsforhigh-levelco-simulationandsynthesisMappingabehavioronanembeddedsysteminvolveshardware-softwarepartitioningandassignmentofsoftwareandhardwaretaskstodifferentcomponents.Inparticular,softwaretasksinembeddedcontrollersaremostlyassignedtoamicro-controller.However,somemicro-controllerperipheralsareimplementedwithpartlyprogrammablecomponentsthatcanberegardedasverysimpleco-processorswithlimitedinstructionsetsandcapabilities.Embeddedsystemdesignersareusedtomappingsomesimplesoftwaretasksontothesesimpleco-processors,obtainingoverallperformancesthatcanbeordersofmagnitudesuperiortotheonesobtainedmappingallsoftwaretaskstothemicro-controlleritself.Inthispaper,weproposeamethodologytospecify,simulate,andpartitiontasksthatcanbeimplementedonprogrammablemicro-controllerperipheralssuchasTimingProcessingUnitsPUS).Followingourgeneralphilosophy,weletthedesignerproposeapartition,andweprovideanenvironment0toefficientlysimulateandevaluateaparticularimplementationchoice0toautomatedownstreamsynthesisforsoftware,hardware,aswellasperipheralprogrammingroutines.1ImplementationandCaseStudyWehaveimplementedsuchalibraryforthe68hcllfamilyofmicro-controllersfromMotorola.Itincludes:0Thetimerunit,implementinginputcaptureandoutputcomparefunctions,thatmeasuretimebetweeninputand0TheALIIconvertoutputeventsusinga16bitfreerunningcounter.0ThePWMgeneratorspresentonaspecificfamilymembertargetedforautomotiveapplications.EachfunctionofthetimerunitandofthePWMgeneratorisdescribedbothatthebehaviorallevel,usingthesimulatortimingfunctionstoimplementtime,andattheRegisterTransferlevel,usingacycle-accuratemodelofthehardware.Thelatterisalsousedforhardwareandsoftwaresynthesis,iftheperipheralisnotused.Croutinesareusedtointerfacetotheperipheral.TheprecisionoftheRTLmodelcanbescaled,bydividingtheclock.Asinglesimulationparametercontrolsthisscalingwithoutaffectingtheoverallbehavior(apartfromthelossofprecision).Wehavespecifiedthefunctionalityofacompletedashboardcontroller,thatusesthe68hcl1peripherals.Note,withthestandardco-designmethods,usingonlyfullyprogrammableprocessorsorhardware,allthetasksimplementedbytheperipheralscouldbeimplementedonlyassoftwaretasks,thusyieldingalessperformingsolution,orashardwaretasks,thusyieldingahighercostandlessflexiblesolution.Hencethemethodpresentedhereisrequiredinordertoobtainasolutionqualitycomparable浙江工业大学浙西分校信电系系毕业论文(中英文资料)withmanualdesign.Thespeedofthebehavioralsimulationwasabout260,000clockcyclespersecond.ThespeedoftheRTLsimulationrangedalmostlinearlyfrom2,000clockcyclespersecondto50,000clockcyclesdependingontheclockscalingfactor,from1to32.Theexperimentswereperformedona60MHzULTRAsparc.Atsynthesistime,theappropriateU0driversareextractedfromthelibraryandcustomizedbytheco-designtools.WealsosynthesizedahardwareimplementationforthePWMgeneratorsofthedashboardcontroller,becausetheyarenotavailableonallmembersofthe68hcllfamily.Weanalyzedthecosttrade-offsofusingsomesmallASICtoimplementthatfunction.Ahardwareimplementation,usingXILINXFPGAsforrapidprototypingpurposesrequired374CLBs(with203flip-flops)and60U0pads,thatwouldfitonaXILINX4010chip.2ConclusionTheproposedsolutionforhigh-levelspecificationofmicro-controllerperipheralsretainsmostoftheadvantagesandflexibilityofhardwaresoftwareco-design(uniformmodeling,fastco-simulation,formalverification,flexibilityintargetimplementation,.Thelimitisthatthedesignerhastodecideonwhetherornotafunctionisimplementableusingaparticularperipheral,andsometimessuchadecisionmustbemadeaboutperipheralsthatmaybeonlyslightlydifferentbetweendifferentmicro-controllers.Furtherresearchisstillneededtodevelopmappingtechniquesfromanunbiasedspecificationtopartiallyprogrammabledevices.浙江工业大学浙西分校信电系系毕业论文(中英文资料)模拟单片机外设的高级共仿真和综合映射在一个嵌入系统上的行为包括硬件-软件区分和对于不同成分上硬件和软件的任务。特别的,在嵌入控制上的软件任务由单片机执行。但是,一些单片机外围设备一起实现部分可设计的成分,这些成分被当作限制性的指令组合和能力的非常简单的共处理器。嵌入系统设计者习惯于把一些简单的软件工作映射到这些简单的共处理器,以获得把大规模指令转向获得映射所有软件任务的单片机本身。本文,我们打算一种方法去叙述,仿真,和区分那些可能是被用于可设计的单片机外围设备,比如时间处理单元(TPUs)。通过我们的一般原理,我们让设计者计划分割,且我们提供一个环境去有效仿真和评估一个特殊执行选择。为软件,硬件和外围设备规划常式自动化下游的综合。1、落实和个案研究我们已经实现了来自摩托罗拉的单片机68hcll系列。它包括:定时单元,实现输入摄入输出比较功能,使用16位自由运行计算器的输入和输出两者间的测试时间。A/D转换器PWM产生器在一个特定的系列成员上为汽车的申请对准。我们已经叙述完全的仪表板控制器的功能性,这些控制器使用68hcl1外围设备。注意共设计方法的标准,使用只有完全可设计的处理器或硬件,所有的被外设实现的工作能仅仅如软件工作那样实现,如此产生一个更高的成本和更少灵活的方法。因此,在这里呈现的方法被要求为了获得一个解决特性相比较手动设计。行为模拟速度大约是260000时钟循环每秒。RTL模拟速度范围从2000时钟循环每秒到5000时钟循环每秒线性变化,依靠时钟计数因素,从1到32。试验在60MHZ的ULTRAsparc上被运行。综合时间,适当的I/O驱动从图书馆和有共设计工具的客户上被修改。我们也为仪表板控制器的PWM产生器综合硬件实现,因为他们在68hcll单片机系列所有成员不是适当的。我们分析了使用一些小ASIC的称本交换去实现这个功能。一个硬件实现,使用XILINXFPGAs作为快速设计原型的目的要求374CLBs和60I/OPads,这些将在XILINX4010芯片上使用。2、结论单片机外设的高级外设的提议解决方法保留了共设计硬件/软件的大部分优点和灵活性。局限是设计者不得不考虑一个功能是否要用一个特殊外设去实现,且有时如此的决定必须作出有关不同单片机外设之间的微小差别。更进一步的研究仍然需要去发展映射技术从无偏见外设到局部可编程的装置。