




版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
Lesson16EmbeddedSystems:aPrimer
(第十六课嵌入式系统:初级)
Vocabulary(词汇)ImportantSentences(重点句)Multiple-choiceQuestion(多选题)
Problems(问题)
GeoffreyBessinisamarketmanagerforIBMRational ’ssoftwarequalityproducts.Afrequentlecturerwithsales,marketing,andproductmanagementexperience,Geoffrey’sentirecareerwithRationalandIBMhasbeendedicatedtohelpingcustomersimprovetheirskillswhiledeliveringbetterqualityapplicationsinlesstime.
Intheworldofsoftwaredevelopment,theindustrycanbedividedintothreelargesectors:embeddedsystems/network-connecteddevices,infrastructure,ande-businesssystems.
Woulditsurpriseyoutoknowthatbothofthefirsttwosectors(infrastructuresandembeddedsystems/network-connecteddevices)relyheavilyonembeddedsystemtechnology?It’strue.Buthowimportantarethey,really?Well,ifyou’veevercalledsomeoneonyourcellphone,youhaveanembeddedsystemtothank.Ifyou’veeverdrivenacarorlandedsafelyinanairplane,thankembeddedsystems.ThesamegoesforusingyourPersonalDigitalAssistant(PDA),benefitingfromcomplexmedicalequipment,orconsumingelectricityfromyourlocalpowercompany.Embeddedsystemsareeverywhere.
Impressive?Soarethenumbers.Everyyear,morethanabilliondollarsarespentonthetechnologyandknow-hownecessarytomakeallofthesesystemsareality.
Embeddedsystemshaveavocabularyandgrammaralltheirown.Ifyouarenewtoembeddedsystems,thisprimerwillgiveyouusefulbackgroundandabasicunderstandingoftheunderlyingconcepts.1WhatisanEmbeddedSystem?
Toughquestion,really.Thereisnooneanswer.Iaskedatleastahalfdozenindustryexpertsandgotasmanyanswers.Infact,itwassohardtopindownadefinitionthatIalmoststartedthinking“embeddedsystem”wasjustanothertermfor“software”.Nevertheless,there’sonefactaboutembeddedsystemsthatalltheexpertsdoseemtoagreeon:
Anembeddedsystemisanysoftwaresystemthatmustbedesignedonaplatformdifferentfromtheplatformonwhichthesystemisintendedtobedeployed.[1]
Whatismeantbyplatform?Onthedevelopmentside,platformtypicallyreferstoanoperatingsystemcapableofhostingsoftwaredevelopment,suchasWindows,Solaris,HP,etc.Onthetargetside,thewordplatformreferstothedevicesonwhichtheembeddedsystemwillbedeployed.[2]
OKthen,whythedesignconstraint?Whyaren’tembeddedtargetscapableofhostingsoftwaredevelopment?Becausethesetargetsareoptimizedforperformanceand/orsimplicity,theylacktheequipmentnecessaryfordevelopment(suchaskeyboards,monitors,networking,etc.).Ingeneral,developmentfortheembeddedenvironmentisreferredtoas“cross-platformdevelopment.”[3]2EmbeddedSystemPerformance
Toreiterate,targetplatforms,theactualembeddeddevicesandsystemsthemselves,areoptimizedforperformanceand/orsimplicity.Whatdowemeanbyperformance?Ifyouthinkitmeansthetargethastobeextremelyfast,thenyou’reonlypartiallycorrect.Formostembeddedsystems,amaximallyacceptableprocesstimeisrigidlyobserved,butthattimeneednotbesuperfast—justfastenoughforthesysteminquestion.Considertheairplane:Howmuchtimeisacceptablebetweenachangeinexternalatmosphericconditionsandtheappropriatealterationmadebytheautopilot?Perhapsthereactionneednotbelightningquick,butitcertainlycan'tbesluggish.
Andhowaboutsimplicity?Dependingontheresponsibilityoftheembeddedsystem,small,inexpensive,low-powermicrochipsareviableandpreferableoptionstomorebulkyalternatives.[4]Didyouknowthatthereismorecomputationalpowerinamodern-dayautomobilethantherewasintheApollo13moonlander?Canyouimaginethecostandsizeoftoday’sautomobilesiftheirembeddedsystemswerecomplexandbulky?
Sowhat’stheoverallresponsibilityofanembeddedsystem?Again,Ifoundtheexpertscouldagreeonthisstatement:
Theobjectiveofanembeddedsystemistoexecuteasfastasnecessaryinanasynchronousworldusingthesmallestamountofcodeandwiththehighestlevelofpredictability.(Note:Predictabilityistheembeddedworld’stermforreliability.)
Howcouldthisevenbepossible?Bydefinition,inanasynchronousworld,inputsareunpredictable;insuchaworldthereisnosuchthingasareliable,dependable,predictableenvironment!
Tounderstand,thinkintermsofyourcar:everytimeapistonintheengineexpands,yourcarhastomeasuretemperatureandpressuretodecidehowmuchgasolineandairtoinjectintothecylinderbeforethenextcompression.Ifyoudriveyourcarat130mphonadesertedhighway,itwillforceyourcar’sembeddedcomputertomakethatdecisionthousandsoftimespersecondbecauseyourcarwillberunningat6000rpm.Everyreadingwillsupplydifferentvaluesthatrequiredifferentdecisions.Butyourembeddedcomputerwillletyouenjoythat130mphridebecausethesystemitselfisverypredictable,veryreliable.Itwillevenstopyouwhentheengineistoohotorthecarisoutofgas.Andithadbetterbepredictableandreliable—youwouldn’twanttorebootyourcarwhilebreakingthesoundbarrier,wouldyou?
Okay,let’sreview.Wenowunderstandthatembeddedsystems:
Mustbedevelopedinacross-developmentenvironment;
Implementfunctionsthatprovideanelementofcontrolinanasynchronousworld;
Usethesmallestamountofcodetoachievethegreatestnecessaryspeedanddegreeofpredictabilitypossible.3TargetPlatforms
Forthesimplesttargetplatforms—platformsthatareinexpensiveandconsumeminimalpower—allfunctionsareconsideredequallyimportant,sothesystemhasnorecognitionofpriority.FunctionsaretypicallywritteninCandthen“burned”intosomeReadOnlyMemoryonan8-bitor16-bitmicroprocessor.Thereisnooperatingsystemandperhaps0.5KofRandomAccessMemoryforsomeminoruse.It’sinformationin,informationout.Lightningquick.(Thebitsizejustreferstotheamountofmemoryaccessedbytheprocessor.Allmemoryisdividedintolittlestoragebinswithindividualaddresses.Themorebitssupportedbyaprocessor,themoreaddressesthatcanbespecified.)
Astheneedforfeaturesincreasesand/orastheneedtoestablishprioritiesarises,itbecomesmoreimportanttohavesomesortofdecision-makingmechanismbepartoftheembeddedsystem.Themostadvancedsystemsactuallyhaveatiny,streamlinedoperatingsystemrunningtheshow,executingona32-bitor64-bitprocessor.ThisiscalledaReal-TimeOperatingSystem(RTOS).[5]
AnRTOSrunsyourPDA.Morethanonethingmaybehappeningatthesametimeonthisdevice,anditisthejoboftheRTOStodirecttraffic.Butwhyreal-time?Here’swhatmyexpertshadtosay:
Intheembeddedindustry,“real-time”isusedtorefertoasystemthatmustcomputearesult,basedoncertaininputs,inlessthanamaximallyacceptabletime—i.e.,itmustrespondinrealtime.
Thefactis,real-timeresponseisnotalwaysnecessaryinanembeddedsystem.Nevertheless,withintheindustry,thetermreal-timehasbecomealmostsynonymouswithembeddedsystem.4EmbeddedSystemCertification
Embeddedsystemsassociatedwithsafetyandmission-criticalapplicationstypicallyhaveextremelyrigorouscertificationstandards.Forexample,allinternationalaviationadministrationsdisallowtheuseofanewembeddedsystemwithinairplanesuntilthatsystemhasbeendevelopedandtestedwiththetechniquesandmethodsdefinedwithinadocumentlabeledDO-178B.Criticaltothiswell-definedprocessisaninsistenceonexposingandtestingcode,baseduponcodecoverageuptothelevelofcompletenesssoftwaredevelopersrefertoasMC-DC(ModifiedConditions—DecisionConditions).
Sohowdoyoutestandcertifysuchcriticalembeddedsystems?Yourtestingtoolsetmust:
Executeitstestsdirectlyonthetargetsystem.
Supportallpotentialdevelopmentplatformsanddevelopmenttools.
Accommodate,andnotinterferewith,thepotentiallylimitedmemoryandprocesspowerofthetargetsystem.
Enableeverythingfromunittesting(i.e.,testingoffunctions,classes,tasks)tooverallsystemtesting.
ProvidecodecoveragemetricsuptotherigorousMC-DCstandard.
WiththeadditionofRationalTestRealTime,Rationalcannowsupplyatoolsetthatmeetsalltherequirementsonthislist.Ofcourse,notallembeddedsystemsmustmeetsuchrigorouscertificationstandards,buttestingtoolsthatcanmeetastrictcertificationstandardcaneasilyaccommodatesimpler,lessrestricted,embeddedsystems.
That’sit!Nowthatyouknowthebasicsaboutembeddedsystems,youcanunderstandwhatthebigfussisabout.FutureRationalEdgearticleswillprovideinformationabouthowtoapplythetoolsRationalsuppliestodevelopandtestembeddedsystems,sostaytuned!
1. embeddedadj.植入的,深入的,内含的,嵌入式。
2. infrastructuresn.基建,配套结构,基本建设。
3. impressiveadj.给人印象深刻的,感人的。
4. pindown把……固定住;使动弹不得,迫使作出决定,采取行动。
5. reiterate vt.反复地说,重申。Vocabulary
6. autopilot n.自动驾驶仪。
7. asynchronous adj.异步的。
8. unpredictable adj.无法预言的,不可预测的。
9. piston n.活塞。
10. RTOS(Real-TimeOperatingSystem)实时操作系统。
11. PDAabbrPersonalDigitalAssistant个人数字助理,即掌上型电脑。
[1]Anembeddedsystemisanysoftwaresystemthatmustbedesignedonaplatformdifferentfromtheplatformonwhichthesystemisintendedtobedeployed.
嵌入式系统是一种设计平台与运行平台不同的软件系统。deploy,部署,调遣,展开,配置。本句子的主框架是:Aissomethingthat(description).即“嵌入式系统是一种软件系统”,什么样的软件系统呢?这种软件系统mustbedesignedonaplatformdifferentfromtheplatformonwhichthesystemisintendedtobedeployed.ImportantSentences
[2]Whatismeantbyplatform?Onthedevelopmentside,platformtypicallyreferstoanoperatingsystemcapableofhostingsoftwaredevelopment,suchasWindows,Solaris,HP,etc.Onthetargetside,thewordplatformreferstothedevicesonwhichtheembeddedsystemwillbedeployed.
平台是什么?对于开发者来说,平台指的是一种操作系统,能进行软件的开发工作,例如Windows、Solaris、HP操作系统等。对目标机来说,平台指的是一种设备,嵌入式软件能运行于其上。本句子的结构是:“Whatismeantbyplatform?Onthedevelopmentside,…Onthetargetside,…”什么是平台?对于开发者来说……对于目标机来说……。
[3]Whythedesignconstraint?Whyaren’tembeddedtargetscapableofhostingsoftwaredevelopment?Becausethesetargetsareoptimizedforperformanceand/orsimplicity,theylacktheequipmentnecessaryfordevelopment(suchaskeyboards,monitors,networking,etc.).Ingeneral,developmentfortheembeddedenvironmentisreferredtoas“cross-platformdevelopment.”
为什么基于目标机的开发会受到限制?为什么嵌入式目标机不能用来开发嵌入式软件呢?为达到高性能或简洁性,目标机都进行过优化。它们缺乏开发所必需的设备(例如键盘、显示器、网络等)。一般而言,嵌入式开发被称为“跨平台开发”。本句提出两个问题,Because引导两个并列句对其进行解释。
[4]Andhowaboutsimplicity?Dependingontheresponsibilityoftheembeddedsystem,small,inexpensive,low-powermicrochipsareviableandpreferableoptionstomorebulkyalternatives.
为什么要简洁化?考虑到嵌入式系统的性能,体积小、廉价、低功耗的微处理器芯片是比庞大的设备更可行、更合适的选择。本句的主框架是:DependingonA,BareviableandpreferableoptionstoC,考虑到A、B是比C更可行、更合适的选择。
[5]Astheneedforfeaturesincreasesand/orastheneedtoestablishprioritiesarises,itbecomesmoreimportanttohavesomesortofdecision-makingmechanismbepartoftheembeddedsystem.Themostadvancedsystemsactuallyhaveatiny,streamlinedoperatingsystemrunningtheshow,executingona32-bitor64-bitprocessor.ThisiscalledaReal-TimeOperatingSystem(RTOS).
随着对功能需求的增加,或需要建立优先级,在嵌入式系统中加入一些决策机制将显得尤为重要。最先进的系统实际上有一个微小的、精简的操作系统在运行,这是在32位或64位处理器上执行的。这就是所谓的实时操作系统(RTOS)。两个并列的现在分词短语runningtheshow(掌管一切)和executingona32-bitor64-bitprocessor修饰operatingsystem。
(1) Thefourdescriptionsbelow,whicharetoilluminateembeddedsystem?()
A. Mustbedevelopedinacross-developmentenvironment.
B. Implementfunctionsthatprovideanelementofcontrolinanasynchronousworld.
C. Thesystemwillperformancebetterifit’
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 汕尾一年级上册试卷及答案
- 肇庆市实验中学高中历史二:第四单元中国社会主义发展道路的探索测验教案
- 《2025年签订新员工合同通知书》
- 浙江国企招聘2025宁波市鄞州区区属国企招聘2人笔试参考题库附带答案详解
- 机床制造中的环境保护措施实施考核试卷
- 电气安装变压器的选型与安装考核试卷
- 燃气具制造工艺流程考核试卷
- 绢纺与丝织品的在线销售与数字营销考核试卷
- 绿化施工安全管理考核试卷
- 电视接收设备的智能日程管理考核试卷
- 2024年同等学力申硕-同等学力(政治学)笔试历年真题荟萃含答案
- 2024年建设工程承包合同范本(通用)-(带附加条款)
- 放射性金属矿的辐射事故案例与防范
- 四年级下册数学运算定律简便计算200题及答案
- 不良分析改善报告
- 2022年山西省中考历史试卷(含答案)
- ICH-GCP中英文对照(完整)
- 国开《Windows网络操作系统管理》形考任务6-配置Web服务实训
- 沙漠铁塔基础施工方案
- 菜品制作流程
- 采暖工程预算课件
评论
0/150
提交评论