Model { Name "NCO" Version 6.4 MdlSubVersion 0 GraphicalInterface { NumRootInports 0 NumRootOutports 0 ParameterArgumentNames "" ComputedModelVersion "1.86" NumModelReferences 0 NumTestPointedSignals 0 } SavedCharacterEncoding "windows-1252" SaveDefaultBlockParams on SampleTimeColors on LibraryLinkDisplay "none" WideLines off ShowLineDimensions on ShowPortDataTypes on ShowLoopsOnError on IgnoreBidirectionalLines off ShowStorageClass off ShowTestPointIcons on ShowViewerIcons on SortedOrder off ExecutionContextIcon off ShowLinearizationAnnotations on ScopeRefreshTime 0.035000 OverrideScopeRefreshTime on DisableAllScopes off DataTypeOverride "UseLocalSettings" MinMaxOverflowLogging "UseLocalSettings" MinMaxOverflowArchiveMode "Overwrite" BlockNameDataTip off BlockParametersDataTip off BlockDescriptionStringDataTip off ToolBar on StatusBar on BrowserShowLibraryLinks off BrowserLookUnderMasks off Created "Tue Nov 08 17:32:02 2005" Creator "abehbood" UpdateHistory "UpdateHistoryNever" ModifiedByFormat "%" LastModifiedBy "abehbood" ModifiedDateFormat "%" LastModifiedDate "Thu Jul 20 10:09:28 2006" ModelVersionFormat "1.%" ConfigurationManager "None" LinearizationMsg "none" Profile off ParamWorkspaceSource "MATLABWorkspace" AccelSystemTargetFile "accel.tlc" AccelTemplateMakefile "accel_default_tmf" AccelMakeCommand "make_rtw" TryForcingSFcnDF off RecordCoverage off CovPath "/" CovSaveName "covdata" CovMetricSettings "dw" CovNameIncrementing off CovHtmlReporting on covSaveCumulativeToWorkspaceVar on CovSaveSingleToWorkspaceVar on CovCumulativeVarName "covCumulativeData" CovCumulativeReport off CovReportOnPause on ExtModeBatchMode off ExtModeEnableFloating on ExtModeTrigType "manual" ExtModeTrigMode "normal" ExtModeTrigPort "1" ExtModeTrigElement "any" ExtModeTrigDuration 1000 ExtModeTrigDurationFloating "auto" ExtModeTrigHoldOff 0 ExtModeTrigDelay 0 ExtModeTrigDirection "rising" ExtModeTrigLevel 0 ExtModeArchiveMode "off" ExtModeAutoIncOneShot off ExtModeIncDirWhenArm off ExtModeAddSuffixToVar off ExtModeWriteAllDataToWs off ExtModeArmWhenConnect on ExtModeSkipDownloadWhenConnect off ExtModeLogAll on ExtModeAutoUpdateStatusClock on BufferReuse on ProdHWDeviceType "32-bit Generic" ShowModelReferenceBlockVersion off ShowModelReferenceBlockIO off Array { Type "Handle" Dimension 1 Simulink.ConfigSet { $ObjectID 1 Version "1.2.0" Array { Type "Handle" Dimension 7 Simulink.SolverCC { $ObjectID 2 Version "1.2.0" StartTime "0.0" StopTime "inf" AbsTol "auto" FixedStep "auto" InitialStep "auto" MaxNumMinSteps "-1" MaxOrder 5 ConsecutiveZCsStepRelTol "10*128*eps" MaxConsecutiveZCs "1000" ExtrapolationOrder 4 NumberNewtonIterations 1 MaxStep "auto" MinStep "auto" MaxConsecutiveMinStep "1" RelTol "1e-3" SolverMode "Auto" Solver "VariableStepDiscrete" SolverName "VariableStepDiscrete" ZeroCrossControl "UseLocalSettings" AlgebraicLoopSolver "TrustRegion" SolverResetMethod "Fast" PositivePriorityOrder off AutoInsertRateTranBlk off SampleTimeConstraint "Unconstrained" RateTranMode "Deterministic" } Simulink.DataIOCC { $ObjectID 3 Version "1.2.0" Decimation "1" ExternalInput "[t, u]" FinalStateName "xFinal" InitialState "xInitial" LimitDataPoints on MaxDataPoints "1000" LoadExternalInput off LoadInitialState off SaveFinalState off SaveFormat "Array" SaveOutput on SaveState off SignalLogging on InspectSignalLogs off SaveTime on StateSaveName "xout" TimeSaveName "tout" OutputSaveName "yout" SignalLoggingName "logsout" OutputOption "RefineOutputTimes" OutputTimes "[]" Refine "1" } Simulink.OptimizationCC { $ObjectID 4 Array { Type "Cell" Dimension 5 Cell "ZeroExternalMemoryAtStartup" Cell "ZeroInternalMemoryAtStartup" Cell "InitFltsAndDblsToZero" Cell "OptimizeModelRefInitCode" Cell "NoFixptDivByZeroProtection" PropName "DisabledProps" } Version "1.2.0" BlockReduction on BooleanDataType on ConditionallyExecuteInputs on InlineParams off InlineInvariantSignals off OptimizeBlockIOStorage on BufferReuse on EnforceIntegerDowncast on ExpressionFolding on FoldNonRolledExpr on LocalBlockOutputs on ParameterPooling on RollThreshold 5 SystemCodeInlineAuto off StateBitsets off DataBitsets off UseTempVars off ZeroExternalMemoryAtStartup on ZeroInternalMemoryAtStartup on InitFltsAndDblsToZero on NoFixptDivByZeroProtection off EfficientFloat2IntCast off OptimizeModelRefInitCode off LifeSpan "inf" BufferReusableBoundary on } Simulink.DebuggingCC { $ObjectID 5 Version "1.2.0" RTPrefix "error" ConsistencyChecking "none" ArrayBoundsChecking "none" SignalInfNanChecking "none" ReadBeforeWriteMsg "UseLocalSettings" WriteAfterWriteMsg "UseLocalSettings" WriteAfterReadMsg "UseLocalSettings" AlgebraicLoopMsg "warning" ArtificialAlgebraicLoopMsg "warning" CheckSSInitialOutputMsg on CheckExecutionContextPreStartOutputMsg off CheckExecutionContextRuntimeOutputMsg off SignalResolutionControl "TryResolveAllWithWarning" BlockPriorityViolationMsg "warning" MinStepSizeMsg "warning" MaxConsecutiveZCsMsg "error" SolverPrmCheckMsg "warning" InheritedTsInSrcMsg "warning" DiscreteInheritContinuousMsg "warning" MultiTaskDSMMsg "warning" MultiTaskCondExecSysMsg "none" MultiTaskRateTransMsg "error" SingleTaskRateTransMsg "none" TasksWithSamePriorityMsg "warning" SigSpecEnsureSampleTimeMsg "warning" CheckMatrixSingularityMsg "none" IntegerOverflowMsg "warning" Int32ToFloatConvMsg "warning" ParameterDowncastMsg "error" ParameterOverflowMsg "error" ParameterUnderflowMsg "none" ParameterPrecisionLossMsg "warning" UnderSpecifiedDataTypeMsg "none" UnnecessaryDatatypeConvMsg "none" VectorMatrixConversionMsg "none" InvalidFcnCallConnMsg "error" FcnCallInpInsideContextMsg "Use local settings" SignalLabelMismatchMsg "none" UnconnectedInputMsg "warning" UnconnectedOutputMsg "warning" UnconnectedLineMsg "warning" SFcnCompatibilityMsg "none" UniqueDataStoreMsg "none" BusObjectLabelMismatch "warning" RootOutportRequireBusObject "warning" AssertControl "UseLocalSettings" EnableOverflowDetection off ModelReferenceIOMsg "none" ModelReferenceVersionMismatchMessage "none" ModelReferenceIOMismatchMessage "none" ModelReferenceCSMismatchMessage "none" ModelReferenceSimTargetVerbose off UnknownTsInhSupMsg "warning" ModelReferenceDataLoggingMessage "warning" ModelReferenceSymbolNameMessage "warning" ModelReferenceExtraNoncontSigs "error" StrictBusMsg "Warning" } Simulink.HardwareCC { $ObjectID 6 Version "1.2.0" ProdBitPerChar 8 ProdBitPerShort 16 ProdBitPerInt 32 ProdBitPerLong 32 ProdIntDivRoundTo "Undefined" ProdEndianess "Unspecified" ProdWordSize 32 ProdShiftRightIntArith on ProdHWDeviceType "32-bit Generic" TargetBitPerChar 8 TargetBitPerShort 16 TargetBitPerInt 32 TargetBitPerLong 32 TargetShiftRightIntArith on TargetIntDivRoundTo "Undefined" TargetEndianess "Unspecified" TargetWordSize 32 TargetTypeEmulationWarnSuppressLevel 0 TargetPreprocMaxBitsSint 32 TargetPreprocMaxBitsUint 32 TargetHWDeviceType "Specified" TargetUnknown off ProdEqTarget on } Simulink.ModelReferenceCC { $ObjectID 7 Version "1.2.0" UpdateModelReferenceTargets "IfOutOfDateOrStructuralChange" CheckModelReferenceTargetMessage "error" ModelReferenceNumInstancesAllowed "Multi" ModelReferencePassRootInputsByReference on ModelReferenceMinAlgLoopOccurrences off } Simulink.RTWCC { $BackupClass "Simulink.RTWCC" $ObjectID 8 Array { Type "Cell" Dimension 1 Cell "IncludeHyperlinkInReport" PropName "DisabledProps" } Version "1.2.0" SystemTargetFile "grt.tlc" GenCodeOnly off MakeCommand "make_rtw" GenerateMakefile on TemplateMakefile "grt_default_tmf" GenerateReport off SaveLog off RTWVerbose on RetainRTWFile off ProfileTLC off TLCDebug off TLCCoverage off TLCAssert off ProcessScriptMode "Default" ConfigurationMode "Optimized" ConfigAtBuild off IncludeHyperlinkInReport off LaunchReport off TargetLang "C" IncludeBusHierarchyInRTWFileBlockHierarchyMap off Array { Type "Handle" Dimension 2 Simulink.CodeAppCC { $ObjectID 9 Array { Type "Cell" Dimension 9 Cell "IgnoreCustomStorageClasses" Cell "InsertBlockDesc" Cell "SFDataObjDesc" Cell "SimulinkDataObjDesc" Cell "DefineNamingRule" Cell "SignalNamingRule" Cell "ParamNamingRule" Cell "InlinedPrmAccess" Cell "CustomSymbolStr" PropName "DisabledProps" } Version "1.2.0" ForceParamTrailComments off GenerateComments on IgnoreCustomStorageClasses on IncHierarchyInIds off MaxIdLength 31 PreserveName off PreserveNameWithParent off ShowEliminatedStatement off IncAutoGenComments off SimulinkDataObjDesc off SFDataObjDesc off IncDataTypeInIds off PrefixModelToSubsysFcnNames on MangleLength 1 CustomSymbolStrGlobalVar "$R$N$M" CustomSymbolStrType "$N$R$M" CustomSymbolStrField "$N$M" CustomSymbolStrFcn "$R$N$M$F" CustomSymbolStrBlkIO "rtb_$N$M" CustomSymbolStrTmpVar "$N$M" CustomSymbolStrMacro "$R$N$M" DefineNamingRule "None" ParamNamingRule "None" SignalNamingRule "None" InsertBlockDesc off SimulinkBlockComments on EnableCustomComments off InlinedPrmAccess "Literals" ReqsInCode off } Simulink.GRTTargetCC { $BackupClass "Simulink.TargetCC" $ObjectID 10 Array { Type "Cell" Dimension 12 Cell "IncludeMdlTerminateFcn" Cell "CombineOutputUpdateFcns" Cell "SuppressErrorStatus" Cell "ERTCustomFileBanners" Cell "GenerateSampleERTMain" Cell "MultiInstanceERTCode" Cell "PurelyIntegerCode" Cell "SupportNonFinite" Cell "SupportComplex" Cell "SupportAbsoluteTime" Cell "SupportContinuousTime" Cell "SupportNonInlinedSFcns" PropName "DisabledProps" } Version "1.2.0" TargetFcnLib "ansi_tfl_tmw.mat" TargetLibSuffix "" TargetPreCompLibLocation "" GenFloatMathFcnCalls "ANSI_C" UtilityFuncGeneration "Auto" GenerateFullHeader on GenerateSampleERTMain off GenerateTestInterfaces off IsPILTarget off ModelReferenceCompliant on IncludeMdlTerminateFcn on CombineOutputUpdateFcns off SuppressErrorStatus off IncludeERTFirstTime on ERTFirstTimeCompliant off IncludeFileDelimiter "Auto" ERTCustomFileBanners off SupportAbsoluteTime on LogVarNameModifier "rt_" MatFileLogging on MultiInstanceERTCode off SupportNonFinite on SupportComplex on PurelyIntegerCode off SupportContinuousTime on SupportNonInlinedSFcns on ExtMode off ExtModeStaticAlloc off ExtModeTesting off ExtModeStaticAllocSize 1000000 ExtModeTransport 0 ExtModeMexFile "ext_comm" RTWCAPISignals off RTWCAPIParams off RTWCAPIStates off GenerateASAP2 off } PropName "Components" } } PropName "Components" } Name "Configuration" SimulationMode "normal" CurrentDlgPage "Solver" } PropName "ConfigurationSets" } Simulink.ConfigSet { $PropName "ActiveConfigurationSet" $ObjectID 1 } WSDataSource "M-Code" WSMCode "N=32;\nT=1/(50e6);" BlockDefaults { Orientation "right" ForegroundColor "black" BackgroundColor "white" DropShadow off NamePlacement "normal" FontName "Arial" FontSize 10 FontWeight "normal" FontAngle "normal" ShowName on } BlockParameterDefaults { Block { BlockType Concatenate NumInputs "2" } Block { BlockType Constant } Block { BlockType DataTypeConversion OutDataTypeMode "Inherit via back propagation" OutDataType "sfix(16)" OutScaling "2^0" LockScale off ConvertRealWorld "Real World Value (RWV)" RndMeth "Zero" SaturateOnIntegerOverflow on SampleTime "-1" } Block { BlockType Demux Outputs "4" DisplayOption "none" BusSelectionMode off } Block { BlockType FrameConversion OutFrame "Frame based" } Block { BlockType Gain Gain "1" Multiplication "Element-wise(K.*u)" ParameterDataTypeMode "Same as input" ParameterDataType "sfix(16)" ParameterScalingMode "Best Precision: Matrix-wise" ParameterScaling "2^0" OutDataTypeMode "Same as input" OutDataType "sfix(16)" OutScaling "2^0" LockScale off RndMeth "Floor" SaturateOnIntegerOverflow on SampleTime "-1" } Block { BlockType Inport Port "1" UseBusObject off BusObject "BusObject" BusOutputAsStruct off PortDimensions "-1" SampleTime "-1" DataType "auto" OutDataType "sfix(16)" OutScaling "2^0" SignalType "auto" SamplingMode "auto" LatchByDelayingOutsideSignal off LatchByCopyingInsideSignal off Interpolate on } Block { BlockType Lookup InputValues "[-4:5]" OutputValues " rand(1,10)-0.5" LookUpMeth "Interpolation-Extrapolation" OutDataTypeMode "Same as input" OutDataType "sfix(16)" OutScaling "2^0" LockScale off RndMeth "Floor" SaturateOnIntegerOverflow on SampleTime "-1" LUTDesignTableMode "Redesign Table" LUTDesignDataSource "Block Dialog" LUTDesignFunctionName "sqrt(x)" LUTDesignUseExistingBP on LUTDesignRelError "0.01" LUTDesignAbsError "1e-6" } Block { BlockType Math Operator "exp" OutputSignalType "auto" SampleTime "-1" OutDataTypeMode "Same as first input" OutDataType "sfix(16)" OutScaling "2^0" LockScale off RndMeth "Floor" SaturateOnIntegerOverflow on } Block { BlockType "M-S-Function" FunctionName "mlfile" } Block { BlockType SignalViewerScope Floating off ModelBased off TickLabels "OneTimeTick" ZoomMode "on" Grid "on" TimeRange "auto" YMin "-5" YMax "5" SaveToWorkspace off SaveName "ScopeData" LimitDataPoints on MaxDataPoints "5000" Decimation "1" SampleInput off SampleTime "0" Disabled off ScrollMode on } Block { BlockType Mux Inputs "4" DisplayOption "none" UseBusObject off BusObject "BusObject" NonVirtualBus off } Block { BlockType Outport Port "1" UseBusObject off BusObject "BusObject" BusOutputAsStruct off PortDimensions "-1" SampleTime "-1" DataType "auto" OutDataType "sfix(16)" OutScaling "2^0" SignalType "auto" SamplingMode "auto" OutputWhenDisabled "held" InitialOutput "[]" } Block { BlockType Product Inputs "2" Multiplication "Element-wise(.*)" InputSameDT on OutDataTypeMode "Same as first input" OutDataType "sfix(16)" OutScaling "2^0" LockScale off RndMeth "Zero" SaturateOnIntegerOverflow on SampleTime "-1" } Block { BlockType Reference } Block { BlockType Scope ModelBased off TickLabels "OneTimeTick" ZoomMode "on" Grid "on" TimeRange "auto" YMin "-5" YMax "5" SaveToWorkspace off SaveName "ScopeData" LimitDataPoints on MaxDataPoints "5000" Decimation "1" SampleInput off SampleTime "-1" } Block { BlockType "S-Function" FunctionName "system" SFunctionModules "''" PortCounts "[]" } Block { BlockType SubSystem ShowPortLabels on Permissions "ReadWrite" PermitHierarchicalResolution "All" TreatAsAtomicUnit off SystemSampleTime "-1" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" SimViewingDevice off DataTypeOverride "UseLocalSettings" MinMaxOverflowLogging "UseLocalSettings" } Block { BlockType Sum IconShape "rectangular" Inputs "++" InputSameDT on OutDataTypeMode "Same as first input" OutDataType "sfix(16)" OutScaling "2^0" LockScale off RndMeth "Floor" SaturateOnIntegerOverflow on SampleTime "-1" } Block { BlockType Switch Criteria "u2 >= Threshold" Threshold "0" InputSameDT on OutDataTypeMode "Inherit via internal rule" RndMeth "Floor" SaturateOnIntegerOverflow on ZeroCross on SampleTime "-1" } Block { BlockType Terminator } Block { BlockType UnitDelay X0 "0" SampleTime "1" StateMustResolveToSignalObject off RTWStateStorageClass "Auto" } } AnnotationDefaults { HorizontalAlignment "center" VerticalAlignment "middle" ForegroundColor "black" BackgroundColor "white" DropShadow off FontName "Arial" FontSize 10 FontWeight "normal" FontAngle "normal" } LineDefaults { FontName "Arial" FontSize 9 FontWeight "normal" FontAngle "normal" } System { Name "NCO" Location [2, 84, 1014, 741] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "95" ReportName "simulink-default.rpt" Block { BlockType Constant Name " 1" Position [365, 355, 395, 385] Orientation "left" NamePlacement "alternate" ShowName off Value "0" VectorParams1D on SamplingMode "Sample based" OutDataTypeMode "uint32" OutDataType "ufix(12)" ConRadixGroup "Use specified scaling" OutScaling "1" SampleTime "T" FramePeriod "inf" } Block { BlockType Constant Name " 2" Position [475, 355, 505, 385] Orientation "up" ShowName off Value "0" VectorParams1D on SamplingMode "Sample based" OutDataTypeMode "int32" OutDataType "ufix(12)" ConRadixGroup "Use specified scaling" OutScaling "1" SampleTime "T" FramePeriod "inf" } Block { BlockType Sum Name "Add" Ports [2, 1] Position [145, 182, 175, 213] InputSameDT off OutDataTypeMode "Specify via dialog" OutDataType "ufix(32)" SaturateOnIntegerOverflow off Port { PortNumber 1 Name "counter" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType Reference Name "Extract Bits" Ports [1, 1] Position [575, 180, 655, 220] SourceBlock "simulink/Logic and Bit\nOperations/Extract Bits" SourceType "Extract Bits" ShowPortLabels on SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" bitsToExtract "Range starting with most significant bit" numBits "12" bitIdxRange "[20 31]" outScalingMode "Treat bit field as an integer" } Block { BlockType SubSystem Name "Filter1" Ports [1, 1] Position [545, 299, 595, 361] Orientation "left" MinAlgLoopOccurrences off RTWSystemCode "Auto" FunctionWithSeparateData off MaskHideContents off System { Name "Filter1" Location [124, 160, 739, 364] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "164" Block { BlockType Inport Name "In1" Position [340, 38, 370, 52] Orientation "left" IconDisplay "Port number" } Block { BlockType Gain Name "Gain" Position [155, 30, 185, 60] Orientation "left" Gain "2" ParameterDataTypeMode "Inherit via internal rule" OutDataTypeMode "Specify via dialog" OutDataType "uint(32)" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [85, 35, 105, 55] Orientation "left" NamePlacement "alternate" ShowName off IconShape "round" Inputs "|+-" InputSameDT off OutDataTypeMode "int32" SaturateOnIntegerOverflow off } Block { BlockType UnitDelay Name "Unit Delay1" Position [260, 28, 295, 62] Orientation "left" NamePlacement "alternate" ShowName off SampleTime "-1" } Block { BlockType UnitDelay Name "Unit Delay2" Position [155, 83, 190, 117] Orientation "left" NamePlacement "alternate" ShowName off SampleTime "-1" } Block { BlockType Outport Name "Out1" Position [15, 38, 45, 52] Orientation "left" IconDisplay "Port number" BusOutputAsStruct off } Line { SrcBlock "In1" SrcPort 1 DstBlock "Unit Delay1" DstPort 1 } Line { SrcBlock "Unit Delay1" SrcPort 1 Points [-35, 0] Branch { DstBlock "Gain" DstPort 1 } Branch { Points [0, 55] DstBlock "Unit Delay2" DstPort 1 } } Line { SrcBlock "Gain" SrcPort 1 DstBlock "Sum" DstPort 1 } Line { SrcBlock "Sum" SrcPort 1 DstBlock "Out1" DstPort 1 } Line { SrcBlock "Unit Delay2" SrcPort 1 Points [-55, 0] DstBlock "Sum" DstPort 2 } } } Block { BlockType Gain Name "Gain" Position [680, 235, 710, 265] Orientation "down" Gain "2^20" ParameterDataTypeMode "Inherit via internal rule" OutDataTypeMode "Specify via dialog" OutDataType "uint(32)" SaturateOnIntegerOverflow off } Block { BlockType SubSystem Name "Look Up Table" Ports [1, 2] Position [865, 172, 950, 223] MinAlgLoopOccurrences off RTWSystemCode "Auto" FunctionWithSeparateData off MaskHideContents off System { Name "Look Up Table" Location [27, 255, 894, 623] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "132" Block { BlockType Inport Name "In1" Position [25, 33, 55, 47] IconDisplay "Port number" } Block { BlockType Lookup Name "Full Cos LUT" Position [315, 25, 365, 75] InputValues "[0:2^12-1]" OutputValues "cos(pi*[0:2^12-1]/2^11)" LookUpMeth "Use Input Nearest" OutDataTypeMode "Specify via dialog" OutDataType "sfix(10)" OutScaling "2^-9" SaturateOnIntegerOverflow off Port { PortNumber 1 Name "I Channel" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType Concatenate Name "Matrix\nConcatenation" Ports [2, 1] Position [195, 29, 250, 71] Mode "Vertical matrix concatenation" } Block { BlockType Constant Name "Phase" Position [95, 175, 125, 205] Orientation "up" Value "2^(12-2)" VectorParams1D on SamplingMode "Sample based" OutDataTypeMode "Specify via dialog" OutDataType "ufix(12)" ConRadixGroup "Use specified scaling" OutScaling "1" SampleTime "T" FramePeriod "inf" } Block { BlockType Reference Name "Submatrix" Ports [1, 1] Position [460, 30, 510, 70] SourceBlock "dspmtrx3/Submatrix" SourceType "Submatrix" RowSpan "Range of rows" RowStartMode "First" RowStartIndex "1" RowEndMode "Index" RowEndIndex "1" ColSpan "Range of columns" ColStartMode "First" ColStartIndex "1" ColEndMode "Last" ColEndIndex "1" Port { PortNumber 1 Name "I Channel" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType Reference Name "Submatrix1" Ports [1, 1] Position [460, 130, 510, 170] SourceBlock "dspmtrx3/Submatrix" SourceType "Submatrix" RowSpan "Range of rows" RowStartMode "Last" RowStartIndex "1" RowEndMode "Index" RowEndIndex "1" ColSpan "Range of columns" ColStartMode "First" ColStartIndex "1" ColEndMode "Last" ColEndIndex "1" Port { PortNumber 1 Name "Q Channel" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [100, 95, 120, 115] ShowName off IconShape "round" Inputs "|++" InputSameDT off OutDataTypeMode "Inherit via back propagation" SaturateOnIntegerOverflow off } Block { BlockType Outport Name "I Channel" Position [595, 43, 625, 57] IconDisplay "Port number" BusOutputAsStruct off } Block { BlockType Outport Name "Q Channel" Position [595, 143, 625, 157] Port "2" IconDisplay "Port number" BusOutputAsStruct off } Line { SrcBlock "In1" SrcPort 1 Points [15, 0] Branch { Points [0, 65] DstBlock "Sum" DstPort 1 } Branch { DstBlock "Matrix\nConcatenation" DstPort 1 } } Line { Name "I Channel" Labels [0, 0] SrcBlock "Full Cos LUT" SrcPort 1 Points [55, 0] Branch { DstBlock "Submatrix" DstPort 1 } Branch { Points [0, 100] DstBlock "Submatrix1" DstPort 1 } } Line { SrcBlock "Phase" SrcPort 1 DstBlock "Sum" DstPort 2 } Line { SrcBlock "Matrix\nConcatenation" SrcPort 1 DstBlock "Full Cos LUT" DstPort 1 } Line { SrcBlock "Sum" SrcPort 1 Points [35, 0; 0, -45] DstBlock "Matrix\nConcatenation" DstPort 2 } Line { Name "I Channel" Labels [0, 0] SrcBlock "Submatrix" SrcPort 1 DstBlock "I Channel" DstPort 1 } Line { Name "Q Channel" Labels [0, 0] SrcBlock "Submatrix1" SrcPort 1 Points [0, 0] DstBlock "Q Channel" DstPort 1 } } } Block { BlockType Reference Name "Manual Switch" Ports [2, 1] Position [482, 275, 518, 305] Orientation "up" ShowName off SourceBlock "simulink/Signal\nRouting/Manual Switch" SourceType "Manual Switch" ShowPortLabels on SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" sw "1" action "0" } Block { BlockType Reference Name "Manual Switch2" Ports [2, 1] Position [302, 305, 338, 335] Orientation "up" ShowName off SourceBlock "simulink/Signal\nRouting/Manual Switch" SourceType "Manual Switch" ShowPortLabels on SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" sw "0" action "0" } Block { BlockType SubSystem Name "Phase Dithering" Ports [0, 1] Position [280, 400, 340, 470] Orientation "up" MinAlgLoopOccurrences off RTWSystemCode "Auto" FunctionWithSeparateData off MaskHideContents off System { Name "Phase Dithering" Location [64, 418, 776, 631] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType SubSystem Name "Bit to Integer Conversion" Ports [1, 1] Position [360, 32, 430, 78] MinAlgLoopOccurrences off RTWSystemCode "Auto" FunctionWithSeparateData off MaskHideContents off MaskType "Stateflow" MaskDescription "Embedded MATLAB block" MaskDisplay "disp('fcn');" MaskSelfModifiable on MaskIconFrame on MaskIconOpaque off MaskIconRotate "none" MaskIconUnits "autoscale" System { Name "Bit to Integer Conversion" Location [257, 457, 812, 717] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "u" Position [20, 101, 40, 119] IconDisplay "Port number" } Block { BlockType Demux Name " Demux " Ports [1, 1] Position [270, 160, 320, 200] Outputs "1" } Block { BlockType "S-Function" Name " SFunction " Tag "Stateflow S-Function NCO 1" Ports [1, 2] Position [180, 100, 230, 160] FunctionName "sf_sfun" PortCounts "[1 2]" Port { PortNumber 2 Name "y" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType Terminator Name " Terminator " Position [460, 171, 480, 189] } Block { BlockType Outport Name "y" Position [460, 101, 480, 119] IconDisplay "Port number" BusOutputAsStruct off } Line { SrcBlock " SFunction " SrcPort 1 Points [0, 65] DstBlock " Demux " DstPort 1 } Line { SrcBlock " Demux " SrcPort 1 DstBlock " Terminator " DstPort 1 } Line { SrcBlock "u" SrcPort 1 DstBlock " SFunction " DstPort 1 } Line { Name "y" Labels [0, 0] SrcBlock " SFunction " SrcPort 2 DstBlock "y" DstPort 1 } } } Block { BlockType FrameConversion Name "Frame Conversion" Position [210, 35, 265, 75] OutFrame "Sample based" Port { PortNumber 1 Name "test" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType Reference Name "PN Sequence\nGenerator1" Ports [0, 1] Position [20, 33, 100, 77] SourceBlock "commseqgen2/PN Sequence\nGenerator" SourceType "PN Sequence Generator" poly "[53 6 2 1 0]" ini_sta "[zeros(1,52) 1]" shift "0" Ts "1/50e6/20" frameBased "on" sampPerFrame "20" reset "off" outDataType "double" } Block { BlockType Outport Name "Out1" Position [510, 48, 540, 62] IconDisplay "Port number" BusOutputAsStruct off } Line { SrcBlock "PN Sequence\nGenerator1" SrcPort 1 DstBlock "Frame Conversion" DstPort 1 } Line { Name "test" Labels [0, 0] SrcBlock "Frame Conversion" SrcPort 1 Points [0, 0] DstBlock "Bit to Integer Conversion" DstPort 1 } Line { SrcBlock "Bit to Integer Conversion" SrcPort 1 Points [0, 0] DstBlock "Out1" DstPort 1 } } } Block { BlockType Scope Name "Scope" Ports [2] Position [1015, 170, 1045, 225] Floating off Location [102, 281, 809, 664] Open off NumInputPorts "2" ZoomMode "xonly" List { ListType AxesTitles axes1 "%" axes2 "%" } TimeRange "9.539748953974934e-006" YMin "-1~-1" YMax "1~1" DataFormat "StructureWithTime" SampleTime "0" } Block { BlockType Reference Name "Spectrum\nScope" Ports [1] Position [1010, 275, 1045, 325] DialogController "dspdialog.SpectrumScope" DialogControllerArgs "DataTag0" SourceBlock "dspsnks4/Spectrum\nScope" SourceType "Spectrum Scope" ShowPortLabels off SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" ScopeProperties on Domain "Frequency" HorizSpan "1" UseBuffer on BufferSize "2^14" Overlap "0" inpFftLenInherit on FFTlength "2^16" numAvg "5" DisplayProperties off AxisGrid on Memory off FrameNumber on AxisLegend off AxisZoom off OpenScopeAtSimStart on OpenScopeImmediately off FigPos "[460 313 560 420]" AxisProperties off XUnits "Hertz" XRange "[0...Fs/2]" InheritXIncr on XIncr "1.0" XLabel "Samples" YUnits "dB" YMin "-145.235454392048" YMax "43.7894800960686" YLabel "Magnitude-squared, dB" LineProperties off wintypeSpecScope "Bartlett" RsSpecScope "50" betaSpecScope "5" winsampSpecScope "Periodic" } Block { BlockType SubSystem Name "Subsystem" Ports [0, 1] Position [15, 168, 70, 212] ShowName off MinAlgLoopOccurrences off RTWSystemCode "Auto" FunctionWithSeparateData off MaskHideContents off MaskPromptString "Desired Frequency (Hz) :" MaskStyleString "edit" MaskTunableValueString "on" MaskCallbackString "if str2num(get_param(gcb, 'Freq'))>25e6\n erro" "r('Desired frequency must be smaller than half the sampling rate');\nend\n " " " MaskEnableString "on" MaskVisibilityString "on" MaskToolTipString "on" MaskVariables "Freq=@1;" MaskDisplay "disp(Freq);\ndisp('\\n\\nHz');" MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" MaskValueString "2e6" System { Name "Subsystem" Location [99, 499, 771, 710] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "213" Block { BlockType Constant Name " " Position [25, 25, 55, 55] Value "Freq" VectorParams1D on SamplingMode "Sample based" OutDataTypeMode "double" OutDataType "ufix(32)" ConRadixGroup "Use specified scaling" OutScaling "0" SampleTime "T" FramePeriod "inf" } Block { BlockType SubSystem Name "Embedded\nMATLAB Function" Ports [1, 1] Position [130, 13, 200, 67] MinAlgLoopOccurrences off RTWSystemCode "Auto" FunctionWithSeparateData off MaskHideContents off MaskType "Stateflow" MaskDescription "Embedded MATLAB block" MaskDisplay "disp('fcn');" MaskSelfModifiable on MaskIconFrame on MaskIconOpaque off MaskIconRotate "none" MaskIconUnits "autoscale" System { Name "Embedded\nMATLAB Function" Location [257, 457, 812, 717] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "Freq" Position [20, 101, 40, 119] IconDisplay "Port number" } Block { BlockType Demux Name " Demux " Ports [1, 1] Position [270, 160, 320, 200] Outputs "1" } Block { BlockType "S-Function" Name " SFunction " Tag "Stateflow S-Function NCO 3" Ports [1, 2] Position [180, 100, 230, 160] FunctionName "sf_sfun" Parameters "N,T" PortCounts "[1 2]" Port { PortNumber 2 Name "y" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType Terminator Name " Terminator " Position [460, 171, 480, 189] } Block { BlockType Outport Name "y" Position [460, 101, 480, 119] IconDisplay "Port number" BusOutputAsStruct off } Line { SrcBlock " SFunction " SrcPort 1 Points [0, 65] DstBlock " Demux " DstPort 1 } Line { SrcBlock " Demux " SrcPort 1 DstBlock " Terminator " DstPort 1 } Line { SrcBlock "Freq" SrcPort 1 DstBlock " SFunction " DstPort 1 } Line { Name "y" Labels [0, 0] SrcBlock " SFunction " SrcPort 2 DstBlock "y" DstPort 1 } } } Block { BlockType Outport Name "Out1" Position [280, 33, 310, 47] IconDisplay "Port number" BusOutputAsStruct off } Line { SrcBlock " " SrcPort 1 DstBlock "Embedded\nMATLAB Function" DstPort 1 } Line { SrcBlock "Embedded\nMATLAB Function" SrcPort 1 DstBlock "Out1" DstPort 1 } } } Block { BlockType Sum Name "Sum1" Ports [2, 1] Position [605, 275, 625, 295] Orientation "down" NamePlacement "alternate" ShowName off IconShape "round" Inputs "+|-" InputSameDT off OutDataTypeMode "uint32" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum2" Ports [2, 1] Position [490, 190, 510, 210] ShowName off IconShape "round" Inputs "|++" InputSameDT off OutDataTypeMode "uint32" OutDataType "sfix(33)" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum4" Ports [2, 1] Position [310, 190, 330, 210] ShowName off IconShape "round" Inputs "|++" InputSameDT off OutDataTypeMode "uint32" SaturateOnIntegerOverflow off } Block { BlockType UnitDelay Name "Unit Delay" Position [135, 233, 170, 267] Orientation "left" SampleTime "-1" } Block { BlockType Scope Name "Floating\nScope" Ports [] Position [185, 14, 215, 46] IOType "viewer" Floating on Location [129, 315, 453, 554] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%" } SaveName "ScopeData2" DataFormat "StructureWithTime" LimitDataPoints off SampleTime "0" } Block { BlockType SignalViewerScope Name "Scope2" Ports [] Position [20, 15, 60, 55] IOType "viewer" Location [188, 365, 512, 604] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%" } ShowDataMarkers off ShowLegends off DataFormat "Array" MaxDataPoints "7500" RefreshTime 0.035000 Disabled off } Block { BlockType SignalViewerScope Name "Scope3" Ports [] Position [20, 15, 60, 55] IOType "viewer" Location [188, 365, 512, 604] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%" } ShowDataMarkers off ShowLegends off SaveName "ScopeData1" DataFormat "Array" MaxDataPoints "7500" RefreshTime 0.035000 Disabled off } Block { BlockType SignalViewerScope Name "Scope4" Ports [] Position [20, 15, 60, 55] IOType "viewer" Location [188, 365, 512, 604] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%" } ShowDataMarkers off ShowLegends off SaveName "ScopeData2" DataFormat "Array" MaxDataPoints "7500" RefreshTime 0.035000 Disabled off } Block { BlockType SignalViewerScope Name "Scope5" Ports [] Position [20, 15, 60, 55] IOType "viewer" Location [59, 70, 383, 309] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%" } ShowDataMarkers off ShowLegends off SaveName "ScopeData3" DataFormat "Array" MaxDataPoints "7500" RefreshTime 0.035000 Disabled off } Line { Name "counter" Labels [0, 0] SrcBlock "Add" SrcPort 1 Points [40, 0] Branch { Points [0, 50] DstBlock "Unit Delay" DstPort 1 } Branch { DstBlock "Sum4" DstPort 1 } } Line { SrcBlock "Unit Delay" SrcPort 1 Points [-20, 0; 0, -45] DstBlock "Add" DstPort 2 } Line { SrcBlock "Subsystem" SrcPort 1 DstBlock "Add" DstPort 1 } Line { SrcBlock "Look Up Table" SrcPort 1 DstBlock "Scope" DstPort 1 } Line { SrcBlock "Look Up Table" SrcPort 2 Points [20, 0] Branch { DstBlock "Scope" DstPort 2 } Branch { Points [0, 90] DstBlock "Spectrum\nScope" DstPort 1 } } Line { SrcBlock "Extract Bits" SrcPort 1 Points [0, 0; 35, 0] Branch { DstBlock "Look Up Table" DstPort 1 } Branch { DstBlock "Gain" DstPort 1 } } Line { SrcBlock " 1" SrcPort 1 Points [-30, 0] DstBlock "Manual Switch2" DstPort 2 } Line { SrcBlock "Phase Dithering" SrcPort 1 DstBlock "Manual Switch2" DstPort 1 } Line { SrcBlock "Manual Switch2" SrcPort 1 Points [0, -75] DstBlock "Sum4" DstPort 2 } Line { SrcBlock "Sum1" SrcPort 1 Points [0, 30] DstBlock "Filter1" DstPort 1 } Line { SrcBlock "Gain" SrcPort 1 Points [0, 15] DstBlock "Sum1" DstPort 2 } Line { SrcBlock "Filter1" SrcPort 1 Points [-30, 0] DstBlock "Manual Switch" DstPort 2 } Line { SrcBlock " 2" SrcPort 1 Points [0, 0] DstBlock "Manual Switch" DstPort 1 } Line { SrcBlock "Sum4" SrcPort 1 Points [140, 0] DstBlock "Sum2" DstPort 1 } Line { SrcBlock "Sum2" SrcPort 1 Points [0, 0; 20, 0] Branch { DstBlock "Extract Bits" DstPort 1 } Branch { Points [0, 85] DstBlock "Sum1" DstPort 1 } } Line { SrcBlock "Manual Switch" SrcPort 1 Points [0, 0] DstBlock "Sum2" DstPort 2 } Annotation { Name "Accumulator" Position [156, 141] DropShadow on UseDisplayTextAsClickCallback off FontSize 18 } Annotation { Name "Quantization and Noise Shaping" Position [607, 143] DropShadow on UseDisplayTextAsClickCallback off FontSize 18 } Annotation { Name "Lookup Table" Position [906, 145] DropShadow on UseDisplayTextAsClickCallback off FontSize 18 } Annotation { Name "Phase Dithering" Position [333, 141] DropShadow on UseDisplayTextAsClickCallback off FontSize 18 } Annotation { Name "Numerical Controlled Oscillator" Position [516, 51] ForegroundColor "blue" DropShadow on UseDisplayTextAsClickCallback off FontSize 36 } Annotation { Position [488, 353] UseDisplayTextAsClickCallback off } } } MatData { NumRecords 1 DataRecord { Tag DataTag0 Data " %)30 . , 8 ( ! % " "\" 0 0 " } } # Finite State Machines # # Stateflow Version 6.4 (R2006a) dated Mar 31 2006, 16:21:48 # # Stateflow { machine { id 1 name "NCO" created "08-Nov-2005 18:11:12" isLibrary 0 firstTarget 18 debug { breakOn [1 0 0] runTimeCheck [0 0 1 1] } sfVersion 64014000 } chart { id 2 name "Phase Dithering/Bit to Integer Conversion" windowPosition [240.45 333.75 200.25 189.75] viewLimits [0 156.75 0 153.75] screen [1 1 1024 768 1.333333333333333] treeNode [0 3 0 0] firstTransition 5 firstJunction 4 viewObj 2 machine 1 decomposition CLUSTER_CHART type EML_CHART firstData 6 chartFileNumber 1 disableImplicitCasting 1 eml { name "fcn" } } state { id 3 labelString "eML_blk_kernel()" position [18 64.5 118 66] fontSize 12 chart 2 treeNode [2 0 0 0] superState SUBCHART subviewer 2 type FUNC_STATE decomposition CLUSTER_STATE eml { isEML 1 script "function y = fcn(u)\n" "% This block supports an embeddable subset of the MATLAB la" "nguage.\n" "% See the help menu for details. \n" "\n" "y = uint32(2.^[0:19]*u);\n" "\n" "% Randomely change the sign of the output based on the firs" "t bit in the\n" "% input. Note that the bits of the input are random.\n" "\n" "% if (u(1)==0)\n" "% y=-y;\n" "% end" editorLayout "100 M4x1[145 145 576 480]" fimathString "fimath(...\n" "'RoundMode', 'floor',...\n" "'OverflowMode', 'wrap',...\n" "'ProductMode', 'KeepLSB', 'ProductWordLength', 32,..." "\n" "'SumMode', 'KeepLSB', 'SumWordLength', 32,...\n" "'CastBeforeSum', false)" treatIntsAsFixpt 0 } } junction { id 4 position [23.5747 49.5747 7] chart 2 linkNode [2 0 0] subviewer 2 type CONNECTIVE_JUNCTION } transition { id 5 labelString "{eML_blk_kernel();}" labelPosition [32.125 19.875 102.544 14.964] fontSize 12 src { intersection [0 0 1 0 23.5747 14.625 0 0] } dst { id 4 intersection [7 0 -1 -1 23.5747 42.5747 0 0] } midPoint [23.5747 24.9468] chart 2 linkNode [2 0 0] dataLimits [21.175 25.975 14.625 42.575] subviewer 2 drawStyle SMART executionOrder 1 } data { id 6 name "u" linkNode [2 0 7] scope INPUT_DATA machine 1 props { array { size "-1" } type { method SF_INHERITED_TYPE } complexity SF_COMPLEX_INHERITED } dataType "inherited" fixptType { slope 1 baseType SF_INT16_TYPE } complexity SF_COMPLEX_INHERITED } data { id 7 name "y" linkNode [2 6 0] scope OUTPUT_DATA machine 1 props { array { size "-1" } type { method SF_INHERITED_TYPE } complexity SF_COMPLEX_INHERITED } dataType "inherited" fixptType { slope 1 baseType SF_INT16_TYPE } complexity SF_COMPLEX_INHERITED } instance { id 8 name "Phase Dithering/Bit to Integer Conversion" machine 1 chart 2 } chart { id 9 name "Subsystem/Embedded\n" "MATLAB Function" windowPosition [240.45 333.75 200.25 189.75] viewLimits [0 156.75 0 153.75] screen [1 1 1024 768 1.333333333333333] treeNode [0 10 0 0] firstTransition 12 firstJunction 11 viewObj 9 machine 1 decomposition CLUSTER_CHART type EML_CHART firstData 13 chartFileNumber 3 disableImplicitCasting 1 eml { name "fcn" } } state { id 10 labelString "eML_blk_kernel()" position [18 64.5 118 66] fontSize 12 chart 9 treeNode [9 0 0 0] superState SUBCHART subviewer 9 type FUNC_STATE decomposition CLUSTER_STATE eml { isEML 1 script "function y = fcn(Freq, N, T)\n" "% This block supports an embeddable subset of the MATLAB la" "nguage.\n" "% See the help menu for details. \n" "\n" "% N and T are aasigned values in the Model's workspace\n" "y = uint32(Freq*2^N*T+.5);\n" "" editorLayout "100 M4x1[52 69 940 333]" fimathString "fimath(...\n" "'RoundMode', 'floor',...\n" "'OverflowMode', 'wrap',...\n" "'ProductMode', 'KeepLSB', 'ProductWordLength', 32,..." "\n" "'SumMode', 'KeepLSB', 'SumWordLength', 32,...\n" "'CastBeforeSum', false)" treatIntsAsFixpt 0 } } junction { id 11 position [23.5747 49.5747 7] chart 9 linkNode [9 0 0] subviewer 9 type CONNECTIVE_JUNCTION } transition { id 12 labelString "{eML_blk_kernel();}" labelPosition [32.125 19.875 102.544 14.964] fontSize 12 src { intersection [0 0 1 0 23.5747 14.625 0 0] } dst { id 11 intersection [7 0 -1 -1 23.5747 42.5747 0 0] } midPoint [23.5747 24.9468] chart 9 linkNode [9 0 0] dataLimits [21.175 25.975 14.625 42.575] subviewer 9 drawStyle SMART executionOrder 1 } data { id 13 name "y" linkNode [9 0 14] scope OUTPUT_DATA machine 1 props { array { size "-1" } type { primitive SF_UINT32_TYPE } complexity SF_COMPLEX_INHERITED } dataType "uint32" fixptType { slope 1 baseType SF_INT16_TYPE } complexity SF_COMPLEX_INHERITED } data { id 14 name "Freq" linkNode [9 13 15] scope INPUT_DATA machine 1 props { array { size "-1" } type { method SF_INHERITED_TYPE primitive SF_DOUBLE_TYPE isSigned 1 wordLength "16" } } dataType "inherited" } data { id 15 name "N" linkNode [9 14 16] scope PARAMETER_DATA initFromWorkspace 1 machine 1 props { array { size "-1" } type { method SF_INHERITED_TYPE primitive SF_DOUBLE_TYPE isSigned 1 wordLength "16" } } dataType "inherited" } data { id 16 name "T" linkNode [9 15 0] scope PARAMETER_DATA initFromWorkspace 1 paramIndexForInitFromWorkspace 1 machine 1 props { array { size "-1" } type { method SF_INHERITED_TYPE primitive SF_DOUBLE_TYPE isSigned 1 wordLength "16" } } dataType "inherited" } instance { id 17 name "Subsystem/Embedded\n" "MATLAB Function" machine 1 chart 9 } target { id 18 name "sfun" description "Default Simulink S-Function Target." codeFlags " debug=1 overflow=1 echo=1" machine 1 linkNode [1 0 0] } }