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

📄 cdma2000.mdl

📁 本资料为《MATLAB通信仿真及应用实例详解 》书本上的仿真   本书着重介绍了MATLAB在通信仿真
💻 MDL
📖 第 1 页 / 共 4 页
字号:
		  SourceType		  "Insert Zero"
		  insertZeroVector	  "[1 0 ones(1,2^15-2)]'"
		}
		Block {
		  BlockType		  Reference
		  Name			  "PN Sequence\nGenerator"
		  Ports			  [0, 1]
		  Position		  [25, 28, 105, 72]
		  SourceBlock		  "commseqgen2/PN Sequence\nGenerator"
		  SourceType		  "PN Sequence Generator"
		  poly			  "xpngeneratorq"
		  ini_sta		  "[zeros(1,14) 1]"
		  shift			  "[zeros(1,14) 1]"
		  Ts			  "2^15/1228800/(2^15-1)"
		  frameBased		  on
		  sampPerFrame		  "2^15-1"
		  reset			  off
		}
		Block {
		  BlockType		  Reference
		  Name			  "Unbuffer"
		  Ports			  [1, 1]
		  Position		  [310, 31, 360, 79]
		  SourceBlock		  "dspbuff3/Unbuffer"
		  SourceType		  "Unbuffer"
		  ic			  "0"
		}
		Block {
		  BlockType		  Outport
		  Name			  "Out1"
		  Position		  [385, 48, 415, 62]
		}
		Line {
		  SrcBlock		  "PN Sequence\nGenerator"
		  SrcPort		  1
		  Points		  [50, 0]
		  DstBlock		  "Insert Zero"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Insert Zero"
		  SrcPort		  1
		  Points		  [0, -5]
		  DstBlock		  "Unbuffer"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Unbuffer"
		  SrcPort		  1
		  DstBlock		  "Out1"
		  DstPort		  1
		}
	      }
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "i branch"
	      Position		      [560, 83, 590, 97]
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "q branch"
	      Position		      [635, 168, 665, 182]
	      Port		      "2"
	    }
	    Line {
	      SrcBlock		      "i branch pn"
	      SrcPort		      1
	      Points		      [30, 0; 0, 35]
	      DstBlock		      "Unipolar to\nBipolar\nConverter"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "long code\nGenerator"
	      SrcPort		      1
	      Points		      [30, 0; 0, 35]
	      DstBlock		      "Unipolar to\nBipolar\nConverter1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "q branch pn"
	      SrcPort		      1
	      Points		      [30, 0; 0, -15]
	      DstBlock		      "Unipolar to\nBipolar\nConverter2"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Unipolar to\nBipolar\nConverter"
	      SrcPort		      1
	      DstBlock		      "Product"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Unipolar to\nBipolar\nConverter1"
	      SrcPort		      1
	      Points		      [0, 0; 10, 0]
	      Branch {
		Points			[5, 0; 0, -80]
		DstBlock		"Product"
		DstPort			2
	      }
	      Branch {
		Points			[0, 10]
		DstBlock		"Unit Delay"
		DstPort			1
	      }
	    }
	    Line {
	      SrcBlock		      "Unit Delay"
	      SrcPort		      1
	      Points		      [5, 0]
	      DstBlock		      "Product1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Unipolar to\nBipolar\nConverter2"
	      SrcPort		      1
	      DstBlock		      "Product1"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Product1"
	      SrcPort		      1
	      Points		      [0, -55]
	      DstBlock		      "conversion"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Product"
	      SrcPort		      1
	      Points		      [85, 0; 0, 10]
	      Branch {
		Points			[0, 55]
		DstBlock		"q Product2"
		DstPort			1
	      }
	      Branch {
		Points			[0, -20]
		DstBlock		"i branch"
		DstPort			1
	      }
	    }
	    Line {
	      SrcBlock		      "conversion"
	      SrcPort		      1
	      Points		      [5, 0; 0, -30]
	      DstBlock		      "q Product2"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "q Product2"
	      SrcPort		      1
	      DstBlock		      "q branch"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  Product
	  Name			  "Product"
	  Ports			  [2, 1]
	  Position		  [270, 76, 315, 109]
	  InputSameDT		  off
	}
	Block {
	  BlockType		  Product
	  Name			  "Product1"
	  Ports			  [2, 1]
	  Position		  [270, 156, 315, 189]
	  InputSameDT		  off
	}
	Block {
	  BlockType		  Product
	  Name			  "Product2"
	  Ports			  [2, 1]
	  Position		  [270, 216, 315, 249]
	  InputSameDT		  off
	}
	Block {
	  BlockType		  Product
	  Name			  "Product3"
	  Ports			  [2, 1]
	  Position		  [265, 291, 310, 324]
	  InputSameDT		  off
	}
	Block {
	  BlockType		  RealImagToComplex
	  Name			  "Real-Imag to\nComplex"
	  Ports			  [2, 1]
	  Position		  [605, 183, 635, 212]
	  Input			  "Real and imag"
	}
	Block {
	  BlockType		  Sum
	  Name			  "Subtract"
	  Ports			  [2, 1]
	  Position		  [395, 115, 435, 155]
	  Inputs		  "+-"
	  ShowAdditionalParam	  on
	  OutScaling		  "2^-10"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  Product
	  Name			  "gain Product"
	  Ports			  [2, 1]
	  Position		  [665, 186, 710, 219]
	  InputSameDT		  off
	}
	Block {
	  BlockType		  Outport
	  Name			  "signal"
	  Position		  [735, 198, 765, 212]
	}
	Line {
	  SrcBlock		  "sch2"
	  SrcPort		  1
	  Points		  [60, 0]
	  DstBlock		  "Add"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "pch"
	  SrcPort		  1
	  Points		  [30, 0; 0, -20]
	  DstBlock		  "Add"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "dcch"
	  SrcPort		  1
	  Points		  [65, 0]
	  DstBlock		  "Add"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "fch"
	  SrcPort		  1
	  Points		  [55, 0]
	  DstBlock		  "Add1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "sch1/ccch/each"
	  SrcPort		  1
	  Points		  [45, 0; 0, -5]
	  DstBlock		  "Add1"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "PN SEQUENCE"
	  SrcPort		  1
	  Points		  [35, 0; 0, 40]
	  Branch {
	    Points		    [0, 230]
	    DstBlock		    "Product3"
	    DstPort		    2
	  }
	  Branch {
	    DstBlock		    "Product"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "PN SEQUENCE"
	  SrcPort		  2
	  Points		  [75, 0; 0, 105]
	  Branch {
	    DstBlock		    "Product1"
	    DstPort		    2
	  }
	  Branch {
	    Points		    [0, 45]
	    DstBlock		    "Product2"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Add"
	  SrcPort		  1
	  Points		  [55, 0; 0, -70]
	  Branch {
	    DstBlock		    "Product1"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, -65]
	    DstBlock		    "Product"
	    DstPort		    2
	  }
	}
	Line {
	  SrcBlock		  "Add1"
	  SrcPort		  1
	  Points		  [65, 0; 0, -30]
	  Branch {
	    Points		    [0, -60]
	    DstBlock		    "Product2"
	    DstPort		    2
	  }
	  Branch {
	    DstBlock		    "Product3"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Product"
	  SrcPort		  1
	  Points		  [30, 0; 0, 30]
	  DstBlock		  "Subtract"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Product2"
	  SrcPort		  1
	  Points		  [30, 0; 0, -90]
	  DstBlock		  "Subtract"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Product1"
	  SrcPort		  1
	  Points		  [60, 0]
	  DstBlock		  "Add2"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Product3"
	  SrcPort		  1
	  Points		  [30, 0; 0, -55]
	  DstBlock		  "Add2"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Subtract"
	  SrcPort		  1
	  DstBlock		  "FIR\nInterpolation"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Add2"
	  SrcPort		  1
	  Points		  [20, 0; 0, 10]
	  DstBlock		  "FIR\nInterpolation1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "FIR\nInterpolation"
	  SrcPort		  1
	  Points		  [5, 0; 0, 55]
	  DstBlock		  "Real-Imag to\nComplex"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "FIR\nInterpolation1"
	  SrcPort		  1
	  Points		  [10, 0; 0, -50]
	  DstBlock		  "Real-Imag to\nComplex"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Real-Imag to\nComplex"
	  SrcPort		  1
	  Points		  [5, 0; 0, -5]
	  DstBlock		  "gain Product"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "gain"
	  SrcPort		  1
	  Points		  [15, 0; 0, -95]
	  DstBlock		  "gain Product"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "gain Product"
	  SrcPort		  1
	  DstBlock		  "signal"
	  DstPort		  1
	}
      }
    }
    Line {
      SrcBlock		      "fch frame data"
      SrcPort		      1
      DstBlock		      "moduration"
      DstPort		      4
    }
    Line {
      SrcBlock		      "gain"
      SrcPort		      1
      DstBlock		      "moduration"
      DstPort		      6
    }
    Line {
      SrcBlock		      "Constant"
      SrcPort		      1
      Points		      [30, 0; 0, 50]
      Branch {
	Points			[0, 115]
	Branch {
	  Points		  [0, 45]
	  Branch {
	    DstBlock		    "moduration"
	    DstPort		    5
	  }
	  Branch {
	    Points		    [0, -80]
	    DstBlock		    "moduration"
	    DstPort		    3
	  }
	}
	Branch {
	  Points		  [0, -75]
	  DstBlock		  "moduration"
	  DstPort		  2
	}
      }
      Branch {
	DstBlock		"moduration"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "moduration"
      SrcPort		      1
      DstBlock		      "Complex to\nReal-Imag"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Complex to\nReal-Imag"
      SrcPort		      1
      Points		      [10, 0; 0, -40]
      DstBlock		      "Unbuffer"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Unbuffer"
      SrcPort		      1
      Points		      [75, 0]
      DstBlock		      "Scope"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Complex to\nReal-Imag"
      SrcPort		      2
      DstBlock		      "Unbuffer1"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Unbuffer1"
      SrcPort		      1
      Points		      [15, 0; 0, 35]
      DstBlock		      "Scope1"
      DstPort		      1
    }
  }
}

⌨️ 快捷键说明

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