聪明文档网

聪明文档网

最新最全的文档下载
当前位置: 首页> Saber-MATLAB Integrations

Saber-MATLAB Integrations

时间:    下载该word文档
Saber-MATLABIntegrations:EnablingVirtualHW/SWCo-Verification
LeeJohnson—Synopsys
June2004
©2004Synopsys,Inc.

Introduction
Theamountandcomplexityofembeddedcontentinautomotivesystemsiscontinuallyincreasing.Drivenbypressurestoincreasecontentandreducecosts,automotiveOEMsandsuppliersarerelyingmoreonembeddedsystemsforcontrol,configuration,andcalibrationofadvancedtechnologiessuchasX-by-wiresystems,in-vehiclenetworking,andelectrichybridsystems.Accordingly,moreeffortisdedicatedtodevelopmentofembeddedsystemsandverificationwiththecontrolledmechatronichardware.
Severaltoolsareavailabletodaythatstreamlinetheembeddedsoftwaredevelopmentprocess.Inparticular,model-baseddesigntechniquesarebecomingincreasinglycommon,allowingdesignerstocreateandmaintainanexecutablespecificationofembeddedsoftwarethatcanbeusedforcontrolalgorithmdevelopmentthroughautomaticcodegenerationtargetedtoaspecificmicrocontroller.
Despitetheadvancesinsoftwaredesigntools,embeddedsoftwareverificationistypicallynotemphasizeduntillateinthedesigncycle.Inmanycases,designersmustwaitforaphysicalprototypeofthemechatronicsystemtobecomeavailablebeforeconcentratingtheireffortsonsoftwarevalidation.Hardware-in-the-loop(HILsimulationeliminatestheneedforaphysicalprototypeofthemechatronicsystemduringsoftwareverification;however,HILplatformsareexpensiveandcannotbeimplementeduntilmicrocontrollerhardwareandtargetcodeisavailable.Becausetheyareperformedrelativelylateinthedesignprocess,prototypingandHILtestingtechniquesfocusprimarilyonverifyingexecutionperformanceofthesoftwareandlittleonthebehaviorandrobustnessoftheunderlyingcontrolstrategies.ThispaperprovidesanoverviewofthreelinksbetweenSaber®andMATLAB®/Simulink®thatenableearlyvalidationofembeddedcontrolalgorithmswithsimulatedmechatronichardware—avirtualHW/SWco-verificationplatform.
HW/SWCo-Verification
Theautomotiveindustryisplacingincreasedimportanceonfullsystemverificationthroughouttheentireembeddedsystemdesignprocess.Accordingly,acompletesolutionforvalidatinghardwareandsoftwareperformanceinasimulatedenvironmentisrequired,i.e.avirtualHW/SWco-verificationplatform(seeFigure1.HW/SWco-verificationisinitiatedearlyinthedesignprocess,wherecontrolstrategiesareverifiedandoptimizedinconjunctionwithsimulatedmodelsofthemechatronicsystemsbeingcontrolled.Lateron,ascontrolalgorithmsareimplementedascode,thefocusshiftstowardsverifyingtheexecutionperformanceoftheoperatingsystem,peripheraldrivers,andcontrolapplications,whereitiscriticaltotakecycle-accuratebehaviorintoaccount.
Algorithm1
EmbeddedSoftware
Algorithm2Algorithm3
MechatronicHardware
ControlApplicationsOperatingSystems
PeripheralDrivers
VirtualReal
Figure1.VirtualHW/SWCo-VerificationPlatform
©2004Synopsys,Inc.
2

ThebenefitsofHW/SWco-verificationcanberealizedbynotonlytheembeddedsoftwaredesigner,butthemechatronicsystemsintegratoraswell.Withearlyaccesstothesoftwareimplementation,thesystemsintegratorcanbeginfullsystemvalidationandavoidwaitinguntilaprototypeisavailablebeforeproblemsarediscovered.
StrivingforacompletevirtualenvironmentforHW/SWco-verificationofembeddedsystems,SynopsyshasdevelopedasetofintegrationsbetweenSaberandMATLAB/SimulinkfromTheMathWorks.Saber,aproduction-proventoolrecognizedthroughouttheautomotiveindustryformulti-technologysimulationanalysis,providesthecapabilitytoaccuratelymodelvirtualmechatronicsystems,includingelectrical,mechanical,hydraulic,pneumatic,andmagneticbehaviors.Likewise,MATLABandSimulinkarewidelyusedthroughouttheautomotiveindustryformodel-baseddevelopmentofembeddedsoftware.BylinkingthecomplimentarysolutionsofferedbySaberandMATLAB/Simulink,embeddedsystemsdesignersandmechatronicsystemsintegratorshavethecapabilitytoperformearlierco-verificationofcomplexembeddedsystems.
TheSaber-MATLABintegrationsincludeSaber-Simulinkco-simulation,Simulink-to-SaberModelImport,andSaberLinkPost-SimulationDataExchange.
Saber-SimulinkCo-simulation
TheSaber-Simulinkco-simulationinterfaceallowstheembeddedsoftwaredesignertoconcurrentlysimulatecontrolalgorithmsmodeledinSimulinkwithamechatronicsystemmodeledinSaber.Inthe
contextofHW/SWco-verification,thisinteractiveco-simulationlinkprovidestheabilitytoverifyalgorithmrobustnessandcalibratecontrollerparameters,allwithanentirelyvirtualrepresentationofthecompleteembeddedsystem.
Saber-Simulinkco-simulationisenabledthroughasynchronousinterfacethatexchangesdatabetweensimulatorsatafixedinterval,effectivelymodelingthediscrete-timecommunicationbetweenarealmicrocontrollerandsensorsinthephysicalmechatronicsystem(seeFigure2.Inotherterms,theco-simulationinterfaceperformsabehavioralanalog-digitalconversionbetweenthecontrollerandthemechatronicsystem.
A/D
MechatronicSystem
D/A
EmbeddedController
CosimulationInterface
SaberSimulink
Figure2.Saber-SimulinkCo-simulation
Saber-Simulinkco-simulationisinitializedandcontrolledentirelythroughtheSaberuserinterface.Atthesametime,theSimulinkinterfaceremainsactiveandaccessibletotheuser,allowingimmediatealterationstomodelparametersortopology.BecauseSaberactsasthemaster,thedesignercantakeadvantageofSaber’sadvancedanalysiscapabilities,includingiteratedandstatisticalanalyses(e.g.VaryandMonteCarlo.
3
©2004Synopsys,Inc.

FullHW/SWSystemSimulationwithSimulink-to-SaberModelImport
Whileco-simulationoffersinteractiveaccesstobothSaberandSimulinkforthepurposeofverifyinganddebuggingcontrolalgorithms,itisnottheoptimalarrangementforthesystemintegratorconstructingavirtualmechatronicsysteminSaber.Instead,itisconvenienttoprovideamodeloftheembeddedsoftwarealgorithmsthatcanrunsolelyintheSaberenvironmentandnotdependonanactiveconnectionwithSimulink.TheSimulink-to-SaberModelImportUtilityoffersa“one-click”methodforconvertingSimulinkorStateflowmodelsintoaformthatcanbesimulatedentirelyinSaber.
UtilizingTheMathWorks’Real-TimeWorkshop‚,theSimulink-to-SaberModelImportUtilitygeneratesC-codeforaSimulink/StateflowmodelthatisthencompiledasadynamicallylinkedlibraryandaccessedthroughtheSaberforeignroutineinterface.ASaberMASTtemplateandSaberSketchsymbolarealsoautomaticallycreated,resultinginastand-alonemodelofembeddedsoftwarealgorithmsthatisreadyforuseintheSaberenvironment(seeFigure3.
Saber
Simulink
ANSICCode{
MastWrapperDLL
RTW
...}
CCompiler
Figure3.Simulink-to-SaberModelImport
SharingSimulationResultswithSaberLink
Usingmultiplesimulationtoolsforco-verificationofembeddedsoftwareandmechatronichardwareoftenposesanobstacleaftertheanalyseshavebeencompleted.AnalysisresultsfromaSaber-Simulinkco-simulationarestoredinformatsspecifictoeachsimulator,makingitdifficulttocomparedataineachtool.SaberandMATLABeachhavetheirstrengthsinanalysisdatapost-processing,soitisundesirabletoconfinesimulationresultstoasingleenvironment.
TheSaberLinkdataexchangeinterfaceprovidesadirectconnectionbetweenCosmosScope’andMATLAB,allowingtheusertoquicklyandeasilytransferpost-simulationdatabetweeneachenvironmentandeliminatinganydifficultyposedbycollectingsimulationdatafromeachtool(seeFigure4.
©2004Synopsys,Inc.
4

Figure4.SaberLinkPost-SimulationDataExchangeBetweenSaberandMATLAB
TheSaberLinkinterfaceallowsusersofbothSaberandMATLABtotakeadvantageofthewidearrayofpost-processingcapabilitiesineachtool.CosmosScope,Synopsys’standardsimulationdataandwaveformanalysistool,featuresanaloganddigitalwaveformhandling,acomprehensivesetofmeasurementtools,andawaveformcalculatorforcreatingcomplexcombinationsofsignals.Alternatively,MATLABfeaturesawidearrayoftoolboxesforperformingsignalprocessing,systemidentification,and3-Dvisualization.
Summary
ThelinksbetweenSaberandMATLAB/SimulinkformthefoundationsofavirtualHW/SWco-verificationplatform,allowingthesoftwaredesignerandthemechatronicsystemsintegratortovalidateembeddedsystemperformanceearlierinthedesignprocess.WithSaber-Simulinkco-simulation,embeddedcontrolalgorithmsinSimulinkcanbeinteractivelytestedwiththephysicalsystemmodeledinSaber.EncapsulatingSimulinkmodelsinaSaberdesignwiththeSimulink-to-SaberModelImportUtilityenablesfurthermechatronicsystemrefinementwithinasingleenvironment,streamliningthedesignprocess.SaberLinkpost-simulationdataexchangeallowssharingofsimulationresultsbetweenSaberandMatlab.AsummaryoftheSaber-MATLABintegrationsforvirtualHW/SWco-verificationisshowninFigure5.
VirtualHardwareSaber
Co-simulation
EmbeddedSoftware
MATLAB/Simulink
ModelImport
CosmosScope
DataExchange
Figure5.Saber-MATLABIntegrationsforVirtualHW/SWCo-verification

©2004Synopsys,Inc.
700EastMiddlefieldRoad,MountainView,CA94043T6505845000www.synopsys.com
SynopsysisaregisteredtrademarkofSynopsys,Inc.SaberisaregisteredtrademarkofAmericanAirlineslicensedtoSynopsys,Inc.
Allothertrademarksorregisteredtrademarksmentionedinthisreleasearetheintellectualpropertyoftheirrespectiveowners.
Allrightsreserved.PrintedintheU.S.A.
©2004Synopsys,Inc.06/04.MH.WO.04-12434

免费下载 Word文档免费下载: Saber-MATLAB Integrations

  • 29.8

    ¥45 每天只需1.0元
    1个月 推荐
  • 9.9

    ¥15
    1天
  • 59.8

    ¥90
    3个月

选择支付方式

  • 微信付款
郑重提醒:支付后,系统自动为您完成注册

请使用微信扫码支付(元)

订单号:
支付后,系统自动为您完成注册
遇到问题请联系 在线客服

常用手机号:
用于找回密码
图片验证码:
看不清?点击更换
短信验证码:
新密码:
 
绑定后可用手机号登录
请不要关闭本页面,支付完成后请点击【支付完成】按钮
遇到问题请联系 在线客服