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

📄 wcdmaphlayer3.mdl

📁 The UMTS Physical Layer model consists of an end-to-end (transmitter-to-receiver) simulation of the
💻 MDL
📖 第 1 页 / 共 5 页
字号:
      SampleTime	      "-1"
    }
    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		      DigitalClock
      SampleTime	      "1"
    }
    Block {
      BlockType		      Display
      Format		      "short"
      Decimation	      "10"
      Floating		      off
      SampleTime	      "-1"
    }
    Block {
      BlockType		      EnablePort
      StatesWhenEnabling      "held"
      ShowOutputPort	      off
      ZeroCross		      on
    }
    Block {
      BlockType		      From
      IconDisplay	      "Tag"
    }
    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		      Goto
      IconDisplay	      "Tag"
    }
    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		      Reference
    }
    Block {
      BlockType		      RelationalOperator
      Operator		      ">="
      InputSameDT	      on
      LogicOutDataTypeMode    "Logical (see Configuration Parameters: Optimiza"
"tion)"
      LogicDataType	      "uint(8)"
      ZeroCross		      on
      SampleTime	      "-1"
    }
    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		      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"
    }
    Block {
      BlockType		      TriggerPort
      TriggerType	      "rising"
      StatesWhenEnabling      "inherit"
      ShowOutputPort	      off
      OutputDataType	      "auto"
      SampleTimeType	      "triggered"
      SampleTime	      "1"
      ZeroCross		      on
    }
  }
  AnnotationDefaults {
    HorizontalAlignment	    "center"
    VerticalAlignment	    "middle"
    ForegroundColor	    "black"
    BackgroundColor	    "white"
    DropShadow		    off
    FontName		    "Comic Sans MS"
    FontSize		    12
    FontWeight		    "normal"
    FontAngle		    "normal"
  }
  LineDefaults {
    FontName		    "Helvetica"
    FontSize		    9
    FontWeight		    "normal"
    FontAngle		    "normal"
  }
  System {
    Name		    "wcdmaphlayer3"
    Location		    [2, 82, 1014, 722]
    Open		    on
    ModelBrowserVisibility  off
    ModelBrowserWidth	    256
    ScreenColor		    "white"
    PaperOrientation	    "landscape"
    PaperPositionMode	    "auto"
    PaperType		    "usletter"
    PaperUnits		    "inches"
    ZoomFactor		    "100"
    ReportName		    "simulink-default.rpt"
    Block {
      BlockType		      Display
      Name		      "BER Measurements"
      Ports		      [1]
      Position		      [810, 491, 885, 549]
      ShowName		      off
      FontSize		      9
      Decimation	      "1"
    }
    Block {
      BlockType		      Display
      Name		      "BER Measurements1"
      Ports		      [1]
      Position		      [810, 551, 885, 609]
      ShowName		      off
      FontSize		      9
      Decimation	      "1"
    }
    Block {
      BlockType		      Reference
      Name		      "BLER Calculation"
      Ports		      [2, 1]
      Position		      [705, 445, 790, 480]
      ShowName		      off
      SourceBlock	      "wcdmalib/WCDMA Common/BLER Calculation"
      SourceType	      "BLER Calculation"
      ShowPortLabels	      "on"
      trBlkSetSize	      "trBlkSetSize"
      tti		      "tti"
      numBitsDelay	      "totalBitsDelay"
    }
    Block {
      BlockType		      Reference
      Name		      "Bernoulli Binary\nGenerator"
      Ports		      [0, 1]
      Position		      [75, 68, 155, 112]
      SourceBlock	      "commrandsrc2/Bernoulli Binary\nGenerator"
      SourceType	      "Bernoulli Binary Generator"
      ShowPortLabels	      on
      P			      "0.5"
      seed		      "[123456]"
      Ts		      "[20/244000]"
      frameBased	      on
      sampPerFrame	      "[244]"
      orient		      off
      Port {
	PortNumber		1
	Name			"dtch"
	RTWStorageClass		"Auto"
	DataLoggingNameMode	"SignalName"
	ShowSigGenPortName	on
      }
    }
    Block {
      BlockType		      Reference
      Name		      "Bernoulli Binary\nGenerator1"
      Ports		      [0, 1]
      Position		      [85, 148, 165, 192]
      SourceBlock	      "commrandsrc2/Bernoulli Binary\nGenerator"
      SourceType	      "Bernoulli Binary Generator"
      ShowPortLabels	      on
      P			      "0.5"
      seed		      "[654321]"
      Ts		      "[40/100000]"
      frameBased	      on
      sampPerFrame	      "[100]"
      orient		      off
      Port {
	PortNumber		1
	Name			"dcch"
	RTWStorageClass		"Auto"
	DataLoggingNameMode	"SignalName"
	ShowSigGenPortName	on
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "Channel model1"
      Ports		      [1, 1]
      Position		      [821, 240, 969, 305]
      Orientation	      "down"
      NamePlacement	      "alternate"
      TreatAsAtomicUnit	      off
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      System {
	Name			"Channel model1"
	Location		[322, 521, 792, 615]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "ChIn"
	  Position		  [25, 43, 55, 57]
	  Port			  "1"
	  IconDisplay		  "Port number"
	  LatchInput		  off
	}
	Block {
	  BlockType		  Reference
	  Name			  "AWGN\nChannel"
	  Ports			  [1, 1]
	  Position		  [270, 30, 350, 70]
	  ShowName		  off
	  SourceBlock		  "commchan2/AWGN\nChannel"
	  SourceType		  "AWGN Channel"
	  ShowPortLabels	  "on"
	  seed			  "1237"
	  noiseMode		  "Signal to noise ratio  (Es/No)"
	  EbNodB		  "10"
	  EsNodB		  "snrdB"
	  SNRdB			  "snrdB"
	  bitsPerSym		  "1"
	  Ps			  "1"
	  Tsym			  "1/3.84e6"
	  variance		  "1"
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Multipath Rayleigh Fading Channel"
	  Ports			  [1, 1]
	  Position		  [125, 30, 205, 70]
	  NamePlacement		  "alternate"
	  ShowName		  off
	  AncestorBlock		  "commchan2/Multipath Rayleigh\nFading Channe"
"l"
	  TreatAsAtomicUnit	  off
	  MinAlgLoopOccurrences	  off
	  RTWSystemCode		  "Auto"
	  MaskType		  "Multipath Rayleigh Fading Channel"
	  MaskDescription	  "Multipath Rayleigh fading channel for compl"
"ex baseband signals.\n\nMultiplies the input signal with samples of a Rayleig"
"h distributed complex random process. The spectrum of the Rayleigh process is"
" given by the Jakes PSD.\n\nThe number of paths equals the length of either t"
"he 'Delay vector' or 'Gain vector' parameters."
	  MaskHelp		  "helpview(commbhelp)"
	  MaskPromptString	  "Maximum Doppler shift (Hz):|Sample time:|De"
"lay vector (s):|Gain vector (dB):|Normalize gain vector to 0 dB overall gain|"
"Initial seed:"
	  MaskStyleString	  "edit,edit,edit,edit,checkbox,edit"
	  MaskTunableValueString  "on,on,on,on,on,on"
	  MaskCallbackString	  "|||||"
	  MaskEnableString	  "on,on,on,on,on,on"
	  MaskVisibilityString	  "on,on,on,on,on,on"
	  MaskToolTipString	  "on,on,on,on,on,on"
	  MaskVarAliasString	  ",,,,,"
	  MaskVariables		  "Fd=@1;simTs=@2;delayVec=@3;gainVecdB=@4;nor"
"mGain=@5;Seed=@6;"
	  MaskInitialization	  "commblkrayleighchan2(gcb);"
	  MaskDisplay		  "plot(0,0,100,100,[05 15 10 10 05 10 18 14 1"
"3 7.5 13 41 44 47 50 53 57 59 100-[13 7.5 13 14 18 10 5 10 10 15 5]],[70 70 7"
"0 85 92 85 79 82 90 88.5 90 90 87 93 87 93 87 90 90 88.5 90 82 79 85 92 85 70"
" 70 70]);\ndisp('Multipath\\nRayleigh Fading')"
	  MaskSelfModifiable	  on
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	  MaskValueString	  "dopplerFreq|1/(overSampling*3.84e6)|fingerP"
"hases|fingerPowers|off|12345"
	  MaskTabNameString	  ",,,,,"
	  System {
	    Name		    "Multipath Rayleigh Fading Channel"
	    Location		    [520, 342, 841, 446]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "In1"
	      Position		      [25, 38, 55, 52]
	      Port		      "1"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "Multipath Fading\nChannel"
	      Ports		      [1, 1]
	      Position		      [85, 23, 165, 67]
	      TreatAsAtomicUnit	      off
	      MinAlgLoopOccurrences   off
	      RTWSystemCode	      "Auto"
	      MaskType		      "Multipath Fading Channel"
	      MaskDescription	      "Multipath fading channel for complex ba"
"seband signals.\n\nMultiplies the input signal with samples of a complex rand"
"om process. The spectrum of the random process is given by the Jakes PSD, whe"
"re the Doppler frequency parameter determines the maximum Doppler frequency. "
"The K-factor parameter specifies the linear ratio of power in the direct path"
" to the diffuse power. \n\nThe number of paths equals the length of either th"
"e 'Delay vector' or 'Gain vector' parameters."
	      MaskPromptString	      "Doppler frequency (Hz):|Line-of-sight D"
"oppler frequency (Hz):|K-factor:|Sample time (sec):|Delay vector (sec):|Gain "
"vector (dB):|Normalize gain vector to 0 dB overall gain|Initial seed:"
	      MaskStyleString	      "edit,edit,edit,edit,edit,edit,checkbox,"
"edit"
	      MaskTunableValueString  "on,on,on,on,on,on,on,on"
	      MaskCallbackString      "|||||||"
	      MaskEnableString	      "on,on,on,on,on,on,on,on"
	      MaskVisibilityString    "on,on,on,on,on,on,on,on"
	      MaskToolTipString	      "on,on,on,on,on,on,on,on"
	      MaskVarAliasString      ",,,,,,,"
	      MaskVariables	      "Fd=@1;LOSFd=@2;K=@3;simTs=@4;delayVec=@"
"5;gainVecdB=@6;normGain=@7;Seed=@8;"
	      MaskInitialization      "[ecode,emsg,params] = commblkfadingchan"
"2(gcb,Fd,LOSFd,K,simTs,delayVec,gainVecdB,normGain,Seed);\nif(ecode==1)\n    "
"error(emsg);\nelseif(ecode==2)\n    warning(emsg);\nend;"
	      MaskDisplay	      "plot(0,0,100,100,[05 15 10 10 05 10 18 "
"14 13 7.5 13 41 44 47 50 53 57 59 100-[13 7.5 13 14 18 10 5 10 10 15 5]],[70 "
"70 70 85 92 85 79 82 90 88.5 90 90 87 93 87 93 87 90 90 88.5 90 82 79 85 92 8"
"5 70 70 70]);\ndisp('Multipath\\nFading')"
	      MaskSelfModifiable      on
	      MaskIconFrame	      on
	      MaskIconOpaque	      on

⌨️ 快捷键说明

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