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

📄 qpsk.mdl

📁 qpsk仿真
💻 MDL
📖 第 1 页 / 共 2 页
字号:
    $PropName		    "ActiveConfigurationSet"
    $ObjectID		    1
  }
  BlockDefaults {
    Orientation		    "right"
    ForegroundColor	    "black"
    BackgroundColor	    "white"
    DropShadow		    off
    NamePlacement	    "normal"
    FontName		    "Helvetica"
    FontSize		    10
    FontWeight		    "normal"
    FontAngle		    "normal"
    ShowName		    on
  }
  BlockParameterDefaults {
    Block {
      BlockType		      Constant
      Value		      "1"
      VectorParams1D	      on
      OutDataTypeMode	      "Inherit from 'Constant value'"
      OutDataType	      "sfix(16)"
      ConRadixGroup	      "Use specified scaling"
      OutScaling	      "2^0"
      SampleTime	      "inf"
    }
    Block {
      BlockType		      FrameConversion
      OutFrame		      "Frame based"
    }
    Block {
      BlockType		      Fcn
      Expr		      "sin(u[1])"
      SampleTime	      "-1"
    }
    Block {
      BlockType		      Ground
    }
    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		      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		      RelationalOperator
      Operator		      ">="
      InputSameDT	      on
      LogicOutDataTypeMode    "Logical (see Configuration Parameters: Optimiza"
"tion)"
      LogicDataType	      "uint(8)"
      ZeroCross		      on
      SampleTime	      "-1"
    }
    Block {
      BlockType		      "S-Function"
      FunctionName	      "system"
      PortCounts	      "[]"
      SFunctionModules	      "''"
    }
    Block {
      BlockType		      SubSystem
      ShowPortLabels	      on
      Permissions	      "ReadWrite"
      PermitHierarchicalResolution "All"
      SystemSampleTime	      "-1"
      RTWFcnNameOpts	      "Auto"
      RTWFileNameOpts	      "Auto"
      SimViewingDevice	      off
      DataTypeOverride	      "UseLocalSettings"
      MinMaxOverflowLogging   "UseLocalSettings"
    }
  }
  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		    "qpsk"
    Location		    [2, 82, 1014, 721]
    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\nChannel"
      Ports		      [1, 1]
      Position		      [315, 264, 395, 306]
      SourceBlock	      "commchan2/AWGN\nChannel"
      SourceType	      "AWGN Channel"
      ShowPortLabels	      on
      seed		      "67"
      noiseMode		      "Signal to noise ratio  (SNR)"
      EbNodB		      "10"
      EsNodB		      "10"
      SNRdB		      "5"
      bitsPerSym	      "1"
      Ps		      "1"
      Tsym		      "1"
      variance		      "1"
    }
    Block {
      BlockType		      Reference
      Name		      "Bernoulli Binary\nGenerator"
      Ports		      [0, 1]
      Position		      [60, 263, 140, 307]
      FontName		      "Arial"
      SourceBlock	      "commrandsrc2/Bernoulli Binary\nGenerator"
      SourceType	      "Bernoulli Binary Generator"
      ShowPortLabels	      on
      P			      "0.5"
      seed		      "[1 2]"
      Ts		      "1/1000"
      frameBased	      off
      sampPerFrame	      "1"
      orient		      off
    }
    Block {
      BlockType		      Reference
      Name		      "Bit to Integer\nConverter"
      Ports		      [1, 1]
      Position		      [185, 178, 265, 222]
      SourceBlock	      "commutil2/Bit to Integer\nConverter"
      SourceType	      "Bit to Integer Converter"
      nbits		      "2"
    }
    Block {
      BlockType		      Reference
      Name		      "Bit to Integer\nConverter1"
      Ports		      [1, 1]
      Position		      [590, 263, 670, 307]
      SourceBlock	      "commutil2/Bit to Integer\nConverter"
      SourceType	      "Bit to Integer Converter"
      nbits		      "2"
    }
    Block {
      BlockType		      Fcn
      Name		      "Fcn"
      Position		      [360, 425, 420, 455]
      Expr		      "u+1"
    }
    Block {
      BlockType		      Fcn
      Name		      "Fcn1"
      Position		      [435, 375, 495, 405]
      Expr		      "u+1"
    }
    Block {
      BlockType		      Mux
      Name		      "Mux"
      Ports		      [2, 1]
      Position		      [640, 395, 685, 455]
      ShowName		      off
      Inputs		      "2"
    }
    Block {
      BlockType		      Reference
      Name		      "QPSK\nDemodulator\nBaseband"
      Ports		      [1, 1]
      Position		      [450, 260, 525, 310]
      SourceBlock	      "commdigbbndpm2/QPSK\nDemodulator\nBaseband"
      SourceType	      "QPSK Demodulator Baseband"
      ShowPortLabels	      on
      OutType		      "Bit"
      Dec		      "Gray"
      Ph		      "pi/4"
      numSamp		      "1"
    }
    Block {
      BlockType		      Reference
      Name		      "QPSK\nModulator\nBaseband"
      Ports		      [1, 1]
      Position		      [180, 261, 255, 309]
      SourceBlock	      "commdigbbndpm2/QPSK\nModulator\nBaseband"
      SourceType	      "QPSK Modulator Baseband"
      ShowPortLabels	      on
      InType		      "Bit"
      Enc		      "Gray"
      Ph		      "pi/4"
      numSamp		      "1"
    }
    Block {
      BlockType		      "S-Function"
      Name		      "S-Function"
      Ports		      [1, 1]
      Position		      [745, 399, 810, 451]
      FunctionName	      "patten_classify_test"
      MaskDisplay	      "disp('patten_clssify')"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
    }
    Block {
      BlockType		      Reference
      Name		      "qpsk_1_ber"
      Ports		      [2]
      Position		      [710, 247, 785, 298]
      SourceBlock	      "commsink2/Error Rate\nCalculation"
      SourceType	      "Error Rate Calculation"
      N			      "0"
      st_delay		      "0"
      cp_mode		      "Entire frame"
      subframe		      "[]"
      PMode		      "Workspace"
      WsName		      "xErrorRate"
      RsMode2		      off
      stop		      off
      numErr		      "100"
      maxBits		      "1e6"
    }
    Block {
      BlockType		      Reference
      Name		      "qpsk_2_ber"
      Ports		      [2]
      Position		      [875, 382, 950, 433]
      SourceBlock	      "commsink2/Error Rate\nCalculation"
      SourceType	      "Error Rate Calculation"
      N			      "0"
      st_delay		      "0"
      cp_mode		      "Entire frame"
      subframe		      "[]"
      PMode		      "Workspace"
      WsName		      "xErrorRate2"
      RsMode2		      off
      stop		      off
      numErr		      "100"
      maxBits		      "1e6"
    }
    Line {
      SrcBlock		      "Bernoulli Binary\nGenerator"
      SrcPort		      1
      Points		      [0, 0; 5, 0]
      Branch {
	DstBlock		"QPSK\nModulator\nBaseband"
	DstPort			1
      }
      Branch {
	Points			[0, -85]
	DstBlock		"Bit to Integer\nConverter"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "QPSK\nModulator\nBaseband"
      SrcPort		      1
      Points		      [10, 0]
      Branch {
	DstBlock		"AWGN\nChannel"
	DstPort			1
      }
      Branch {
	Points			[0, 155]
	DstBlock		"Fcn"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "QPSK\nDemodulator\nBaseband"
      SrcPort		      1
      DstBlock		      "Bit to Integer\nConverter1"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Bit to Integer\nConverter1"
      SrcPort		      1
      DstBlock		      "qpsk_1_ber"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Bit to Integer\nConverter"
      SrcPort		      1
      Points		      [410, 0]
      Branch {
	Points			[0, 60]
	DstBlock		"qpsk_1_ber"
	DstPort			1
      }
      Branch {
	Points			[150, 0; 0, 195]
	DstBlock		"qpsk_2_ber"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "AWGN\nChannel"
      SrcPort		      1
      Points		      [10, 0]
      Branch {
	DstBlock		"QPSK\nDemodulator\nBaseband"
	DstPort			1
      }
      Branch {
	Points			[0, 105]
	DstBlock		"Fcn1"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Mux"
      SrcPort		      1
      DstBlock		      "S-Function"
      DstPort		      1
    }
    Line {
      SrcBlock		      "S-Function"
      SrcPort		      1
      Points		      [0, -5]
      DstBlock		      "qpsk_2_ber"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Fcn"
      SrcPort		      1
      DstBlock		      "Mux"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Fcn1"
      SrcPort		      1
      Points		      [60, 0; 0, 20]
      DstBlock		      "Mux"
      DstPort		      1
    }
  }
}

# Finite State Machines
#
#    Stateflow Version 6.0 (R14) dated Apr 30 2004, 06:19:14
#
#

Stateflow {

	machine {
		id                   		1
		name                 		"qpsk"
		created              		"05-Nov-2007 21:58:14"
		isLibrary            		0
		firstTarget          		2
		sfVersion            		60014000.000006
	}

	target {
		id               		2
		name             		"sfun"
		description      		"Default Simulink S-Function Target."
		machine          		1
		linkNode         		[1 0 0]
	}
}

⌨️ 快捷键说明

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