cdma2000.mdl

来自「CDMA2000 反向信道仿真 matlab」· MDL 代码 · 共 2,325 行 · 第 1/5 页

MDL
2,325
字号
	      BlockType		      Outport
	      Name		      "Out1"
	      Position		      [815, 88, 845, 102]
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Out2"
	      Position		      [820, 213, 850, 227]
	      Port		      "2"
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	    }
	    Line {
	      SrcBlock		      "I branch PN"
	      SrcPort		      1
	      DstBlock		      "Unipolar to\nBipolar\nConverter1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Long Code\nGenerator"
	      SrcPort		      1
	      DstBlock		      "Unipolar to\nBipolar\nConverter"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Q branch PN"
	      SrcPort		      1
	      DstBlock		      "Unipolar to\nBipolar\nConverter2"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Unipolar to\nBipolar\nConverter1"
	      SrcPort		      1
	      Points		      [40, 0; 0, 20]
	      DstBlock		      "Product"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Unipolar to\nBipolar\nConverter"
	      SrcPort		      1
	      Points		      [40, 0]
	      Branch {
		Points			[0, -55]
		DstBlock		"Product"
		DstPort			2
	      }
	      Branch {
		Points			[0, 50]
		DstBlock		"Unit Delay"
		DstPort			1
	      }
	    }
	    Line {
	      SrcBlock		      "Unit Delay"
	      SrcPort		      1
	      DstBlock		      "Product1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Unipolar to\nBipolar\nConverter2"
	      SrcPort		      1
	      Points		      [85, 0; 0, -20]
	      DstBlock		      "Product1"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Product1"
	      SrcPort		      1
	      DstBlock		      "S-Function"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Product"
	      SrcPort		      1
	      Points		      [170, 0]
	      Branch {
		DstBlock		"Out1"
		DstPort			1
	      }
	      Branch {
		Points			[0, 100]
		DstBlock		"Product2"
		DstPort			1
	      }
	    }
	    Line {
	      SrcBlock		      "S-Function"
	      SrcPort		      1
	      DstBlock		      "Product2"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Product2"
	      SrcPort		      1
	      DstBlock		      "Out2"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  Product
	  Name			  "Product"
	  Ports			  [2, 1]
	  Position		  [375, 55, 405, 115]
	  InputSameDT		  off
	  OutDataTypeMode	  "Inherit via internal rule"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  Product
	  Name			  "Product1"
	  Ports			  [2, 1]
	  Position		  [375, 201, 405, 259]
	  InputSameDT		  off
	  OutDataTypeMode	  "Inherit via internal rule"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  Product
	  Name			  "Product2"
	  Ports			  [2, 1]
	  Position		  [380, 300, 410, 355]
	  InputSameDT		  off
	  OutDataTypeMode	  "Inherit via internal rule"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  Product
	  Name			  "Product3"
	  Ports			  [2, 1]
	  Position		  [380, 381, 410, 434]
	  InputSameDT		  off
	  OutDataTypeMode	  "Inherit via internal rule"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  RealImagToComplex
	  Name			  "Real-Imag to\nComplex"
	  Ports			  [2, 1]
	  Position		  [750, 195, 805, 275]
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out1"
	  Position		  [915, 248, 945, 262]
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	}
	Line {
	  SrcBlock		  "CH2"
	  SrcPort		  1
	  DstBlock		  "Add"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "PCH"
	  SrcPort		  1
	  DstBlock		  "Add"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "DCCH"
	  SrcPort		  1
	  DstBlock		  "Add"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "FCH"
	  SrcPort		  1
	  DstBlock		  "Add1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "SCH1/CCCH/EACH"
	  SrcPort		  1
	  DstBlock		  "Add1"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "PN Squence"
	  SrcPort		  1
	  Points		  [70, 0]
	  Branch {
	    DstBlock		    "Product"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, 350]
	    DstBlock		    "Product3"
	    DstPort		    2
	  }
	}
	Line {
	  SrcBlock		  "PN Squence"
	  SrcPort		  2
	  Points		  [45, 0; 0, 130; 75, 0]
	  Branch {
	    DstBlock		    "Product1"
	    DstPort		    2
	  }
	  Branch {
	    Points		    [0, 70]
	    DstBlock		    "Product2"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Add"
	  SrcPort		  1
	  Points		  [110, 0]
	  Branch {
	    DstBlock		    "Product1"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, -115]
	    DstBlock		    "Product"
	    DstPort		    2
	  }
	}
	Line {
	  SrcBlock		  "Add1"
	  SrcPort		  1
	  Points		  [110, 0]
	  Branch {
	    DstBlock		    "Product2"
	    DstPort		    2
	  }
	  Branch {
	    Points		    [0, 55]
	    DstBlock		    "Product3"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Product"
	  SrcPort		  1
	  Points		  [55, 0; 0, 50]
	  DstBlock		  "Add2"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Product2"
	  SrcPort		  1
	  Points		  [50, 0; 0, -150]
	  DstBlock		  "Add2"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Product1"
	  SrcPort		  1
	  Points		  [120, 0]
	  DstBlock		  "Add3"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Product3"
	  SrcPort		  1
	  Points		  [50, 0; 0, -70]
	  DstBlock		  "Add3"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Add2"
	  SrcPort		  1
	  Points		  [0, 0]
	  DstBlock		  "FIR\nInterpolation"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Add3"
	  SrcPort		  1
	  Points		  [0, 0]
	  DstBlock		  "FIR\nInterpolation1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "FIR\nInterpolation"
	  SrcPort		  1
	  Points		  [15, 0; 0, 55]
	  DstBlock		  "Real-Imag to\nComplex"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "FIR\nInterpolation1"
	  SrcPort		  1
	  Points		  [15, 0; 0, -60]
	  DstBlock		  "Real-Imag to\nComplex"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Real-Imag to\nComplex"
	  SrcPort		  1
	  Points		  [25, 0]
	  DstBlock		  "Gain Product"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Gain"
	  SrcPort		  1
	  Points		  [15, 0; 0, -100]
	  DstBlock		  "Gain Product"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Gain Product"
	  SrcPort		  1
	  Points		  [0, 0]
	  DstBlock		  "Out1"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      Constant
      Name		      "Relative Gain"
      Position		      [75, 195, 105, 225]
    }
    Block {
      BlockType		      Scope
      Name		      "Scope I and Q"
      Ports		      [2]
      Position		      [780, 140, 840, 240]
      Floating		      off
      Location		      [190, 219, 844, 565]
      Open		      off
      NumInputPorts	      "2"
      ZoomMode		      "xonly"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
	axes2			"%<SignalLabel>"
      }
      YMin		      "-5~-5"
      YMax		      "5~5"
      DataFormat	      "StructureWithTime"
      SampleTime	      "0"
    }
    Block {
      BlockType		      Reference
      Name		      "Spectrum\nScope"
      Ports		      [1]
      Position		      [715, 310, 750, 360]
      DialogController	      "dspdialog.SpectrumScope"
      DialogControllerArgs    "DataTag2"
      SourceBlock	      "dspsnks4/Spectrum\nScope"
      SourceType	      "Spectrum Scope"
      ShowPortLabels	      off
      ScopeProperties	      on
      Domain		      "Frequency"
      HorizSpan		      "1"
      UseBuffer		      on
      BufferSize	      "128"
      Overlap		      "64"
      inpFftLenInherit	      off
      FFTlength		      "128"
      numAvg		      "2"
      DisplayProperties	      off
      AxisGrid		      on
      Memory		      off
      FrameNumber	      on
      AxisLegend	      off
      AxisZoom		      off
      OpenScopeAtSimStart     on
      OpenScopeImmediately    off
      FigPos		      "get(0,'defaultfigureposition')"
      AxisProperties	      off
      XUnits		      "Hertz"
      XRange		      "[-Fs/2...Fs/2]"
      InheritXIncr	      on
      XIncr		      "1.0"
      XLabel		      "Samples"
      YUnits		      "dB"
      YMin		      "-65"
      YMax		      "15"
      YLabel		      "Magnitude-squared, dB"
      LineProperties	      off
      wintypeSpecScope	      "Hann"
      RsSpecScope	      "50"
      betaSpecScope	      "5"
      winsampSpecScope	      "Periodic"
    }
    Block {
      BlockType		      Constant
      Name		      "data"
      Position		      [310, 50, 340, 80]
      Value		      "0"
    }
    Line {
      SrcBlock		      "Relative Gain"
      SrcPort		      1
      DstBlock		      "FCH Frame Data"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Gain"
      SrcPort		      1
      Points		      [0, 0]
      DstBlock		      "Modulation"
      DstPort		      6
    }
    Line {
      SrcBlock		      "data"
      SrcPort		      1
      Points		      [35, 0; 0, 25; 30, 0]
      Branch {
	DstBlock		"Modulation"
	DstPort			1
      }
      Branch {
	Points			[-30, 0; 0, 40; 30, 0]
	Branch {
	  DstBlock		  "Modulation"
	  DstPort		  2
	}
	Branch {
	  Points		  [-30, 0; 0, 40; 30, 0]
	  Branch {
	    DstBlock		    "Modulation"
	    DstPort		    3
	  }
	  Branch {
	    Points		    [-30, 0; 0, 80]
	    DstBlock		    "Modulation"
	    DstPort		    5
	  }
	}
      }
    }
    Line {
      SrcBlock		      "FCH Frame Data"
      SrcPort		      1
      Points		      [75, 0]
      DstBlock		      "Modulation"
      DstPort		      4
    }
    Line {
      SrcBlock		      "Modulation"
      SrcPort		      1
      Points		      [0, 0; 25, 0]
      Branch {
	DstBlock		"Complex to\nReal-Imag"
	DstPort			1
      }
      Branch {
	Points			[0, 145]
	DstBlock		"Spectrum\nScope"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Complex to\nReal-Imag"
      SrcPort		      1
      Points		      [35, 0]
      DstBlock		      "Scope I and Q"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Complex to\nReal-Imag"
      SrcPort		      2
      Points		      [35, 0]
      DstBlock		      "Scope I and Q"
 

⌨️ 快捷键说明

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