📄 vco_phase_noise.mdl
字号:
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskPromptString "Navg"
MaskStyleString "edit"
MaskTunableValueString "on"
MaskEnableString "on"
MaskVisibilityString "on"
MaskToolTipString "on"
MaskVariables "Navg=@1;"
MaskDisplay "disp('Spectral Averaging')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "100"
System {
Name "Spectral Averaging"
Location [518, 364, 1275, 627]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [60, 13, 90, 27]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Sum
Name "Add"
Ports [2, 1]
Position [260, 102, 290, 133]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutScaling "2^-10"
SaturateOnIntegerOverflow off
}
Block {
BlockType Constant
Name "Constant1"
Position [250, 48, 330, 82]
Value "ones(1,Navg)"
OutDataTypeMode "single"
}
Block {
BlockType Constant
Name "Constant2"
Position [195, 153, 225, 187]
OutDataTypeMode "single"
SampleTime "Frame/(1.28*BW)"
}
Block {
BlockType Constant
Name "Constant3"
Position [85, 160, 155, 190]
Value "Navg-1"
OutDataTypeMode "single"
SampleTime "Frame/(1.28*BW)"
}
Block {
BlockType Reference
Name "Delay"
Ports [1, 1]
Position [65, 80, 120, 120]
SourceBlock "dspsigops/Delay"
SourceType "Delay"
dly_unit "Samples"
delay "1"
ic_detail off
dif_ic_for_ch off
dif_ic_for_dly off
ic "0"
reset_popup "None"
}
Block {
BlockType Reference
Name "Digital Filter1"
Ports [2, 1]
Position [525, 70, 610, 125]
DialogController "dspDDGCreate"
DialogControllerArgs "DataTag0"
SourceBlock "dsparch4/Digital Filter"
SourceType "Digital Filter"
TypePopup "FIR (all zeros)"
IIRFiltStruct "Direct form II transposed"
AllPoleFiltStruct "Direct form"
FIRFiltStruct "Direct form"
CoeffSource "Input port(s)"
NumCoeffs "[1 2]"
DenCoeffs "[1 0.1]"
BiQuadCoeffs "[1 0.3 0.4 1 0.1 0.2]"
LatticeCoeffs "[0.2 0.4]"
denIgnore on
FiltPerSampPopup "One filter per frame"
IC "0"
ICnum "0"
ICden "0"
additionalParams off
allowOverrides on
showCoeff off
firstCoeffMode "Same word length as input"
firstCoeffWordLength "16"
firstCoeffFracLength "15"
secondCoeffMode "Same as numerator"
secondCoeffWordLength "16"
secondCoeffFracLength "15"
thirdCoeffMode "Same as input"
thirdCoeffWordLength "16"
thirdCoeffFracLength "15"
showOut off
outputMode "Same as accumulator"
outputWordLength "16"
outputFracLength "15"
showAcc off
accumMode "Same as product output"
accumWordLength "32"
accumFracLength "30"
showMpy off
prodOutputMode "Same as input"
prodOutputWordLength "32"
prodOutputFracLength "30"
showMem off
memoryMode "Same as accumulator"
memoryWordLength "16"
memoryFracLength "15"
roundingMode "Floor"
overflowMode off
ScaleValues "1"
scaleValueFracLength "14"
tapSumMode "Same as input"
tapSumWordLength "32"
tapSumFracLength "30"
stageIOMode "Same as input"
stageIOWordLength "16"
stageInFracLength "15"
stageOutFracLength "15"
LockScale off
}
Block {
BlockType MinMax
Name "MinMax"
Ports [2, 1]
Position [195, 92, 225, 123]
Function "min"
Inputs "2"
InputSameDT off
SaturateOnIntegerOverflow off
}
Block {
BlockType Product
Name "Product2"
Ports [2, 1]
Position [380, 89, 420, 131]
Inputs "*/"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Outport
Name "Out1"
Position [645, 93, 675, 107]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Add"
SrcPort 1
Points [0, 0; 40, 0]
Branch {
Points [0, 100; -305, 0; 0, -120]
DstBlock "Delay"
DstPort 1
}
Branch {
DstBlock "Product2"
DstPort 2
}
}
Line {
SrcBlock "Constant2"
SrcPort 1
Points [15, 0]
DstBlock "Add"
DstPort 2
}
Line {
SrcBlock "Product2"
SrcPort 1
DstBlock "Digital Filter1"
DstPort 2
}
Line {
SrcBlock "Delay"
SrcPort 1
DstBlock "MinMax"
DstPort 1
}
Line {
SrcBlock "MinMax"
SrcPort 1
DstBlock "Add"
DstPort 1
}
Line {
SrcBlock "Constant3"
SrcPort 1
Points [10, 0; 0, -60]
DstBlock "MinMax"
DstPort 2
}
Line {
SrcBlock "In1"
SrcPort 1
Points [360, 0; 0, 65]
DstBlock "Digital Filter1"
DstPort 1
}
Line {
SrcBlock "Digital Filter1"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "Constant1"
SrcPort 1
Points [30, 0]
DstBlock "Product2"
DstPort 1
}
}
}
Block {
BlockType Sum
Name "Sum2"
Ports [1, 1]
Position [815, 165, 845, 195]
ShowName off
IconShape "round"
Inputs "+"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Reference
Name "Window"
Ports [0, 1]
Position [150, 107, 230, 163]
DialogController "dspDDGCreate"
DialogControllerArgs "DataTag1"
SourceBlock "dspsigops/Window\nFunction"
SourceType "Window Function"
winmode "Generate window"
wintype "Hann"
sampmode "Discrete"
samptime "-1"
N "Frame"
Rs "60"
beta "1"
winsamp "Periodic"
UserWindow "hamming"
OptParams off
UserParams "{1.0}"
additionalParams on
allowOverrides on
dataType "single"
isSigned on
wordLen "16"
udDataType "sfix(16)"
fracBitsMode "Best precision"
numFracBits "15"
firstCoeffMode "Same word length as input"
firstCoeffWordLength "16"
firstCoeffFracLength "15"
prodOutputMode "Same as input"
prodOutputWordLength "16"
prodOutputFracLength "15"
outputMode "Same as input"
outputWordLength "16"
outputFracLength "15"
roundingMode "Floor"
overflowMode off
LockScale off
}
Block {
BlockType SubSystem
Name "Window Scaling"
Ports [1, 2]
Position [280, 77, 405, 188]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "Window Scaling"
Location [193, 297, 1031, 585]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "win_in"
Position [25, 28, 55, 42]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Gain
Name "Gain"
Position [475, 140, 505, 170]
Gain "Frame"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Product
Name "Product2"
Ports [2, 1]
Position [210, 26, 240, 59]
Inputs "*/"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
Port {
PortNumber 1
Name "Normalized Window"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
ShowSigGenPortName on
}
}
Block {
BlockType Product
Name "Product3"
Ports [2, 1]
Position [155, 142, 185, 173]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Product
Name "Product4"
Ports [2, 1]
Position [210, 87, 240, 118]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Product
Name "Product5"
Ports [2, 1]
Position [375, 136, 405, 169]
Inputs "/*"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
Port {
PortNumber 1
Name "ENBW"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
ShowSigGenPortName on
}
}
Block {
BlockType Sum
Name "Sum"
Ports [1, 1]
Position [105, 75, 145, 115]
ShowName off
IconShape "round"
Inputs "+"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Sum1"
Ports [1, 1]
Position [270, 140, 310, 180]
ShowName off
IconShape "round"
Inputs "+"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Outport
Name "Normalized Window"
Position [590, 38, 620, 52]
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Power Correction Factor"
Position [590, 148, 620, 162]
Port "2"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
Name "Normalized Window"
Labels [1, 0]
SrcBlock "Product2"
SrcPort 1
DstBlock "Normalized Window"
DstPort 1
}
Line {
SrcBlock "Product3"
SrcPort 1
DstBlock "Sum1"
DstPort 1
}
Line {
SrcBlock "Product4"
SrcPort 1
Points [100, 0; 0, 40]
DstBlock "Product5"
DstPort 1
}
Line {
SrcBlock "Sum1"
SrcPort 1
DstBlock "Product5"
DstPort 2
}
Line {
Name "ENBW"
Labels [0, 0]
SrcBlock "Product5"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "win_in"
SrcPort 1
Points [0, 0; 15, 0]
Branch {
Points [0, 60]
Branch {
DstBlock "Sum"
DstPort 1
}
Branch {
Points [0, 70; 25, 0]
Branch {
Points [0, -15]
DstBlock "Product3"
DstPort 1
}
Branch {
DstBlock "Product3"
DstPort 2
}
}
}
Branch {
DstBlock "Product2"
DstPort 1
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -