📄 dspddc_r12p1.mdl
字号:
Name "Sine Wave"
Position [40, 25, 80, 65]
SineType "Time-based"
Amplitude "1"
Bias "0"
Frequency "2*pi*69.1e6*5/24"
Phase "0"
Samples "10"
Offset "0"
SampleTime "1/69.333e6"
VectorParams1D on
}
Block {
BlockType Outport
Name "Out1"
Position [280, 38, 310, 52]
ShowName off
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "Sine Wave"
SrcPort 1
DstBlock "Conversion"
DstPort 1
}
Line {
SrcBlock "Conversion"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "NCO"
Ports [0, 1]
Position [213, 15, 267, 45]
Orientation "down"
NamePlacement "alternate"
ShowName off
FontName "Arial"
FontSize 12
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
MaskType "NCO"
MaskDisplay "disp('NCO')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "NCO"
Location [97, 174, 668, 381]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 212
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Reference
Name "16-bit Phase Offset"
Ports [0, 1]
Position [25, 108, 125, 132]
SourceBlock "fixpt_lib_3p1/Sources/Constant"
SourceType "Fixed-Point Constant"
constval "0"
OutputDataTypeScalingMode "Specify via dialog"
OutDataType "ufix(16)"
OutScaling "2^0"
ConRadixGroup "Use Specified Scaling"
DblOver off
VectInt on
}
Block {
BlockType Reference
Name "32-bit Tuning Freq"
Ports [0, 1]
Position [25, 68, 125, 92]
NamePlacement "alternate"
SourceBlock "fixpt_lib_3p1/Sources/Constant"
SourceType "Fixed-Point Constant"
constval " (5/24) * (2^32)"
OutputDataTypeScalingMode "Specify via dialog"
OutDataType "ufix(32)"
OutScaling "2^0"
ConRadixGroup "Use Specified Scaling"
DblOver off
VectInt on
}
Block {
BlockType Goto
Name "Goto"
Position [480, 136, 540, 154]
ShowName off
GotoTag "NCO_IQ"
TagVisibility "global"
}
Block {
BlockType SubSystem
Name "Subsystem"
Ports [2, 1]
Position [185, 61, 280, 139]
ShowName off
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
MaskPromptString "Enable dithering|Number of dither bits (1-1"
"9):"
MaskStyleString "checkbox,edit"
MaskTunableValueString "on,on"
MaskCallbackString "|"
MaskEnableString "on,on"
MaskVisibilityString "on,on"
MaskToolTipString "on,on"
MaskVariables "enable_dither=@1;bits=@2;"
MaskDisplay "disp('NCO')"
MaskIconFrame on
MaskIconOpaque off
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "on|5"
MaskVariableAliases ","
System {
Name "Subsystem"
Location [162, 338, 911, 529]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "FREQ"
Position [25, 53, 55, 67]
Port "1"
LatchInput off
Interpolate on
}
Block {
BlockType Inport
Name "PHASE"
Position [25, 103, 55, 117]
Port "2"
LatchInput off
Interpolate on
}
Block {
BlockType Reference
Name "Integer Delay"
Ports [1, 1]
Position [170, 42, 215, 78]
SourceBlock "dspsigops/Integer Delay"
SourceType "Integer Delay"
delay "1"
ic "0"
}
Block {
BlockType SubSystem
Name "Subsystem"
Ports [2, 1]
Position [285, 46, 360, 99]
ShowName off
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
MaskDisplay "disp(['Sum and\\nretain\\n23 MSBs'])"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Subsystem"
Location [440, 283, 855, 435]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [110, 43, 140, 57]
Port "1"
LatchInput off
Interpolate on
}
Block {
BlockType Inport
Name "In2"
Position [25, 108, 55, 122]
Port "2"
LatchInput off
Interpolate on
}
Block {
BlockType DataTypeConversion
Name "Data Type Conversion"
Position [80, 101, 135, 129]
ShowName off
DataType "uint32"
SaturateOnIntegerOverflow off
}
Block {
BlockType SubSystem
Name "Retain 23 MSBs"
Ports [1, 1]
Position [260, 29, 335, 71]
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
System {
Name "Retain 23 MSBs"
Location [693, 100, 993, 192]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "In"
Position [25, 38, 55, 52]
Port "1"
LatchInput off
Interpolate on
}
Block {
BlockType Reference
Name "Conversion"
Ports [1, 1]
Position [80, 25, 120, 65]
SourceBlock "fixpt_lib_3p1/Data Type/Conversio"
"n"
SourceType "Fixed-Point to Fixed-Point Conver"
"sion"
ConvertRealWorld "Real World Value"
OutputDataTypeScalingMode "Specify via dialog"
OutDataType "ufix(23)"
OutScaling "2^9"
LockScale off
RndMeth "Nearest"
DoSatur off
DblOver off
dolog on
}
Block {
BlockType Reference
Name "Conversion1"
Ports [1, 1]
Position [180, 25, 220, 65]
SourceBlock "fixpt_lib_3p1/Data Type/Conversio"
"n"
SourceType "Fixed-Point to Fixed-Point Conver"
"sion"
ConvertRealWorld "Stored Integer"
OutputDataTypeScalingMode "Specify via dialog"
OutDataType "ufix(23)"
OutScaling "2^0"
LockScale off
RndMeth "Floor"
DoSatur off
DblOver off
dolog on
}
Block {
BlockType Outport
Name "Out"
Position [245, 38, 275, 52]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "Conversion"
SrcPort 1
DstBlock "Conversion1"
DstPort 1
}
Line {
SrcBlock "Conversion1"
SrcPort 1
DstBlock "Out"
DstPort 1
}
Line {
SrcBlock "In"
SrcPort 1
DstBlock "Conversion"
DstPort 1
}
}
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [175, 40, 195, 60]
ShowName off
IconShape "round"
Inputs "|++"
SaturateOnIntegerOverflow off
}
Block {
BlockType Outport
Name "Out"
Position [360, 43, 390, 57]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "Data Type Conversion"
SrcPort 1
Points [45, 0]
DstBlock "Sum1"
DstPort 2
}
Line {
SrcBlock "Sum1"
SrcPort 1
DstBlock "Retain 23 MSBs"
DstPort 1
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Sum1"
DstPort 1
}
Line {
SrcBlock "Retain 23 MSBs"
SrcPort 1
DstBlock "Out"
DstPort 1
}
Line {
SrcBlock "In2"
SrcPort 1
DstBlock "Data Type Conversion"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Subsystem1"
Ports [2, 1]
Position [410, 61, 485, 114]
ShowName off
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
MaskDisplay "disp(['Sum and\\nretain\\n18 MSBs'])"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Subsystem1"
Location [454, 375, 962, 527]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [25, 43, 55, 57]
Port "1"
LatchInput off
Interpolate on
}
Block {
BlockType Inport
Name "In2"
Position [25, 108, 55, 122]
Port "2"
LatchInput off
Interpolate on
}
Block {
BlockType SubSystem
Name "Retain 18 MSBs"
Ports [1, 1]
Position [215, 39, 290, 81]
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
System {
Name "Retain 18 MSBs"
Location [693, 100, 993, 192]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "In"
Position [25, 38, 55, 52]
Port "1"
LatchInput off
Interpolate on
}
Block {
BlockType Reference
Name "Conversion"
Ports [1, 1]
Position [80, 25, 120, 65]
SourceBlock "fixpt_lib_3p1/Data Type/Conversio"
"n"
SourceType "Fixed-Point to Fixed-Point Conver"
"sion"
ConvertRealWorld "Real World Value"
OutputDataTypeScalingMode "Specify via dialog"
OutDataType "ufix(23)"
OutScaling "2^5"
LockScale off
RndMeth "Nearest"
DoSatur off
DblOver off
dolog on
}
Block {
BlockType Reference
Name "Conversion1"
Ports [1, 1]
Position [180, 25, 220, 65]
SourceBlock "fixpt_lib_3p1/Data Type/Conversio"
"n"
SourceType "Fixed-Point to Fixed-Point Conver"
"sion"
ConvertRealWorld "Stored Integer"
OutputDataTypeScalingMode "Specify via dialog"
OutDataType "ufix(18)"
OutScaling "2^0"
LockScale off
RndMeth "Nearest"
DoSatur off
DblOver off
dolog on
}
Block {
BlockType Outport
Name "Out"
Position [245, 38, 275, 52]
Port "1"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -