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

📄 uwb.mdl

📁 基于simulink的OFDM和UWB仿真程序
💻 MDL
📖 第 1 页 / 共 5 页
字号:
      MaskIconUnits	      "autoscale"
      System {
	Name			"OFDM Receiver"
	Location		[6, 281, 1003, 535]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "In1"
	  Position		  [15, 104, 35, 116]
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "2x despreading"
	  Ports			  [1, 1]
	  Position		  [715, 93, 800, 127]
	  BackgroundColor	  "orange"
	  ShowName		  off
	  TreatAsAtomicUnit	  off
	  MaskDisplay		  "disp('2x Despreading')"
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	  System {
	    Name		    "2x despreading"
	    Location		    [176, 480, 877, 607]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "In1"
	      Position		      [70, 53, 100, 67]
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Buffer"
	      Ports		      [1, 1]
	      Position		      [160, 35, 210, 85]
	      SourceBlock	      "dspbuff3/Buffer"
	      SourceType	      "Buffer"
	      N			      "uwb.spreadFactor*uwb.NSD"
	      V			      "0"
	      ic		      "0"
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Delay"
	      Ports		      [1, 1]
	      Position		      [490, 40, 540, 80]
	      SourceBlock	      "dspsigops/Delay"
	      SourceType	      "Delay"
	      dly_unit		      "Samples"
	      delay		      "50"
	      ic_detail		      off
	      dif_ic_for_ch	      off
	      dif_ic_for_dly	      off
	      ic		      "0"
	      reset_popup	      "None"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "Gain"
	      Position		      [425, 46, 470, 74]
	      BackgroundColor	      "orange"
	      Gain		      "0.5"
	      ShowAdditionalParam     on
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Multiport\nSelector"
	      Ports		      [1, 2]
	      Position		      [245, 30, 305, 90]
	      SourceBlock	      "dspindex/Multiport\nSelector"
	      SourceType	      "Multiport Selector"
	      rowsOrCols	      "Rows"
	      idxCellArray	      "{[1:uwb.NSD], [uwb.NSD+1:2*uwb.NSD]}"
	      idxErrMode	      "Clip Index"
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum"
	      Ports		      [2, 1]
	      Position		      [370, 40, 390, 80]
	      BackgroundColor	      "orange"
	      ShowName		      off
	      Inputs		      "+|+"
	      ShowAdditionalParam     on
	      InputSameDT	      off
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Out1"
	      Position		      [570, 53, 600, 67]
	    }
	    Line {
	      SrcBlock		      "Sum"
	      SrcPort		      1
	      DstBlock		      "Gain"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Buffer"
	      SrcPort		      1
	      DstBlock		      "Multiport\nSelector"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Gain"
	      SrcPort		      1
	      DstBlock		      "Delay"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Delay"
	      SrcPort		      1
	      DstBlock		      "Out1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "In1"
	      SrcPort		      1
	      DstBlock		      "Buffer"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Multiport\nSelector"
	      SrcPort		      1
	      DstBlock		      "Sum"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Multiport\nSelector"
	      SrcPort		      2
	      DstBlock		      "Sum"
	      DstPort		      2
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "CE Sequence"
	  Ports			  [0, 1]
	  Position		  [400, 171, 475, 189]
	  BackgroundColor	  "orange"
	  ShowName		  off
	  TreatAsAtomicUnit	  off
	  MaskDisplay		  "disp('CE Sequence')"
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	  System {
	    Name		    "CE Sequence"
	    Location		    [240, 218, 806, 317]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Constant
	      Name		      "Constant"
	      Position		      [65, 35, 350, 55]
	      BackgroundColor	      "orange"
	      ShowName		      off
	      Value		      "repmat(uwb.CESequence, [1 uwb.CEPerFram"
"e])"
	      VectorParams1D	      off
	      ShowAdditionalParam     on
	      OutDataTypeMode	      "Specify via dialog"
	      OutDataType	      "uwb.OFDMDataType"
	      OutScaling	      "fpscaling(uwb.OFDMWordLength, [16 14; 1"
"2 11; 10 9; 8 7]) "
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "out"
	      Position		      [395, 38, 425, 52]
	    }
	    Line {
	      SrcBlock		      "Constant"
	      SrcPort		      1
	      DstBlock		      "out"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Channel compensation"
	  Ports			  [2, 2]
	  Position		  [510, 75, 585, 215]
	  BackgroundColor	  "orange"
	  ShowName		  off
	  TreatAsAtomicUnit	  off
	  MaskDisplay		  "disp('Channel\\nEstimation\\nand\\nCompensa"
"tion')\n"
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	  System {
	    Name		    "Channel compensation"
	    Location		    [4, 298, 1016, 606]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "rxsig"
	      Position		      [15, 177, 35, 193]
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "trainsig"
	      Position		      [15, 87, 35, 103]
	      Port		      "2"
	    }
	    Block {
	      BlockType		      Abs
	      Name		      "Abs"
	      Position		      [510, 140, 530, 160]
	      ShowName		      off
	    }
	    Block {
	      BlockType		      Abs
	      Name		      "Abs1"
	      Position		      [510, 165, 530, 185]
	      ShowName		      off
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Complex\nConjugate"
	      Ports		      [1, 1]
	      Position		      [185, 84, 210, 106]
	      ShowName		      off
	      SourceBlock	      "uwb_lib/Complex\nConjugate"
	      SourceType	      ""
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Complex\nConjugate3"
	      Ports		      [1, 1]
	      Position		      [450, 89, 475, 111]
	      ShowName		      off
	      SourceBlock	      "uwb_lib/Complex\nConjugate"
	      SourceType	      ""
	    }
	    Block {
	      BlockType		      ComplexToRealImag
	      Name		      "Complex to\nReal-Imag1"
	      Ports		      [1, 2]
	      Position		      [435, 136, 485, 189]
	      ShowName		      off
	      Output		      "Real and imag"
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "Division with\ndivisor checking"
	      Ports		      [2, 1]
	      Position		      [670, 75, 705, 175]
	      BackgroundColor	      "orange"
	      TreatAsAtomicUnit	      off
	      MaskType		      "Division with zero-divisor checking"
	      MaskPromptString	      "Data type:|Fixed point scaling:"
	      MaskStyleString	      "edit,edit"
	      MaskTunableValueString  "on,on"
	      MaskCallbackString      "|"
	      MaskEnableString	      "on,on"
	      MaskVisibilityString    "on,on"
	      MaskToolTipString	      "on,on"
	      MaskVarAliasString      ","
	      MaskVariables	      "dataType=@1;fpScaling=@2;"
	      MaskIconFrame	      on
	      MaskIconOpaque	      on
	      MaskIconRotate	      "none"
	      MaskIconUnits	      "autoscale"
	      MaskValueString	      "uwb.OFDMDataType|fpscaling(uwb.OFDMWord"
"Length, [16 14; 12 11; 10 9; 8 7]) "
	      System {
		Name			"Division with\ndivisor checking"
		Location		[279, 388, 913, 660]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"usletter"
		PaperUnits		"inches"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "In1"
		  Position		  [20, 93, 50, 107]
		}
		Block {
		  BlockType		  Inport
		  Name			  "In2"
		  Position		  [20, 133, 50, 147]
		  Port			  "2"
		}
		Block {
		  BlockType		  Constant
		  Name			  "Constant"
		  Position		  [60, 35, 105, 55]
		  BackgroundColor	  "orange"
		  ShowName		  off
		  Value			  "fpscaling(uwb.OFDMWordLength, [16 1"
"4; 12 11; 10 9; 8 7]) "
		  ShowAdditionalParam	  on
		  OutDataTypeMode	  "Inherit via back propagation"
		}
		Block {
		  BlockType		  Reference
		  Name			  "Conversion2"
		  Ports			  [1, 1]
		  Position		  [275, 180, 315, 220]
		  BackgroundColor	  "orange"
		  ShowName		  off
		  SourceBlock		  "fixpt_lib_4/Data Type/Conversion"
		  SourceType		  "Fixed-Point to Fixed-Point Conversi"
"on"
		  ConvertRealWorld	  "Real World Value"
		  OutputDataTypeScalingMode "Specify via dialog"
		  OutDataType		  "uwb.OFDMDataType"
		  OutScaling		  "fpscaling(uwb.OFDMWordLength, [16 1"
"4; 12 11; 10 9; 8 7]) "
		  LockScale		  off
		  RndMeth		  "Floor"
		  DoSatur		  on
		}
		Block {
		  BlockType		  Logic
		  Name			  "Logical\nOperator"
		  Ports			  [1, 1]
		  Position		  [230, 27, 260, 53]
		  ShowName		  off
		  Operator		  "NOR"
		  Inputs		  "1"
		  AllPortsSameDT	  off
		}
		Block {
		  BlockType		  Logic
		  Name			  "Logical\nOperator1"
		  Ports			  [1, 1]
		  Position		  [330, 27, 360, 53]
		  ShowName		  off
		  Operator		  "NOT"
		  Inputs		  "1"
		  AllPortsSameDT	  off
		}
		Block {
		  BlockType		  Merge
		  Name			  "Merge"
		  Ports			  [2, 1]
		  Position		  [460, 110, 500, 150]
		  InitialOutput		  "1"
		}
		Block {
		  BlockType		  RelationalOperator
		  Name			  "Relational\nOperator"
		  Position		  [165, 20, 190, 55]
		  ShowName		  off
		  Operator		  "<="
		  ShowAdditionalParam	  on
		  InputSameDT		  off
		}
		Block {
		  BlockType		  SubSystem
		  Name			  "c = a"
		  Ports			  [1, 1, 1]
		  Position		  [350, 160, 385, 240]
		  TreatAsAtomicUnit	  on
		  System {
		    Name		    "c = a"
		    Location		    [421, 301, 919, 601]
		    Open		    off
		    ModelBrowserVisibility  off
		    ModelBrowserWidth	    200
		    ScreenColor		    "white"
		    PaperOrientation	    "landscape"
		    PaperPositionMode	    "auto"
		    PaperType		    "usletter"
		    PaperUnits		    "inches"
		    ZoomFactor		    "100"
		    Block {
		    BlockType		    Inport
		    Name		    "a"
		    Position		    [150, 123, 180, 137]
		    }
		    Block {
		    BlockType		    EnablePort
		    Name		    "Enable"
		    Ports		    []
		    Position		    [235, 20, 255, 40]
		    }
		    Block {
		    BlockType		    Outport
		    Name		    "c"
		    Position		    [355, 123, 385, 137]
		    OutputWhenDisabled	    "reset"
		    InitialOutput	    "1"
		    }
		    Line {
		    SrcBlock		    "a"
		    SrcPort		    1
		    DstBlock		    "c"
		    DstPort		    1
		    }
		  }
		}
		Block {
		  BlockType		  SubSystem
		  Name			  "c = a/b"
		  Ports			  [2, 1, 1]
		  Position		  [275, 80, 310, 160]
		  BackgroundColor	  "orange"
		  TreatAsAtomicUnit	  on
		  System {
		    Name		    "c = a/b"
		    Location		    [421, 301, 919, 601]
		    Open		    off
		    ModelBrowserVisibility  off
		    ModelBrowserWidth	    200
		    ScreenColor		    "white"
		    PaperOrientation	    "landscape"
		    PaperPositionMode	    "auto"
		    PaperType		    "usletter"
		    PaperUnits		    "inches"
		    ZoomFactor		    "100"
		    Block {
		    BlockType		    Inport
		    Name		    "a"
		    Position		    [150, 103, 180, 117]
		    }
		    Block {
		    BlockType		    Inport
		    Name		    "b"
		    Position		    [150, 143, 180, 157]

⌨️ 快捷键说明

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