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

📄 blutooth_hopping.mdl

📁 simulink实现的蓝牙仿真
💻 MDL
📖 第 1 页 / 共 5 页
字号:
      FontSize		      12
      FontWeight	      "bold"
      Format		      "short"
      Decimation	      "1"
      Floating		      off
      SampleTime	      "-1"
    }
    Block {
      BlockType		      Logic
      Name		      "Logical\nOperator"
      Ports		      [1, 1]
      Position		      [220, 149, 250, 181]
      Operator		      "NOT"
      Inputs		      "1"
    }
    Block {
      BlockType		      SubSystem
      Name		      "P"
      Ports		      [0, 1]
      Position		      [355, 54, 395, 86]
      BackgroundColor	      "yellow"
      ShowPortLabels	      on
      TreatAsAtomicUnit	      off
      RTWSystemCode	      "Auto"
      RTWFcnNameOpts	      "Auto"
      RTWFileNameOpts	      "Auto"
      Port {
	PortNumber		1
	Name			"P"
	TestPoint		off
	LinearAnalysisOutput	off
	LinearAnalysisInput	off
	RTWStorageClass		"Auto"
      }
      System {
	Name			"P"
	Location		[147, 214, 763, 514]
	Open			off
	ModelBrowserVisibility	on
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	AutoZoom		on
	Block {
	  BlockType		  MATLABFcn
	  Name			  "5-bit Binary-to-dec 1"
	  Position		  [285, 80, 345, 110]
	  MATLABFcn		  "u(1)+(u(2)*2)+(u(3)*4)+(u(4)*8)+(u(5)*16)"
	  OutputDimensions	  "1"
	  OutputSignalType	  "auto"
	  Output1D		  off
	}
	Block {
	  BlockType		  MATLABFcn
	  Name			  "5-bit dec-to-binary"
	  Position		  [400, 80, 460, 110]
	  MATLABFcn		  "dec2binvec(u,14)"
	  OutputDimensions	  "14"
	  OutputSignalType	  "auto"
	  Output1D		  on
	}
	Block {
	  BlockType		  From
	  Name			  "From3"
	  Position		  [105, 166, 145, 194]
	  CloseFcn		  "tagdialog Close"
	  GotoTag		  "C"
	}
	Block {
	  BlockType		  From
	  Name			  "From4"
	  Position		  [105, 91, 145, 119]
	  CloseFcn		  "tagdialog Close"
	  GotoTag		  "Y1"
	}
	Block {
	  BlockType		  From
	  Name			  "From6"
	  Position		  [150, 31, 190, 59]
	  CloseFcn		  "tagdialog Close"
	  GotoTag		  "D"
	}
	Block {
	  BlockType		  Mux
	  Name			  "Mux"
	  Ports			  [2, 1]
	  Position		  [240, 47, 245, 143]
	  ShowName		  off
	  Inputs		  "2"
	  DisplayOption		  "bar"
	  Port {
	    PortNumber		    1
	    Name		    "P"
	    PropagatedSignals	    ", , , , , "
	    TestPoint		    off
	    LinearAnalysisOutput    off
	    LinearAnalysisInput	    off
	    RTWStorageClass	    "Auto"
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "XOR"
	  Ports			  [2, 1]
	  Position		  [170, 104, 210, 186]
	  ShowPortLabels	  on
	  TreatAsAtomicUnit	  off
	  RTWSystemCode		  "Auto"
	  RTWFcnNameOpts	  "Auto"
	  RTWFileNameOpts	  "Auto"
	  System {
	    Name		    "XOR"
	    Location		    [195, 83, 673, 597]
	    Open		    off
	    ModelBrowserVisibility  on
	    ModelBrowserWidth	    200
	    ScreenColor		    "automatic"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    AutoZoom		    on
	    Block {
	      BlockType		      Inport
	      Name		      "In1"
	      Position		      [90, 368, 120, 382]
	      Port		      "1"
	      Interpolate	      on
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "In2"
	      Position		      [20, 208, 50, 222]
	      Port		      "2"
	      Interpolate	      on
	    }
	    Block {
	      BlockType		      Demux
	      Name		      "Demux"
	      Ports		      [1, 5]
	      Position		      [80, 40, 85, 360]
	      BackgroundColor	      "black"
	      ShowName		      off
	      Outputs		      "[1,1,1,1,1]"
	      BusSelectionMode	      off
	    }
	    Block {
	      BlockType		      Logic
	      Name		      "Logical\nOperator1"
	      Ports		      [2, 1]
	      Position		      [180, 128, 210, 157]
	      Operator		      "XOR"
	      Inputs		      "2"
	    }
	    Block {
	      BlockType		      Logic
	      Name		      "Logical\nOperator2"
	      Ports		      [2, 1]
	      Position		      [175, 193, 205, 222]
	      Operator		      "XOR"
	      Inputs		      "2"
	    }
	    Block {
	      BlockType		      Logic
	      Name		      "Logical\nOperator3"
	      Ports		      [2, 1]
	      Position		      [175, 63, 205, 92]
	      Operator		      "XOR"
	      Inputs		      "2"
	    }
	    Block {
	      BlockType		      Logic
	      Name		      "Logical\nOperator4"
	      Ports		      [2, 1]
	      Position		      [180, 258, 210, 287]
	      Operator		      "XOR"
	      Inputs		      "2"
	    }
	    Block {
	      BlockType		      Logic
	      Name		      "Logical\nOperator5"
	      Ports		      [2, 1]
	      Position		      [180, 323, 210, 352]
	      Operator		      "XOR"
	      Inputs		      "2"
	    }
	    Block {
	      BlockType		      Mux
	      Name		      "Mux"
	      Ports		      [5, 1]
	      Position		      [255, 41, 260, 379]
	      ShowName		      off
	      Inputs		      "5"
	      DisplayOption	      "bar"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Out1"
	      Position		      [345, 203, 375, 217]
	      Port		      "1"
	      OutputWhenDisabled      "held"
	      InitialOutput	      "[]"
	    }
	    Line {
	      SrcBlock		      "Demux"
	      SrcPort		      1
	      DstBlock		      "Logical\nOperator3"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Logical\nOperator3"
	      SrcPort		      1
	      DstBlock		      "Mux"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "In1"
	      SrcPort		      1
	      Points		      [25, 0; 0, -30]
	      Branch {
		Points			[0, -65]
		Branch {
		  Points		  [0, -65]
		  Branch {
		    Points		    [0, -65]
		    Branch {
		    Points		    [0, -65]
		    DstBlock		    "Logical\nOperator3"
		    DstPort		    2
		    }
		    Branch {
		    DstBlock		    "Logical\nOperator1"
		    DstPort		    2
		    }
		  }
		  Branch {
		    Points		    [5, 0]
		    DstBlock		    "Logical\nOperator2"
		    DstPort		    2
		  }
		}
		Branch {
		  Points		  [5, 0]
		  DstBlock		  "Logical\nOperator4"
		  DstPort		  2
		}
	      }
	      Branch {
		DstBlock		"Logical\nOperator5"
		DstPort			2
	      }
	    }
	    Line {
	      SrcBlock		      "Mux"
	      SrcPort		      1
	      DstBlock		      "Out1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "In2"
	      SrcPort		      1
	      Points		      [10, 0]
	      DstBlock		      "Demux"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Demux"
	      SrcPort		      2
	      DstBlock		      "Logical\nOperator1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Demux"
	      SrcPort		      3
	      DstBlock		      "Logical\nOperator2"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Demux"
	      SrcPort		      4
	      DstBlock		      "Logical\nOperator4"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Demux"
	      SrcPort		      5
	      DstBlock		      "Logical\nOperator5"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Logical\nOperator5"
	      SrcPort		      1
	      DstBlock		      "Mux"
	      DstPort		      5
	    }
	    Line {
	      SrcBlock		      "Logical\nOperator4"
	      SrcPort		      1
	      DstBlock		      "Mux"
	      DstPort		      4
	    }
	    Line {
	      SrcBlock		      "Logical\nOperator2"
	      SrcPort		      1
	      DstBlock		      "Mux"
	      DstPort		      3
	    }
	    Line {
	      SrcBlock		      "Logical\nOperator1"
	      SrcPort		      1
	      DstBlock		      "Mux"
	      DstPort		      2
	    }
	  }
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out1"
	  Position		  [545, 73, 575, 87]
	  Port			  "1"
	  OutputWhenDisabled	  "held"
	  InitialOutput		  "[]"
	}
	Line {
	  SrcBlock		  "From4"
	  SrcPort		  1
	  Points		  [0, 20]
	  DstBlock		  "XOR"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "From3"
	  SrcPort		  1
	  Points		  [0, -15]
	  DstBlock		  "XOR"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "From6"
	  SrcPort		  1
	  Points		  [10, 0; 0, 25]
	  DstBlock		  "Mux"
	  DstPort		  1
	}
	Line {
	  Labels		  [2, 0]
	  SrcBlock		  "XOR"
	  SrcPort		  1
	  Points		  [10, 0]
	  DstBlock		  "Mux"
	  DstPort		  2
	}
	Line {
	  Name			  "P"
	  Labels		  [0, 0]
	  SrcBlock		  "Mux"
	  SrcPort		  1
	  DstBlock		  "5-bit Binary-to-dec 1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "5-bit Binary-to-dec 1"
	  SrcPort		  1
	  DstBlock		  "5-bit dec-to-binary"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "5-bit dec-to-binary"
	  SrcPort		  1
	  Points		  [65, 0]
	  DstBlock		  "Out1"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      Reference
      Name		      "Pulse\nGenerator"
      Ports		      [0, 1]
      Position		      [15, 90, 45, 120]
      SourceBlock	      "simulink3/Sources/Pulse\nGenerator"
      SourceType	      "Pulse Generator"
      period		      "625e-6"
      duty		      "50"
      amplitude		      "1"
      start		      "0"
      VectorParams1D	      on
    }
    Block {
      BlockType		      Selector
      Name		      "Selector"
      Ports		      [1, 1]
      Position		      [140, 446, 180, 484]
      InputType		      "Vector"
      ElementSrc	      "Internal"
      Elements		      "[2 4 6 8 10 12 14]"
      RowSrc		      "Internal"
      Rows		      "1"
      ColumnSrc		      "Internal"
      Columns		      "1"
      InputPortWidth	      "28"
    }
    Block {
      BlockType		      Selector
      Name		      "Selector1"
      Ports		      [1, 1]
      Position		      [150, 86, 190, 124]
      InputType		      "Vector"
      ElementSrc	      "Internal"
      Elements		      "[2]"
      RowSrc		      "Internal"
      Rows		      "1"
      ColumnSrc		      "Internal"
      Columns		      "1"
      InputPortWidth	      "28"
    }
    Block {
      BlockType		      Selector
      Name		      "X1"
      Description	      "ff"
      Ports		      [1, 1]
      Position		      [150, 21, 200, 59]
      InputType		      "Vector"
      ElementSrc	      "Internal"
      Elements		      "[3 4 5 6 7]"
      RowSrc		      "Internal"
      Rows		      "1"
      ColumnSrc		      "Internal"
      Columns		      "1"
      InputPortWidth	      "28"
    }
    Block {
      BlockType		      Selector
      Name		      "X2"
      Ports		      [1, 1]
      Position		      [140, 391, 180, 429]
      InputType		      "Vector"
      ElementSrc	      "Internal"
      Elements		      "[20 21 22 23]"
      RowSrc		      "Internal"
      Rows		      "1"
      ColumnSrc		      "Internal"
      Columns		      "1"
      InputPortWidth	      "28"
    }
    Block {
      BlockType		      Selector
      Name		      "X3"
      Ports		      [1, 1]
      Position		      [155, 146, 195, 184]
      InputType		      "Vector"
      ElementSrc	      "Internal"
      Elements		      "[2]"
      RowSrc		      "Internal"
      Rows		      "1"
      ColumnSrc		      "Internal"
      Columns		      "1"
      InputPortWidth	      "28"
    }
    Block {
      BlockType		      SubSystem
      Name		      "address XOR\nclock"
      Ports		      [2, 3]
      Position		      [155, 211, 195, 359]
      ShowPortLabels	      on
      TreatAsAtomicUnit	      off
      RTWSystemCode	      "Auto"
      RTWFcnNameOpts	      "Auto"
      RTWFileNameOpts	      "Auto"
      System {
	Name			"address XOR\nclock"
	Location		[174, 185, 774, 535]
	Open			off
	ModelBrowserVisibility	on
	ModelBrowserWidth	200
	ScreenColor		"automatic"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	AutoZoom		off
	Block {
	  BlockType		  Inport
	  Name			  "clk"
	  Position		  [30, 33, 60, 47]
	  Port			  "1"
	  Interpolate		  on
	}
	Block {
	  BlockType		  Inport
	  Name			  "address"
	  Position		  [25, 228, 55, 242]
	  Port			  "2"
	  Interpolate		  on
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "A"
	  Ports			  [2, 1]
	  Position		  [400, 110, 440, 170]
	  ShowPortLabels	  on
	  TreatAsAtomicUnit	  off
	  RTWSystemCode		  "Auto"
	  RTWFcnNameOpts	  "Auto"
	  RTWFileNameOpts	  "Auto"
	  System {
	    Name		    "A"
	    Location		    [280, 225, 566, 367]
	    Open		    off
	    ModelBrowserVisibility  on
	    ModelBrowserWidth	    200
	    ScreenColor		    "automatic"
	    PaperOrientation	    "landscape"

⌨️ 快捷键说明

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