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

📄 cdma2k.mdl

📁 CDMA20001X的仿真平台,各链路性能研究,建模方法
💻 MDL
📖 第 1 页 / 共 5 页
字号:
	    }
	    Line {
	      SrcBlock		      "Input"
	      SrcPort		      1
	      DstBlock		      "Repeat"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Repeat"
	      SrcPort		      1
	      DstBlock		      "Unbuffer"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Unbuffer"
	      SrcPort		      1
	      DstBlock		      "Unipolar to\nBipolar\nConverter"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Unipolar to\nBipolar\nConverter"
	      SrcPort		      1
	      DstBlock		      "Spread"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Hadamard\nCode Generator"
	      SrcPort		      1
	      Points		      [35, 0; 0, -55]
	      DstBlock		      "Spread"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Relative Gain"
	      SrcPort		      1
	      Points		      [470, 0; 0, 35]
	      DstBlock		      "Power Control"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Power Control"
	      SrcPort		      1
	      DstBlock		      "Output"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Frame Status\nConversion"
	      SrcPort		      1
	      DstBlock		      "Power Control"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Spread"
	      SrcPort		      1
	      DstBlock		      "Frame Status\nConversion"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Power Control"
	  Ports			  [0, 1]
	  Position		  [510, 13, 560, 57]
	  TreatAsAtomicUnit	  off
	  MaskDisplay		  "disp('1')"
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	  System {
	    Name		    "Power Control"
	    Location		    [39, 319, 506, 473]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "A4"
	    PaperUnits		    "centimeters"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Constant
	      Name		      "Constant"
	      Position		      [25, 30, 55, 60]
	    }
	    Block {
	      BlockType		      ZeroOrderHold
	      Name		      "Zero-Order\nHold"
	      Position		      [95, 26, 130, 64]
	      SampleTime	      "20e-3/16"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Out1"
	      Position		      [255, 38, 285, 52]
	    }
	    Line {
	      SrcBlock		      "Constant"
	      SrcPort		      1
	      DstBlock		      "Zero-Order\nHold"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Zero-Order\nHold"
	      SrcPort		      1
	      DstBlock		      "Out1"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  Outport
	  Name			  "Frame Data"
	  Position		  [770, 68, 800, 82]
	}
	Line {
	  SrcBlock		  "In1"
	  SrcPort		  1
	  DstBlock		  "CRC"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "CRC"
	  SrcPort		  1
	  DstBlock		  "Encoder"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Encoder"
	  SrcPort		  1
	  DstBlock		  "Interleaver"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Orthogonal Spreading"
	  SrcPort		  1
	  DstBlock		  "Frame Data"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Interleaver"
	  SrcPort		  1
	  Points		  [10, 0]
	  Branch {
	    DstBlock		    "Orthogonal Spreading"
	    DstPort		    2
	  }
	  Branch {
	    Points		    [0, 75]
	    DstBlock		    "Goto"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Power Control"
	  SrcPort		  1
	  Points		  [5, 0; 0, 20]
	  DstBlock		  "Orthogonal Spreading"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      Reference
      Name		      "FIR\nInterpolation"
      Ports		      [1, 1]
      Position		      [922, 415, 988, 465]
      Orientation	      "down"
      SourceBlock	      "dspmlti3/FIR\nInterpolation"
      SourceType	      "FIR Interpolation"
      h			      "[-0.025288315,-0.034167931,-0.035752323,-0.0167"
"33702,0.021602514,0.064938487,0.091002137,0.081894974,0.037071157,-0.02199807"
"4,-0.060716277,-0.051178658,0.007874526,0.084368728,0.126869306,0.094528345,-"
"0.012839661,-0.143477028,-0.211829088,-0.140513128,0.094601918,0.441387140, 0"
".785875640,1.0,1.0,0.785875640,0.441387140,0.094601918,-0.140513128,-0.211829"
"088,-0.143477028,-0.012839661,0.094528345,0.126869306,0.084368728,0.007874526"
",-0.051178658,-0.060716277,-0.021998074,0.037071157,0.081894974,0.091002137,0"
".064938487,0.021602514,-0.016733702,-0.035752323,-0.034167931,-0.025288315]"
      L			      "1"
      framing		      "Maintain input frame rate"
      outputBufInitCond	      "0"
    }
    Block {
      BlockType		      From
      Name		      "From"
      Position		      [455, 281, 495, 309]
      CloseFcn		      "tagdialog Close"
      GotoTag		      "A"
    }
    Block {
      BlockType		      From
      Name		      "From2"
      Position		      [455, 326, 495, 354]
      CloseFcn		      "tagdialog Close"
      GotoTag		      "B"
    }
    Block {
      BlockType		      SubSystem
      Name		      "Model Initialization"
      Ports		      []
      Position		      [70, 33, 240, 97]
      AttributesFormatString  "%<chModel>"
      TreatAsAtomicUnit	      off
      MaskType		      "Model Initialization cdma 2000 MS"
      MaskPromptString	      "Radio Configuration|Bit Rate|Frame Length|Frame"
" Duration|Channel Model|EcN0 (in dB):|Maximum Doppler Frequency shift (in Hz)"
":|Multipath Profile - Delay Vector (s):|Multipath Profile - Gain Vector (dB):"
      MaskStyleString	      "edit,edit,edit,edit,popup(No Channel|AWGN Chann"
"el|Multipath Fading Channel),edit,edit,edit,edit"
      MaskTunableValueString  "on,on,on,on,on,on,on,on,on"
      MaskCallbackString      "||||idx = strmatch('EcN0',get_param(gcb,'MaskNa"
"mes'));\nidx2 = strmatch('dopplerFreq',get_param(gcb,'MaskNames'));\nidx3 = s"
"trmatch('delayVector',get_param(gcb,'MaskNames'));\nidx4 = strmatch('gainVect"
"or',get_param(gcb,'MaskNames'));\n\nen = get_param(gcb,'MaskEnables');\nvis ="
" get_param(gcb,'MaskVisibilities');\n\nif(strcmp(get_param(gcb,'chModel'),'No"
" Channel'))\n	en{idx} = 'off';\n	[vis{[idx2 idx3 idx4]}] = deal"
"('off');\nelseif (strcmp(get_param(gcb,'chModel'),'AWGN Channel'))\n	e"
"n{idx} = 'on';\n	[vis{[idx2 idx3 idx4]}] = deal('off');\nelse\n"
"	en{idx} = 'on';\n	[vis{[idx2 idx3 idx4]}] = deal('on');\n\nend"
"\n\nset_param(gcb,'MaskEnables',en,'MaskVisibilities',vis );\nset_param([bdro"
"ot '/Channel Model/Channel1'],'BlockChoice',get_param(gcb,'chModel'));\n\ncle"
"ar idx;\nclear idx2;\nclear idx3;\nclear idx4;\nclear en;\nclear vis;||||"
      MaskEnableString	      "on,on,on,on,on,off,on,on,on"
      MaskVisibilityString    "on,on,on,on,on,on,off,off,off"
      MaskToolTipString	      "on,on,on,on,on,on,on,on,on"
      MaskVarAliasString      ",,,,,,,,"
      MaskVariables	      "xRC=@1;xBitRate=@2;xFrameLength=@3;xFrameDurati"
"on=@4;chModel=@5;EcN0=@6;dopplerFreq=@7;delayVector=@8;gainVector=@9;"
      MaskInitialization      "assignin('base','mRC',xRC);\nassignin('base','m"
"FrameDuration',xFrameDuration);\nassignin('base','mBitRate',xBitRate);\nassig"
"nin('base','mFrameLength',xFrameLength);\n\nassignin('base','EcN0',EcN0);\n\n"
"fingerEnables = length(delayVector);\nfingerEnables = [ones(1,fingerEnables) "
"zeros(1,4-fingerEnables)];\nfingerPhasesTicks = [delayVector zeros(1,4-length"
"(delayVector))];\nfingerPhasesTicks = round(fingerPhasesTicks*1.2288e6*4);\n"
"\n%-- Multipath Fading\nassignin('base','dopplerFreq',dopplerFreq);\nassignin"
"('base','delayVector',delayVector);\nassignin('base','fingerEnables',fingerEn"
"ables);\nassignin('base','fingerPhasesTicks',fingerPhasesTicks);\nassignin('b"
"ase','gainVector',gainVector);"
      MaskDisplay	      "disp('Model Initialization\\n\\n(cdma 2000 MS)'"
")"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      MaskValueString	      "3|9600|172|20|No Channel|0|486|[0 260e-9 521e-9"
" 781e-9]|[0 -3 -6 -9]"
      System {
	Name			"Model Initialization"
	Location		[4, 213, 957, 515]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	ZoomFactor		"100"
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "Modulation"
      Ports		      [1, 1]
      Position		      [500, 168, 595, 272]
      TreatAsAtomicUnit	      off
      MaskType		      "Modulation(cdma 2000 MS)"
      MaskDescription	      "Modulate the reverse channel frames."
      MaskDisplay	      "disp('Modulation\\n\\n(cdma 2000 MS)')"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      System {
	Name			"Modulation"
	Location		[65, 143, 972, 698]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "FCH"
	  Position		  [45, 298, 75, 312]
	}
	Block {
	  BlockType		  Constant
	  Name			  "Constant3"
	  Position		  [560, 329, 580, 351]
	  NamePlacement		  "alternate"
	  ShowName		  off
	}
	Block {
	  BlockType		  Reference
	  Name			  "FIR\nInterpolation"
	  Ports			  [1, 1]
	  Position		  [425, 84, 490, 136]
	  SourceBlock		  "dspmlti3/FIR\nInterpolation"
	  SourceType		  "FIR Interpolation"
	  h			  "[-0.025288315,-0.034167931,-0.035752323,-0."
"016733702,0.021602514,0.064938487,0.091002137,0.081894974,0.037071157,-0.0219"
"98074,-0.060716277,-0.051178658,0.007874526,0.084368728,0.126869306,0.0945283"
"45,-0.012839661,-0.143477028,-0.211829088,-0.140513128,0.094601918,0.44138714"
"0, 0.785875640,1.0,1.0,0.785875640,0.441387140,0.094601918,-0.140513128,-0.21"
"1829088,-0.143477028,-0.012839661,0.094528345,0.126869306,0.084368728,0.00787"
"4526,-0.051178658,-0.060716277,-0.021998074,0.037071157,0.081894974,0.0910021"
"37,0.064938487,0.021602514,-0.016733702,-0.035752323,-0.034167931,-0.02528831"
"5]"
	  L			  "4"
	  framing		  "Maintain input frame rate"
	  outputBufInitCond	  "0"
	}
	Block {
	  BlockType		  Reference
	  Name			  "FIR\nInterpolation1"
	  Ports			  [1, 1]
	  Position		  [425, 269, 490, 321]
	  SourceBlock		  "dspmlti3/FIR\nInterpolation"
	  SourceType		  "FIR Interpolation"
	  h			  "[-0.025288315,-0.034167931,-0.035752323,-0."
"016733702,0.021602514,0.064938487,0.091002137,0.081894974,0.037071157,-0.0219"
"98074,-0.060716277,-0.051178658,0.007874526,0.084368728,0.126869306,0.0945283"
"45,-0.012839661,-0.143477028,-0.211829088,-0.140513128,0.094601918,0.44138714"
"0, 0.785875640,1.0,1.0,0.785875640,0.441387140,0.094601918,-0.140513128,-0.21"
"1829088,-0.143477028,-0.012839661,0.094528345,0.126869306,0.084368728,0.00787"
"4526,-0.051178658,-0.060716277,-0.021998074,0.037071157,0.081894974,0.0910021"
"37,0.064938487,0.021602514,-0.016733702,-0.035752323,-0.034167931,-0.02528831"
"5]"
	  L			  "4"
	  framing		  "Maintain input frame rate"
	  outputBufInitCond	  "0"
	}
	Block {
	  BlockType		  Product
	  Name			  "Gain Product4"
	  Ports			  [2, 1]
	  Position		  [635, 176, 675, 289]
	  InputSameDT		  off
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "PN Sequence"
	  Ports			  [0, 2]
	  Position		  [25, 24, 130, 86]
	  TreatAsAtomicUnit	  off
	  MaskPromptString	  "Seed to Generate Long Code Mask"
	  MaskStyleString	  "edit"
	  MaskTunableValueString  "on"
	  MaskEnableString	  "on"
	  MaskVisibilityString	  "on"
	  MaskToolTipString	  "on"
	  MaskVariables		  "xSeed=@1;"
	  MaskInitialization	  "MSPNSequenceInitialization"
	  MaskDisplay		  "disp('PN Sequence\\n\\n(cdma 2000 MS)')"
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	  MaskValueString	  "7"
	  System {
	    Name		    "PN Sequence"
	    Location		    [-46, 80, 966, 571]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "A4"
	    PaperUnits		    "centimeters"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      "S-Function"
	      Name		      "Conversion"
	      Ports		      [1, 1]
	      Position		      [650, 191, 755, 229]
	      FunctionName	      "MSSFUNQConvert"
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Hadamard\nCode Generator"
	      Ports		      [0, 1]
	      Position		      [650, 248, 755, 302]
	      SourceBlock	      "commseqgen2/Hadamard\nCode Generator"
	      SourceType	      "Hadamard Code Generator"
	      length		      "2"
	      index		      "1"
	      ts		      "1/1228800"
	      frameBased	      off
	      sampPerFrame	      "1"
	    }
	    Block {
	      BlockType		      Product
	      Name		      "I Product"
	      Ports		      [2, 1]
	      Position		      [520, 39, 565, 126]
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Insert Zero"
	      Ports		      [1, 1]
	      Position		      [125, 28, 205, 72]
	      SourceBlock	      "commsequence2/Insert Zero"
	      SourceType	      "Insert Zero"
	      insertZeroVector	      "[1 0 ones(1,2^15-2)]'"
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Insert Zero1"
	      Ports		      [1, 1]
	      Position		      [125, 213, 205, 257]
	      SourceBlock	      "commsequence2/Insert Zero"
	      SourceType	      "Insert Zero"
	      insertZeroVector	      "[1 0 ones(1,2^15-2)]'"
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "LC Converter"
	      Ports		      [1, 1]
	      Position		      [340, 116, 420, 164]
	      SourceBlock	      "commutil2/Unipolar to\nBipolar\nConvert"
"er"
	      SourceType	      "Unipolar to Bipolar Converter"
	      M			      "2"
	      polarity		      "Negative"
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Long Code\nGenerator"
	      Ports		      [0, 1]
	      Position		      [195, 118, 275, 162]
	      SourceBlock	      "commseqgen2/PN Sequence\nGenerator"
	      SourceType	      "PN Sequence Generator"
	      poly		      "xLongCode

⌨️ 快捷键说明

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