lhw_stbc_x4h.mdl

来自「用simlink开发的space-time coding仿真模型,仿真的精度与效」· MDL 代码 · 共 2,284 行 · 第 1/5 页

MDL
2,284
字号
	      Name		      "h2"
	      Position		      [325, 73, 355, 87]
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	    }
	    Line {
	      SrcBlock		      "Uniform Noise\nGenerator"
	      SrcPort		      1
	      DstBlock		      "Complex\nExponential"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Rayleigh Noise\nGenerator"
	      SrcPort		      1
	      Points		      [20, 0; 0, 20]
	      DstBlock		      "Product"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Complex\nExponential"
	      SrcPort		      1
	      Points		      [25, 0; 0, -40]
	      DstBlock		      "Product"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Product"
	      SrcPort		      1
	      DstBlock		      "h2"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "h3"
	  Ports			  [0, 1]
	  Position		  [25, 109, 45, 131]
	  BackgroundColor	  "lightBlue"
	  TreatAsAtomicUnit	  off
	  MinAlgLoopOccurrences	  off
	  RTWSystemCode		  "Auto"
	  System {
	    Name		    "h3"
	    Location		    [189, 286, 669, 523]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "A4"
	    PaperUnits		    "centimeters"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Reference
	      Name		      "Complex\nExponential"
	      Ports		      [1, 1]
	      Position		      [150, 107, 200, 143]
	      SourceBlock	      "dspmathops/Complex\nExponential"
	      SourceType	      "Complex Exponential"
	      ShowPortLabels	      "on"
	    }
	    Block {
	      BlockType		      Product
	      Name		      "Product"
	      Ports		      [2, 1]
	      Position		      [270, 62, 300, 93]
	      InputSameDT	      off
	      OutDataTypeMode	      "Inherit via internal rule"
	      SaturateOnIntegerOverflow	off
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Rayleigh Noise\nGenerator"
	      Ports		      [0, 1]
	      Position		      [125, 28, 205, 72]
	      FontSize		      10
	      SourceBlock	      "commnoisgen2/Rayleigh Noise\nGenerator"
	      SourceType	      "Rayleigh Noise Generator"
	      ShowPortLabels	      "on"
	      alpha		      "my_sigma"
	      seed		      "68521"
	      Ts		      "3e-5"
	      frameBased	      "off"
	      sampPerFrame	      "1"
	      orient		      "off"
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Uniform Noise\nGenerator"
	      Ports		      [0, 1]
	      Position		      [25, 103, 105, 147]
	      FontSize		      10
	      SourceBlock	      "commnoisgen2/Uniform Noise\nGenerator"
	      SourceType	      "Uniform Noise Generator"
	      ShowPortLabels	      "on"
	      low		      "0"
	      up		      "2*pi"
	      seed		      "56479"
	      Ts		      "3e-5"
	      frameBased	      "off"
	      sampPerFrame	      "1"
	      orient		      "off"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "h3"
	      Position		      [325, 73, 355, 87]
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	    }
	    Line {
	      SrcBlock		      "Uniform Noise\nGenerator"
	      SrcPort		      1
	      DstBlock		      "Complex\nExponential"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Rayleigh Noise\nGenerator"
	      SrcPort		      1
	      Points		      [20, 0; 0, 20]
	      DstBlock		      "Product"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Complex\nExponential"
	      SrcPort		      1
	      Points		      [25, 0; 0, -40]
	      DstBlock		      "Product"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Product"
	      SrcPort		      1
	      DstBlock		      "h3"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "h4"
	  Ports			  [0, 1]
	  Position		  [25, 169, 45, 191]
	  BackgroundColor	  "lightBlue"
	  TreatAsAtomicUnit	  off
	  MinAlgLoopOccurrences	  off
	  RTWSystemCode		  "Auto"
	  System {
	    Name		    "h4"
	    Location		    [189, 286, 669, 523]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "A4"
	    PaperUnits		    "centimeters"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Reference
	      Name		      "Complex\nExponential"
	      Ports		      [1, 1]
	      Position		      [150, 107, 200, 143]
	      SourceBlock	      "dspmathops/Complex\nExponential"
	      SourceType	      "Complex Exponential"
	      ShowPortLabels	      "on"
	    }
	    Block {
	      BlockType		      Product
	      Name		      "Product"
	      Ports		      [2, 1]
	      Position		      [270, 62, 300, 93]
	      InputSameDT	      off
	      OutDataTypeMode	      "Inherit via internal rule"
	      SaturateOnIntegerOverflow	off
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Rayleigh Noise\nGenerator"
	      Ports		      [0, 1]
	      Position		      [125, 28, 205, 72]
	      FontSize		      10
	      SourceBlock	      "commnoisgen2/Rayleigh Noise\nGenerator"
	      SourceType	      "Rayleigh Noise Generator"
	      ShowPortLabels	      "on"
	      alpha		      "my_sigma"
	      seed		      "56479"
	      Ts		      "3e-5"
	      frameBased	      "off"
	      sampPerFrame	      "1"
	      orient		      "off"
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Uniform Noise\nGenerator"
	      Ports		      [0, 1]
	      Position		      [25, 103, 105, 147]
	      FontSize		      10
	      SourceBlock	      "commnoisgen2/Uniform Noise\nGenerator"
	      SourceType	      "Uniform Noise Generator"
	      ShowPortLabels	      "on"
	      low		      "0"
	      up		      "2*pi"
	      seed		      "56479"
	      Ts		      "3e-5"
	      frameBased	      "off"
	      sampPerFrame	      "1"
	      orient		      "off"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "h3"
	      Position		      [325, 73, 355, 87]
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	    }
	    Line {
	      SrcBlock		      "Uniform Noise\nGenerator"
	      SrcPort		      1
	      DstBlock		      "Complex\nExponential"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Rayleigh Noise\nGenerator"
	      SrcPort		      1
	      Points		      [20, 0; 0, 20]
	      DstBlock		      "Product"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Complex\nExponential"
	      SrcPort		      1
	      Points		      [25, 0; 0, -40]
	      DstBlock		      "Product"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Product"
	      SrcPort		      1
	      DstBlock		      "h3"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out1"
	  Position		  [450, 73, 480, 87]
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	}
	Line {
	  SrcBlock		  "h1"
	  SrcPort		  1
	  DstBlock		  "Copy"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "h2"
	  SrcPort		  1
	  DstBlock		  "Copy1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "h3"
	  SrcPort		  1
	  DstBlock		  "Copy2"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Copy"
	  SrcPort		  1
	  Points		  [105, 0]
	  DstBlock		  "Matrix\nConcatenation1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Copy1"
	  SrcPort		  1
	  DstBlock		  "Matrix\nConcatenation1"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Copy2"
	  SrcPort		  1
	  Points		  [75, 0; 0, -25]
	  DstBlock		  "Matrix\nConcatenation1"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "Matrix\nConcatenation1"
	  SrcPort		  1
	  Points		  [0, -10]
	  DstBlock		  "Buffer"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Buffer"
	  SrcPort		  1
	  DstBlock		  "Tran"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Tran"
	  SrcPort		  1
	  DstBlock		  "Out1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "h4"
	  SrcPort		  1
	  DstBlock		  "Copy3"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Copy3"
	  SrcPort		  1
	  Points		  [105, 0]
	  DstBlock		  "Matrix\nConcatenation1"
	  DstPort		  4
	}
      }
    }
    Block {
      BlockType		      Display
      Name		      "Display3"
      Ports		      [1]
      Position		      [490, 422, 585, 488]
      FontSize		      10
      Decimation	      "1"
    }
    Block {
      BlockType		      Reference
      Name		      "Error Rate\nCalculation"
      Ports		      [2, 1]
      Position		      [423, 335, 512, 385]
      Orientation	      "down"
      NamePlacement	      "alternate"
      FontSize		      10
      SourceBlock	      "commsink2/Error Rate\nCalculation"
      SourceType	      "Error Rate Calculation"
      N			      "0"
      st_delay		      "12"
      cp_mode		      "Entire frame"
      subframe		      "[]"
      PMode		      "Port"
      WsName		      "ErrorVec"
      RsMode2		      off
      stop		      on
      numErr		      "500"
      maxBits		      "1e7"
    }
    Block {
      BlockType		      FrameConversion
      Name		      "Frame Conversion"
      Position		      [830, 195, 875, 225]
      FontSize		      10
      OutFrame		      "Sample based"
    }
    Block {
      BlockType		      FrameConversion
      Name		      "Frame Conversion1"
      Position		      [175, 60, 230, 100]
      FontSize		      10
      OutFrame		      "Sample based"
    }
    Block {
      BlockType		      FrameConversion
      Name		      "Frame Conversion2"
      Position		      [815, 75, 860, 105]
      FontSize		      10
      OutFrame		      "Sample based"
    }
    Block {
      BlockType		      FrameConversion
      Name		      "Frame Conversion3"
      Position		      [810, 125, 855, 155]
      FontSize		      10
      OutFrame		      "Sample based"
    }
    Block {
      BlockType		      FrameConversion
      Name		      "Frame Conversion4"
      Position		      [830, 285, 875, 315]
      Orientation	      "left"
      FontSize		      10
      OutFrame		      "Frame based"
    }
    Block {
      BlockType		      Reference
      Name		      "Integer to Bit\nConverter"
      Ports		      [1, 1]
      Position		      [205, 283, 260, 317]
      FontSize		      10
      SourceBlock	      "commutil2/Integer to Bit\nConverter"
      SourceType	      "Integer to Bit Converter"
      nbits		      "4"
    }
    Block {
      BlockType		      Reference
      Name		      "Integer to Bit\nConverter1"
      Ports		      [1, 1]
      Position		      [665, 283, 720, 317]
      Orientation	      "left"
      FontSize		      10
      SourceBlock	      "commutil2/Integer to Bit\nConverter"
      SourceType	      "Integer to Bit Converter"
      nbits		      "4"
    }
    Block {
      BlockType		      Reference
      Name		      "Matrix\nConcatenation"
      Ports		      [4, 1]
      Position		      [350, 48, 405, 107]
      FontSize		      10
      SourceBlock	      "simulink/Math\nOperations/Matrix\nConcatenation"
      SourceType	      "Matrix Concatenation"
      numInports	      "4"
      catMethod		      "Horizontal"
    }
    Block {
      BlockType		      Reference
      Name		      "Matrix\nSum"
      Ports		      [1, 1]
      Position		      [575, 70, 640, 110]
      DialogController	      "dspDDGCreate"
      DialogControllerArgs    "DataTag0"
      FontSize		      10
      SourceBlock	      "dspmtrx3/Matrix\nSum"
      SourceType	      "Matrix Sum"
      Dim		      "Columns"
      additionalParams	      off
      allowOverrides	      on
      outputMode	      "Same as accumulator"
      outputWordLength	      "16"
      outputFracLength	      "15"
      accumMode		      "Inherit via internal rule"
      accumWordLength	      "32"
      accumFracLength	      "30"
      roundingMode	      "Floor"
      overflowMode	      off
      LockScale		      off
    }
    Block {
      BlockType		      Reference
      Name		      "Multiport\nSelector"
      Ports		      [1, 1]
      Position		      [515, 175, 570, 215]
      FontSize		      10
      SourceBlock	      "dspindex/Multiport\nSelector"
      SourceType	      "Multiport Selector"
      rowsOrCols	      "Columns"
      idxCellArray	      "{ 1 }"
      idxErrMode	      "Clip Index"

⌨️ 快捷键说明

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