Model { Name "fxpmult_add" Version 5.0 SaveDefaultBlockParams on SampleTimeColors off LibraryLinkDisplay "none" WideLines on ShowLineDimensions off ShowPortDataTypes on ShowLoopsOnError on IgnoreBidirectionalLines off ShowStorageClass off ExecutionOrder off RecordCoverage off CovPath "/" CovSaveName "covdata" CovMetricSettings "d" CovNameIncrementing off CovHtmlReporting on covSaveCumulativeToWorkspaceVar on CovSaveSingleToWorkspaceVar on CovCumulativeVarName "covCumulativeData" CovCumulativeReport off DataTypeOverride "UseLocalSettings" MinMaxOverflowLogging "MinMaxAndOverflow" MinMaxOverflowArchiveMode "Overwrite" BlockNameDataTip off BlockParametersDataTip on BlockDescriptionStringDataTip off ToolBar on StatusBar on BrowserShowLibraryLinks off BrowserLookUnderMasks off PreSaveFcn ";fxptdlg('fxptdlg_presave_cb');" CloseFcn ";fxptdlg('fxptdlg_close_cb');" InitFcn ";fxptdlg('fxptdlg_simInit_cb');" StartFcn ";fxptdlg('fxptdlg_sim_cb');" StopFcn ";fxptdlg('fxptdlg_store_cb');" Created "Wed Jul 22 13:25:13 1998" Creator "ciolfi" UpdateHistory "UpdateHistoryNever" ModifiedByFormat "%" LastModifiedBy "Nicolas Tsapatsoulis" ModifiedDateFormat "%" LastModifiedDate "Tue Mar 14 10:57:15 2006" ModelVersionFormat "1.%" ConfigurationManager "none" SimParamPage "Solver" LinearizationMsg "none" Profile off ParamWorkspaceSource "MATLABWorkspace" AccelSystemTargetFile "accel.tlc" AccelTemplateMakefile "accel_default_tmf" AccelMakeCommand "make_rtw" TryForcingSFcnDF off ExtModeMexFile "ext_comm" ExtModeBatchMode off ExtModeTrigType "manual" ExtModeTrigMode "oneshot" ExtModeTrigPort "1" ExtModeTrigElement "any" ExtModeTrigDuration 1000 ExtModeTrigHoldOff 0 ExtModeTrigDelay 0 ExtModeTrigDirection "rising" ExtModeTrigLevel 0 ExtModeArchiveMode "off" ExtModeAutoIncOneShot off ExtModeIncDirWhenArm off ExtModeAddSuffixToVar off ExtModeWriteAllDataToWs off ExtModeArmWhenConnect off ExtModeSkipDownloadWhenConnect off ExtModeLogAll on ExtModeAutoUpdateStatusClock on BufferReuse on RTWExpressionDepthLimit 5 SimulationMode "normal" Solver "FixedStepDiscrete" SolverMode "SingleTasking" StartTime "0.0" StopTime "200" MaxOrder 5 MaxStep "0.01" MinStep "auto" MaxNumMinSteps "-1" InitialStep "auto" FixedStep "1/1000" RelTol "1e-3" AbsTol "1e-6" OutputOption "RefineOutputTimes" OutputTimes "[]" Refine "1" LoadExternalInput off ExternalInput "[t, u]" LoadInitialState off InitialState "xInitial" SaveTime off TimeSaveName "tout" SaveState off StateSaveName "xout" SaveOutput off OutputSaveName "yout" SaveFinalState off FinalStateName "xFinal" SaveFormat "Array" Decimation "1" LimitDataPoints off MaxDataPoints "1000" SignalLoggingName "sigsOut" ConsistencyChecking "none" ArrayBoundsChecking "none" AlgebraicLoopMsg "warning" BlockPriorityViolationMsg "warning" MinStepSizeMsg "warning" InheritedTsInSrcMsg "warning" DiscreteInheritContinuousMsg "warning" MultiTaskRateTransMsg "error" SingleTaskRateTransMsg "none" CheckForMatrixSingularity "none" IntegerOverflowMsg "none" Int32ToFloatConvMsg "warning" ParameterDowncastMsg "error" ParameterOverflowMsg "error" ParameterPrecisionLossMsg "warning" UnderSpecifiedDataTypeMsg "none" UnnecessaryDatatypeConvMsg "none" VectorMatrixConversionMsg "none" InvalidFcnCallConnMsg "error" SignalLabelMismatchMsg "none" UnconnectedInputMsg "warning" UnconnectedOutputMsg "warning" UnconnectedLineMsg "warning" SfunCompatibilityCheckMsg "none" RTWInlineParameters off BlockReductionOpt on BooleanDataType off ConditionallyExecuteInputs on ParameterPooling on OptimizeBlockIOStorage on ZeroCross on AssertionControl "UseLocalSettings" ProdHWDeviceType "Microprocessor" ProdHWWordLengths "8,16,32,32" RTWSystemTargetFile "grt.tlc" RTWTemplateMakefile "grt_default_tmf" RTWMakeCommand "make_rtw" RTWGenerateCodeOnly off RTWRetainRTWFile off TLCProfiler off TLCDebug off TLCCoverage off TLCAssertion off BlockDefaults { Orientation "right" ForegroundColor "black" BackgroundColor "white" DropShadow off NamePlacement "normal" FontName "Helvetica" FontSize 10 FontWeight "normal" FontAngle "normal" ShowName on } BlockParameterDefaults { Block { BlockType Product Inputs "2" Multiplication "Element-wise(.*)" ShowAdditionalParam off InputSameDT on OutDataTypeMode "Same as first input" OutDataType "sfix(16)" OutScaling "2^0" LockScale off RndMeth "Floor" SaturateOnIntegerOverflow on } Block { BlockType Scope 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" } Block { BlockType "S-Function" FunctionName "system" PortCounts "[]" SFunctionModules "''" } Block { BlockType Sin SineType "Time based" Amplitude "1" Bias "0" Frequency "1" Phase "0" Samples "10" Offset "0" SampleTime "-1" VectorParams1D on } Block { BlockType SubSystem ShowPortLabels on Permissions "ReadWrite" RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" SimViewingDevice off DataTypeOverride "UseLocalSettings" MinMaxOverflowLogging "UseLocalSettings" } Block { BlockType Sum IconShape "rectangular" Inputs "++" ShowAdditionalParam off InputSameDT on OutDataTypeMode "Same as first input" OutDataType "sfix(16)" OutScaling "2^0" LockScale off RndMeth "Floor" SaturateOnIntegerOverflow on } } AnnotationDefaults { HorizontalAlignment "center" VerticalAlignment "middle" ForegroundColor "black" BackgroundColor "white" DropShadow off FontName "Helvetica" FontSize 10 FontWeight "normal" FontAngle "normal" } LineDefaults { FontName "Helvetica" FontSize 9 FontWeight "normal" FontAngle "normal" } System { Name "fxpmult_add" Location [355, 688, 1013, 946] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "125" ReportName "simulink-default.rpt" Block { BlockType Reference Name "FixPt\nGUI" Ports [] Position [470, 15, 510, 55] BackgroundColor "orange" ShowName off SourceBlock "fixpt_lib_3p1/FixPt\nGUI" SourceType "Fixed-Point GUI" } Block { BlockType Product Name "FixPt Product" Ports [2, 1] Position [225, 135, 265, 175] ShowAdditionalParam on InputSameDT off OutDataTypeMode "Specify via dialog" OutDataType "sfrac(32)" OutScaling "2^-8" RndMeth "Nearest" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "FixPt Sum" Ports [2, 1] Position [230, 60, 270, 100] ShowAdditionalParam on InputSameDT off OutDataTypeMode "Specify via dialog" OutDataType "sfrac(32)" OutScaling "2^-2" RndMeth "Nearest" SaturateOnIntegerOverflow off } Block { BlockType Reference Name "From FixPt1" Ports [1, 1] Position [340, 60, 380, 100] SourceBlock "fixpt_lib_4/Data Type/Gateway Out" SourceType "Fixed-Point Gateway Out" OutRealWorld "Real World Value" OutBuiltInType "double" RndMeth "Floor" DoSatur off Port { PortNumber 1 Name "summed signal" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" DataLogging off DataLoggingNameMode "SignalName" DataLoggingDecimateData off DataLoggingDecimation "2" DataLoggingLimitDataPoints off DataLoggingMaxPoints "5000" } } Block { BlockType Reference Name "From FixPt2" Ports [1, 1] Position [340, 140, 380, 180] SourceBlock "fixpt_lib_4/Data Type/Gateway Out" SourceType "Fixed-Point Gateway Out" OutRealWorld "Real World Value" OutBuiltInType "double" RndMeth "Floor" DoSatur off Port { PortNumber 1 Name "Muliplied signal" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" DataLogging off DataLoggingNameMode "SignalName" DataLoggingDecimateData off DataLoggingDecimation "2" DataLoggingLimitDataPoints off DataLoggingMaxPoints "5000" } } Block { BlockType Scope Name "Scope" Ports [2] Position [475, 107, 505, 138] Location [6, 66, 1030, 756] Open on NumInputPorts "2" TickLabels "on" List { ListType AxesTitles axes1 "%" axes2 "%" } List { ListType SelectedSignals axes1 "" axes2 "" } TimeRange "10" YMin "-2.5~-1" YMax "2~1" SaveToWorkspace on DataFormat "StructureWithTime" MaxDataPoints "10000" } Block { BlockType Scope Name "Scope1" Ports [2] Position [310, 17, 340, 48] Location [6, 66, 1030, 756] Open on NumInputPorts "2" TickLabels "on" List { ListType AxesTitles axes1 "%" axes2 "%" } List { ListType SelectedSignals axes1 "" axes2 "" } TimeRange "10" YMin "-2.5~-1" YMax "2~1" SaveToWorkspace on SaveName "ScopeData1" DataFormat "StructureWithTime" MaxDataPoints "10000" } Block { BlockType Sin Name "Sine Wave\n1 rad/sec" Position [25, 145, 45, 165] SineType "Time based" SampleTime "1/1000" } Block { BlockType Sin Name "Sine Wave\n2 rad/sec" Position [25, 60, 45, 80] SineType "Time based" Frequency "2" SampleTime "1/1000" } Block { BlockType Reference Name "To FixPt1" Ports [1, 1] Position [100, 50, 140, 90] SourceBlock "fixpt_lib_4/Data Type/Gateway In" SourceType "Fixed-Point Gateway In" InRealWorld "Real World Value" OutputDataTypeScalingMode "Specify via dialog" OutDataType "sfrac(16)" OutScaling "2^-7" LockScale off RndMeth "Nearest" DoSatur on } Block { BlockType Reference Name "To FixPt2" Ports [1, 1] Position [100, 135, 140, 175] SourceBlock "fixpt_lib_4/Data Type/Gateway In" SourceType "Fixed-Point Gateway In" InRealWorld "Real World Value" OutputDataTypeScalingMode "Specify via dialog" OutDataType "sfrac(16)" OutScaling "2^-6" LockScale off RndMeth "Floor" DoSatur on } Line { SrcBlock "Sine Wave\n1 rad/sec" SrcPort 1 DstBlock "To FixPt2" DstPort 1 } Line { Labels [1, 0] SrcBlock "Sine Wave\n2 rad/sec" SrcPort 1 DstBlock "To FixPt1" DstPort 1 } Line { SrcBlock "To FixPt1" SrcPort 1 Points [0, 0; 45, 0] Branch { Points [20, 0] Branch { DstBlock "FixPt Sum" DstPort 1 } Branch { DstBlock "FixPt Product" DstPort 1 } } Branch { Points [0, -45] DstBlock "Scope1" DstPort 1 } } Line { SrcBlock "To FixPt2" SrcPort 1 Points [20, 0] Branch { Points [35, 0] Branch { Points [0, -65] DstBlock "FixPt Sum" DstPort 2 } Branch { Points [0, 10] DstBlock "FixPt Product" DstPort 2 } } Branch { Points [0, -115] DstBlock "Scope1" DstPort 2 } } Line { Name "summed signal" Labels [0, 0] SrcBlock "From FixPt1" SrcPort 1 Points [75, 0] DstBlock "Scope" DstPort 1 } Line { SrcBlock "FixPt Sum" SrcPort 1 DstBlock "From FixPt1" DstPort 1 } Line { Name "Muliplied signal" Labels [0, 0] SrcBlock "From FixPt2" SrcPort 1 Points [75, 0] DstBlock "Scope" DstPort 2 } Line { SrcBlock "FixPt Product" SrcPort 1 Points [0, 5] DstBlock "From FixPt2" DstPort 1 } Annotation { Name "Example showing sum and multiplication of two s" "ine signals" Position [165, 16] } } }