wimax_test_4.mdl

来自「本程序是对IEEE 802.16e物理层和链路层的仿真。 使用matlab的s」· MDL 代码 · 共 2,409 行 · 第 1/5 页

MDL
2,409
字号
    }
    Block {
      BlockType		      Display
      Format		      "short"
      Decimation	      "10"
      Floating		      off
      SampleTime	      "-1"
    }
    Block {
      BlockType		      From
      IconDisplay	      "Tag"
    }
    Block {
      BlockType		      Gain
      Gain		      "1"
      Multiplication	      "Element-wise(K.*u)"
      ParameterDataTypeMode   "Same as input"
      ParameterDataType	      "sfix(16)"
      ParameterScalingMode    "Best Precision: Matrix-wise"
      ParameterScaling	      "2^0"
      OutDataTypeMode	      "Same as input"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      LockScale		      off
      RndMeth		      "Floor"
      SaturateOnIntegerOverflow	on
      SampleTime	      "-1"
    }
    Block {
      BlockType		      Goto
      IconDisplay	      "Tag"
    }
    Block {
      BlockType		      Ground
    }
    Block {
      BlockType		      Inport
      Port		      "1"
      UseBusObject	      off
      BusObject		      "BusObject"
      BusOutputAsStruct	      off
      PortDimensions	      "-1"
      SampleTime	      "-1"
      DataType		      "auto"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      SignalType	      "auto"
      SamplingMode	      "auto"
      LatchByDelayingOutsideSignal off
      LatchByCopyingInsideSignal off
      Interpolate	      on
    }
    Block {
      BlockType		      Logic
      Operator		      "AND"
      Inputs		      "2"
      IconShape		      "rectangular"
      AllPortsSameDT	      on
      OutDataTypeMode	      "Logical (see Configuration Parameters: Optimiza"
"tion)"
      LogicDataType	      "uint(8)"
      SampleTime	      "-1"
    }
    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		      Outport
      Port		      "1"
      UseBusObject	      off
      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		      Reference
    }
    Block {
      BlockType		      Selector
      NumberOfDimensions      "1"
      IndexMode		      "One-based"
      InputPortWidth	      "-1"
      SampleTime	      "-1"
    }
    Block {
      BlockType		      "S-Function"
      FunctionName	      "system"
      SFunctionModules	      "''"
      PortCounts	      "[]"
    }
    Block {
      BlockType		      SubSystem
      ShowPortLabels	      "FromPortIcon"
      Permissions	      "ReadWrite"
      PermitHierarchicalResolution "All"
      TreatAsAtomicUnit	      off
      SystemSampleTime	      "-1"
      RTWFcnNameOpts	      "Auto"
      RTWFileNameOpts	      "Auto"
      RTWMemSecFuncInitTerm   "Inherit from model"
      RTWMemSecFuncExecute    "Inherit from model"
      RTWMemSecDataConstants  "Inherit from model"
      RTWMemSecDataInternal   "Inherit from model"
      RTWMemSecDataParameters "Inherit from model"
      SimViewingDevice	      off
      DataTypeOverride	      "UseLocalSettings"
      MinMaxOverflowLogging   "UseLocalSettings"
    }
    Block {
      BlockType		      Terminator
    }
  }
  AnnotationDefaults {
    HorizontalAlignment	    "center"
    VerticalAlignment	    "middle"
    ForegroundColor	    "black"
    BackgroundColor	    "white"
    DropShadow		    off
    FontName		    "Helvetica"
    FontSize		    10
    FontWeight		    "normal"
    FontAngle		    "normal"
    UseDisplayTextAsClickCallback off
  }
  LineDefaults {
    FontName		    "Helvetica"
    FontSize		    9
    FontWeight		    "normal"
    FontAngle		    "normal"
  }
  System {
    Name		    "WiMAX_Test_4"
    Location		    [2, 78, 1278, 1004]
    Open		    on
    ModelBrowserVisibility  off
    ModelBrowserWidth	    200
    ScreenColor		    "white"
    PaperOrientation	    "landscape"
    PaperPositionMode	    "auto"
    PaperType		    "A4"
    PaperUnits		    "centimeters"
    TiledPaperMargins	    [0.500000, 0.500000, 0.500000, 0.500000]
    TiledPageScale	    1
    ShowPageBoundaries	    off
    ZoomFactor		    "191"
    ReportName		    "simulink-default.rpt"
    Block {
      BlockType		      Reference
      Name		      "AWGN\nChannel"
      Ports		      [1, 1]
      Position		      [476, 165, 534, 210]
      Orientation	      "down"
      NamePlacement	      "alternate"
      ShowName		      off
      FontSize		      8
      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		      "1"
      noiseMode		      "Signal to noise ratio  (SNR)"
      EbNodB		      "10"
      EsNodB		      "40"
      SNRdB		      "30"
      bitsPerSym	      "2"
      Ps		      "0.01"
      Tsym		      "4e-6/80"
      variance		      "1"
    }
    Block {
      BlockType		      SubSystem
      Name		      "Block\nDecoder"
      Ports		      [1, 1]
      Position		      [115, 228, 170, 272]
      Orientation	      "left"
      ShowName		      off
      FontSize		      8
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      FunctionWithSeparateData off
      MaskHideContents	      off
      MaskDisplay	      "disp('Block \\n Decoder');"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      System {
	Name			"Block\nDecoder"
	Location		[42, 260, 997, 649]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	TiledPaperMargins	[0.500000, 0.500000, 0.500000, 0.500000]
	TiledPageScale		1
	ShowPageBoundaries	off
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "Code"
	  Position		  [15, 38, 45, 52]
	  IconDisplay		  "Port number"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Bit to Integer\nConverter2"
	  Ports			  [1, 1]
	  Position		  [95, 23, 175, 67]
	  SourceBlock		  "commutil2/Bit to Integer\nConverter"
	  SourceType		  "Bit to Integer Converter"
	  nbits			  "8"
	  outDtype		  "Same as input"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Integer to Bit\nConverter3"
	  Ports			  [1, 1]
	  Position		  [760, 13, 840, 57]
	  SourceBlock		  "commutil2/Integer to Bit\nConverter"
	  SourceType		  "Integer to Bit Converter"
	  nbits			  "8"
	  outDtype		  "Same as input"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Integer-Output\nRS Decoder"
	  Ports			  [1, 2]
	  Position		  [515, 23, 610, 67]
	  SourceBlock		  "commblkcod2/Integer-Output\nRS Decoder"
	  SourceType		  "Integer-Output RS Decoder"
	  n			  "255"
	  k			  "239"
	  specPrimPoly		  "on"
	  primPoly		  "Prim_Poly"
	  specGenPoly		  "on"
	  genPoly		  "Gen_Poly"
	  showNumErr		  "on"
	}
	Block {
	  BlockType		  Selector
	  Name			  "Selector1"
	  Ports			  [1, 1]
	  Position		  [225, 23, 275, 67]
	  IndexOptions		  "Index vector (dialog)"
	  Indices		  "[2:40, 1]"
	  OutputSizes		  "1"
	  InputPortWidth	  "40"
	}
	Block {
	  BlockType		  Selector
	  Name			  "Selector2"
	  Ports			  [1, 1]
	  Position		  [660, 13, 710, 57]
	  IndexOptions		  "Index vector (dialog)"
	  Indices		  "[204:239]"
	  OutputSizes		  "1"
	  InputPortWidth	  "239"
	}
	Block {
	  BlockType		  Terminator
	  Name			  "Terminator"
	  Position		  [635, 48, 645, 62]
	  BackgroundColor	  "[1.000000, 0.501961, 0.000000]"
	  ShowName		  off
	}
	Block {
	  BlockType		  Reference
	  Name			  "Zero Pad to\nCode Word Size1"
	  Ports			  [1, 1]
	  Position		  [325, 27, 370, 63]
	  SourceBlock		  "dspsigops/Pad"
	  SourceType		  "Pad"
	  padAlong		  "Columns"
	  dimsToPad		  "1"
	  valSrc		  "Specify via dialog"
	  padVal		  "0"
	  spec			  "Output size"
	  padNumOutRowsSpecMethod "User-specified"
	  numOutRows		  "239"
	  padNumOutColsSpecMethod "User-specified"
	  numOutCols		  "1"
	  isVarDimsMode		  "off"
	  padBeginning		  "0"
	  padEnd		  "0"
	  outSizeMode		  "User-specified"
	  outSize		  "1"
	  padSigAt		  "Beginning"
	  trunc_flag		  "None"
	  outputMode		  "Same as input"
	  outputWordLength	  "0"
	  outputFracLength	  "0"
	  accumMode		  "Same as input"
	  accumWordLength	  "0"
	  accumFracLength	  "0"
	  roundingMode		  "Floor"
	  overflowMode		  "off"
	  LockScale		  "off"
	  truncOrWrapMode	  "Truncate"
	  wrap_flag		  "None"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Zero Pad to\nCode Word Size2"
	  Ports			  [1, 1]
	  Position		  [420, 27, 465, 63]
	  SourceBlock		  "dspsigops/Pad"
	  SourceType		  "Pad"
	  padAlong		  "Columns"
	  dimsToPad		  "1"
	  valSrc		  "Specify via dialog"
	  padVal		  "0"
	  spec			  "Output size"
	  padNumOutRowsSpecMethod "User-specified"
	  numOutRows		  "255"
	  padNumOutColsSpecMethod "User-specified"
	  numOutCols		  "1"
	  isVarDimsMode		  "off"
	  padBeginning		  "0"
	  padEnd		  "0"
	  outSizeMode		  "User-specified"
	  outSize		  "1"
	  padSigAt		  "End"
	  trunc_flag		  "None"
	  outputMode		  "Same as input"
	  outputWordLength	  "0"
	  outputFracLength	  "0"
	  accumMode		  "Same as input"
	  accumWordLength	  "0"
	  accumFracLength	  "0"
	  roundingMode		  "Floor"
	  overflowMode		  "off"
	  LockScale		  "off"
	  truncOrWrapMode	  "Truncate"
	  wrap_flag		  "None"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Msg"
	  Position		  [890, 28, 920, 42]
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	}
	Line {
	  SrcBlock		  "Zero Pad to\nCode Word Size2"
	  SrcPort		  1
	  DstBlock		  "Integer-Output\nRS Decoder"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Zero Pad to\nCode Word Size1"
	  SrcPort		  1
	  DstBlock		  "Zero Pad to\nCode Word Size2"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Selector2"
	  SrcPort		  1
	  DstBlock		  "Integer to Bit\nConverter3"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Integer-Output\nRS Decoder"
	  SrcPort		  1
	  DstBlock		  "Selector2"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Selector1"
	  SrcPort		  1
	  DstBlock		  "Zero Pad to\nCode Word Size1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Bit to Integer\nConverter2"
	  SrcPort		  1
	  DstBlock		  "Selector1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Code"
	  SrcPort		  1
	  DstBlock		  "Bit to Integer\nConverter2"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Integer to Bit\nConverter3"
	  SrcPort		  1
	  DstBlock		  "Msg"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Integer-Output\nRS Decoder"
	  SrcPort		  2
	  DstBlock		  "Terminator"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "Block\nEncoder"
      Ports		      [1, 1]
      Position		      [115, 88, 170, 132]
      ShowName		      off
      FontSize		      8
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      FunctionWithSeparateData off
      MaskHideContents	      off
      MaskDisplay	      "disp('Block \\n Encoder');"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      System {
	Name			"Block\nEncoder"
	Location		[209, 357, 938, 595]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	TiledPaperMargins	[0.500000, 0.500000, 0.500000, 0.500000]
	TiledPageScale		1
	ShowPageBoundaries	off
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "Msg"
	  Position		  [15, 28, 45, 42]
	  IconDisplay		  "Port number"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Bit to Integer\nConverter"
	  Ports			  [1, 1]
	  Position		  [95, 13, 175, 57]
	  SourceBlock		  "commutil2/Bit to Integer\nConverter"
	  SourceType		  "Bit to Integer Converter"
	  nbits			  "8"
	  outDtype		  "Same as input"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Integer to Bit\nConverter"
	  Ports			  [1, 1]
	  Position		  [555, 13, 635, 57]
	  SourceBlock		  "commutil2/Integer to Bit\nConverter"
	  SourceType		  "Integer to Bit Converter"
	  nbits			  "8"
	  outDtype		  "Same as input"
	}

⌨️ 快捷键说明

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