版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
嵌入式處理器架構與程式設計王建民中央研究院資訊所2008年7月嵌入式處理器架構與程式設計王建民ContentsIntroductionComputerArchitectureARMArchitectureDevelopmentToolsGNUDevelopmentToolsARMInstructionSetARMAssemblyLanguageARMAssemblyProgrammingGNUARMToolChainInterruptsandMonitor2ContentsIntroduction2Lecture1
IntroductionLecture1
IntroductionOutlineBasicConceptsCourseInfoEmbeddedSystemsProgrammingSystems4OutlineBasicConcepts4ComputerSystemsHardwareFirmwareSoftwareApplicationsoftwareSystemsoftwareProgrammingsystemsUtilitiesOperatingsystems5ComputerSystemsHardware5ComputerSoftwareApplicationsoftwareisdesignedtosolveaspecificproblem.Systemsoftwareisintendedtosupporttheoperationanduseofthecomputeritself.Provideageneralprogrammingenvironment.Providefunctionsusedbyapplicationsoftwareandusers.Providemechanismstosharethehardwareinanorderlyfashion.6ComputerSoftwareApplicationsFoundationsofComputerSystemsUsersApplicationSoftwareProgrammingSystemHardwareOperatingSystem7FoundationsofComputerSystemEvolutionofProgramming1MachineLanguageBinaryformat
11100101100111110001000000010000 11100101100111110000000000001000 11100000100000010101000000000000 11100101100011110101000000001000Hexadecimalformat E59F1010 E59F0008 E0815000 E58F50088EvolutionofProgramming1MachiEvolutionofProgramming2AssemblyLanguageMnemoniccodes E59F1010 LDR R1,num1 E59F0008 LDR R0,num2 E0815000 ADD R5,R1,R0 E58F5008 STR R5,sumHigh-LevelLanguageClanguage sum=num1+num2;9EvolutionofProgramming2AssemHowinstructionsareexecuted?...E59F1010E59F0008E0815000E59F5008...10Howinstructionsareexecuted?Howasourceprogramiscompiled?intmain(){...
sum=num1+num2;...}...E59F1010E59F0008E0815000E59F5008...11HowasourceprogramiscompilHowtodevelopembeddedsoftware?#defineGREETING“Hello,World!\n”intmain(){printf(GREETING);}12HowtodevelopembeddedsoftwaWhatareyougoingtolearn?Howinstructionsareexecuted?ComputerArchitectureHowasourceprogramiscompiled?DevelopmenttoolsHowtodevelopembeddedsoftware?EmbeddedprocessorsAssemblylanguageandprogrammingCrossdevelopmentSoftwareinterrupts13Whatareyougoingtolearn?HoOutlineBasicConceptsCourseInfoEmbeddedSystemsProgrammingSystems14OutlineBasicConcepts14PrerequisitesandRelatedCoursesPrerequisites計算機概論C/C++程式設計資料結構RelatedCourses計算機結構系統程式作業系統嵌入式系統15PrerequisitesandRelatedCourCourseInfo1RelatedLinksSlidesanddocuments
.tw/~cmwang/arm/TheARMprocessor
/GNUsoftware
/Opensourcesoftwareforhandheldsystems
/16CourseInfo1RelatedLinks16CourseInfo2PCSoftwareLinux
/Cygwin
/GNUSoftware
/GNUARMToolChain
/17CourseInfo2PCSoftware17CourseInfo3ReferenceBooksComputerOrganizationandDesign:TheHardware/SoftwareInterface,PattersonandHennessySystemsoftware:anintroductiontosystemsprogramming,3rdedition,
LelandL.Beck.Compilers–Principles,Techniques,andTools,A.V.Aho,R.Sethi,andJ.D.Ullman.OperatingSystemConcepts,AbrahamSilberschatz.18CourseInfo3ReferenceBooks18OutlineBasicConceptsCourseInfoEmbeddedSystemsProgrammingSystems19OutlineBasicConcepts19Whatareembeddedsystems?Anythingthatusesamicroprocessorbutisn'tageneral-purposecomputerPDAs Set-topboxesTelevisions VideogamesRefrigerators CarsPlanes ElevatorsRemotecontrols AlarmsystemsMorethanjustacomputer;it'sacompletesystem20Whatareembeddedsystems?AnytWhatisanembeddedsystem?ComputerpurchasedaspartofsomeotherpieceofequipmentTypicallydedicatedsoftwareOftenreplacespreviouslyelectromechanicalcomponentsOftenno“real”keyboardOftenlimiteddisplayornogeneralpurposedisplaydeviceBut,everysystemisunique.Therearealwaysexceptions.21Whatisanembeddedsystem?ComWhyareembeddedsystemsimportant?EngineeringreasonsWhydoesasatelliteneedaWindowsprompt?DoestheMcDonald’sPOS(point-of-sale)terminalneedMacOS?Anydevicethatneedstobecontrolledcanbecontrolledbyamicroprocessor22WhyareembeddedsystemsimporWhyareembeddedsystemsimportant?MarketreasonsThegeneral-purposecomputingmarketisinbillionsofUS$Theembeddedsystemsmarketisalsoinbillionsof$~80MillionPCsvs.~3BillionEmbeddedCPUsannuallyEmbeddedmarketgrowing;PCmarketmostlysaturatedInyear2000,about$2,700ofeverycarwenttoelectronics23WhyareembeddedsystemsimporWhyareembeddedsystemsimportant?PedagogicalreasonsGeneral-purposesystemdesignersspecializeHWvs.SWEmbeddedsystemdesignersareoftenJackofmanytradesNeedtoknowhardware,software,andsomecombinationofnetworking,controltheoryandsignalprocessingbusinessmodels24WhyareembeddedsystemsimporEmbeddedSystems:AnIntroductionWhatmakesembeddedsystemsdifferent?Real-timeoperationManysetsofconstraintsondesignsSizeCostTimeReliabilityEnergySafetySecurity25EmbeddedSystems:AnIntroductAnEngineer’sView:AComputerMeasuredby:performance,costCompilers&OSmatters26AnEngineer’sView:AComputerAnEmbeddedComputerMeasuredby:cost,I/Oconnections,memorysize,performance27AnEmbeddedComputerMeasuredbAnEmbeddedControlSystemMeasuredby:Cost,timetomarket,performance,functionality,dependability28AnEmbeddedControlSystemMeasSomeEmbeddedSystemExamplesPocketremotecontrolRFtransmitter100KIPS,water/crushproof,fitsinpocket,5yearbatterylifeSoftwarehandcraftedforsmallsize(lessthan1KB)Industrialequipmentcontroller(e.g.,elevator;jetengine)1~10MIPSfor1to10CPUs,1~8MBmemorySafetycriticalsoftware;realtimecontrolloopsMilitarysignalprocessing(e.g.,Radar/Sonar)1GFLOPS,1GB/secI/O,32MBmemorySoftwarehandcraftedforextremelyhighperformance29SomeEmbeddedSystemExamplesPCategoriesofEmbeddedSystems1GeneralComputingApplicationssimilartodesktopcomputing,butinanembeddedpackageVideogames,settopboxes,wearablecomputers,automatictellersControlSystemsClosedloopfeedbackcontrolofrealtimesystemVehicleengines,chemicalprocesses,nuclearpower,flightcontrol30CategoriesofEmbeddedSystemsCategoriesofEmbeddedSystems2SignalProcessingComputationsinvolvinglargedatastreamsRadar,Sonar,videocompressionCommunication&NetworkingSwitchingandinformationtransmissionTelephonesystem,Internet31CategoriesofEmbeddedSystemsFunctionsofEmbeddedSystems1ControlLawsPIDcontrolFuzzylogic,...SequencingLogicFinitestatemachinesSwitchingmodesbetweencontrollawsSignalProcessingMultimediadatacompressionDigitalfiltering32FunctionsofEmbeddedSystems1FunctionsofEmbeddedSystems2ApplicationSpecificInterfacingButtons,bells,lights,...HighspeedI/OFaultResponseDetection&reconfigurationDiagnosis…33FunctionsofEmbeddedSystems2DistinctiveAttributes1Reactive:computationsoccurinresponsetoexternaleventsPeriodicevents(e.g.,rotatingmachineryandcontrolloops)Aperiodicevents(e.g.,buttonclosures)34DistinctiveAttributes1ReactivDistinctiveAttributes2Real-Time:timingcorrectnessispartofsystemcorrectnessHardreal-timeAbsolutedeadline,beyondwhichanswerisuselessMayincludeminimumtimeaswellasmaximumtimeSoftreal-timeMissingadeadlineisnotcatastrophicUtilityofanswerdegradeswithtimedifferencefromdeadlineExample:atrainisenteringanurbanarea...therailwaygateinthecityallowsautomotivetraffictogooverthetrackswhenshouldtherailwaygateclose?Ingeneral,RealTime!=“RealFast”35DistinctiveAttributes2Real-TiEmbeddedSystemConstraints1SmallSize,LowWeightHandheldelectronicsTransportationapplicationsweightcostsmoneyLowPowerBatterypowerfor8+hours(laptopsoftenlastonly2hours)LimitedcoolingmaylimitpowerevenifACpoweravailable36EmbeddedSystemConstraints1SmEmbeddedSystemConstraints2HarshEnvironmentHeat,vibration,shockPowerfluctuations,RFinterference,lightningWater,corrosion,physicalabuseSafetyCriticalOperationMustfunctioncorrectlyMustnotfunctionincorrectlyExtremeCostSensitivity$.05addsupover1,000,000units37EmbeddedSystemConstraints2HaEmbeddedSystemDesignViewAcomplexsetoftradeoffs:OptimizeformorethanjustspeedConsidermorethanjustthecomputerTakeintoaccountmorethanjustinitialproductdesignMulti-Discipline•ElectronicHardware•Software•MechanicalHardware•ControlAlgorithms•Humans•Society/InstitutionsMultiObjective•Dependability•Affordability•Safety•Security•Scalability•TimelinessMultiPhase•Requirements•Design•Manufacturing•Deployment•Logistics•Retirementxx38EmbeddedSystemDesignViewAcMissionCriticalApplications1LossofArianneinauguralflightinJune,1996Losta$400millionscientificpayload(therocketwasextra)EffortstoreducesystemcostsledtothefailureReuseofInertialReferenceSystemsoftwarefromAriane464bitfloatconvertedto16bitintassumednottooverflowImproperlyhandledexceptioncausedbyvariableoverflowduringNewflightprofile(thatwasn'tsimulatedbecauseofcost/schedule)39MissionCriticalApplications1MissionCriticalApplications2Exceptioncauseddualhardwareshutdown(softwaredoesn'tfail!)Whatreallyhappened?Thenarrowview:itwasasoftwarebug;fixitThebroadview:thelosswascausedbyalackofsystemrobustnessinanexceptional(unanticipated)situationManyembeddedsystemsmustberobust40MissionCriticalApplications2SoftwareDrivesDesignsHardwareismostlyarecurringcostCostproportionaltonumberofunitsmanufacturedSoftwareisa“onetime”nonrecurringengineeringdesigncost(NRE)Paidfor''onlyonce''Butbugfixesmaybeexpensive,orimpossibleCostisrelatedtocomplexity&numberoffunctionsMarketpressuresleadtofeaturecreepSoftwareIsNOTfree!!!!!41SoftwareDrivesDesignsHardwarReviewWhatisanembeddedsystem?Morethanjustacomputerit'sacompletesystemWhatmakesembeddedsystemsdifferent?Reactiveand/orreal-timeManysetsofconstraintsondesignsWhatembeddedsystemdesignersneedtoknow?Multi-objective:cost,dependability,performance,etc.Multidiscipline:hardware,software,electromechanical,etc.Life-cycle:specification,design,prototyping,deployment,support,retirement42ReviewWhatisanembeddedsystOutlineBasicConceptsCourseInfoEmbeddedSystemsProgrammingSystems43OutlineBasicConcepts43Howasourceprogramisexecuted?#defineGREETING“Hello,World!\n”intmain(){printf(GREETING);}44HowasourceprogramisexecutSourceModelvs.RealMachineRepresentationintextArbitraryvariablenamesRulesfornamescopeEverythinginmemoryFancyoperationsModeluniformacrosscomputersBinaryrepresentationAllnumericaladdressesNoaddressscopeHierarchicalmemoryLimitedoperationsSignificantdifferencebetweenprocessors45SourceModelvs.RealMachineRApproachesMachineIndependentMachineDependentHumanReadableHigh-LevelLanguages(C,C++,Java,Pascal)AssemblyLanguagesHumanUnreadablePseudoCode(Bytecode,P-code)MachineLanguages(x86,MIPS,ARM)46ApproachesMachineIndependentMFromSourcetoExecutableSourceCodePreprocessorPreprocessedCodeCompilerAssemblyCodeAssemblerObjectCodeLinkerExecutableCodeLoaderDebuggerLibraries47FromSourcetoExecutableSourcAnExampleProgramCProgram/*hello.c,asimpleexampleprogram*/#defineGREETING“Hello,World!\n”intmain(){printf(GREETING);}48AnExampleProgramCProgram48CPreprocessorPreprocesstheCsourceStripoutcommentsPerformtextualsubstitutionPreprocessoroutput#1“hello.c”intmain(){printf(“Hello,World!\n”);}49CPreprocessorPreprocesstheCCCompilerTranslatepreprocessedCintoassembly.file"hello.c".section.rodata.LC0:.string"Hello,World!\n".text.align2.globlmain.typemain,@functionmain:pushl%ebpmovl%esp,%ebpsubl$8,%espandl$-16,%espmovl$0,%eaxsubl%eax,%espsubl$12,%esppushl$.LC0callprintfaddl$16,%espleaveret.Lfe1:.sizemain,.Lfe1-main.ident"GCC:(GNU)3.220020903(RedHatLinux8.03.2-7)"50CCompilerTranslatepreprocessAssemblyLanguageRepresentationintextArbitraryvariablenamesRulesfornamescopeHierarchicalmemoryOperationsspecifictotargetprocessorModeldependentontargetsystem51AssemblyLanguageRepresentatioAssemblerConvertassemblyintoobjectfile1.file"hello.c"2.section.rodata3.LC0:4000048656C6C.string"Hello,World!\n"46F2C205746F726C644210A005.text6.align27.globlmain8.typemain,@function9main:10000055pushl%ebp11000189E5movl%esp,%ebp12000383EC08subl$8,%esp13000683E4F0andl$-16,%esp140009B800000000movl$0,%eax15000e29C4subl%eax,%esp16001083EC0Csubl$12,%esp1700136800000000pushl$.LC0180018E8FCFFFFFFcallprintf19001d83C410addl$16,%esp200020C9leave210021C3ret52AssemblerConvertassemblyintoLinkerLinktheobjectfilesandlibrariestoformanexecutableFixunresolvedaddress(callprintf)Putinstartupcode(crt0.o)thatcallsmainfunctionintmain(argc,argv,envp)Createexecutablefile53LinkerLinktheobjectfilesanLibrariesStartupRoutine(crt0.o)RequiredasitisthefirstpieceofusercodeexecutedSetupargumentsandenvironmentforyourmainfunctionCLibrary(glibc)Requiredastheyprovidefunctionsprintf,open,read,close,etc.UserLibraries54LibrariesStartupRoutine(crt0LoaderLoadexecutablefileintomemoryforexecutionAllocatememoryspacefromoperatingsystemLoadexecutablefileintoallocatedmemoryPerformtherelocationofloadedprogramBootstrapLoaderAnsmall
programwhichenablestheloading
oflarger,morecomplexprograms,suchasthe
boot
loaderforan
operatingsystem.55LoaderLoadexecutablefileintDebuggerAllowyoutoseewhatisgoingon“inside”anotherprogramwhileitexecutes.Startyourprogram,specifyinganythingthatmightaffectitsbehavior.Makeitstoponspecifiedconditions.Examinewhathashappened,whenyourprogramhasstopped.Changethingsinyourprogram,soyoucancorrecttheeffectsofonebugandgoon.56DebuggerAllowyoutoseewhatDebuggingInformationThedebuggerneedinformationtomapmachinecodebacktooriginalprogramDebugginginformationmapsCodeaddressestolinesinsourcecodeDataaddressestovariablesRegisterstovariablesDatainmemoryintomeaningfultypes57DebuggingInformationThedebugDevelopmentToolsPreprocessorCompilerAssemblerLinkerLibrariesLoaderDebugger...,etc.58DevelopmentToolsPreprocessor5Whereisthebugreportedbycompiler?#defineGREETING“Hello,World!\n”)intmain(){printf(GREETING);}#1“hello.c”intmain(){printf(“Hello,World!\n”));}Whyaretheseimportant?59WhereisthebugreportedbycHowtodevelopembeddedsoftware?#defineGREETING“Hello,World!\n”intmain(){printf(GREETING);}60HowtodevelopembeddedsoftwaCrossDevelopmentItisusuallypreferredtodevelopsoftwareonfasterandbetterhostcomputersTargetsystemanddevelopmenthostmaybecompletelydifferentDevelopmenthost:PCTargetsystem:PDAMayrequireadifferentbreedoftoolsNativedevelopmenttoolsCrossdevelopmenttools61CrossDevelopmentItisusuallyCoreCrossDevelopmentToolsCrossCompiler/Assembler/Linker/LoaderAssembly,objectandexecutablefileformatsmightbeverydifferentfromnativesystemCrossDevelopmentLibrariesNeedspeciallowlevelcomponentstoberewrittenforeachdifferenttargetsystemCrossDebuggerItneedstorunonbothtargetandhostThetwohalvesneedtocommunicateviaRPC62CoreCrossDevelopmentToolsCrCrossDevelopmentToolsPreprocessorCompilerAssemblerLinkerLibrariesLoaderDebuggerArchiverSimulatorEmulator63CrossDevelopmentToolsPreprocArchiverArchiveAsinglefileholdingacollectionofotherfilesinastructurethatmakesitpossibletoretrievetheoriginalindividualfiles.Mostoftenusedaslibrariesholdingcommonlyneededsubroutines.ArchiverAprogramthatallowsyoutocreate,modify,andextractfromarchives.64ArchiverArchive64SimulatorSoftwaretoolallowsdesignerstoanalyzethesystembehaviorExaminesimulatedhardwareeventswhichcausesoftwaretotakeactions(e.g.,interrupts)Devicescanbemodeled(e.g.,DMA)SamesoftwareasfinalsystemDoesnotrunatfull(target)speedGoodforfindingsoftwarebugs65SimulatorSoftwaretoolallowsEmulatorHardwareandsoftwaretoolsallowdesignerstoanalyzethesystemNormallyacriticalcomponentissubstitutedbya“plug”attachedtoemulatorExecuteatfullspeedGoodforfindinghardwarebugs66EmulatorHardwareandsoftware嵌入式處理器架構與程式設計王建民中央研究院資訊所2008年7月嵌入式處理器架構與程式設計王建民ContentsIntroductionComputerArchitectureARMArchitectureDevelopmentToolsGNUDevelopmentToolsARMInstructionSetARMAssemblyLanguageARMAssemblyProgrammingGNUARMToolChainInterruptsandMonitor68ContentsIntroduction2Lecture1
IntroductionLecture1
IntroductionOutlineBasicConceptsCourseInfoEmbeddedSystemsProgrammingSystems70OutlineBasicConcepts4ComputerSystemsHardwareFirmwareSoftwareApplicationsoftwareSystemsoftwareProgrammingsystemsUtilitiesOperatingsystems71ComputerSystemsHardware5ComputerSoftwareApplicationsoftwareisdesignedtosolveaspecificproblem.Systemsoftwareisintendedtosupporttheoperationanduseofthecomputeritself.Provideageneralprogrammingenvironment.Providefunctionsusedbyapplicationsoftwareandusers.Providemechanismstosharethehardwareinanorderlyfashion.72ComputerSoftwareApplicationsFoundationsofComputerSystemsUsersApplicationSoftwareProgrammingSystemHardwareOperatingSystem73FoundationsofComputerSystemEvolutionofProgramming1MachineLanguageBinaryformat
11100101100111110001000000010000 11100101100111110000000000001000 11100000100000010101000000000000 11100101100011110101000000001000Hexadecimalformat E59F1010 E59F0008 E0815000 E58F500874EvolutionofProgramming1MachiEvolutionofProgramming2AssemblyLanguageMnemoniccodes E59F1010 LDR R1,num1 E59F0008 LDR R0,num2 E0815000 ADD R5,R1,R0 E58F5008 STR R5,sumHigh-LevelLanguageClanguage sum=num1+num2;75EvolutionofProgramming2AssemHowinstructionsareexecuted?...E59F1010E59F0008E0815000E59F5008...76Howinstructionsareexecuted?Howasourceprogramiscompiled?intmain(){...
sum=num1+num2;...}...E59F1010E59F0008E0815000E59F5008...77HowasourceprogramiscompilHowtodevelopembeddedsoftware?#defineGREETING“Hello,World!\n”intmain(){printf(GREETING);}78HowtodevelopembeddedsoftwaWhatareyougoingtolearn?Howinstructionsareexecuted?ComputerArchitectureHowasourceprogramiscompiled?DevelopmenttoolsHowtodevelopembeddedsoftware?EmbeddedprocessorsAssemblylanguageandprogrammingCrossdevelopmentSoftwareinterrupts79Whatareyougoingtolearn?HoOutlineBasicConceptsCourseInfoEmbeddedSystemsProgrammingSystems80OutlineBasicConcepts14PrerequisitesandRelatedCoursesPrerequisites計算機概論C/C++程式設計資料結構RelatedCourses計算機結構系統程式作業系統嵌入式系統81PrerequisitesandRelatedCourCourseInfo1RelatedLinksSlidesanddocuments
.tw/~cmwang/arm/TheARMprocessor
/GNUsoftware
/Opensourcesoftwareforhandheldsystems
/82CourseInfo1RelatedLinks16CourseInfo2PCSoftwareLinux
/Cygwin
/GNUSoftware
/GNUARMToolChain
/83CourseInfo2PCSoftware17CourseInfo3ReferenceBooksComputerOrganizationandDesign:TheHardware/SoftwareInterface,PattersonandHennessySystemsoftware:anintroductiontosystemsprogramming,3rdedition,
LelandL.Beck.Compilers–Principles,Techniques,andTools,A.V.Aho,R.Sethi,andJ.D.Ullman.OperatingSystemConcepts,AbrahamSilberschatz.84CourseInfo3ReferenceBooks18OutlineBasicConceptsCourseInfoEmbeddedSystemsProgrammingSystems85OutlineBasicConcepts19Whatareembeddedsystems?Anythingthatusesamicroprocessorbutisn'tageneral-purposecomputerPDAs Set-topboxesTelevisions VideogamesRefrigerators CarsPlanes ElevatorsRemotecontrols AlarmsystemsMorethanjustacomputer;it'sacompletesystem86Whatareembeddedsystems?AnytWhatisanembeddedsystem?ComputerpurchasedaspartofsomeotherpieceofequipmentTypicallydedicatedsoftwareOftenreplacespreviouslyelectromechanicalcomponentsOftenno“real”keyboardOftenlimiteddisplayornogeneralpurposedisplaydeviceBut,everysystemisunique.Therearealwaysexceptions.87Whatisanembeddedsystem?ComWhyareembeddedsystemsimportant?EngineeringreasonsWhydoesasatelliteneedaWindowsprompt?DoestheMcDonald’sPOS(point-of-sale)terminalneedMacOS?Anydevicethatneedstobecontrolledcanbecontrolledbyamicroprocessor88WhyareembeddedsystemsimporWhyareembeddedsystemsimportant?MarketreasonsThegeneral-purposecomputingmarketisinbillionsofUS$Theembeddedsystemsmarketisalsoinbillionsof$~80MillionPCsvs.~3BillionEmbeddedCPUsannuallyEmbeddedmarketgrowing;PCmarketmostlysaturatedInyear2000,about$2,700ofeverycarwenttoelectronics89WhyareembeddedsystemsimporWhyareembeddedsystemsimportant?PedagogicalreasonsGeneral-purposesystemdesignersspecializeHWvs.SWEmbeddedsystemdesignersareoftenJackofmanytradesNeedtoknowhardware,software,andsomecombinationofnetworking,controltheoryandsignalprocessingbusinessmodels90WhyareembeddedsystemsimporEmbeddedSystems:AnIntroductionWhatmakesembeddedsystemsdifferent?Real-timeoperationManysetsofconstraintsondesignsSizeCostTimeReliabilityEnergySafetySecurity91EmbeddedSystems:AnIntroductAnEngineer’sView:AComputerMeasuredby:performance,costCompilers&OSmatters92AnEngineer’sView:AComputerAnEmbeddedComputerMeasuredby:cost,I/Oconnections,memorysize,performance93AnEmbeddedComputerMeasuredbAnEmbeddedControlSystemMeasuredby:Cost,timetomarket,performance,functionality,dependability94AnEmbeddedControlSystemMeasSomeEmbeddedSystemExamplesPocketremotecontrolRFtransmitter100KIPS,water/crushproof,fitsinpocket,5yearbatterylifeSoftwarehandcraftedforsmallsize(lessthan1KB)Industrialequipmentcontroller(e.g.,elevator;jetengine)1~10MIPSfor1to10CPUs,1~8MBmemorySafetycriticalsoftware;realtimecontrolloopsMilitarysignalprocessing(e.g.,Radar/Sonar)1GFLOPS,1GB/secI/O,32MBmemorySoftwarehandcraftedforextremelyhighperformance95SomeEmbeddedSystemExamplesPCategoriesofEmbeddedSystems1GeneralComputingApplicationssimilartodesktopcomputing,butinanembeddedpackageVideogames,settopboxes,wearablecomputers,automatictellersControlSystemsClosedloopfeedbackcontrolofrealtimesystemVehicleengines,chemicalprocesses,nuclearpower,flightcontrol96CategoriesofEmbeddedSystemsCategoriesofEmbeddedSystems2SignalProcessingComputationsinvolvinglargedatastreamsRadar,Sonar,videocompressionCommunication&NetworkingSwitchingandinformationtransmissionTelephonesystem,Internet97CategoriesofEmbeddedSystemsFunctionsofEmbeddedSystems1ControlLawsPIDcontrolFuzzylogic,...SequencingLogicFinitestatemachinesSwitchingmodesbetweencontrollawsSignalProcessingMultimediadatacompressionDigitalfiltering98FunctionsofEmbeddedSystems1FunctionsofEmbeddedSystems2ApplicationSpecificInterfacingButtons,bells,lights,...HighspeedI/OFaultResponseDetection&reconfigurationDiagnosis…99FunctionsofEmbeddedSystems2DistinctiveAttributes1Reactive:computationsoccurinresponsetoexternaleventsPeriodicevents(e.g.,rotatingmachineryandcontrolloops)Aperiodicevents(e.g.,buttonclosures)100DistinctiveAttributes1ReactivDistinctiveAttributes2Real-Time:timingcorrectnessispartofsystemcorrectnessHardreal-timeAbsolutedeadline,beyondwhichanswerisuselessMayincludeminimumtimeaswellasmaximumtimeSoftreal-timeMissingadeadlineisnotcatastrophicUtilityofanswerdegradeswithtimedifferencefromdeadlineExample:atrainisenteringanurbanarea...therailwaygateinthecityallowsautomotivetraffictogooverthetrackswhenshouldtherailwaygateclose?Ingeneral,RealTime!=“RealFast”101DistinctiveAttributes2Real-TiEmbeddedSystemConstraints1SmallSize,LowWeightHandheldelectronicsTransportationapplicationsweightcostsmoneyLowPowerBatterypowerfor8+hours(laptopsoftenlastonly2hours)LimitedcoolingmaylimitpowerevenifACpoweravailable102EmbeddedSystemConstraints1SmEmbeddedSystemConstraints2HarshEnvironmentHeat,vibration,shockPowerfluctuations,RFinterference,lightningWater,corrosion,physicalabuseSafetyCriticalOperationMustfunctioncorrectlyMustnotfunctionincorrectlyExtremeCostSensitivity$.05addsupover1,000,000units103EmbeddedSystemConstraints2HaEmbeddedSystemDesignViewAcomplexsetoftradeoffs:OptimizeformorethanjustspeedConsidermorethanjustthecomputerTakeintoaccountmorethanjustinitialproductdesignMulti-Discipline•ElectronicHardware•Software•MechanicalHardware•ControlAlgorithms•Humans•Society/InstitutionsMultiObjective•Dependability•Affordability•Safety•Security•Scalability•TimelinessMultiPhase•Requirements•Design•Manufacturing•Deployment•Logistics•Retirementxx104EmbeddedSystemDesignViewAcMissionCriticalApplications1LossofArianneinauguralflightinJu
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2024年度酒吧演艺人员雇佣合同3篇
- 2024合同模板果园承包合同 范本
- 2024年房地产买卖合同:房屋交易的法律保障
- 2024年拆除工程承包合同版B版
- 2024年快速货运保险合同
- 2024年常用电力设备采购合同规范
- 2024温州大学面向基础教育课题合同书
- 2024年开业庆典主持人服务合同
- 2024年区域二手住宅房产交易合同范本版B版
- 小米商城代码课程设计
- 2024年国家开放大学电大财务管理考题库及答案
- 小学语文整本书阅读《夏洛的网》导读课公开课一等奖创新教学设计
- 建筑钢结构质量通病及防治措施
- (正式版)SH∕T 3145-2024 石油化工特殊用途汽轮机工程技术规范
- 国企集团公司各岗位廉洁风险点防控表格(廉政)范本
- 特殊视觉功能检查-AC-A检查
- 骨科中医护理方案总结与优化(2篇)
- 2024年廉洁知识测试卷附答案
- 战略投资部面试题目及答案
- 2023龙井温泉度假区文旅项目营销运营提升升级策划案
- 保险公司增额终身寿主讲课件
评论
0/150
提交评论