📄 simple_pll_3.mdl
字号:
InitialVoltage "0"
Measurements "None"
}
Block {
BlockType Reference
Name "1.59e-10 F1"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [639, 210, 661, 240]
Orientation "up"
NamePlacement "alternate"
ShowName off
DialogController "POWERSYS.PowerSysDialog"
SourceBlock "powerlib/Elements/Series RLC Branch"
SourceType "Series RLC Branch"
PhysicalDomain "powersysdomain"
SubClassName "unknown"
LeftPortType "p1"
RightPortType "p1"
LConnTagsString "__new0"
RConnTagsString "__new0"
BranchType "C"
Resistance "1.0"
Inductance "1.0"
SetiL0 off
InitialCurrent "0"
Capacitance "47e-12"
Setx0 off
InitialVoltage "0"
Measurements "None"
}
Block {
BlockType Reference
Name "1e3 ohm3"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [505, 164, 560, 186]
NamePlacement "alternate"
ShowName off
DialogController "POWERSYS.PowerSysDialog"
SourceBlock "powerlib/Elements/Series RLC Branch"
SourceType "Series RLC Branch"
PhysicalDomain "powersysdomain"
SubClassName "unknown"
LeftPortType "p1"
RightPortType "p1"
LConnTagsString "__new0"
RConnTagsString "__new0"
BranchType "R"
Resistance "270"
Inductance "1.0"
SetiL0 off
InitialCurrent "0"
Capacitance "1.0"
Setx0 off
InitialVoltage "0"
Measurements "None"
}
Block {
BlockType TransferFcn
Name "40 MHz Elliptic "
Position [810, 167, 870, 203]
Numerator "a"
Denominator "b"
}
Block {
BlockType Constant
Name "8*100=800 MHz\n"
Position [375, 383, 410, 417]
Orientation "left"
Value "8"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Reference
Name "D Flip-Flop"
Ports [3, 2]
Position [185, 192, 230, 268]
SourceBlock "simulink_extras/Flip Flops/D Flip-Flop"
SourceType "DFlipFlop"
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"
}
Block {
BlockType Reference
Name "D Flip-Flop1"
Ports [3, 2]
Position [185, 27, 230, 103]
SourceBlock "simulink_extras/Flip Flops/D Flip-Flop"
SourceType "DFlipFlop"
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"
}
Block {
BlockType Reference
Name "DC Voltage Source1"
Description "source block"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [440, 281, 475, 309]
Orientation "left"
ShowName off
AttributesFormatString "\\n"
DialogController "POWERSYS.PowerSysDialog"
SourceBlock "powerlib/Electrical\nSources/DC Voltage Source"
SourceType "DC Voltage Source"
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"
Amplitude "5"
Measurements "None"
}
Block {
BlockType TransportDelay
Name "Delay Asymmetry"
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"
FunctionWithSeparateData off
Port {
PortNumber 1
Name "clk_out"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
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"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "103"
Block {
BlockType Inport
Name "div #"
Position [140, 158, 170, 172]
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType TriggerPort
Name "Clock In"
Ports []
Position [225, 20, 245, 40]
TriggerType "falling"
}
Block {
BlockType Constant
Name "Constant"
Position [135, 95, 165, 125]
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Math
Name "Math\nFunction"
Ports [2, 1]
Position [365, 102, 395, 133]
Operator "mod"
OutDataType "sfix(16)"
OutScaling "2^0"
}
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 "|++"
CollapseMode "All dimensions"
OutDataType "sfix(16)"
OutScaling "2^0"
}
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"
OutDataType "sfix(16)"
OutScaling "2^0"
}
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"
DialogController "POWERSYS.PowerSysDialog"
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"
DialogController "POWERSYS.PowerSysDialog"
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"
DialogController "POWERSYS.PowerSysDialog"
SourceBlock "powerlib/Power\nElectronics/Ideal Switch"
SourceType "Ideal Switch"
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"
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"
DialogController "POWERSYS.PowerSysDialog"
SourceBlock "powerlib/Power\nElectronics/Ideal Switch"
SourceType "Ideal Switch"
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"
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
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData 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"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [25, 33, 55, 47]
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Constant
Name "Constant"
Position [30, 80, 60, 110]
Value "0"
OutDataType "sfix(16)"
OutScaling "2^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"
OutDataType "sfix(16)"
OutScaling "2^0"
}
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
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -