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

📄 simple_pll_3.mdl

📁 模拟锁相环(apll)的一些simulink模型
💻 MDL
📖 第 1 页 / 共 5 页
字号:
      Ports		      [3, 2]
      Position		      [185, 27, 230, 103]
      SourceBlock	      "simulink_extras/Flip Flops/D Flip-Flop"
      SourceType	      "DFlipFlop"
      ShowPortLabels	      on
    }
    Block {
      BlockType		      Reference
      Name		      "DC Voltage Source1"
      Description	      "source block"
      Ports		      [0, 0, 0, 0, 0, 1, 1]
      Position		      [440, 276, 475, 304]
      Orientation	      "left"
      ShowName		      off
      AttributesFormatString  "\\n"
      SourceBlock	      "powerlib/Electrical\nSources/DC Voltage Source"
      SourceType	      "DC Voltage Source"
      ShowPortLabels	      on
      Amplitude		      "5"
      Measurements	      "None"
    }
    Block {
      BlockType		      TransportDelay
      Name		      "Delay Asymetry"
      Position		      [270, 270, 300, 300]
      ForegroundColor	      "red"
      DelayTime		      "100e-12"
      BufferSize	      "100"
    }
    Block {
      BlockType		      SubSystem
      Name		      "Divide by N"
      Ports		      [1, 1, 0, 1]
      Position		      [220, 375, 320, 425]
      Orientation	      "left"
      AncestorBlock	      "rab_favorites/Divide by N"
      TreatAsAtomicUnit	      on
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      MaskHideContents	      off
      System {
	Name			"Divide by N"
	Location		[111, 254, 712, 554]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"103"
	Block {
	  BlockType		  Inport
	  Name			  "div #"
	  Position		  [140, 158, 170, 172]
	  IconDisplay		  "Port number"
	}
	Block {
	  BlockType		  TriggerPort
	  Name			  "Clock In"
	  Ports			  []
	  Position		  [225, 20, 245, 40]
	  TriggerType		  "falling"
	}
	Block {
	  BlockType		  Constant
	  Name			  "Constant"
	  Position		  [135, 95, 165, 125]
	}
	Block {
	  BlockType		  Math
	  Name			  "Math\nFunction"
	  Ports			  [2, 1]
	  Position		  [365, 102, 395, 133]
	  Operator		  "mod"
	}
	Block {
	  BlockType		  RelationalOperator
	  Name			  "Relational\nOperator"
	  Position		  [455, 97, 485, 128]
	  Operator		  "<"
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum"
	  Ports			  [2, 1]
	  Position		  [215, 100, 235, 120]
	  ShowName		  off
	  IconShape		  "round"
	  Inputs		  "|++"
	}
	Block {
	  BlockType		  UnitDelay
	  Name			  "Unit Delay"
	  Position		  [270, 90, 305, 130]
	  SampleTime		  "-1"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Clock Out"
	  Position		  [540, 108, 570, 122]
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	}
	Line {
	  SrcBlock		  "Constant"
	  SrcPort		  1
	  Points		  [15, 0]
	  Branch {
	    DstBlock		    "Sum"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, -25; 240, 0; 0, 20]
	    DstBlock		    "Relational\nOperator"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Sum"
	  SrcPort		  1
	  DstBlock		  "Unit Delay"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Unit Delay"
	  SrcPort		  1
	  DstBlock		  "Math\nFunction"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "div #"
	  SrcPort		  1
	  Points		  [175, 0]
	  DstBlock		  "Math\nFunction"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Math\nFunction"
	  SrcPort		  1
	  Points		  [20, 0]
	  Branch {
	    Points		    [0, 90; -195, 0]
	    DstBlock		    "Sum"
	    DstPort		    2
	  }
	  Branch {
	    DstBlock		    "Relational\nOperator"
	    DstPort		    2
	  }
	}
	Line {
	  SrcBlock		  "Relational\nOperator"
	  SrcPort		  1
	  DstBlock		  "Clock Out"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      Reference
      Name		      "G2"
      Ports		      [0, 0, 0, 0, 0, 1]
      Position		      [604, 320, 636, 350]
      Orientation	      "down"
      AttributesFormatString  "\\n"
      SourceBlock	      "powerlib/Elements/Ground"
      SourceType	      "Ground"
      PhysicalDomain	      "powersysdomain"
      SubClassName	      "unknown"
      LeftPortType	      "p1"
      RightPortType	      "p1"
      LConnTagsString	      "a"
    }
    Block {
      BlockType		      Reference
      Name		      "Ground (output)4"
      Ports		      [0, 0, 0, 0, 0, 1]
      Position		      [370, 70, 400, 100]
      Orientation	      "down"
      ShowName		      off
      AttributesFormatString  "\\n"
      SourceBlock	      "powerlib/Elements/Ground"
      SourceType	      "Ground"
      PhysicalDomain	      "powersysdomain"
      SubClassName	      "unknown"
      LeftPortType	      "p1"
      RightPortType	      "p1"
      LConnTagsString	      "a"
    }
    Block {
      BlockType		      Reference
      Name		      "Ideal Switch2"
      Ports		      [1, 1, 0, 0, 0, 1, 1]
      Position		      [435, 65, 490, 105]
      Orientation	      "down"
      NamePlacement	      "alternate"
      ShowName		      off
      AttributesFormatString  "\\n"
      SourceBlock	      "powerlib/Power\nElectronics/Ideal Switch"
      SourceType	      "Ideal Switch"
      ShowPortLabels	      on
      Ron		      "180"
      Lon		      "1e-007"
      IC		      "1"
      Rs		      "0"
      Cs		      "0"
      Measurements	      on
    }
    Block {
      BlockType		      Reference
      Name		      "Ideal Switch4"
      Ports		      [1, 1, 0, 0, 0, 1, 1]
      Position		      [365, 200, 420, 240]
      Orientation	      "up"
      NamePlacement	      "alternate"
      ShowName		      off
      AttributesFormatString  "\\n"
      SourceBlock	      "powerlib/Power\nElectronics/Ideal Switch"
      SourceType	      "Ideal Switch"
      ShowPortLabels	      on
      Ron		      "180"
      Lon		      "1e-007"
      IC		      "0"
      Rs		      "0"
      Cs		      "0"
      Measurements	      on
    }
    Block {
      BlockType		      Logic
      Name		      "Logical\nOperator"
      Ports		      [2, 1]
      Position		      [260, 127, 290, 158]
      Orientation	      "left"
      Operator		      "NAND"
    }
    Block {
      BlockType		      SubSystem
      Name		      "Make Square"
      Ports		      [1, 1]
      Position		      [85, 40, 115, 90]
      ShowName		      off
      TreatAsAtomicUnit	      off
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      MaskHideContents	      off
      MaskType		      "Make Square"
      MaskDescription	      "For input +ve values output is 1\nFor input -ve"
" values output is 0"
      MaskDisplay	      "plot(0,0,100,100,[90,70,70,50,50,30,30,10,10],["
"20,20,40,40,20,20,40,40,20],[90,87,84,80,76,73,70,67,63,60,57,53,50,47,44,40,"
"36,33,30,27,23,20,17,13,10],[70,65,63,62,63,65,70,75,77,78,77,75,70,65,63,62,"
"63,65,70,75,77,78,77,75,70])"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      System {
	Name			"Make Square"
	Location		[459, 360, 767, 528]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "In1"
	  Position		  [25, 33, 55, 47]
	  IconDisplay		  "Port number"
	}
	Block {
	  BlockType		  Constant
	  Name			  "Constant"
	  Position		  [30, 80, 60, 110]
	  Value			  "0"
	}
	Block {
	  BlockType		  RelationalOperator
	  Name			  "Relational\nOperator"
	  Position		  [135, 32, 165, 63]
	  Operator		  ">"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out1"
	  Position		  [270, 43, 300, 57]
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	}
	Line {
	  SrcBlock		  "Relational\nOperator"
	  SrcPort		  1
	  DstBlock		  "Out1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Constant"
	  SrcPort		  1
	  Points		  [55, 0]
	  DstBlock		  "Relational\nOperator"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "In1"
	  SrcPort		  1
	  DstBlock		  "Relational\nOperator"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "Make Square1"
      Ports		      [1, 1]
      Position		      [375, 325, 405, 375]
      Orientation	      "left"
      ShowName		      off
      TreatAsAtomicUnit	      off
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      MaskHideContents	      off
      MaskType		      "Make Square"
      MaskDescription	      "For input +ve values output is 1\nFor input -ve"
" values output is 0"
      MaskDisplay	      "plot(0,0,100,100,[90,70,70,50,50,30,30,10,10],["
"20,20,40,40,20,20,40,40,20],[90,87,84,80,76,73,70,67,63,60,57,53,50,47,44,40,"
"36,33,30,27,23,20,17,13,10],[70,65,63,62,63,65,70,75,77,78,77,75,70,65,63,62,"
"63,65,70,75,77,78,77,75,70])"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      System {
	Name			"Make Square1"
	Location		[459, 360, 767, 528]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "In1"
	  Position		  [25, 33, 55, 47]
	  IconDisplay		  "Port number"
	}
	Block {
	  BlockType		  Constant
	  Name			  "Constant"
	  Position		  [30, 80, 60, 110]
	  Value			  "0"
	}
	Block {
	  BlockType		  RelationalOperator
	  Name			  "Relational\nOperator"
	  Position		  [135, 32, 165, 63]
	  Operator		  ">"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out1"
	  Position		  [270, 43, 300, 57]
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	}
	Line {
	  SrcBlock		  "In1"
	  SrcPort		  1
	  DstBlock		  "Relational\nOperator"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Constant"
	  SrcPort		  1
	  Points		  [55, 0]
	  DstBlock		  "Relational\nOperator"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Relational\nOperator"
	  SrcPort		  1
	  DstBlock		  "Out1"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "RF Spectum Analyzer (Image Reject)"
      Description	      "Spectrum Analyzer"
      Ports		      [1]
      Position		      [485, 403, 610, 457]
      TreatAsAtomicUnit	      off
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      MaskHideContents	      off
      MaskPromptString	      "Bandwidth|Center Freq"
      MaskStyleString	      "edit,edit"
      MaskTunableValueString  "on,on"
      MaskCallbackString      "|"
      MaskEnableString	      "on,on"
      MaskVisibilityString    "on,on"
      MaskToolTipString	      "on,on"
      MaskVarAliasString      ","
      MaskVariables	      "BW=@1;Fc=@2;"
      MaskDisplay	      "fprintf('Spectrum Analyzer \\n Fc=%7.2f MHz \\n"
" BW=%7.2f MHz',Fc/1e6,BW/1e6)"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      MaskValueString	      "300e6|800e6"
      MaskTabNameString	      ","
      System {
	Name			"RF Spectum Analyzer (Image Reject)"
	Location		[173, 422, 903, 654]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "Input Signal"
	  Position		  [20, 102, 60, 118]
	  IconDisplay		  "Port number"
	}
	Block {
	  BlockType		  RealImagToComplex
	  Name			  "Real-Imag to\nComplex"
	  Ports			  [2, 1]
	  Position		  [510, 98, 540, 127]
	}
	Block {
	  BlockType		  Sin
	  Name			  "Sine Wave1"
	  Ports			  [0, 1]
	  Position		  [25, 35, 55, 65]
	  ShowName		  off
	  SineType		  "Time based"
	  Amplitude		  "1/7.2"
	  Frequency		  "2*pi*(Fc)"
	  Phase			  "-pi/2"
	  SampleTime		  "0"
	}
	Block {
	  BlockType		  Sin
	  Name			  "Sine Wave2"
	  Ports			  [0, 1]
	  Position		  [25, 160, 55, 190]
	  ShowName		  off
	  SineType		  "Time based"

⌨️ 快捷键说明

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