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

📄 ofdm_16qam_r14.mdl

📁 这是我见过的最详细可读性非常高的ofdm仿真程序
💻 MDL
📖 第 1 页 / 共 4 页
字号:
	}
	Block {
	  BlockType		  Math
	  Name			  "Math\nFunction"
	  Ports			  [1, 1]
	  Position		  [345, 25, 375, 55]
	  ShowName		  off
	  Operator		  "conj"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out"
	  Position		  [430, 33, 460, 47]
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	}
	Line {
	  SrcBlock		  "In"
	  SrcPort		  1
	  DstBlock		  "Bit to Integer\nConverter"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "General QAM\nModulator\nBaseband"
	  SrcPort		  1
	  DstBlock		  "Math\nFunction"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Math\nFunction"
	  SrcPort		  1
	  DstBlock		  "Out"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Bit to Integer\nConverter"
	  SrcPort		  1
	  DstBlock		  "General QAM\nModulator\nBaseband"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "OFDM\nData"
      Ports		      [1, 1]
      Position		      [285, 198, 340, 242]
      Orientation	      "left"
      ShowName		      off
      FontSize		      8
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      MaskDisplay	      "disp('OFDM \\n Demodulator');"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      System {
	Name			"OFDM\nData"
	Location		[2, 82, 1014, 744]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "In"
	  Position		  [15, 43, 45, 57]
	  IconDisplay		  "Port number"
	}
	Block {

	  BlockType		  Reference
	  Name			  "FFT"
	  Ports			  [1, 1]
	  Position		  [195, 33, 235, 67]
	  DialogController	  "dspDDGCreate"
	  DialogControllerArgs	  "DataTag0"
	SourceBlock	"dspxfrm3/FFT"
	  SourceType		  "FFT"
	  CompMethod		  "Table lookup"
	  TableOpt		  "Speed"
	  BitRevOrder		  off
	  InheritFFTLength	  on
	  FFTLength		  "64"
	  additionalParams	  off
	  SkipNorm		  on
	  allowOverrides	  on
	  firstCoeffMode	  "Same word length as input"
	  firstCoeffWordLength	  "16"
	  firstCoeffFracLength	  "15"
	  outputMode		  "Inherit via internal rule"
	  outputWordLength	  "16"
	  outputFracLength	  "15"
	  accumMode		  "Inherit via internal rule"
	  accumWordLength	  "32"
	  accumFracLength	  "30"
	  prodOutputMode	  "Inherit via internal rule"
	  prodOutputWordLength	  "32"
	  prodOutputFracLength	  "30"
	  roundingMode		  "Floor"
	  overflowMode		  off
	  LockScale		  off
	}
	Block {

	  BlockType		  Reference
	  Name			  "Frame Status\nConversion"
	  Ports			  [1, 1]
	  Position		  [285, 34, 330, 66]
	SourceBlock	"dspobslib/Frame Status\nConversion"
	  SourceType		  "Frame Status Conversion"
	  ShowPortLabels	  "none"
	  SystemSampleTime	  "-1"
	  FunctionWithSeparateData off
	  RTWMemSecFuncInitTerm	  "Inherit from model"
	  RTWMemSecFuncExecute	  "Inherit from model"
	  RTWMemSecDataConstants  "Inherit from model"
	  RTWMemSecDataInternal	  "Inherit from model"
	  RTWMemSecDataParameters "Inherit from model"
	  growRefPort		  off
	  outframe		  "Frame-based"
	}
	Block {
	  BlockType		  Selector
	  Name			  "Remove\n zero-padding\nand\nreorder"
	  Ports			  [1, 1]
	  Position		  [380, 28, 430, 72]
	  InputPortWidth	  "256"
	  InputType		  "Vector"
	  ElementSrc		  "Internal"
	  Elements		  "[29:128 130:229]"
	  RowSrc		  "Internal"
	  Rows			  "[29:128 130:229]"
	  ColumnSrc		  "Internal"
	  Columns		  "1"
	  IndexIsStartValue	  off
	  OutputPortSize	  "[(-2)]"
	}
	Block {

	  BlockType		  Reference
	  Name			  "Remove\nPilots"
	  Ports			  [1, 2]
	  Position		  [480, 12, 525, 83]
	SourceBlock	"dspindex/Multiport\nSelector"
	  SourceType		  "Multiport Selector"
	  rowsOrCols		  "Rows"
	  idxCellArray		  "{[1:12 14:37 39:62 64:87 89:112 114:137 139"
":162 164:187 189:200],[13 38 63 88 113 138 163 188]}"
	  idxErrMode		  "Clip Index"
	}
	Block {
	  BlockType		  Selector
	  Name			  "Remove Cyclic\nPrefix"
	  Ports			  [1, 1]
	  Position		  [95, 28, 145, 72]
	  InputPortWidth	  "320"
	  InputType		  "Vector"
	  ElementSrc		  "Internal"
	  Elements		  "[65:320]"
	  RowSrc		  "Internal"
	  Rows			  "[65:320]"
	  ColumnSrc		  "Internal"
	  Columns		  "1"
	  IndexIsStartValue	  off
	  OutputPortSize	  "[(-2)]"
	}
	Block {
	  BlockType		  Terminator
	  Name			  "Terminator"
	  Position		  [590, 58, 600, 72]
	  BackgroundColor	  "[1.000000, 0.501961, 0.000000]"
	  ShowName		  off
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out"
	  Position		  [575, 23, 605, 37]
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	}
	Line {
	  SrcBlock		  "Frame Status\nConversion"
	  SrcPort		  1
	  DstBlock		  "Remove\n zero-padding\nand\nreorder"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "FFT"
	  SrcPort		  1
	  DstBlock		  "Frame Status\nConversion"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "In"
	  SrcPort		  1
	  DstBlock		  "Remove Cyclic\nPrefix"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Remove\n zero-padding\nand\nreorder"
	  SrcPort		  1
	  DstBlock		  "Remove\nPilots"
	  DstPort		  1
	}
	Line {
	  Labels		  [0, 0]
	  SrcBlock		  "Remove\nPilots"
	  SrcPort		  1
	  DstBlock		  "Out"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Remove\nPilots"
	  SrcPort		  2
	  DstBlock		  "Terminator"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Remove Cyclic\nPrefix"
	  SrcPort		  1
	  DstBlock		  "FFT"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "OFDM\nSymbols"
      Ports		      [1, 1]
      Position		      [285, 73, 340, 117]
      ShowName		      off
      FontSize		      8
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      MaskDisplay	      "disp(' OFDM \\n Modulation');"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      System {
	Name			"OFDM\nSymbols"
	Location		[20, 115, 1032, 777]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "In"
	  Position		  [15, 178, 45, 192]
	  IconDisplay		  "Port number"
	}
	Block {
	  BlockType		  Gain
	  Name			  " "
	  Position		  [265, 144, 300, 166]
	  ShowName		  off
	  Gain			  "-1"
	  ParameterDataTypeMode	  "Inherit via internal rule"
	  OutDataTypeMode	  "Inherit via internal rule"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  Constant
	  Name			  " 1"
	  Position		  [180, 26, 305, 44]
	  ShowName		  off
	  Value			  "complex(0,0)*ones(28,1)"
	}
	Block {
	  BlockType		  Gain
	  Name			  "."
	  Position		  [270, 84, 305, 106]
	  ShowName		  off
	  Gain			  "-1"
	  ParameterDataTypeMode	  "Inherit via internal rule"
	  OutDataTypeMode	  "Inherit via internal rule"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  Selector
	  Name			  "Add Cyclic\nPrefix"
	  Ports			  [1, 1]
	  Position		  [430, 166, 480, 204]
	  InputPortWidth	  "256"
	  InputType		  "Vector"
	  ElementSrc		  "Internal"
	  Elements		  "[193:256 1:256]"
	  RowSrc		  "Internal"
	  Rows			  "[193:256 1:256]"
	  ColumnSrc		  "Internal"
	  Columns		  "1"
	  IndexIsStartValue	  off
	  OutputPortSize	  "[(-2)]"
	}
	Block {
	  BlockType		  Constant
	  Name			  "Constant"
	  Position		  [70, 16, 135, 34]
	  ShowName		  off
	  Value			  "complex(1,0)"
	}
	Block {
	  BlockType		  Constant
	  Name			  "Constant2"
	  Position		  [175, 326, 300, 344]
	  ShowName		  off
	  Value			  "complex(0,0)*ones(27,1)"
	}
	Block {
	  BlockType		  Constant
	  Name			  "Constant3"
	  Position		  [215, 176, 300, 194]
	  ShowName		  off
	  Value			  "complex(0,0)"
	}
	Block {

	  BlockType		  Reference
	  Name			  "IFFT"
	  Ports			  [1, 1]
	  Position		  [365, 169, 405, 201]
	  DialogController	  "dspDDGCreate"
	  DialogControllerArgs	  "DataTag1"
	SourceBlock	"dspxfrm3/IFFT"
	  SourceType		  "IFFT"
	  CompMethod		  "Table lookup"
	  TableOpt		  "Speed"
	  BitRevOrder		  off
	  cs_in			  off
	  SkipNorm		  off
	  InheritFFTLength	  on
	  FFTLength		  "64"
	  mode			  "Complex"
	  additionalParams	  off
	  allowOverrides	  on
	  firstCoeffMode	  "Same word length as input"
	  firstCoeffWordLength	  "16"
	  firstCoeffFracLength	  "15"
	  outputMode		  "Inherit via internal rule"
	  outputWordLength	  "16"
	  outputFracLength	  "15"
	  accumMode		  "Inherit via internal rule"
	  accumWordLength	  "32"
	  accumFracLength	  "30"
	  prodOutputMode	  "Inherit via internal rule"
	  prodOutputWordLength	  "32"
	  prodOutputFracLength	  "30"
	  roundingMode		  "Floor"
	  overflowMode		  off
	  LockScale		  off
	}
	Block {

	  BlockType		  Reference
	  Name			  "Matrix\nConcatenation"
	  Ports			  [21, 1]
	  Position		  [330, 35, 340, 335]
	SourceBlock	"simulink/Math\nOperations/Matrix\nConcatenation"
	  SourceType		  "Matrix Concatenation"
	  numInports		  "21"
	  catMethod		  "Vertical"
	}
	Block {

	  BlockType		  Reference
	  Name			  "Multiport\nSelector"
	  Ports			  [1, 10]
	  Position		  [70, 37, 135, 333]
	SourceBlock	"dspindex/Multiport\nSelector"
	  SourceType		  "Multiport Selector"
	  rowsOrCols		  "Rows"
	  idxCellArray		  "{1:12, 13:36, 37:60, 61:84, 85:96, 97:108, "
"109:132, 133:156, 157:180, 181:192}"
	  idxErrMode		  "Clip Index"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out"
	  Position		  [505, 178, 535, 192]
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	}
	Line {
	  SrcBlock		  "In"
	  SrcPort		  1
	  DstBlock		  "Multiport\nSelector"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Multiport\nSelector"
	  SrcPort		  9
	  DstBlock		  "Matrix\nConcatenation"
	  DstPort		  18
	}
	Line {
	  SrcBlock		  "Multiport\nSelector"
	  SrcPort		  8
	  DstBlock		  "Matrix\nConcatenation"
	  DstPort		  16
	}
	Line {
	  SrcBlock		  "Multiport\nSelector"
	  SrcPort		  7
	  DstBlock		  "Matrix\nConcatenation"
	  DstPort		  14
	}
	Line {
	  SrcBlock		  "Multiport\nSelector"
	  SrcPort		  6
	  DstBlock		  "Matrix\nConcatenation"
	  DstPort		  12
	}
	Line {
	  SrcBlock		  "Multiport\nSelector"
	  SrcPort		  5
	  DstBlock		  "Matrix\nConcatenation"
	  DstPort		  10
	}
	Line {
	  SrcBlock		  "Multiport\nSelector"
	  SrcPort		  4
	  DstBlock		  "Matrix\nConcatenation"
	  DstPort		  8
	}
	Line {
	  SrcBlock		  "Multiport\nSelector"
	  SrcPort		  3
	  DstBlock		  "Matrix\nConcatenation"
	  DstPort		  6
	}
	Line {
	  SrcBlock		  "Multiport\nSelector"
	  SrcPort		  2
	  DstBlock		  "Matrix\nConcatenation"
	  DstPort		  4
	}
	Line {
	  SrcBlock		  "Multiport\nSelector"
	  SrcPort		  1
	  DstBlock		  "Matrix\nConcatenation"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Multiport\nSelector"
	  SrcPort		  10
	  DstBlock		  "Matrix\nConcatenation"
	  DstPort		  20
	}
	Line {
	  SrcBlock		  "Constant"
	  SrcPort		  1
	  Points		  [35, 0; 0, 40]
	  Branch {
	    DstBlock		    "Matrix\nConcatenation"
	    DstPort		    3
	  }
	  Branch {
	    Points		    [0, 30]
	    Branch {
	      Points		      [0, 30]
	      Branch {
		DstBlock		"Matrix\nConcatenation"
		DstPort			7
	      }
	      Branch {
		Points			[0, 30]
		Branch {
		  DstBlock		  " "
		  DstPort		  1
		}
		Branch {
		  Points		  [0, 60]
		  Branch {
		    DstBlock		    "Matrix\nConcatenation"
		    DstPort		    13
		  }
		  Branch {
		    Points		    [0, 30]
		    Branch {
		    DstBlock		    "Matrix\nConcatenation"
		    DstPort		    15
		    }
		    Branch {
		    Points		    [0, 30]
		    Branch {
		    Points		    [0, 30]
		    DstBlock		    "Matrix\nConcatenation"
		    DstPort		    19
		    }
		    Branch {
		    DstBlock		    "Matrix\nConcatenation"
		    DstPort		    17
		    }
		    }
		  }
		}
	      }
	    }
	    Branch {
	      DstBlock		      "."
	      DstPort		      1
	    }
	  }
	}
	Line {
	  SrcBlock		  " 1"
	  SrcPort		  1
	  DstBlock		  "Matrix\nConcatenation"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Constant2"
	  SrcPort		  1
	  DstBlock		  "Matrix\nConcatenation"
	  DstPort		  21
	}
	Line {
	  SrcBlock		  "."
	  SrcPort		  1
	  DstBlock		  "Matrix\nConcatenation"
	  DstPort		  5
	}
	Line {
	  SrcBlock		  " "
	  SrcPort		  1
	  DstBlock		  "Matrix\nConcatenation"
	  DstPort		  9
	}
	Line {
	  SrcBlock		  "Constant3"
	  SrcPort		  1
	  DstBlock		  "Matrix\nConcatenation"
	  DstPort		  11
	}
	Line {
	  SrcBlock		  "IFFT"
	  SrcPort		  1
	  DstBlock		  "Add Cyclic\nPrefix"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Matrix\nConcatenation"
	  SrcPort		  1
	  DstBlock		  "IFFT"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Add Cyclic\nPrefix"
	  SrcPort		  1
	  DstBlock		  "Out"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      SubSystem

⌨️ 快捷键说明

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