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

📄 ofdm1.mdl

📁 本程序采用matlab中的simulink
💻 MDL
📖 第 1 页 / 共 4 页
字号:
    Block {
      BlockType		      Product
      Inputs		      "2"
      Multiplication	      "Element-wise(.*)"
      InputSameDT	      on
      OutDataTypeMode	      "Same as first input"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      LockScale		      off
      RndMeth		      "Zero"
      SaturateOnIntegerOverflow	on
      SampleTime	      "-1"
    }
    Block {
      BlockType		      RelationalOperator
      Operator		      ">="
      InputSameDT	      on
      LogicOutDataTypeMode    "Logical (see Configuration Parameters: Optimiza"
"tion)"
      LogicDataType	      "uint(8)"
      ZeroCross		      on
      SampleTime	      "-1"
    }
    Block {
      BlockType		      Selector
      InputType		      "Vector"
      IndexMode		      "One-based"
      ElementSrc	      "Internal"
      Elements		      "1"
      RowSrc		      "Internal"
      Rows		      "1"
      ColumnSrc		      "Internal"
      Columns		      "1"
      InputPortWidth	      "-1"
      IndexIsStartValue	      off
      OutputPortSize	      "1"
    }
    Block {
      BlockType		      "S-Function"
      FunctionName	      "system"
      SFunctionModules	      "''"
      PortCounts	      "[]"
    }
    Block {
      BlockType		      SubSystem
      ShowPortLabels	      on
      Permissions	      "ReadWrite"
      PermitHierarchicalResolution "All"
      SystemSampleTime	      "-1"
      RTWFcnNameOpts	      "Auto"
      RTWFileNameOpts	      "Auto"
      SimViewingDevice	      off
      DataTypeOverride	      "UseLocalSettings"
      MinMaxOverflowLogging   "UseLocalSettings"
    }
    Block {
      BlockType		      Sum
      IconShape		      "rectangular"
      Inputs		      "++"
      InputSameDT	      on
      OutDataTypeMode	      "Same as first input"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      LockScale		      off
      RndMeth		      "Floor"
      SaturateOnIntegerOverflow	on
      SampleTime	      "-1"
    }
    Block {
      BlockType		      TriggerPort
      TriggerType	      "rising"
      StatesWhenEnabling      "inherit"
      ShowOutputPort	      off
      OutputDataType	      "auto"
      SampleTimeType	      "triggered"
      SampleTime	      "1"
      ZeroCross		      on
    }
  }
  AnnotationDefaults {
    HorizontalAlignment	    "center"
    VerticalAlignment	    "middle"
    ForegroundColor	    "black"
    BackgroundColor	    "white"
    DropShadow		    off
    FontName		    "Helvetica"
    FontSize		    10
    FontWeight		    "normal"
    FontAngle		    "normal"
  }
  LineDefaults {
    FontName		    "Helvetica"
    FontSize		    9
    FontWeight		    "normal"
    FontAngle		    "normal"
  }
  System {
    Name		    "ofdm1"
    Location		    [7, 82, 1291, 999]
    Open		    on
    ModelBrowserVisibility  off
    ModelBrowserWidth	    200
    ScreenColor		    "white"
    PaperOrientation	    "landscape"
    PaperPositionMode	    "auto"
    PaperType		    "A4"
    PaperUnits		    "centimeters"
    ZoomFactor		    "80"
    ReportName		    "simulink-default.rpt"
    Block {
      BlockType		      Reference
      Name		      "BPSK\nDemodulator\nBaseband"
      Ports		      [1, 1]
      Position		      [925, 386, 1000, 434]
      SourceBlock	      "commdigbbndpm2/BPSK\nDemodulator\nBaseband"
      SourceType	      "BPSK Demodulator Baseband"
      ShowPortLabels	      on
      Ph		      "0"
      numSamp		      "1"
    }
    Block {
      BlockType		      Reference
      Name		      "BPSK\nModulator\nBaseband"
      Ports		      [1, 1]
      Position		      [180, 138, 240, 182]
      SourceBlock	      "commdigbbndpm2/BPSK\nModulator\nBaseband"
      SourceType	      "BPSK Modulator Baseband"
      ShowPortLabels	      on
      Ph		      "0"
      numSamp		      "1"
    }
    Block {
      BlockType		      Reference
      Name		      "Bernoulli Binary\nGenerator"
      Ports		      [0, 1]
      Position		      [40, 138, 120, 182]
      FontName		      "Arial"
      SourceBlock	      "commrandsrc2/Bernoulli Binary\nGenerator"
      SourceType	      "Bernoulli Binary Generator"
      ShowPortLabels	      on
      P			      "0.5"
      seed		      "565"
      Ts		      "1/480000"
      frameBased	      off
      sampPerFrame	      "3"
      orient		      off
    }
    Block {
      BlockType		      Reference
      Name		      "Buffer"
      Ports		      [1, 1]
      Position		      [285, 133, 310, 187]
      SourceBlock	      "dspbuff3/Buffer"
      SourceType	      "Buffer"
      N			      "4"
      V			      "0"
      ic		      "1"
    }
    Block {
      BlockType		      Reference
      Name		      "Buffer1"
      Ports		      [1, 1]
      Position		      [525, 111, 555, 169]
      SourceBlock	      "dspbuff3/Buffer"
      SourceType	      "Buffer"
      N			      "120"
      V			      "0"
      ic		      "1"
    }
    Block {
      BlockType		      Reference
      Name		      "Buffer3"
      Ports		      [1, 1]
      Position		      [600, 357, 630, 423]
      SourceBlock	      "dspbuff3/Buffer"
      SourceType	      "Buffer"
      N			      "5"
      V			      "0"
      ic		      "1"
    }
    Block {
      BlockType		      Constant
      Name		      "Constant"
      Position		      [790, 165, 820, 195]
      Value		      "sqrt(128)"
    }
    Block {
      BlockType		      Reference
      Name		      "DSP\nConstant"
      Ports		      [0, 1]
      Position		      [325, 107, 345, 133]
      SourceBlock	      "dspsrcs4/DSP\nConstant"
      SourceType	      "DSP Constant"
      ShowPortLabels	      on
      Value		      "1"
      SampleMode	      "Discrete"
      discreteOutput	      "Sample-based"
      continuousOutput	      "Sample-based"
      sampTime		      "4/480000"
      framePeriod	      "2"
      additionalParams	      off
      allowOverrides	      on
      dataType		      "Inherit from 'Constant value'"
      isSigned		      on
      wordLen		      "16"
      udDataType	      "sfix(16)"
      fracBitsMode	      "Best precision"
      numFracBits	      "15"
      InterpretAs1D	      "-inf"
      Ts		      "-inf"
      FramebasedOutput	      "-inf"
    }
    Block {
      BlockType		      Demux
      Name		      "Demux"
      Ports		      [1, 5]
      Position		      [675, 292, 690, 488]
      BackgroundColor	      "black"
      ShowName		      off
      Outputs		      "5"
      DisplayOption	      "bar"
    }
    Block {
      BlockType		      Display
      Name		      "Display"
      Ports		      [1]
      Position		      [1250, 311, 1410, 419]
      Decimation	      "1"
    }
    Block {
      BlockType		      Reference
      Name		      "Error Rate\nCalculation"
      Ports		      [2, 1]
      Position		      [1090, 291, 1160, 404]
      SourceBlock	      "commsink2/Error Rate\nCalculation"
      SourceType	      "Error Rate Calculation"
      N			      "200"
      st_delay		      "1"
      cp_mode		      "Entire frame"
      subframe		      "[]"
      PMode		      "Port"
      WsName		      "ErrorVec"
      RsMode2		      off
      stop		      on
      numErr		      "1000 "
      maxBits		      "1000000000000000000000000000000"
    }
    Block {
      BlockType		      Reference
      Name		      "Error Rate\nCalculation1"
      Ports		      [2, 1]
      Position		      [1100, 446, 1170, 559]
      SourceBlock	      "commsink2/Error Rate\nCalculation"
      SourceType	      "Error Rate Calculation"
      N			      "200"
      st_delay		      "1"
      cp_mode		      "Entire frame"
      subframe		      "[]"
      PMode		      "Port"
      WsName		      "ErrorVec"
      RsMode2		      off
      stop		      on
      numErr		      "1000"
      maxBits		      "1e18"
    }
    Block {
      BlockType		      FrameConversion
      Name		      "Frame Conversion"
      Position		      [925, 140, 980, 180]
      OutFrame		      "Frame based"
    }
    Block {
      BlockType		      Reference
      Name		      "IFFT"
      Ports		      [1, 1]
      Position		      [735, 120, 775, 160]
      DialogController	      "dspDDGCreate"
      DialogControllerArgs    "DataTag0"
      SourceBlock	      "dspxfrm3/IFFT"
      SourceType	      "IFFT"
      CompMethod	      "Table lookup"
      TableOpt		      "Speed"
      BitRevOrder	      off
      cs_in		      off
      SkipNorm		      off
      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		      [2, 1]
      Position		      [375, 98, 410, 182]
      SourceBlock	      "simulink/Math\nOperations/Matrix\nConcatenation"
      SourceType	      "Matrix Concatenation"
      numInports	      "2"
      catMethod		      "Vertical"
    }
    Block {
      BlockType		      Reference
      Name		      "Matrix\nConcatenation1"
      Ports		      [4, 1]
      Position		      [750, 329, 825, 491]
      SourceBlock	      "simulink/Math\nOperations/Matrix\nConcatenation"
      SourceType	      "Matrix Concatenation"
      numInports	      "4"
      catMethod		      "Vertical"
    }
    Block {
      BlockType		      Product
      Name		      "Product"
      Ports		      [2, 1]
      Position		      [850, 119, 880, 201]
      InputSameDT	      off
      OutDataTypeMode	      "Inherit via internal rule"
      SaturateOnIntegerOverflow	off
    }
    Block {
      BlockType		      Selector
      Name		      "Selector"
      Ports		      [1, 1]
      Position		      [1050, 141, 1090, 179]
      Elements		      "[97:128,1:128]"
      InputPortWidth	      "128"
    }
    Block {
      BlockType		      SubSystem
      Name		      "Subsystem"
      Ports		      [1, 2]
      Position		      [85, 302, 190, 353]
      TreatAsAtomicUnit	      off
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      System {
	Name			"Subsystem"
	Location		[180, 300, 1015, 897]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "In1"
	  Position		  [40, 78, 70, 92]
	  Port			  "1"
	  IconDisplay		  "Port number"
	  LatchInput		  off
	}
	Block {
	  BlockType		  Reference
	  Name			  "AWGN\nChannel1"
	  Ports			  [1, 1]
	  Position		  [290, 64, 370, 106]
	  SourceBlock		  "commchan2/AWGN\nChannel"
	  SourceType		  "AWGN Channel"
	  ShowPortLabels	  on
	  seed			  "67"
	  noiseMode		  "Signal to noise ratio  (Eb/No)"
	  EbNodB		  "10"
	  EsNodB		  "10"
	  SNRdB			  "10"
	  bitsPerSym		  "1"
	  Ps			  "1"
	  Tsym			  "0.6/480000+1e-9"
	  variance		  "1"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Buffer2"
	  Ports			  [1, 1]
	  Position		  [435, 58, 460, 112]
	  SourceBlock		  "dspbuff3/Buffer"
	  SourceType		  "Buffer"
	  N			  "160"
	  V			  "0"
	  ic			  "1"
	}
	Block {
	  BlockType		  Constant
	  Name			  "Constant1"
	  Position		  [575, 110, 605, 140]
	  Value			  "1/sqrt(128)"
	}
	Block {
	  BlockType		  Reference
	  Name			  "FFT"
	  Ports			  [1, 1]
	  Position		  [50, 268, 90, 302]
	  DialogController	  "dspDDGCreate"
	  DialogControllerArgs	  "DataTag1"
	  SourceBlock		  "dspxfrm3/FFT"
	  SourceType		  "FFT"
	  CompMethod		  "Table lookup"
	  TableOpt		  "Speed"
	  BitRevOrder		  off
	  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		  FrameConversion
	  Name			  "Frame Conversion"
	  Position		  [125, 265, 180, 305]
	  OutFrame		  "Frame based"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Multipath Rayleigh\nFading Channel"
	  Ports			  [1, 1]
	  Position		  [115, 63, 195, 107]
	  SourceBlock		  "commchan2/Multipath Rayleigh\nFading Channe"
"l"
	  SourceType		  "Multipath Rayleigh Fading Channel"
	  ShowPortLabels	  on
	  Fd			  "40"
	  simTs			  "1.25e-6"
	  delayVec		  "[0 2e-5]"
	  gainVecdB		  "[0 -3]"
	  normGain		  on
	  Seed			  "112456"
	}
	Block {
	  BlockType		  Product
	  Name			  "Product1"
	  Ports			  [2, 1]
	  Position		  [645, 64, 675, 146]
	  InputSameDT		  off
	  OutDataTypeMode	  "Inherit via internal rule"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  Selector
	  Name			  "Selector1"
	  Ports			  [1, 1]
	  Position		  [485, 66, 525, 104]
	  Elements		  "[33:160]"
	  InputPortWidth	  "160"
	}
	Block {
	  BlockType		  Selector
	  Name			  "Selector2"
	  Ports			  [1, 1]
	  Position		  [225, 266, 265, 304]
	  Elements		  "[5:124]"
	  InputPortWidth	  "128"
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Subsystem"
	  Ports			  [1, 1]
	  Position		  [370, 344, 470, 386]
	  TreatAsAtomicUnit	  off
	  MinAlgLoopOccurrences	  off
	  RTWSystemCode		  "Auto"
	  System {
	    Name		    "Subsystem"
	    Location		    [340, 291, 838, 591]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "A4"
	    PaperUnits		    "centimeters"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport

⌨️ 快捷键说明

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