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

📄 ofdm_12.mdl

📁 用于OFDM通信仿真的同步算法源代码
💻 MDL
📖 第 1 页 / 共 5 页
字号:
      YMax		      "1000"
      SaveName		      "ScopeData1"
      DataFormat	      "StructureWithTime"
      MaxDataPoints	      "50000"
      Decimation	      "4"
      SampleTime	      "0"
    }
    Block {
      BlockType		      SubSystem
      Name		      "Channel"
      Ports		      [3, 1]
      Position		      [505, 40, 665, 180]
      BackgroundColor	      "magenta"
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      FunctionWithSeparateData off
      System {
	Name			"Channel"
	Location		[22, 129, 952, 571]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	TiledPaperMargins	[0.500000, 0.500000, 0.500000, 0.500000]
	TiledPageScale		1
	ShowPageBoundaries	off
	ZoomFactor		"110"
	Block {
	  BlockType		  Inport
	  Name			  "Delay"
	  Position		  [40, 253, 70, 267]
	  IconDisplay		  "Port number"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	}
	Block {
	  BlockType		  Inport
	  Name			  "In1"
	  Position		  [40, 148, 70, 162]
	  Port			  "2"
	  IconDisplay		  "Port number"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	}
	Block {
	  BlockType		  Inport
	  Name			  "Channel Enable"
	  Position		  [40, 223, 70, 237]
	  Port			  "3"
	  IconDisplay		  "Port number"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	}
	Block {
	  BlockType		  Reference
	  Name			  "AWGN\nChannel1"
	  Ports			  [1, 1]
	  Position		  [155, 126, 250, 184]
	  SourceBlock		  "commchan3/AWGN\nChannel"
	  SourceType		  "AWGN Channel"
	  ShowPortLabels	  "FromPortIcon"
	  SystemSampleTime	  "-1"
	  FunctionWithSeparateData off
	  RTWMemSecFuncInitTerm	  "Inherit from model"
	  RTWMemSecFuncExecute	  "Inherit from model"
	  RTWMemSecDataConstants  "Inherit from model"
	  RTWMemSecDataInternal	  "Inherit from model"
	  RTWMemSecDataParameters "Inherit from model"
	  seed			  "15"
	  noiseMode		  "Signal to noise ratio  (SNR)"
	  EbNodB		  "10"
	  EsNodB		  "10"
	  SNRdB			  "200"
	  bitsPerSym		  "1"
	  Ps			  "1"
	  Tsym			  "1"
	  variance		  "1"
	}
	Block {
	  BlockType		  Sum
	  Name			  "Add"
	  Ports			  [2, 1]
	  Position		  [210, 252, 240, 283]
	  CollapseMode		  "All dimensions"
	  InputSameDT		  off
	  OutDataTypeMode	  "Inherit via internal rule"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^-10"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  Constant
	  Name			  "Constant"
	  Position		  [100, 300, 130, 330]
	  Value			  "515"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Dispersive Channel"
	  Ports			  [1, 1]
	  Position		  [400, 118, 485, 172]
	  DialogController	  "dspdialog.DigitalFilter"
	  DialogControllerArgs	  "DataTag0"
	  SourceBlock		  "dsparch4/Digital Filter"
	  SourceType		  "Digital Filter"
	  TypePopup		  "FIR (all zeros)"
	  IIRFiltStruct		  "Direct form II transposed"
	  AllPoleFiltStruct	  "Direct form"
	  FIRFiltStruct		  "Direct form"
	  CoeffSource		  "Specify via dialog"
	  NumCoeffs		  "[1   0  0  0.8 0 0 0 -0.7      j*.500   0 0 0 0 0 0 0  -.5  0 0 0 0 0 0 0 0 .5]/2"
	  DenCoeffs		  "[1 0.1]"
	  BiQuadCoeffs		  "[1 0.3 0.4 1 0.1 0.2]"
	  LatticeCoeffs		  "[0.2 0.4]"
	  denIgnore		  on
	  FiltPerSampPopup	  "One filter per frame"
	  IC			  "0"
	  ICnum			  "0"
	  ICden			  "0"
	  additionalParams	  off
	  allowOverrides	  on
	  showCoeff		  off
	  firstCoeffMode	  "Same word length as input"
	  firstCoeffWordLength	  "16"
	  firstCoeffFracLength	  "15"
	  secondCoeffMode	  "Same as numerator"
	  secondCoeffWordLength	  "16"
	  secondCoeffFracLength	  "15"
	  thirdCoeffMode	  "Same as input"
	  thirdCoeffWordLength	  "16"
	  thirdCoeffFracLength	  "15"
	  showOut		  off
	  outputMode		  "Same as accumulator"
	  outputWordLength	  "16"
	  outputFracLength	  "15"
	  showAcc		  off
	  accumMode		  "Same as product output"
	  accumWordLength	  "32"
	  accumFracLength	  "30"
	  showMpy		  off
	  prodOutputMode	  "Same as input"
	  prodOutputWordLength	  "32"
	  prodOutputFracLength	  "30"
	  showMem		  off
	  memoryMode		  "Same as accumulator"
	  memoryWordLength	  "16"
	  memoryFracLength	  "15"
	  roundingMode		  "Floor"
	  overflowMode		  off
	  ScaleValues		  "1"
	  scaleValueFracLength	  "14"
	  tapSumMode		  "Same as input"
	  tapSumWordLength	  "32"
	  tapSumFracLength	  "30"
	  stageIOMode		  "Same as input"
	  stageIOWordLength	  "16"
	  stageInFracLength	  "15"
	  stageOutFracLength	  "15"
	  LockScale		  off
	  FilterSource		  "Specify via dialog"
	  dfiltObjectName	  "dfilt.dffir([1 2 1])"
	  multiplicandMode	  "Same as output"
	  multiplicandWordLength  "32"
	  multiplicandFracLength  "30"
	}
	Block {
	  BlockType		  Gain
	  Name			  "Gain"
	  Position		  [130, 245, 160, 275]
	  Gain			  "D"
	  ParameterDataTypeMode	  "Inherit via internal rule"
	  ParameterDataType	  "sfix(16)"
	  ParameterScaling	  "2^0"
	  OutDataTypeMode	  "Inherit via internal rule"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  Reference
	  Name			  "Manual Switch"
	  Ports			  [2, 1]
	  Position		  [290, 127, 320, 163]
	  SourceBlock		  "simulink/Signal\nRouting/Manual Switch"
	  SourceType		  "Manual Switch"
	  ShowPortLabels	  "FromPortIcon"
	  SystemSampleTime	  "-1"
	  FunctionWithSeparateData off
	  RTWMemSecFuncInitTerm	  "Inherit from model"
	  RTWMemSecFuncExecute	  "Inherit from model"
	  RTWMemSecDataConstants  "Inherit from model"
	  RTWMemSecDataInternal	  "Inherit from model"
	  RTWMemSecDataParameters "Inherit from model"
	  sw			  "1"
	  action		  "0"
	  varsize		  off
	}
	Block {
	  BlockType		  Switch
	  Name			  "Switch"
	  Position		  [600, 140, 630, 170]
	  Threshold		  ".5"
	  InputSameDT		  off
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  Reference
	  Name			  "Variable\nInteger Delay"
	  Ports			  [2, 1]
	  Position		  [680, 145, 765, 185]
	  SourceBlock		  "dspsigops/Variable\nInteger Delay"
	  SourceType		  "Variable Integer Delay"
	  dmax			  "2*516"
	  ic			  "0"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out1"
	  Position		  [805, 158, 835, 172]
	  IconDisplay		  "Port number"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	}
	Line {
	  SrcBlock		  "Switch"
	  SrcPort		  1
	  DstBlock		  "Variable\nInteger Delay"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "In1"
	  SrcPort		  1
	  Points		  [40, 0]
	  Branch {
	    DstBlock		    "AWGN\nChannel1"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, -75; 160, 0]
	    DstBlock		    "Manual Switch"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Variable\nInteger Delay"
	  SrcPort		  1
	  DstBlock		  "Out1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Channel Enable"
	  SrcPort		  1
	  Points		  [480, 0; 0, -75]
	  DstBlock		  "Switch"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Delay"
	  SrcPort		  1
	  DstBlock		  "Gain"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Add"
	  SrcPort		  1
	  Points		  [420, 0]
	  DstBlock		  "Variable\nInteger Delay"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Constant"
	  SrcPort		  1
	  Points		  [30, 0; 0, -40]
	  DstBlock		  "Add"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Dispersive Channel"
	  SrcPort		  1
	  DstBlock		  "Switch"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Gain"
	  SrcPort		  1
	  DstBlock		  "Add"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "AWGN\nChannel1"
	  SrcPort		  1
	  DstBlock		  "Manual Switch"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Manual Switch"
	  SrcPort		  1
	  Points		  [30, 0]
	  Branch {
	    DstBlock		    "Dispersive Channel"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, 60; 230, 0]
	    DstBlock		    "Switch"
	    DstPort		    3
	  }
	}
	Annotation {
	  Name			  "  "
	  Position		  [100, 121]
	  FontName		  "Arial"
	  FontSize		  16
	  FontWeight		  "bold"
	}
      }
    }
    Block {
      BlockType		      Product
      Name		      "De-rotate"
      Ports		      [2, 1]
      Position		      [425, 372, 455, 403]
      Orientation	      "left"
      BackgroundColor	      "cyan"
      CollapseMode	      "All dimensions"
      InputSameDT	      off
      OutDataTypeMode	      "Inherit via internal rule"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      SaturateOnIntegerOverflow	off
    }
    Block {
      BlockType		      Reference
      Name		      "Discrete\nConstant1"
      Ports		      [0, 1]
      Position		      [145, 572, 225, 598]
      ShowName		      off
      SourceBlock	      "dspsrcs4/DSP\nConstant"
      SourceType	      "DSP Constant"
      ShowPortLabels	      "FromPortIcon"
      SystemSampleTime	      "-1"
      FunctionWithSeparateData off
      RTWMemSecFuncInitTerm   "Inherit from model"
      RTWMemSecFuncExecute    "Inherit from model"
      RTWMemSecDataConstants  "Inherit from model"
      RTWMemSecDataInternal   "Inherit from model"
      RTWMemSecDataParameters "Inherit from model"
      Value		      "nco_nominal"
      SampleMode	      "Discrete"
      discreteOutput	      "Sample-based (interpret vectors as 1-D)"
      continuousOutput	      "Sample-based"
      sampTime		      "2/F_nco"
      framePeriod	      "2/F_nco"
      additionalParams	      on
      allowOverrides	      on
      dataType		      "Inherit via back propagation"
      isSigned		      on
      wordLen		      "16"
      udDataType	      "sfix(16)"
      fracBitsMode	      "Best precision"
      numFracBits	      "15"
      InterpretAs1D	      "on"
      Ts		      "2/F_nco"
      FramebasedOutput	      "off"
    }
    Block {
      BlockType		      Reference
      Name		      "Discrete\nConstant2"
      Ports		      [0, 1]
      Position		      [310, 131, 335, 159]
      ShowName		      off
      SourceBlock	      "dspsrcs4/DSP\nConstant"
      SourceType	      "DSP Constant"
      ShowPortLabels	      "FromPortIcon"
      SystemSampleTime	      "-1"
      FunctionWithSeparateData off
      RTWMemSecFuncInitTerm   "Inherit from model"
      RTWMemSecFuncExecute    "Inherit from model"
      RTWMemSecDataConstants  "Inherit from model"
      RTWMemSecDataInternal   "Inherit from model"
      RTWMemSecDataParameters "Inherit from model"
      Value		      "1"
      SampleMode	      "Discrete"
      discreteOutput	      "Sample-based (interpret vectors as 1-D)"
      continuousOutput	      "Sample-based"
      sampTime		      "inf"
      framePeriod	      "inf"
      additionalParams	      on
      allowOverrides	      on
      dataType		      "Inherit via back propagation"
      isSigned		      on
      wordLen		      "16"
      udDataType	      "sfix(16)"
      fracBitsMode	      "Best precision"
      numFracBits	      "15"
      InterpretAs1D	      "on"
      Ts		      "inf"
      FramebasedOutput	      "off"
    }
    Block {
      BlockType		      Reference
      Name		      "Discrete\nConstant3"
      Ports		      [0, 1]
      Position		      [290, 446, 315, 474]
      Orientation	      "left"
      ShowName		      off
      SourceBlock	      "dspsrcs4/DSP\nConstant"
      SourceType	      "DSP Constant"
      ShowPortLabels	      "FromPortIcon"
      SystemSampleTime	      "-1"
      FunctionWithSeparateData off
      RTWMemSecFuncInitTerm   "Inherit from model"
      RTWMemSecFuncExecute    "Inherit from model"
      RTWMemSecDataConstants  "Inherit from model"
      RTWMemSecDataInternal   "Inherit from model"
      RTWMemSecDataParameters "Inherit from model"
      Value		      "1"
      SampleMode	      "Discrete"
      discreteOutput	      "Sample-based (interpret vectors as 1-D)"
      continuousOutput	      "Sample-based"
      sampTime		      "inf"
      framePeriod	      "inf"
      additionalParams	      on
      allowOverrides	      on
      dataType		      "Inherit via back propagation"
      isSigned		      on
      wordLen		      "16"
      udDataType	      "sfix(16)"
      fracBitsMode	      "Best precision"
      numFracBits	      "15"
      InterpretAs1D	      "on"
      Ts		      "inf"
      FramebasedOutput	      "off"
    }
    Block {
      BlockType		      Reference
      Name		      "Discrete\nConstant4"
      Ports		      [0, 1]
      Position		      [345, 151, 370, 179]
      ShowName		      off
      SourceBlock	      "dspsrcs4/DSP\nConstant"
      SourceType	      "DSP Constant"

⌨️ 快捷键说明

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