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

📄 uncoded_psk.mdl

📁 用simlink开发的space-time coding仿真模型,仿真的精度与效率有不小的提高
💻 MDL
📖 第 1 页 / 共 2 页
字号:
    }
    Block {
      BlockType		      Inport
      BusObject		      "BusObject"
      BusOutputAsStruct	      off
      PortDimensions	      "-1"
      SampleTime	      "-1"
      DataType		      "auto"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      SignalType	      "auto"
      SamplingMode	      "auto"
      Interpolate	      on
    }
    Block {
      BlockType		      Math
      Operator		      "exp"
      OutputSignalType	      "auto"
      SampleTime	      "-1"
      OutDataTypeMode	      "Same as first input"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      LockScale		      off
      RndMeth		      "Floor"
      SaturateOnIntegerOverflow	on
    }
    Block {
      BlockType		      Mux
      Inputs		      "4"
      DisplayOption	      "none"
      BusObject		      "BusObject"
      NonVirtualBus	      off
    }
    Block {
      BlockType		      Outport
      Port		      "1"
      BusObject		      "BusObject"
      BusOutputAsStruct	      off
      PortDimensions	      "-1"
      SampleTime	      "-1"
      DataType		      "auto"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      SignalType	      "auto"
      SamplingMode	      "auto"
      OutputWhenDisabled      "held"
      InitialOutput	      "[]"
    }
    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		      RateTransition
      Integrity		      on
      Deterministic	      on
      X0		      "0"
      OutPortSampleTime	      "-1"
    }
    Block {
      BlockType		      RealImagToComplex
      Input		      "Real and imag"
      ConstantPart	      "0"
      SampleTime	      "-1"
    }
    Block {
      BlockType		      Reference
    }
    Block {
      BlockType		      Rounding
      Operator		      "floor"
      SampleTime	      "-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		      ToWorkspace
      VariableName	      "simulink_output"
      MaxDataPoints	      "1000"
      Decimation	      "1"
      SampleTime	      "0"
      FixptAsFi		      off
    }
    Block {
      BlockType		      Trigonometry
      Operator		      "sin"
      OutputSignalType	      "auto"
      SampleTime	      "-1"
    }
  }
  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		    "uncoded_PSK"
    Location		    [2, 74, 1014, 724]
    Open		    on
    ModelBrowserVisibility  off
    ModelBrowserWidth	    200
    ScreenColor		    "white"
    PaperOrientation	    "landscape"
    PaperPositionMode	    "auto"
    PaperType		    "A4"
    PaperUnits		    "centimeters"
    ZoomFactor		    "100"
    ReportName		    "simulink-default.rpt"
    Block {
      BlockType		      Reference
      Name		      "AWGN"
      Ports		      [1, 1]
      Position		      [665, 97, 720, 123]
      SourceBlock	      "commchan2/AWGN\nChannel"
      SourceType	      "AWGN Channel"
      ShowPortLabels	      on
      seed		      "46567"
      noiseMode		      "Signal to noise ratio  (SNR)"
      EbNodB		      "15"
      EsNodB		      "10"
      SNRdB		      "snr"
      bitsPerSym	      "1"
      Ps		      "1"
      Tsym		      "1e-5"
      variance		      "1"
    }
    Block {
      BlockType		      Reference
      Name		      "BER"
      Ports		      [2, 1]
      Position		      [439, 350, 526, 410]
      Orientation	      "down"
      NamePlacement	      "alternate"
      SourceBlock	      "commsink2/Error Rate\nCalculation"
      SourceType	      "Error Rate Calculation"
      N			      "0"
      st_delay		      "0"
      cp_mode		      "Entire frame"
      subframe		      "[]"
      PMode		      "Port"
      WsName		      "ErrorVec"
      RsMode2		      off
      stop		      off
      numErr		      "200"
      maxBits		      "1e6"
    }
    Block {
      BlockType		      Display
      Name		      "BER 2"
      Ports		      [1]
      Position		      [520, 439, 605, 501]
      BackgroundColor	      "lightBlue"
      Decimation	      "1"
    }
    Block {
      BlockType		      Reference
      Name		      "Complex\nExponential"
      Ports		      [1, 1]
      Position		      [340, 234, 375, 266]
      SourceBlock	      "dspmathops/Complex\nExponential"
      SourceType	      "Complex Exponential"
      ShowPortLabels	      on
    }
    Block {
      BlockType		      RateTransition
      Name		      "Copy"
      Position		      [485, 191, 515, 219]
      Integrity		      off
      OutPortSampleTime	      "1e-5"
    }
    Block {
      BlockType		      Reference
      Name		      "Integer to Bit\nConverter"
      Ports		      [1, 1]
      Position		      [135, 83, 190, 117]
      SourceBlock	      "commutil2/Integer to Bit\nConverter"
      SourceType	      "Integer to Bit Converter"
      nbits		      "2"
    }
    Block {
      BlockType		      Reference
      Name		      "M-PSK\nDemodulator\nBaseband"
      Ports		      [1, 1]
      Position		      [830, 102, 880, 138]
      SourceBlock	      "commdigbbndpm2/M-PSK\nDemodulator\nBaseband"
      SourceType	      "M-PSK Demodulator Baseband"
      M			      "4"
      OutType		      "Bit"
      Dec		      "Gray"
      Ph		      "0"
      numSamp		      "1"
    }
    Block {
      BlockType		      Reference
      Name		      "M-PSK\nModulator\nBaseband"
      Ports		      [1, 1]
      Position		      [260, 83, 310, 117]
      SourceBlock	      "commdigbbndpm2/M-PSK\nModulator\nBaseband"
      SourceType	      "M-PSK Modulator Baseband"
      M			      "4"
      InType		      "Bit"
      Enc		      "Gray"
      Ph		      "0"
      numSamp		      "1"
    }
    Block {
      BlockType		      Math
      Name		      "Math\nFunction"
      Ports		      [1, 1]
      Position		      [625, 190, 655, 220]
      Operator		      "conj"
    }
    Block {
      BlockType		      Product
      Name		      "Product"
      Ports		      [2, 1]
      Position		      [580, 94, 610, 121]
      InputSameDT	      off
      OutDataTypeMode	      "Inherit via internal rule"
      SaturateOnIntegerOverflow	off
    }
    Block {
      BlockType		      Product
      Name		      "Product1"
      Ports		      [2, 1]
      Position		      [425, 187, 455, 218]
      InputSameDT	      off
      OutDataTypeMode	      "Inherit via internal rule"
      SaturateOnIntegerOverflow	off
    }
    Block {
      BlockType		      Product
      Name		      "Product2"
      Ports		      [2, 1]
      Position		      [780, 104, 810, 131]
      InputSameDT	      off
      OutDataTypeMode	      "Inherit via internal rule"
      SaturateOnIntegerOverflow	off
    }
    Block {
      BlockType		      Reference
      Name		      "Random Integer\nGenerator"
      Ports		      [0, 1]
      Position		      [50, 83, 105, 117]
      FontName		      "Arial"
      SourceBlock	      "commrandsrc2/Random Integer\nGenerator"
      SourceType	      "Random Integer Generator"
      ShowPortLabels	      on
      mul		      "4"
      seed		      "36887"
      Ts		      "1e-5"
      frameBased	      on
      sampPerFrame	      "1"
      orient		      off
    }
    Block {
      BlockType		      Reference
      Name		      "Rayleigh Noise\nGenerator"
      Ports		      [0, 1]
      Position		      [260, 177, 315, 213]
      SourceBlock	      "commnoisgen2/Rayleigh Noise\nGenerator"
      SourceType	      "Rayleigh Noise Generator"
      ShowPortLabels	      on
      alpha		      "sqrt(1/2)"
      seed		      "15761"
      Ts		      "1e-5"
      frameBased	      off
      sampPerFrame	      "1"
      orient		      off
    }
    Block {
      BlockType		      Reference
      Name		      "Signal To\nWorkspace"
      Ports		      [1]
      Position		      [540, 538, 595, 572]
      SourceBlock	      "dspsnks4/Signal To\nWorkspace"
      SourceType	      "Signal To Workspace"
      ShowPortLabels	      on
      VariableName	      "ErrorVec"
      MaxDataPoints	      "1"
      Decimation	      "1"
      FrameMode		      "Concatenate frames (2-D array)"
      FixptAsFi		      off
    }
    Block {
      BlockType		      Reference
      Name		      "Uniform Noise\nGenerator"
      Ports		      [0, 1]
      Position		      [260, 234, 315, 266]
      SourceBlock	      "commnoisgen2/Uniform Noise\nGenerator"
      SourceType	      "Uniform Noise Generator"
      ShowPortLabels	      on
      low		      "0"
      up		      "2*pi"
      seed		      "23813"
      Ts		      "1e-5"
      frameBased	      off
      sampPerFrame	      "1"
      orient		      off
    }
    Line {
      SrcBlock		      "AWGN"
      SrcPort		      1
      DstBlock		      "Product2"
      DstPort		      1
    }
    Line {
      SrcBlock		      "BER"
      SrcPort		      1
      Points		      [0, 0; 0, 55]
      Branch {
	DstBlock		"BER 2"
	DstPort			1
      }
      Branch {
	Points			[0, 85]
	DstBlock		"Signal To\nWorkspace"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "M-PSK\nDemodulator\nBaseband"
      SrcPort		      1
      Points		      [10, 0; 0, 205; -390, 0]
      DstBlock		      "BER"
      DstPort		      2
    }
    Line {
      SrcBlock		      "M-PSK\nModulator\nBaseband"
      SrcPort		      1
      DstBlock		      "Product"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Integer to Bit\nConverter"
      SrcPort		      1
      Points		      [15, 0; 10, 0]
      Branch {
	DstBlock		"M-PSK\nModulator\nBaseband"
	DstPort			1
      }
      Branch {
	Points			[0, 220; 240, 0]
	DstBlock		"BER"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Uniform Noise\nGenerator"
      SrcPort		      1
      DstBlock		      "Complex\nExponential"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Rayleigh Noise\nGenerator"
      SrcPort		      1
      DstBlock		      "Product1"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Complex\nExponential"
      SrcPort		      1
      Points		      [15, 0; 0, -40]
      DstBlock		      "Product1"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Product1"
      SrcPort		      1
      DstBlock		      "Copy"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Copy"
      SrcPort		      1
      Points		      [0, 0; 15, 0]
      Branch {
	DstBlock		"Math\nFunction"
	DstPort			1
      }
      Branch {
	Points			[0, -90]
	DstBlock		"Product"
	DstPort			2
      }
    }
    Line {
      SrcBlock		      "Random Integer\nGenerator"
      SrcPort		      1
      DstBlock		      "Integer to Bit\nConverter"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Product2"
      SrcPort		      1
      DstBlock		      "M-PSK\nDemodulator\nBaseband"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Math\nFunction"
      SrcPort		      1
      Points		      [85, 0; 0, -80]
      DstBlock		      "Product2"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Product"
      SrcPort		      1
      DstBlock		      "AWGN"
      DstPort		      1
    }
  }
}

⌨️ 快捷键说明

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