Model { Name "dsss_awgn2" Version 6.0 GraphicalInterface { NumRootInports 0 NumRootOutports 0 ParameterArgumentNames "" ComputedModelVersion "1.45" NumModelReferences 0 NumTestPointedSignals 0 } SavedCharacterEncoding "ibm-5348_P100-1997" SaveDefaultBlockParams on SampleTimeColors off LibraryLinkDisplay "none" WideLines off ShowLineDimensions off ShowPortDataTypes off ShowLoopsOnError on IgnoreBidirectionalLines off ShowStorageClass off ShowTestPointIcons on ShowViewerIcons on SortedOrder off ExecutionContextIcon off ShowLinearizationAnnotations on RecordCoverage off CovPath "/" CovSaveName "covdata" CovMetricSettings "dw" CovNameIncrementing off CovHtmlReporting on covSaveCumulativeToWorkspaceVar on CovSaveSingleToWorkspaceVar on CovCumulativeVarName "covCumulativeData" CovCumulativeReport off CovReportOnPause 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 CloseFcn "rtwprivate ssgencode ModelCloseRequest dsss_awgn2" Created "Sat Dec 04 12:15:43 2004" UpdateHistory "UpdateHistoryNever" ModifiedByFormat "%" LastModifiedBy "Milos" ModifiedDateFormat "%" LastModifiedDate "Sat May 12 18:05:38 2007" ModelVersionFormat "1.%" ConfigurationManager "None" LinearizationMsg "none" Profile off ParamWorkspaceSource "MATLABWorkspace" AccelSystemTargetFile "accel.tlc" AccelTemplateMakefile "accel_default_tmf" AccelMakeCommand "make_rtw" TryForcingSFcnDF off 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.0.4" Array { Type "Handle" Dimension 7 Simulink.SolverCC { $ObjectID 2 Version "1.0.4" StartTime "0.0" StopTime "10" AbsTol "auto" FixedStep "auto" InitialStep "auto" MaxNumMinSteps "-1" MaxOrder 5 ExtrapolationOrder 4 NumberNewtonIterations 1 MaxStep "auto" MinStep "auto" RelTol "1e-3" SolverMode "Auto" Solver "ode45" ZeroCrossControl "UseLocalSettings" PositivePriorityOrder off AutoInsertRateTranBlk off SampleTimeConstraint "Unconstrained" RateTranMode "Deterministic" } Simulink.DataIOCC { $ObjectID 3 Version "1.0.4" 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 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.0.4" BlockReduction on BooleanDataType on ConditionallyExecuteInputs on ConditionalExecOptimization "on_for_testing" InlineParams off InlineInvariantSignals on 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 OptimizeModelRefInitCode off LifeSpan "inf" } Simulink.DebuggingCC { $ObjectID 5 Version "1.0.4" ConsistencyChecking "none" ArrayBoundsChecking "none" AlgebraicLoopMsg "warning" ArtificialAlgebraicLoopMsg "warning" CheckSSInitialOutputMsg on CheckExecutionContextPreStartOutputMsg off CheckExecutionContextRuntimeOutputMsg off SignalResolutionControl "TryResolveAllWithWarning" BlockPriorityViolationMsg "warning" MinStepSizeMsg "warning" SolverPrmCheckMsg "warning" InheritedTsInSrcMsg "warning" DiscreteInheritContinuousMsg "warning" MultiTaskRateTransMsg "error" SingleTaskRateTransMsg "none" TasksWithSamePriorityMsg "warning" CheckMatrixSingularityMsg "none" IntegerOverflowMsg "warning" Int32ToFloatConvMsg "warning" ParameterDowncastMsg "error" ParameterOverflowMsg "error" ParameterPrecisionLossMsg "warning" UnderSpecifiedDataTypeMsg "none" UnnecessaryDatatypeConvMsg "none" VectorMatrixConversionMsg "none" InvalidFcnCallConnMsg "error" SignalLabelMismatchMsg "none" UnconnectedInputMsg "warning" UnconnectedOutputMsg "warning" UnconnectedLineMsg "warning" SFcnCompatibilityMsg "none" UniqueDataStoreMsg "none" RootOutportRequireBusObject "warning" AssertControl "UseLocalSettings" EnableOverflowDetection off ModelReferenceIOMsg "none" ModelReferenceVersionMismatchMessage "none" ModelReferenceIOMismatchMessage "none" ModelReferenceCSMismatchMessage "none" ModelReferenceSimTargetVerbose off UnknownTsInhSupMsg "warning" ModelReferenceDataLoggingMessage "warning" ModelReferenceSymbolNameMessage "warning" } Simulink.HardwareCC { $ObjectID 6 Version "1.0.4" 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.0.4" 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.0.4" SystemTargetFile "grt.tlc" GenCodeOnly off MakeCommand "make_rtw" 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 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.0.4" 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 CustomSymbolStr "$R$N$M" MangleLength 1 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.0.4" TargetFcnLib "ansi_tfl_tmw.mat" GenFloatMathFcnCalls "ANSI_C" UtilityFuncGeneration "Auto" GenerateFullHeader on GenerateSampleERTMain off IsPILTarget off ModelReferenceCompliant on IncludeMdlTerminateFcn on CombineOutputUpdateFcns off SuppressErrorStatus 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 } BlockDefaults { Orientation "right" ForegroundColor "black" BackgroundColor "white" DropShadow off NamePlacement "normal" FontName "Helvetica" FontSize 10 FontWeight "normal" FontAngle "normal" ShowName on } BlockParameterDefaults { Block { BlockType Constant Value "1" VectorParams1D on OutDataTypeMode "Inherit from 'Constant value'" OutDataType "sfix(16)" ConRadixGroup "Use specified scaling" OutScaling "2^0" SampleTime "inf" } Block { BlockType Display Format "short" Decimation "10" Floating off SampleTime "-1" } Block { BlockType FrameConversion OutFrame "Frame based" } Block { BlockType FromWorkspace VariableName "simulink_input" SampleTime "-1" Interpolate on OutputAfterFinalValue "Extrapolation" } 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 Ground } Block { BlockType Inport BusObject "BusObject" BusOutputAsStruct off PortDimensions "-1" SampleTime "-1" DataType "auto" OutDataType "sfix(16)" OutScaling "2^0" SignalType "auto" SamplingMode "auto" Interpolate on } Block { BlockType Outport Port "1" 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 Rounding Operator "floor" SampleTime "-1" } Block { BlockType "S-Function" FunctionName "system" PortCounts "[]" SFunctionModules "''" } Block { BlockType Signum ZeroCross on SampleTime "-1" } Block { BlockType SubSystem ShowPortLabels on Permissions "ReadWrite" PermitHierarchicalResolution "All" SystemSampleTime "-1" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" 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" } } 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 "dsss_awgn2" Location [2, 78, 1278, 750] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" ZoomFactor "80" ReportName "simulink-default.rpt" Block { BlockType Reference Name "AWGN\nChannel" Ports [1, 1] Position [615, 334, 695, 376] SourceBlock "commchan2/AWGN\nChannel" SourceType "AWGN Channel" ShowPortLabels on seed "67" noiseMode "Signal to noise ratio (Eb/No)" EbNodB "10" EsNodB "10" SNRdB "10" bitsPerSym "1" Ps "1" Tsym "1/1000" variance "1" } Block { BlockType SubSystem Name "Detector1" Ports [2, 1] Position [820, 159, 920, 201] BackgroundColor "orange" FontSize 10 TreatAsAtomicUnit off MinAlgLoopOccurrences off RTWSystemCode "Auto" System { Name "Detector1" Location [227, 142, 846, 442] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" ZoomFactor "100" Block { BlockType Inport Name "Channel" Position [40, 103, 70, 117] Port "1" IconDisplay "Port number" LatchInput off } Block { BlockType Inport Name "PN" Position [40, 143, 70, 157] Port "2" IconDisplay "Port number" LatchInput off } Block { BlockType Reference Name "Bipolar to\nUnipolar\nConverter2" Ports [1, 1] Position [390, 98, 470, 142] SourceBlock "commutil2/Bipolar to\nUnipolar\nConverter" SourceType "Bipolar to Unipolar Converter" ShowPortLabels on M "2" polarity "Positive" } Block { BlockType Reference Name "Integrate\nand Dump1" Ports [1, 1] Position [230, 98, 310, 142] SourceBlock "commfilt2/Integrate\nand Dump" SourceType "Integrate and dump" obssamples "10" offsetsamples "0" nodump off } Block { BlockType Product Name "Product3" Ports [2, 1] Position [155, 102, 185, 133] InputSameDT off OutDataTypeMode "Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Signum Name "Sign1" Position [335, 105, 365, 135] } Block { BlockType Outport Name "Out1" Position [505, 113, 535, 127] IconDisplay "Port number" BusOutputAsStruct off } Line { SrcBlock "Channel" SrcPort 1 DstBlock "Product3" DstPort 1 } Line { SrcBlock "PN" SrcPort 1 Points [30, 0; 0, -25] DstBlock "Product3" DstPort 2 } Line { SrcBlock "Product3" SrcPort 1 DstBlock "Integrate\nand Dump1" DstPort 1 } Line { SrcBlock "Integrate\nand Dump1" SrcPort 1 DstBlock "Sign1" DstPort 1 } Line { SrcBlock "Sign1" SrcPort 1 DstBlock "Bipolar to\nUnipolar\nConverter2" DstPort 1 } Line { SrcBlock "Bipolar to\nUnipolar\nConverter2" SrcPort 1 DstBlock "Out1" DstPort 1 } } } Block { BlockType SubSystem Name "Detector2" Ports [2, 1] Position [825, 344, 925, 386] BackgroundColor "orange" FontSize 10 TreatAsAtomicUnit off MinAlgLoopOccurrences off RTWSystemCode "Auto" System { Name "Detector2" Location [227, 142, 846, 442] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" ZoomFactor "100" Block { BlockType Inport Name "Channel" Position [40, 103, 70, 117] Port "1" IconDisplay "Port number" LatchInput off } Block { BlockType Inport Name "PN" Position [40, 143, 70, 157] Port "2" IconDisplay "Port number" LatchInput off } Block { BlockType Reference Name "Bipolar to\nUnipolar\nConverter2" Ports [1, 1] Position [390, 98, 470, 142] SourceBlock "commutil2/Bipolar to\nUnipolar\nConverter" SourceType "Bipolar to Unipolar Converter" ShowPortLabels on M "2" polarity "Positive" } Block { BlockType Reference Name "Integrate\nand Dump1" Ports [1, 1] Position [230, 98, 310, 142] SourceBlock "commfilt2/Integrate\nand Dump" SourceType "Integrate and dump" obssamples "10" offsetsamples "0" nodump off } Block { BlockType Product Name "Product3" Ports [2, 1] Position [155, 102, 185, 133] InputSameDT off OutDataTypeMode "Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Signum Name "Sign1" Position [335, 105, 365, 135] } Block { BlockType Outport Name "Out1" Position [505, 113, 535, 127] IconDisplay "Port number" BusOutputAsStruct off } Line { SrcBlock "Channel" SrcPort 1 DstBlock "Product3" DstPort 1 } Line { SrcBlock "PN" SrcPort 1 Points [30, 0; 0, -25] DstBlock "Product3" DstPort 2 } Line { SrcBlock "Product3" SrcPort 1 DstBlock "Integrate\nand Dump1" DstPort 1 } Line { SrcBlock "Integrate\nand Dump1" SrcPort 1 DstBlock "Sign1" DstPort 1 } Line { SrcBlock "Sign1" SrcPort 1 DstBlock "Bipolar to\nUnipolar\nConverter2" DstPort 1 } Line { SrcBlock "Bipolar to\nUnipolar\nConverter2" SrcPort 1 DstBlock "Out1" DstPort 1 } } } Block { BlockType SubSystem Name "Detector3" Ports [2, 1] Position [830, 549, 930, 591] BackgroundColor "orange" FontSize 10 TreatAsAtomicUnit off MinAlgLoopOccurrences off RTWSystemCode "Auto" System { Name "Detector3" Location [227, 142, 846, 442] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" ZoomFactor "100" Block { BlockType Inport Name "Channel" Position [40, 103, 70, 117] Port "1" IconDisplay "Port number" LatchInput off } Block { BlockType Inport Name "PN" Position [40, 143, 70, 157] Port "2" IconDisplay "Port number" LatchInput off } Block { BlockType Reference Name "Bipolar to\nUnipolar\nConverter2" Ports [1, 1] Position [390, 98, 470, 142] SourceBlock "commutil2/Bipolar to\nUnipolar\nConverter" SourceType "Bipolar to Unipolar Converter" ShowPortLabels on M "2" polarity "Positive" } Block { BlockType Reference Name "Integrate\nand Dump1" Ports [1, 1] Position [230, 98, 310, 142] SourceBlock "commfilt2/Integrate\nand Dump" SourceType "Integrate and dump" obssamples "10" offsetsamples "0" nodump off } Block { BlockType Product Name "Product3" Ports [2, 1] Position [155, 102, 185, 133] InputSameDT off OutDataTypeMode "Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Signum Name "Sign1" Position [335, 105, 365, 135] } Block { BlockType Outport Name "Out1" Position [505, 113, 535, 127] IconDisplay "Port number" BusOutputAsStruct off } Line { SrcBlock "Channel" SrcPort 1 DstBlock "Product3" DstPort 1 } Line { SrcBlock "PN" SrcPort 1 Points [30, 0; 0, -25] DstBlock "Product3" DstPort 2 } Line { SrcBlock "Product3" SrcPort 1 DstBlock "Integrate\nand Dump1" DstPort 1 } Line { SrcBlock "Integrate\nand Dump1" SrcPort 1 DstBlock "Sign1" DstPort 1 } Line { SrcBlock "Sign1" SrcPort 1 DstBlock "Bipolar to\nUnipolar\nConverter2" DstPort 1 } Line { SrcBlock "Bipolar to\nUnipolar\nConverter2" SrcPort 1 DstBlock "Out1" DstPort 1 } } } Block { BlockType Display Name "Display1" Ports [1] Position [1275, 342, 1365, 408] NamePlacement "alternate" Decimation "1" } Block { BlockType Display Name "Display2" Ports [1] Position [1275, 537, 1365, 603] NamePlacement "alternate" Decimation "1" } Block { BlockType Display Name "Display3" Ports [1] Position [1280, 157, 1370, 223] NamePlacement "alternate" Decimation "1" } Block { BlockType Reference Name "Error Rate\nCalculation1" Ports [2, 1] Position [1110, 347, 1185, 398] SourceBlock "commsink2/Error Rate\nCalculation" SourceType "Error Rate Calculation" N "1" st_delay "0" cp_mode "Entire frame" subframe "[]" PMode "Port" WsName "ErrorVec" RsMode2 off stop off numErr "100" maxBits "1e6" } Block { BlockType Reference Name "Error Rate\nCalculation2" Ports [2, 1] Position [1115, 542, 1190, 593] SourceBlock "commsink2/Error Rate\nCalculation" SourceType "Error Rate Calculation" N "1" st_delay "0" cp_mode "Entire frame" subframe "[]" PMode "Port" WsName "ErrorVec" RsMode2 off stop off numErr "100" maxBits "1e6" } Block { BlockType Reference Name "Error Rate\nCalculation3" Ports [2, 1] Position [1105, 162, 1180, 213] SourceBlock "commsink2/Error Rate\nCalculation" SourceType "Error Rate Calculation" N "1" st_delay "0" cp_mode "Entire frame" subframe "[]" PMode "Port" WsName "ErrorVec" RsMode2 off stop off numErr "100" maxBits "1e6" } Block { BlockType Sum Name "Sum" Ports [3, 1] Position [490, 330, 530, 380] ShowName off IconShape "round" Inputs "|+++" InputSameDT off OutDataTypeMode "Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType SubSystem Name "User1" Ports [1, 2] Position [195, 147, 295, 238] BackgroundColor "green" FontSize 10 TreatAsAtomicUnit off MinAlgLoopOccurrences off RTWSystemCode "Auto" System { Name "User1" Location [484, 404, 1132, 704] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" ZoomFactor "100" Block { BlockType Inport Name "User data" Position [35, 93, 65, 107] Port "1" IconDisplay "Port number" LatchInput off } Block { BlockType Product Name "Product" Ports [2, 1] Position [270, 122, 300, 153] InputSameDT off OutDataTypeMode "Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Reference Name "Unipolar to\nBipolar\nConverter" Ports [1, 1] Position [135, 78, 215, 122] SourceBlock "commutil2/Unipolar to\nBipolar\nConverter" SourceType "Unipolar to Bipolar Converter" ShowPortLabels on M "2" polarity "Positive" } Block { BlockType Reference Name "Unipolar to\nBipolar\nConverter1" Ports [1, 1] Position [135, 178, 215, 222] SourceBlock "commutil2/Unipolar to\nBipolar\nConverter" SourceType "Unipolar to Bipolar Converter" ShowPortLabels on M "2" polarity "Positive" } Block { BlockType Reference Name "Walsh Code\nGenerator" Ports [0, 1] Position [25, 178, 110, 222] FontSize 10 SourceBlock "commseqgen2/Walsh Code\nGenerator" SourceType "Walsh Code Generator" ShowPortLabels on length "64" index "60" ts "1/(1000*10)" frameBased off sampPerFrame "1" } Block { BlockType Outport Name "Spread out" Position [350, 128, 380, 142] IconDisplay "Port number" BusOutputAsStruct off } Block { BlockType Outport Name "PN" Position [355, 188, 385, 202] Port "2" IconDisplay "Port number" BusOutputAsStruct off } Line { SrcBlock "User data" SrcPort 1 DstBlock "Unipolar to\nBipolar\nConverter" DstPort 1 } Line { SrcBlock "Walsh Code\nGenerator" SrcPort 1 DstBlock "Unipolar to\nBipolar\nConverter1" DstPort 1 } Line { SrcBlock "Unipolar to\nBipolar\nConverter" SrcPort 1 Points [15, 0; 0, 30] DstBlock "Product" DstPort 1 } Line { SrcBlock "Unipolar to\nBipolar\nConverter1" SrcPort 1 Points [15, 0] Branch { Points [0, -55] DstBlock "Product" DstPort 2 } Branch { Points [0, -5] DstBlock "PN" DstPort 1 } } Line { SrcBlock "Product" SrcPort 1 Points [20, 0; 0, -5] DstBlock "Spread out" DstPort 1 } } } Block { BlockType Reference Name "User1 data" Ports [0, 1] Position [30, 168, 110, 212] FontName "Arial" SourceBlock "commrandsrc2/Random Integer\nGenerator" SourceType "Random Integer Generator" ShowPortLabels on mul "2" seed "10" Ts "1/1000" frameBased off sampPerFrame "1" orient off } Block { BlockType SubSystem Name "User2" Ports [1, 2] Position [200, 302, 300, 393] BackgroundColor "green" FontSize 10 TreatAsAtomicUnit off MinAlgLoopOccurrences off RTWSystemCode "Auto" System { Name "User2" Location [204, 209, 911, 509] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" ZoomFactor "100" Block { BlockType Inport Name "User data" Position [35, 93, 65, 107] Port "1" IconDisplay "Port number" LatchInput off } Block { BlockType Product Name "Product" Ports [2, 1] Position [270, 122, 300, 153] InputSameDT off OutDataTypeMode "Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Reference Name "Unipolar to\nBipolar\nConverter" Ports [1, 1] Position [135, 78, 215, 122] SourceBlock "commutil2/Unipolar to\nBipolar\nConverter" SourceType "Unipolar to Bipolar Converter" ShowPortLabels on M "2" polarity "Positive" } Block { BlockType Reference Name "Unipolar to\nBipolar\nConverter1" Ports [1, 1] Position [135, 178, 215, 222] SourceBlock "commutil2/Unipolar to\nBipolar\nConverter" SourceType "Unipolar to Bipolar Converter" ShowPortLabels on M "2" polarity "Positive" } Block { BlockType Reference Name "Walsh Code\nGenerator" Ports [0, 1] Position [15, 178, 100, 222] FontSize 10 SourceBlock "commseqgen2/Walsh Code\nGenerator" SourceType "Walsh Code Generator" ShowPortLabels on length "64" index "30" ts "1/(1000*10)" frameBased off sampPerFrame "1" } Block { BlockType Outport Name "Spread out" Position [350, 128, 380, 142] IconDisplay "Port number" BusOutputAsStruct off } Block { BlockType Outport Name "PN" Position [350, 183, 380, 197] Port "2" IconDisplay "Port number" BusOutputAsStruct off } Line { SrcBlock "User data" SrcPort 1 DstBlock "Unipolar to\nBipolar\nConverter" DstPort 1 } Line { SrcBlock "Walsh Code\nGenerator" SrcPort 1 DstBlock "Unipolar to\nBipolar\nConverter1" DstPort 1 } Line { SrcBlock "Unipolar to\nBipolar\nConverter" SrcPort 1 Points [15, 0; 0, 30] DstBlock "Product" DstPort 1 } Line { SrcBlock "Unipolar to\nBipolar\nConverter1" SrcPort 1 Points [15, 0] Branch { Points [0, -55] DstBlock "Product" DstPort 2 } Branch { Points [0, -10] DstBlock "PN" DstPort 1 } } Line { SrcBlock "Product" SrcPort 1 Points [20, 0; 0, -5] DstBlock "Spread out" DstPort 1 } } } Block { BlockType Reference Name "User2 data" Ports [0, 1] Position [30, 323, 110, 367] FontName "Arial" SourceBlock "commrandsrc2/Random Integer\nGenerator" SourceType "Random Integer Generator" ShowPortLabels on mul "2" seed "20" Ts "1/1000" frameBased off sampPerFrame "1" orient off } Block { BlockType SubSystem Name "User3" Ports [1, 2] Position [210, 512, 310, 603] BackgroundColor "green" FontSize 10 TreatAsAtomicUnit off MinAlgLoopOccurrences off RTWSystemCode "Auto" System { Name "User3" Location [485, 390, 1141, 690] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" ZoomFactor "100" Block { BlockType Inport Name "User data" Position [35, 93, 65, 107] Port "1" IconDisplay "Port number" LatchInput off } Block { BlockType Product Name "Product" Ports [2, 1] Position [270, 122, 300, 153] InputSameDT off OutDataTypeMode "Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Reference Name "Unipolar to\nBipolar\nConverter" Ports [1, 1] Position [135, 78, 215, 122] SourceBlock "commutil2/Unipolar to\nBipolar\nConverter" SourceType "Unipolar to Bipolar Converter" ShowPortLabels on M "2" polarity "Positive" } Block { BlockType Reference Name "Unipolar to\nBipolar\nConverter1" Ports [1, 1] Position [135, 178, 215, 222] SourceBlock "commutil2/Unipolar to\nBipolar\nConverter" SourceType "Unipolar to Bipolar Converter" ShowPortLabels on M "2" polarity "Positive" } Block { BlockType Reference Name "Walsh Code\nGenerator" Ports [0, 1] Position [25, 178, 110, 222] FontSize 10 SourceBlock "commseqgen2/Walsh Code\nGenerator" SourceType "Walsh Code Generator" ShowPortLabels on length "64" index "15" ts "1/(1000*10)" frameBased off sampPerFrame "1" } Block { BlockType Outport Name "Spread out" Position [350, 128, 380, 142] IconDisplay "Port number" BusOutputAsStruct off } Block { BlockType Outport Name "PN" Position [350, 203, 380, 217] Port "2" IconDisplay "Port number" BusOutputAsStruct off } Line { SrcBlock "User data" SrcPort 1 DstBlock "Unipolar to\nBipolar\nConverter" DstPort 1 } Line { SrcBlock "Walsh Code\nGenerator" SrcPort 1 DstBlock "Unipolar to\nBipolar\nConverter1" DstPort 1 } Line { SrcBlock "Unipolar to\nBipolar\nConverter" SrcPort 1 Points [15, 0; 0, 30] DstBlock "Product" DstPort 1 } Line { SrcBlock "Unipolar to\nBipolar\nConverter1" SrcPort 1 Points [15, 0] Branch { Points [0, -55] DstBlock "Product" DstPort 2 } Branch { Points [0, 10] DstBlock "PN" DstPort 1 } } Line { SrcBlock "Product" SrcPort 1 Points [20, 0; 0, -5] DstBlock "Spread out" DstPort 1 } } } Block { BlockType Reference Name "User3 data" Ports [0, 1] Position [35, 533, 115, 577] FontName "Arial" SourceBlock "commrandsrc2/Random Integer\nGenerator" SourceType "Random Integer Generator" ShowPortLabels on mul "2" seed "37" Ts "1/1000" frameBased off sampPerFrame "1" orient off } Line { SrcBlock "Detector2" SrcPort 1 Points [125, 0; 0, 20] DstBlock "Error Rate\nCalculation1" DstPort 2 } Line { SrcBlock "Error Rate\nCalculation1" SrcPort 1 DstBlock "Display1" DstPort 1 } Line { SrcBlock "User1 data" SrcPort 1 Points [0, 0; 20, 0] Branch { Points [45, 0] DstBlock "User1" DstPort 1 } Branch { Points [0, -60; 915, 0; 0, 45] DstBlock "Error Rate\nCalculation3" DstPort 1 } } Line { SrcBlock "User2 data" SrcPort 1 Points [0, 0; 35, 0] Branch { Points [35, 0] DstBlock "User2" DstPort 1 } Branch { Points [0, -65; 945, 0] DstBlock "Error Rate\nCalculation1" DstPort 1 } } Line { SrcBlock "User1" SrcPort 1 Points [85, 0; 0, 170] DstBlock "Sum" DstPort 1 } Line { SrcBlock "User2" SrcPort 1 Points [70, 0; 0, 45] DstBlock "Sum" DstPort 2 } Line { SrcBlock "User3 data" SrcPort 1 Points [0, 0; 25, 0] Branch { Points [50, 0] DstBlock "User3" DstPort 1 } Branch { Points [0, 110; 900, 0; 0, -110] DstBlock "Error Rate\nCalculation2" DstPort 1 } } Line { SrcBlock "User3" SrcPort 1 Points [195, 0] DstBlock "Sum" DstPort 3 } Line { SrcBlock "Sum" SrcPort 1 DstBlock "AWGN\nChannel" DstPort 1 } Line { SrcBlock "AWGN\nChannel" SrcPort 1 Points [0, 0; 25, 0] Branch { DstBlock "Detector2" DstPort 1 } Branch { Points [0, -185] DstBlock "Detector1" DstPort 1 } Branch { Points [0, 205] DstBlock "Detector3" DstPort 1 } } Line { SrcBlock "User2" SrcPort 2 Points [30, 0; 0, 100; 415, 0; 0, -95] DstBlock "Detector2" DstPort 2 } Line { SrcBlock "User3" SrcPort 2 DstBlock "Detector3" DstPort 2 } Line { SrcBlock "User1" SrcPort 2 Points [505, 0] DstBlock "Detector1" DstPort 2 } Line { SrcBlock "Detector1" SrcPort 1 Points [80, 0; 0, 20] DstBlock "Error Rate\nCalculation3" DstPort 2 } Line { SrcBlock "Detector3" SrcPort 1 Points [80, 0; 0, 10] DstBlock "Error Rate\nCalculation2" DstPort 2 } Line { SrcBlock "Error Rate\nCalculation3" SrcPort 1 DstBlock "Display3" DstPort 1 } Line { SrcBlock "Error Rate\nCalculation2" SrcPort 1 DstBlock "Display2" DstPort 1 } Annotation { Name "CDMA with integration and damp" Position [207, 50] BackgroundColor "[0.894118, 0.894118, 0.894118]" DropShadow on FontName "Arial" FontSize 18 FontWeight "bold" } } } # Finite State Machines # # Stateflow Version 6.0 (R14) dated Apr 30 2004, 06:19:14 # # Stateflow { machine { id 1 name "dsss_awgn2" created "12-May-2007 17:21:44" isLibrary 0 firstTarget 2 sfVersion 60014000.000006 } target { id 2 name "sfun" description "Default Simulink S-Function Target." machine 1 linkNode [1 0 0] } }