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

📄 fractional_6.mdl

📁 pll matlab程序~~对于系统级别的pll仿真很好~~
💻 MDL
📖 第 1 页 / 共 5 页
字号:
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	    }
	    Line {
	      SrcBlock		      "In"
	      SrcPort		      1
	      DstBlock		      "Sum"
	      DstPort		      2
	    }
	    Line {
	      Name		      "state"
	      Labels		      [0, 0]
	      SrcBlock		      "Unit Delay"
	      SrcPort		      1
	      Points		      [15, 0; 0, -35; -265, 0; 0, 25]
	      DstBlock		      "Sum"
	      DstPort		      1
	    }
	    Line {
	      Name		      "mod_in"
	      Labels		      [0, 0]
	      SrcBlock		      "Sum"
	      SrcPort		      1
	      Points		      [0, 0; 40, 0]
	      Branch {
		DstBlock		"Math\nFunction"
		DstPort			1
	      }
	      Branch {
		Points			[0, 60]
		DstBlock		"Relational\nOperator"
		DstPort			1
	      }
	    }
	    Line {
	      SrcBlock		      "Math\nFunction"
	      SrcPort		      1
	      Points		      [10, 0]
	      Branch {
		Points			[0, -50; 100, 0; 0, 50]
		DstBlock		"State"
		DstPort			1
	      }
	      Branch {
		DstBlock		"Unit Delay"
		DstPort			1
	      }
	    }
	    Line {
	      SrcBlock		      "Constant"
	      SrcPort		      1
	      Points		      [0, 0; 45, 0]
	      Branch {
		DstBlock		"Math\nFunction"
		DstPort			2
	      }
	      Branch {
		DstBlock		"Relational\nOperator"
		DstPort			2
	      }
	    }
	    Line {
	      Name		      "carry"
	      Labels		      [1, 1]
	      SrcBlock		      "Relational\nOperator"
	      SrcPort		      1
	      DstBlock		      "Carry"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Accumulator1"
	  Ports			  [2, 2]
	  Position		  [205, 60, 245, 120]
	  MinAlgLoopOccurrences	  off
	  RTWSystemCode		  "Auto"
	  FunctionWithSeparateData off
	  MaskHideContents	  off
	  System {
	    Name		    "Accumulator1"
	    Location		    [176, 354, 796, 583]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    TiledPaperMargins	    [0.500000, 0.500000, 0.500000, 0.500000]
	    TiledPageScale	    1
	    ShowPageBoundaries	    off
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "In"
	      Position		      [25, 88, 55, 102]
	      IconDisplay	      "Port number"
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "rst"
	      Position		      [25, 128, 55, 142]
	      Port		      "2"
	      IconDisplay	      "Port number"
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "Constant"
	      Position		      [105, 151, 125, 169]
	      Value		      "1"
	      VectorParams1D	      on
	      SamplingMode	      "Sample based"
	      OutDataTypeMode	      "Inherit from 'Constant value'"
	      OutDataType	      "sfix(16)"
	      ConRadixGroup	      "Use specified scaling"
	      OutScaling	      "2^0"
	      SampleTime	      "inf"
	      FramePeriod	      "inf"
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "Constant1"
	      Position		      [105, 91, 125, 109]
	      Value		      "0"
	      VectorParams1D	      on
	      SamplingMode	      "Sample based"
	      OutDataTypeMode	      "Inherit from 'Constant value'"
	      OutDataType	      "sfix(16)"
	      ConRadixGroup	      "Use specified scaling"
	      OutScaling	      "2^0"
	      SampleTime	      "inf"
	      FramePeriod	      "inf"
	    }
	    Block {
	      BlockType		      Math
	      Name		      "Math\nFunction"
	      Ports		      [2, 1]
	      Position		      [275, 47, 305, 78]
	      ShowName		      off
	      Operator		      "mod"
	    }
	    Block {
	      BlockType		      RelationalOperator
	      Name		      "Relational\nOperator"
	      Position		      [290, 137, 320, 168]
	      Port {
		PortNumber		1
		Name			"carry"
		RTWStorageClass		"Auto"
		DataLoggingNameMode	"SignalName"
	      }
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum"
	      Ports		      [2, 1]
	      Position		      [85, 55, 105, 75]
	      ShowName		      off
	      IconShape		      "round"
	      Inputs		      "|++"
	      Port {
		PortNumber		1
		Name			"mod_in"
		RTWStorageClass		"Auto"
		DataLoggingNameMode	"SignalName"
	      }
	    }
	    Block {
	      BlockType		      Switch
	      Name		      "Switch1"
	      Position		      [210, 40, 240, 70]
	      Threshold		      "0.5"
	    }
	    Block {
	      BlockType		      UnitDelay
	      Name		      "Unit Delay"
	      Position		      [340, 45, 375, 85]
	      SampleTime	      "-1"
	      Port {
		PortNumber		1
		Name			"state"
		RTWStorageClass		"Auto"
		DataLoggingNameMode	"SignalName"
	      }
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "State"
	      Position		      [420, 113, 450, 127]
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Carry"
	      Position		      [415, 148, 445, 162]
	      Port		      "2"
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	    }
	    Line {
	      Name		      "carry"
	      Labels		      [1, 1]
	      SrcBlock		      "Relational\nOperator"
	      SrcPort		      1
	      DstBlock		      "Carry"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Constant"
	      SrcPort		      1
	      Points		      [0, 0; 130, 0]
	      Branch {
		DstBlock		"Relational\nOperator"
		DstPort			2
	      }
	      Branch {
		DstBlock		"Math\nFunction"
		DstPort			2
	      }
	    }
	    Line {
	      SrcBlock		      "Math\nFunction"
	      SrcPort		      1
	      Points		      [5, 0]
	      Branch {
		Points			[0, 55]
		DstBlock		"State"
		DstPort			1
	      }
	      Branch {
		DstBlock		"Unit Delay"
		DstPort			1
	      }
	    }
	    Line {
	      Name		      "mod_in"
	      Labels		      [0, 0]
	      SrcBlock		      "Sum"
	      SrcPort		      1
	      Points		      [40, 0]
	      Branch {
		Points			[0, 80]
		DstBlock		"Relational\nOperator"
		DstPort			1
	      }
	      Branch {
		DstBlock		"Switch1"
		DstPort			3
	      }
	    }
	    Line {
	      Name		      "state"
	      Labels		      [0, 0]
	      SrcBlock		      "Unit Delay"
	      SrcPort		      1
	      Points		      [15, 0; 0, -35; -340, 0; 0, 35]
	      DstBlock		      "Sum"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "In"
	      SrcPort		      1
	      Points		      [35, 0]
	      DstBlock		      "Sum"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Switch1"
	      SrcPort		      1
	      DstBlock		      "Math\nFunction"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Constant1"
	      SrcPort		      1
	      Points		      [40, 0; 0, -55]
	      DstBlock		      "Switch1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "rst"
	      SrcPort		      1
	      Points		      [125, 0; 0, -80]
	      DstBlock		      "Switch1"
	      DstPort		      2
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Accumulator2"
	  Ports			  [2, 2]
	  Position		  [295, 60, 335, 120]
	  MinAlgLoopOccurrences	  off
	  RTWSystemCode		  "Auto"
	  FunctionWithSeparateData off
	  MaskHideContents	  off
	  System {
	    Name		    "Accumulator2"
	    Location		    [176, 354, 796, 583]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    TiledPaperMargins	    [0.500000, 0.500000, 0.500000, 0.500000]
	    TiledPageScale	    1
	    ShowPageBoundaries	    off
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "In"
	      Position		      [25, 88, 55, 102]
	      IconDisplay	      "Port number"
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "rst"
	      Position		      [25, 128, 55, 142]
	      Port		      "2"
	      IconDisplay	      "Port number"
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "Constant"
	      Position		      [105, 151, 125, 169]
	      Value		      "1"
	      VectorParams1D	      on
	      SamplingMode	      "Sample based"
	      OutDataTypeMode	      "Inherit from 'Constant value'"
	      OutDataType	      "sfix(16)"
	      ConRadixGroup	      "Use specified scaling"
	      OutScaling	      "2^0"
	      SampleTime	      "inf"
	      FramePeriod	      "inf"
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "Constant1"
	      Position		      [105, 91, 125, 109]
	      Value		      "0"
	      VectorParams1D	      on
	      SamplingMode	      "Sample based"
	      OutDataTypeMode	      "Inherit from 'Constant value'"
	      OutDataType	      "sfix(16)"
	      ConRadixGroup	      "Use specified scaling"
	      OutScaling	      "2^0"
	      SampleTime	      "inf"
	      FramePeriod	      "inf"
	    }
	    Block {
	      BlockType		      Math
	      Name		      "Math\nFunction"
	      Ports		      [2, 1]
	      Position		      [275, 47, 305, 78]
	      ShowName		      off
	      Operator		      "mod"
	    }
	    Block {
	      BlockType		      RelationalOperator
	      Name		      "Relational\nOperator"
	      Position		      [290, 137, 320, 168]
	      Port {
		PortNumber		1
		Name			"carry"
		RTWStorageClass		"Auto"
		DataLoggingNameMode	"SignalName"
	      }
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum"
	      Ports		      [2, 1]
	      Position		      [85, 55, 105, 75]
	      ShowName		      off
	      IconShape		      "round"
	      Inputs		      "|++"
	      Port {
		PortNumber		1
		Name			"mod_in"
		RTWStorageClass		"Auto"
		DataLoggingNameMode	"SignalName"
	      }
	    }
	    Block {
	      BlockType		      Switch
	      Name		      "Switch1"
	      Position		      [215, 40, 245, 70]
	      Threshold		      "0.5"
	    }
	    Block {
	      BlockType		      UnitDelay
	      Name		      "Unit Delay"
	      Position		      [340, 45, 375, 85]
	      SampleTime	      "-1"
	      Port {
		PortNumber		1
		Name			"state"
		RTWStorageClass		"Auto"
		DataLoggingNameMode	"SignalName"
	      }
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "State"
	      Position		      [420, 113, 450, 127]
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Carry"
	      Position		      [415, 148, 445, 162]
	      Port		      "2"
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	    }
	    Line {
	      SrcBlock		      "rst"
	      SrcPort		      1
	      Points		      [125, 0; 0, -80]
	      DstBlock		      "Switch1"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Constant1"
	      SrcPort		      1
	      Points		      [40, 0; 0, -55]
	      DstBlock		      "Switch1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Switch1"
	      SrcPort		      1
	      DstBlock		      "Math\nFunction"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "In"
	      SrcPort		      1
	      Points		      [35, 0]
	      DstBlock		      "Sum"
	      DstPort		      2
	    }
	    Line {
	      Name		      "state"
	      Labels		      [0, 0]
	      SrcBlock		      "Unit Delay"
	      SrcPort		      1
	      Points		      [15, 0; 0, -35; -340, 0; 0, 35]
	      DstBlock		      "Sum"
	      DstPort		      1
	    }
	    Line {
	      Name		      "mod_in"
	      Labels		      [0, 0]
	      SrcBlock		      "Sum"
	      SrcPort		      1
	      Points		      [40, 0]
	      Branch {
		DstBlock		"Switch1"
		DstPort			3
	      }
	      Branch {
		Points			[0, 80]
		DstBlock		"Relational\nOperator"
		DstPort			1
	      }
	    }
	    Line {
	      SrcBlock		      "Math\nFunction"
	      SrcPort		      1
	      Points		      [5, 0]
	      Branch {
		DstBlock		"Unit Delay"
		DstPort			1
	      }
	      Branch {
		Points			[0, 55]

⌨️ 快捷键说明

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