📄 simple_pll_3.mdl
字号:
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"
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]
Port "1"
IconDisplay "Port number"
LatchInput off
}
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"
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]
Port "1"
IconDisplay "Port number"
LatchInput off
}
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"
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]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType RealImagToComplex
Name "Real-Imag to\nComplex"
Ports [2, 1]
Position [510, 98, 540, 127]
Input "Real and imag"
}
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"
Amplitude "1/7.2"
Frequency "2*pi*(Fc)"
SampleTime "0"
}
Block {
BlockType Reference
Name "Spectrum\nScope"
Ports [1]
Position [600, 90, 635, 140]
SourceBlock "dspsnks4/Spectrum\nScope"
SourceType "Spectrum Scope"
ShowPortLabels off
ScopeProperties on
Domain "Frequency"
HorizSpan "1"
UseBuffer on
BufferSize "256"
Overlap "64"
inpFftLenInherit off
FFTlength "128"
numAvg "2"
DisplayProperties off
AxisGrid on
Memory off
FrameNumber on
AxisLegend off
AxisZoom off
OpenScopeAtSimStart on
OpenScopeImmediately off
FigPos "[3 16 504 221]"
AxisProperties off
XUnits "Hertz"
XRange "[-Fs/2...Fs/2]"
InheritXIncr on
XIncr "1.0"
XLabel "Samples"
YUnits "dB"
YMin "-110"
YMax "10"
YLabel "Magnitude, dB"
LineProperties off
wintypeSpecScope "Hann"
RsSpecScope "50"
betaSpecScope "5"
winsampSpecScope "Periodic"
}
Block {
BlockType Reference
Name "anti alias"
Ports [1, 1]
Position [250, 32, 315, 88]
SourceBlock "dsparch4/Analog\nFilter Design"
SourceType "Analog Filter Design"
method "Elliptic"
filttype "Lowpass"
N "9"
Wlo "BW*pi"
Whi "80"
Rp "1.2"
Rs "100"
}
Block {
BlockType Reference
Name "anti alias1"
Ports [1, 1]
Position [250, 142, 315, 198]
SourceBlock "dsparch4/Analog\nFilter Design"
SourceType "Analog Filter Design"
method "Elliptic"
filttype "Lowpass"
N "9"
Wlo "BW*pi"
Whi "80"
Rp "1.2"
Rs "100"
}
Block {
BlockType Product
Name "down convert"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -