cdma20001x.mdl

来自「运用MATLAB实验环境设计了一个CDMA2000基站发射机的模拟」· MDL 代码 · 共 1,938 行 · 第 1/4 页

MDL
1,938 行
字号
		}
		Line {
		  SrcBlock		  "Insert Zero"
		  SrcPort		  1
		  DstBlock		  "Unbuffer"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Unbuffer"
		  SrcPort		  1
		  DstBlock		  "Out1"
		  DstPort		  1
		}
	      }
	    }
	    Block {
	      BlockType		      UnitDelay
	      Name		      "Unit Delay"
	      Position		      [330, 135, 365, 175]
	      SampleTime	      "xSampleTime"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "I branch"
	      Position		      [775, 58, 805, 72]
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Q branch"
	      Position		      [780, 113, 810, 127]
	      Port		      "2"
	    }
	    Line {
	      SrcBlock		      "Q Product2"
	      SrcPort		      1
	      Points		      [10, 0; 0, -60]
	      DstBlock		      "Q branch"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "I Product"
	      SrcPort		      1
	      Points		      [0, 0; 185, 0]
	      Branch {
		DstBlock		"I branch"
		DstPort			1
	      }
	      Branch {
		Points			[0, 100]
		DstBlock		"Q Product2"
		DstPort			1
	      }
	    }
	    Line {
	      SrcBlock		      "Conversion"
	      SrcPort		      1
	      Points		      [20, 0; 0, -20]
	      DstBlock		      "Q Product2"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Q Product1"
	      SrcPort		      1
	      DstBlock		      "Conversion"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Unit Delay"
	      SrcPort		      1
	      Points		      [25, 0; 0, 45]
	      DstBlock		      "Q Product1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "PN Q Converter1"
	      SrcPort		      1
	      DstBlock		      "Q Product1"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "LC Converter"
	      SrcPort		      1
	      Points		      [0, 0; 20, 0]
	      Branch {
		Points			[0, -60]
		DstBlock		"I Product"
		DstPort			2
	      }
	      Branch {
		Points			[0, 15]
		DstBlock		"Unit Delay"
		DstPort			1
	      }
	    }
	    Line {
	      SrcBlock		      "PN I Converter"
	      SrcPort		      1
	      DstBlock		      "I Product"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Q branch PN"
	      SrcPort		      1
	      DstBlock		      "PN Q Converter1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Long Code Generator"
	      SrcPort		      1
	      DstBlock		      "LC Converter"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "I branch PN"
	      SrcPort		      1
	      DstBlock		      "PN I Converter"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  Product
	  Name			  "Product1"
	  Ports			  [2, 1]
	  Position		  [350, 54, 390, 101]
	  InputSameDT		  off
	}
	Block {
	  BlockType		  Product
	  Name			  "Product2"
	  Ports			  [2, 1]
	  Position		  [350, 159, 390, 206]
	  InputSameDT		  off
	}
	Block {
	  BlockType		  Product
	  Name			  "Product3"
	  Ports			  [2, 1]
	  Position		  [350, 239, 390, 286]
	  InputSameDT		  off
	}
	Block {
	  BlockType		  Product
	  Name			  "Product4"
	  Ports			  [2, 1]
	  Position		  [350, 314, 390, 361]
	  InputSameDT		  off
	}
	Block {
	  BlockType		  RealImagToComplex
	  Name			  "Real-Imag to\nComplex"
	  Ports			  [2, 1]
	  Position		  [640, 165, 680, 225]
	  Input			  "Real and imag"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Signal"
	  Position		  [805, 203, 835, 217]
	}
	Line {
	  SrcBlock		  "SCH2"
	  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		  "Gain Product"
	  SrcPort		  1
	  DstBlock		  "Signal"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Real-Imag to\nComplex"
	  SrcPort		  1
	  DstBlock		  "Gain Product"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Gain"
	  SrcPort		  1
	  Points		  [0, -60]
	  DstBlock		  "Gain Product"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "FIR\nInterpolation 1"
	  SrcPort		  1
	  Points		  [10, 0; 0, 55]
	  DstBlock		  "Real-Imag to\nComplex"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "FIR\nInterpolation 2"
	  SrcPort		  1
	  Points		  [10, 0; 0, -45]
	  DstBlock		  "Real-Imag to\nComplex"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Add2"
	  SrcPort		  1
	  DstBlock		  "FIR\nInterpolation 1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Add3"
	  SrcPort		  1
	  DstBlock		  "FIR\nInterpolation 2"
	  DstPort		  1
	}
	Line {
	  Labels		  [0, 0]
	  SrcBlock		  "Product1"
	  SrcPort		  1
	  Points		  [10, 0; 0, 30]
	  DstBlock		  "Add2"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Product3"
	  SrcPort		  1
	  Points		  [10, 0; 0, -125]
	  DstBlock		  "Add2"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Product2"
	  SrcPort		  1
	  Points		  [35, 0]
	  DstBlock		  "Add3"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Product4"
	  SrcPort		  1
	  Points		  [10, 0; 0, -70]
	  DstBlock		  "Add3"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Add1"
	  SrcPort		  1
	  Points		  [0, 0; 115, 0]
	  Branch {
	    DstBlock		    "Product3"
	    DstPort		    2
	  }
	  Branch {
	    Points		    [0, 50]
	    DstBlock		    "Product4"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "PN Sequence"
	  SrcPort		  1
	  Points		  [80, 0; 0, 20]
	  Branch {
	    DstBlock		    "Product1"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, 285]
	    DstBlock		    "Product4"
	    DstPort		    2
	  }
	}
	Line {
	  SrcBlock		  "Add"
	  SrcPort		  1
	  Points		  [0, 0; 115, 0]
	  Branch {
	    DstBlock		    "Product2"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, -80]
	    DstBlock		    "Product1"
	    DstPort		    2
	  }
	}
	Line {
	  SrcBlock		  "PN Sequence"
	  SrcPort		  2
	  Points		  [55, 0; 0, 115; 60, 0]
	  Branch {
	    DstBlock		    "Product2"
	    DstPort		    2
	  }
	  Branch {
	    Points		    [0, 55]
	    DstBlock		    "Product3"
	    DstPort		    1
	  }
	}
      }
    }
    Block {
      BlockType		      Constant
      Name		      "Relative Gain"
      Position		      [90, 220, 120, 250]
    }
    Block {
      BlockType		      Scope
      Name		      "Scope I and Q"
      Ports		      [2]
      Position		      [690, 179, 735, 241]
      Location		      [5, 53, 1029, 743]
      Open		      off
      NumInputPorts	      "2"
      ZoomMode		      "xonly"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
	axes2			"%<SignalLabel>"
      }
      List {
	ListType		SelectedSignals
	axes1			""
	axes2			""
      }
      YMin		      "-1.1~-1.1"
      YMax		      "1.1~1.1"
      DataFormat	      "StructureWithTime"
    }
    Block {
      BlockType		      Reference
      Name		      "Spectrum\nScope"
      Ports		      [1]
      Position		      [660, 295, 695, 345]
      SourceBlock	      "dspsnks4/Spectrum\nScope"
      SourceType	      "Spectrum Scope"
      ScopeProperties	      off
      Domain		      "Frequency"
      HorizSpan		      "1"
      UseBuffer		      on
      BufferSize	      "128"
      Overlap		      "64"
      inpFftLenInherit	      on
      FFTlength		      "128"
      numAvg		      "2"
      DisplayProperties	      off
      AxisGrid		      on
      Memory		      on
      FrameNumber	      on
      AxisLegend	      on
      AxisZoom		      off
      OpenScopeAtSimStart     on
      OpenScopeImmediately    off
      FigPos		      "[232 258 560 420]"
      AxisProperties	      on
      XUnits		      "Hertz"
      XRange		      "[-Fs/2...Fs/2]"
      InheritXIncr	      on
      XIncr		      "1.0"
      XLabel		      "Samples"
      YUnits		      "dB"
      YMin		      "-66.4884240376666"
      YMax		      "12.1087229636035"
      YLabel		      "Magnitude, dB"
      LineProperties	      off
      LineStyles	      "-"
      LineMarkers	      "None"
      LineColors	      "[0 0 1]"
    }
    Block {
      BlockType		      Constant
      Name		      "data"
      Position		      [255, 70, 285, 100]
      Value		      "0"
    }
    Block {
      BlockType		      Outport
      Name		      "Out1"
      Position		      [665, 403, 695, 417]
    }
    Line {
      SrcBlock		      "Relative Gain"
      SrcPort		      1
      DstBlock		      "FCH Frame Data"
      DstPort		      1
    }
    Line {
      SrcBlock		      "FCH Frame Data"
      SrcPort		      1
      DstBlock		      "Modulation"
      DstPort		      4
    }
    Line {
      SrcBlock		      "Gain"
      SrcPort		      1
      DstBlock		      "Modulation"
      DstPort		      6
    }
    Line {
      SrcBlock		      "data"
      SrcPort		      1
      Points		      [15, 0]
      Branch {
	DstBlock		"Modulation"
	DstPort			1
      }
      Branch {
	Points			[0, 50]
	Branch {
	  Points		  [0, 50]
	  Branch {
	    Points		    [0, 100]
	    DstBlock		    "Modulation"
	    DstPort		    5
	  }
	  Branch {
	    DstBlock		    "Modulation"
	    DstPort		    3
	  }
	}
	Branch {
	  DstBlock		  "Modulation"
	  DstPort		  2
	}
      }
    }
    Line {
      SrcBlock		      "Modulation"
      SrcPort		      1
      Points		      [15, 0]
      Branch {
	DstBlock		"Complex to\nReal-Imag"
	DstPort			1
      }
      Branch {
	Points			[0, 110; 50, 0]
	Branch {
	  DstBlock		  "Spectrum\nScope"
	  DstPort		  1
	}
	Branch {
	  Points		  [0, 90]
	  DstBlock		  "Out1"
	  DstPort		  1
	}
      }
    }
    Line {
      SrcBlock		      "Complex to\nReal-Imag"
      SrcPort		      2
      DstBlock		      "Scope I and Q"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Complex to\nReal-Imag"
      SrcPort		      1
      DstBlock		      "Scope I and Q"
      DstPort		      1
    }
  }
}

⌨️ 快捷键说明

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