📄 dpll_fixpt.mdl
字号:
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType Inport
Name "ctrl"
Position [30, 83, 60, 97]
IconDisplay "Port number"
}
Block {
BlockType Reference
Name "NCO"
Ports [1, 1]
Position [205, 62, 275, 118]
DialogController "dspdialog.NCO"
SourceBlock "dspsigops/NCO"
SourceType "NCO"
AccIncSrc "Input port"
AccInc "16417"
PhaseOffsetSrc "Specify via dialog"
PhaseOffset "0"
AccumWL "16"
HasDither "off"
DitherWL "5"
PNgeneratorLength "12"
HasPhaseQuantizer "off"
TableDepth "14"
HasOutputPhaseError "off"
Formula "Cosine"
DataType "Binary point scaling"
OutputWL "16"
OutputFL "14"
CompMethod "Table lookup (no interpolation)"
SampleTime "1/8000"
SamplesPerFrame "1"
}
Block {
BlockType SubSystem
Name "To Center Freq"
Ports [1, 1]
Position [110, 67, 170, 113]
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
System {
Name "To Center Freq"
Location [392, 453, 795, 651]
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 "142"
Block {
BlockType Inport
Name "ctrl"
Position [390, 71, 425, 89]
Orientation "left"
IconDisplay "Port number"
}
Block {
BlockType Sum
Name "Add"
Ports [2, 1]
Position [190, 72, 220, 103]
Orientation "left"
CollapseMode "All dimensions"
OutScaling "2^-10"
SaturateOnIntegerOverflow off
SampleTime "Ts"
}
Block {
BlockType Constant
Name "Constant"
Position [340, 114, 385, 146]
Orientation "left"
Value "round(1e6*2^16*Ts)"
OutDataTypeMode "Inherit via back propagation"
}
Block {
BlockType Gain
Name "Gain"
Position [280, 62, 330, 98]
Orientation "left"
Gain "32"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Specify via dialog"
OutDataType "sint(16)"
SaturateOnIntegerOverflow off
}
Block {
BlockType Outport
Name "inc"
Position [50, 83, 80, 97]
Orientation "left"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Constant"
SrcPort 1
Points [-85, 0; 0, -35]
DstBlock "Add"
DstPort 2
}
Line {
SrcBlock "Add"
SrcPort 1
DstBlock "inc"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
DstBlock "Add"
DstPort 1
}
Line {
SrcBlock "ctrl"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
}
}
Block {
BlockType UnitDelay
Name "Unit Delay"
Position [330, 73, 365, 107]
SampleTime "-1"
}
Block {
BlockType Outport
Name "cos"
Position [460, 83, 490, 97]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "To Center Freq"
SrcPort 1
DstBlock "NCO"
DstPort 1
}
Line {
SrcBlock "ctrl"
SrcPort 1
DstBlock "To Center Freq"
DstPort 1
}
Line {
SrcBlock "NCO"
SrcPort 1
DstBlock "Unit Delay"
DstPort 1
}
Line {
SrcBlock "Unit Delay"
SrcPort 1
DstBlock "cos"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "PFD"
Ports [2, 1]
Position [240, 81, 290, 139]
DropShadow on
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
System {
Name "PFD"
Location [588, 564, 1218, 891]
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 "133"
Block {
BlockType Inport
Name "Ref"
Position [25, 28, 55, 42]
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "Var"
Position [25, 63, 55, 77]
Port "2"
IconDisplay "Port number"
}
Block {
BlockType SubSystem
Name "Chart"
Ports [0, 1, 0, 1]
Position [120, 93, 180, 147]
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
MaskType "Stateflow"
MaskDescription "Stateflow diagram"
MaskDisplay "plot(sf('Private','sfblk','xIcon'),sf('Priv"
"ate','sfblk','yIcon'));text(0.5,0,sf('Private', 'sfblk', 'tIcon'),'Horizontal"
"Al','Center','VerticalAl','Bottom');"
MaskSelfModifiable on
MaskIconFrame off
MaskIconOpaque off
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Chart"
Location [257, 457, 812, 717]
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 TriggerPort
Name " input events "
Ports [0, 1]
Position [20, 101, 40, 119]
ShowOutputPort on
}
Block {
BlockType Demux
Name " Demux "
Ports [1, 1]
Position [270, 180, 320, 220]
Outputs "1"
}
Block {
BlockType "S-Function"
Name " SFunction "
Tag "Stateflow S-Function dpll_fixpt 2"
Ports [1, 2]
Position [180, 100, 230, 180]
FunctionName "sf_sfun"
PortCounts "[1 2]"
Port {
PortNumber 2
Name "s"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
}
Block {
BlockType Terminator
Name " Terminator "
Position [460, 191, 480, 209]
}
Block {
BlockType Outport
Name "s"
Position [460, 101, 480, 119]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
Name "s"
Labels [0, 0]
SrcBlock " SFunction "
SrcPort 2
DstBlock "s"
DstPort 1
}
Line {
SrcBlock " input events "
SrcPort 1
DstBlock " SFunction "
DstPort 1
}
Line {
SrcBlock " Demux "
SrcPort 1
DstBlock " Terminator "
DstPort 1
}
Line {
SrcBlock " SFunction "
SrcPort 1
Points [0, 80]
DstBlock " Demux "
DstPort 1
}
}
}
Block {
BlockType Mux
Name "Mux"
Ports [2, 1]
Position [80, 26, 85, 64]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Outport
Name "Ip"
Position [345, 113, 375, 127]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Chart"
SrcPort 1
DstBlock "Ip"
DstPort 1
}
Line {
SrcBlock "Var"
SrcPort 1
Points [0, -15]
DstBlock "Mux"
DstPort 2
}
Line {
SrcBlock "Ref"
SrcPort 1
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "Mux"
SrcPort 1
Points [60, 0]
DstBlock "Chart"
DstPort trigger
}
}
}
Block {
BlockType Sin
Name "Ref Osc"
Ports [0, 1]
Position [55, 80, 85, 110]
AttributesFormatString "%<Frequency> (rad/s)"
SineType "Time based"
Frequency "2*pi*1.1e6"
SampleTime "Ts"
}
Block {
BlockType Scope
Name "Scope"
Ports [2]
Position [185, 166, 215, 199]
Floating off
Location [5, 52, 1285, 959]
Open off
NumInputPorts "2"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
}
TimeRange "5e-005"
YMin "-1.5~-1.5"
YMax "1.5~1.5"
SaveToWorkspace on
SaveName "log_dpll_fixpt"
DataFormat "StructureWithTime"
LimitDataPoints off
SampleTime "0"
}
Block {
BlockType Reference
Name "Spectrum\nScope"
Ports [1]
Position [155, 280, 190, 330]
Orientation "left"
DialogController "dspdialog.SpectrumScope"
DialogControllerArgs "DataTag1"
SourceBlock "dspsnks4/Spectrum\nScope"
SourceType "Spectrum Scope"
ShowPortLabels "none"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
ScopeProperties on
Domain "Frequency"
HorizSpan "1"
UseBuffer on
BufferSize "1024"
Overlap "512"
inpFftLenInherit off
FFTlength "128"
numAvg "2"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -