⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mmse_mpsk.mdl

📁 This an adaptive receiver for a direct-sequence spread spectrum (DS-SS) system over an AWGN channel.
💻 MDL
📖 第 1 页 / 共 3 页
字号:
Model {
  Name			  "mmse_mpsk"
  Version		  4.00
  Description		  "Simulation for a single code and multiple user down"
"link 
\nwithout coding. Major blocks are from block library umts_blks.
\n
\n"
  SampleTimeColors	  on
  LibraryLinkDisplay	  "none"
  WideLines		  off
  ShowLineDimensions	  on
  ShowPortDataTypes	  off
  ShowStorageClass	  off
  ExecutionOrder	  off
  RecordCoverage	  off
  CovPath		  "/"
  CovSaveName		  "covdata"
  CovMetricSettings	  "dw"
  CovNameIncrementing	  off
  CovHtmlReporting	  on
  BlockNameDataTip	  off
  BlockParametersDataTip  on
  BlockDescriptionStringDataTip	off
  ToolBar		  on
  StatusBar		  off
  BrowserShowLibraryLinks off
  BrowserLookUnderMasks	  off
  PreLoadFcn		  "Tb=0.0001;M=4;PG=15;Tc=Tb/PG;db=20;"
  Created		  "Wed Mar 24 13:16:54 1999"
  Creator		  "Panson Poon"
  UpdateHistory		  "UpdateHistoryNever"
  ModifiedByFormat	  "%<Auto>"
  LastModifiedBy	  "ckpoon"
  ModifiedDateFormat	  "%<Auto>"
  LastModifiedDate	  "Fri Jan 25 09:59:52 2002"
  ModelVersionFormat	  "1.%<AutoIncrement:70>"
  ConfigurationManager	  "none"
  SimParamPage		  "RTW"
  StartTime		  "0.0"
  StopTime		  "9999999999999999999"
  SolverMode		  "SingleTasking"
  Solver		  "FixedStepDiscrete"
  RelTol		  "1e-3"
  AbsTol		  "auto"
  Refine		  "1"
  MaxStep		  "auto"
  MinStep		  "auto"
  MaxNumMinSteps	  "-1"
  InitialStep		  "auto"
  FixedStep		  "auto"
  MaxOrder		  5
  OutputOption		  "RefineOutputTimes"
  OutputTimes		  "[]"
  LoadExternalInput	  off
  ExternalInput		  "[t, u]"
  SaveTime		  off
  TimeSaveName		  "tout"
  SaveState		  off
  StateSaveName		  "xout"
  SaveOutput		  off
  OutputSaveName	  "yout"
  LoadInitialState	  off
  InitialState		  "xInitial"
  SaveFinalState	  off
  FinalStateName	  "xFinal"
  SaveFormat		  "Array"
  LimitDataPoints	  off
  MaxDataPoints		  "1000"
  Decimation		  "1"
  AlgebraicLoopMsg	  "warning"
  MinStepSizeMsg	  "warning"
  UnconnectedInputMsg	  "warning"
  UnconnectedOutputMsg	  "warning"
  UnconnectedLineMsg	  "warning"
  InheritedTsInSrcMsg	  "warning"
  SingleTaskRateTransMsg  "none"
  MultiTaskRateTransMsg	  "error"
  IntegerOverflowMsg	  "warning"
  CheckForMatrixSingularity "none"
  UnnecessaryDatatypeConvMsg "none"
  Int32ToFloatConvMsg	  "warning"
  InvalidFcnCallConnMsg	  "error"
  SignalLabelMismatchMsg  "none"
  LinearizationMsg	  "none"
  VectorMatrixConversionMsg "none"
  SfunCompatibilityCheckMsg "none"
  BlockPriorityViolationMsg "warning"
  ArrayBoundsChecking	  "none"
  ConsistencyChecking	  "none"
  ZeroCross		  on
  Profile		  off
  SimulationMode	  "normal"
  RTWSystemTargetFile	  "rsim.tlc"
  RTWOptions		  " -aEnforceIntegerDowncast=0 -aFoldNonRolledExpr=0 -"
"aForceParamTrailComments=0 -aGenerateComments=1 -aIncHierarchyInIds=0 -aInlin"
"eInvariantSignals=0 -aInlineParameters=0 -aLocalBlockOutputs=0 -aRTWVerbose=1"
" -aRollThreshold=5 -aShowEliminatedStatements=1"
  RTWInlineParameters	  off
  RTWRetainRTWFile	  off
  RTWTemplateMakefile	  "rsim_default_tmf"
  RTWMakeCommand	  "make_rtw"
  RTWGenerateCodeOnly	  off
  TLCProfiler		  off
  TLCDebug		  off
  TLCCoverage		  off
  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
  OptimizeBlockIOStorage  off
  BufferReuse		  on
  ParameterPooling	  on
  BlockReductionOpt	  off
  RTWExpressionDepthLimit 5
  BooleanDataType	  off
  BlockDefaults {
    Orientation		    "right"
    ForegroundColor	    "black"
    BackgroundColor	    "white"
    DropShadow		    off
    NamePlacement	    "normal"
    FontName		    "Helvetica"
    FontSize		    10
    FontWeight		    "normal"
    FontAngle		    "normal"
    ShowName		    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		    "mmse_mpsk"
    Location		    [271, 166, 1017, 510]
    Open		    on
    ModelBrowserVisibility  off
    ModelBrowserWidth	    212
    ScreenColor		    "automatic"
    PaperOrientation	    "landscape"
    PaperPositionMode	    "auto"
    PaperType		    "a4letter"
    PaperUnits		    "inches"
    ZoomFactor		    "100"
    ReportName		    "simulink-default.rpt"
    Block {
      BlockType		      Reference
      Name		      "AWGN\nChannel"
      Ports		      [1, 1]
      Position		      [115, 34, 195, 76]
      SourceBlock	      "commchan2/AWGN\nChannel"
      SourceType	      "AWGN Channel"
      seed		      "1237"
      noiseMode		      "Signal to noise ratio  (Es/No)"
      EsNodB		      "30"
      SNRdB		      "10"
      Ps		      "1"
      Tsym		      "Tb"
      variance		      "1"
    }
    Block {
      BlockType		      ComplexToMagnitudeAngle
      Name		      "Complex to\nMagnitude"
      Ports		      [1, 1]
      Position		      [275, 140, 305, 170]
      Output		      "Magnitude"
    }
    Block {
      BlockType		      Reference
      Name		      "DSP\nConstant"
      Ports		      [0, 1]
      Position		      [205, 85, 225, 105]
      ShowName		      off
      SourceBlock	      "dspsrcs3/DSP\nConstant"
      SourceType	      "DSP Constant"
      Value		      "0"
      InterpretAs1D	      off
      SampleMode	      "Discrete"
      Ts		      "Tb"
      FramebasedOutput	      off
    }
    Block {
      BlockType		      SubSystem
      Name		      "Decoding"
      Ports		      [1, 1]
      Position		      [440, 46, 485, 74]
      NamePlacement	      "alternate"
      ShowName		      off
      ShowPortLabels	      on
      TreatAsAtomicUnit	      off
      RTWSystemCode	      "Auto"
      RTWFcnNameOpts	      "Auto"
      RTWFileNameOpts	      "Auto"
      System {
	Name			"Decoding"
	Location		[642, 545, 1040, 723]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"automatic"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "In1"
	  Position		  [15, 58, 45, 72]
	  Port			  "1"
	  LatchInput		  off
	  Interpolate		  on
	}
	Block {
	  BlockType		  Reference
	  Name			  "Frame Status\nConversion"
	  Ports			  [1, 1]
	  Position		  [175, 50, 235, 80]
	  SourceBlock		  "dspsigattribs/Frame Status\nConversion"
	  SourceType		  "Frame Status Conversion"
	  growRefPort		  off
	  outframe		  "Frame-based"
	}
	Block {
	  BlockType		  Reference
	  Name			  "M-PSK\nDemodulator\nBaseband"
	  Ports			  [1, 1]
	  Position		  [80, 40, 155, 90]
	  SourceBlock		  "commdigbbndpm2/M-PSK\nDemodulator\nBaseband"
	  SourceType		  "M-PSK Demodulator Baseband"
	  M			  "M"
	  OutType		  "Bit"
	  Dec			  "Gray"
	  Ph			  "pi/M"
	  numSamp		  "1"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Unbuffer"
	  Ports			  [1, 1]
	  Position		  [270, 41, 320, 89]
	  SourceBlock		  "dspbuff3/Unbuffer"
	  SourceType		  "Unbuffer"
	  ic			  "0"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out1"
	  Position		  [350, 58, 380, 72]
	  Port			  "1"
	  OutputWhenDisabled	  "held"
	  InitialOutput		  "[]"
	}
	Line {
	  SrcBlock		  "In1"
	  SrcPort		  1
	  DstBlock		  "M-PSK\nDemodulator\nBaseband"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "M-PSK\nDemodulator\nBaseband"
	  SrcPort		  1
	  DstBlock		  "Frame Status\nConversion"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Unbuffer"
	  SrcPort		  1
	  DstBlock		  "Out1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Frame Status\nConversion"
	  SrcPort		  1
	  DstBlock		  "Unbuffer"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      Reference
      Name		      "Error Rate Calculation"
      Ports		      [2, 1]
      Position		      [520, 21, 605, 74]
      SourceBlock	      "commsink2/Error Rate Calculation"
      SourceType	      "Error Rate Calculation"
      N			      "2*log2(M)"
      st_delay		      "2*log2(M)"
      cp_mode		      "Entire frame"
      subframe		      "[]"
      PMode		      "Port"
      WsName		      "ErrorVec"
      RsMode2		      off
      stop		      off
      numErr		      "100"
      maxBits		      "1e6"
    }
    Block {
      BlockType		      Scope
      Name		      "Error Signal"
      Ports		      [1]
      Position		      [335, 139, 365, 171]
      Floating		      off
      Location		      [846, 722, 1170, 961]
      Open		      off
      NumInputPorts	      "1"
      TickLabels	      "OneTimeTick"
      ZoomMode		      "on"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      List {
	ListType		SelectedSignals
	axes1			""
      }
      Grid		      "on"
      TimeRange		      "0.01"
      YMin		      "0"
      YMax		      "2"
      SaveToWorkspace	      off
      SaveName		      "ScopeData1"
      DataFormat	      "StructureWithTime"
      LimitDataPoints	      on
      MaxDataPoints	      "5000"
      Decimation	      "1"
      SampleInput	      off
      SampleTime	      "0"
    }
    Block {
      BlockType		      From
      Name		      "From1"
      Position		      [440, 27, 490, 43]
      ShowName		      off
      CloseFcn		      "tagdialog Close"
      GotoTag		      "TxData"
    }
    Block {
      BlockType		      From
      Name		      "From3"
      Position		      [440, 257, 525, 273]
      Orientation	      "left"
      ShowName		      off
      CloseFcn		      "tagdialog Close"
      GotoTag		      "TrainingData"
    }
    Block {
      BlockType		      Reference
      Name		      "Integer Delay1"
      Ports		      [1, 1]
      Position		      [370, 247, 415, 283]
      Orientation	      "left"
      ShowName		      off
      SourceBlock	      "dspsigops/Integer Delay"
      SourceType	      "Integer Delay"
      delay		      "1"
      ic		      "0"
    }
    Block {
      BlockType		      SubSystem
      Name		      "LMS\nAdaptive DS-SS Receiver"
      Ports		      [3, 2]
      Position		      [275, 44, 360, 106]
      AncestorBlock	      "dspadpt3/LMS\nAdaptive Filter"
      ShowPortLabels	      on
      TreatAsAtomicUnit	      off
      RTWSystemCode	      "Auto"
      RTWFcnNameOpts	      "Auto"
      RTWFileNameOpts	      "Auto"
      MaskType		      "LMS Adaptive Filter (modified to gear-shifting "
"step-size control and multi-rate operation)"
      MaskDescription	      "Least mean-square (LMS) algorithm for adaptive "
"FIR filtering of input signal.  Energy normalization may optionally be disabl"
"ed. If Adapt input checkbox is enabled, and the Adapt input port is zero, the"
" algorithm stops adapting the filter coefficients.\n\nThis block is modified "
"for gear shifting step-size control and multi-rate operation. The input sampl"
"e rate is N times of the output sample rate."
      MaskHelp		      "web(dspbhelp);"
      MaskPromptString	      "Multi-rate factor :|FIR filter length:|Step-siz"
"e, mu:|Initial value of filter taps:|Leakage factor (0 to 1):|Use normalizati"
"on|Adapt input"
      MaskStyleString	      "edit,edit,edit,edit,edit,checkbox,checkbox"
      MaskTunableValueString  "on,off,on,off,on,off,off"
      MaskCallbackString      "||||||"
      MaskEnableString	      "on,on,on,on,on,on,on"
      MaskVisibilityString    "on,on,on,on,on,on,on"
      MaskToolTipString	      "on,on,on,on,on,on,on"
      MaskVariables	      "N=@1;n=@2;mu=@3;ic=@4;leakage=@5;normalized=@6;"
"Adapt=@7;"
      MaskInitialization      "if normalized, s='nLMS'; else s='LMS'; end\ndsp"
"blkadpt('init');\n"
      MaskDisplay	      "disp(s);"
      MaskSelfModifiable      on
      MaskIconFrame	      on
      MaskIconOpaque	      off
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      MaskValueString	      "15|15|[0.1 0.1]|0.0|1.0|on|off"
      MaskVariableAliases     ",,,,,,"
      System {
	Name			"LMS\nAdaptive DS-SS Receiver"
	Location		[104, 332, 729, 545]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "In"
	  Position		  [25, 40, 45, 60]
	  Port			  "1"
	  LatchInput		  off
	  Interpolate		  on
	}
	Block {
	  BlockType		  Inport
	  Name			  "Err"
	  Position		  [25, 80, 45, 100]
	  Port			  "2"
	  LatchInput		  off
	  Interpolate		  on
	}
	Block {
	  BlockType		  Inport
	  Name			  "Step-size"
	  Position		  [25, 160, 45, 180]
	  Port			  "3"
	  LatchInput		  off
	  Interpolate		  on
	}
	Block {
	  BlockType		  Constant
	  Name			  "Adapt"
	  Position		  [25, 115, 45, 135]
	  Value			  "1"
	  VectorParams1D	  on
	}
	Block {
	  BlockType		  Reference
	  Name			  "Check Signal\nAttributes"
	  Ports			  [1, 1]
	  Position		  [110, 35, 170, 65]
	  ShowName		  off
	  SourceBlock		  "dspsigattribs/Check Signal\nAttributes"
	  SourceType		  "Check Signal Attributes"
	  SigAttribCheckMethod	  "Does not match attributes exactly"
	  Complexity		  "Ignore"
	  Frame			  "Sample-based"
	  DimsCheckMethod	  "Is..."
	  Dimensions		  "Scalar (1-D or 2-D)"
	  DatatypeCheckMethod	  "Ignore"

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -