📄 dspddc_r12p1.mdl
字号:
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
MaskPromptString "CFIR coefficients"
MaskStyleString "edit"
MaskTunableValueString "on"
MaskEnableString "on"
MaskVisibilityString "on"
MaskToolTipString "on"
MaskVariables "h=@1;"
MaskDisplay "disp(['CFIR' 10 'Dec by 2'])"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "[-0.000732421875 -0.00091552734375 0.003936"
"76757813 0.01202392578125 0.00631713867188 -0.0267333984375 -0.0592041015625 "
"-0.02371215820313 0.11474609375 0.28945922851563 0.3701171875 0.2894592285156"
"3 0.11474609375 -0.02371215820313 -0.0592041015625 -0.0267333984375 0.0063171"
"3867188 0.01202392578125 0.00393676757813 -0.00091552734375 -0.000732421875]"
System {
Name "Subsystem1"
Location [189, 464, 835, 647]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [15, 43, 45, 57]
Port "1"
LatchInput off
Interpolate on
}
Block {
BlockType Reference
Name "Downsample"
Ports [1, 1]
Position [145, 33, 180, 67]
SourceBlock "dspsigops/Downsample"
SourceType "Downsample"
N "2"
phase "0"
ic "0"
smode "Allow multirate"
fmode "Maintain input frame size"
}
Block {
BlockType Reference
Name "Downsample1"
Ports [1, 1]
Position [145, 103, 180, 137]
SourceBlock "dspsigops/Downsample"
SourceType "Downsample"
N "2"
phase "0"
ic "0"
smode "Allow multirate"
fmode "Maintain input frame size"
}
Block {
BlockType Reference
Name "FIR"
Ports [1, 1]
Position [260, 30, 380, 70]
SourceBlock "fixpt_lib_3p1/Filters/FIR"
SourceType "Fixed-Point FIR"
mgainval "h(1:2:length(h))"
vinit "0"
samptime "-1"
GainDataTypeScalingMode "Specify via dialog"
GainDataType "sfix( 16 )"
GainScaling "2^-14"
MatRadixGroup "Best Precision: Matrix-wise"
OutputDataTypeScalingMode "Specify via dialog"
OutDataType "sfix(20)"
OutScaling "2^12"
LockScale off
RndMeth "Nearest"
DoSatur off
DblOver off
dolog on
}
Block {
BlockType Reference
Name "FIR1"
Ports [1, 1]
Position [260, 100, 380, 140]
SourceBlock "fixpt_lib_3p1/Filters/FIR"
SourceType "Fixed-Point FIR"
mgainval "h(2:2:length(h))"
vinit "0"
samptime "-1"
GainDataTypeScalingMode "Specify via dialog"
GainDataType "sfix( 16 )"
GainScaling "2^-14"
MatRadixGroup "Best Precision: Matrix-wise"
OutputDataTypeScalingMode "Specify via dialog"
OutDataType "sfix(20)"
OutScaling "2^12"
LockScale off
RndMeth "Nearest"
DoSatur off
DblOver off
dolog on
}
Block {
BlockType Reference
Name "Integer Delay"
Ports [1, 1]
Position [57, 70, 83, 95]
Orientation "down"
NamePlacement "alternate"
ShowName off
SourceBlock "dspsigops/Integer Delay"
SourceType "Integer Delay"
delay "1"
ic "0"
}
Block {
BlockType Reference
Name "Sum"
Ports [2, 1]
Position [465, 14, 515, 156]
SourceBlock "fixpt_lib_3p1/Math/Sum"
SourceType "Fixed-Point Sum"
listofsigns "++"
OutputDataTypeScalingMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^-10"
LockScale off
RndMeth "Nearest"
DoSatur off
DblOver off
dolog on
}
Block {
BlockType Outport
Name "Out1"
Position [600, 78, 630, 92]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "In1"
SrcPort 1
Points [20, 0]
Branch {
DstBlock "Downsample"
DstPort 1
}
Branch {
DstBlock "Integer Delay"
DstPort 1
}
}
Line {
SrcBlock "Integer Delay"
SrcPort 1
Points [0, 20]
DstBlock "Downsample1"
DstPort 1
}
Line {
SrcBlock "Downsample1"
SrcPort 1
DstBlock "FIR1"
DstPort 1
}
Line {
SrcBlock "Downsample"
SrcPort 1
DstBlock "FIR"
DstPort 1
}
Line {
SrcBlock "FIR1"
SrcPort 1
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "FIR"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
}
}
Block {
BlockType Outport
Name "Out"
Position [430, 28, 460, 42]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "In"
SrcPort 1
DstBlock "Subsystem"
DstPort 1
}
Line {
SrcBlock "Subsystem"
SrcPort 1
DstBlock "Subsystem1"
DstPort 1
}
Line {
SrcBlock "Subsystem1"
SrcPort 1
Points [75, 0]
Branch {
DstBlock "Out"
DstPort 1
}
Branch {
Points [0, 40]
DstBlock "Goto"
DstPort 1
}
}
}
}
Block {
BlockType SubSystem
Name "CIC"
Ports [1, 1]
Position [173, 185, 287, 215]
Orientation "down"
NamePlacement "alternate"
ShowName off
FontName "Arial"
FontSize 12
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
MaskDisplay "disp('CIC Decimator')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "CIC"
Location [35, 129, 1005, 418]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "20-bit In"
Position [25, 98, 55, 112]
Port "1"
LatchInput off
Interpolate on
}
Block {
BlockType SubSystem
Name "Comb1"
Ports [1, 1]
Position [95, 169, 140, 201]
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
System {
Name "Comb1"
Location [94, 585, 394, 716]
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, 25, 55, 40]
Orientation "down"
Port "1"
LatchInput off
Interpolate on
}
Block {
BlockType Reference
Name "Integer Delay"
Ports [1, 1]
Position [70, 44, 90, 76]
ShowName off
SourceBlock "dspsigops/Integer Delay"
SourceType "Integer Delay"
delay "1"
ic "0"
}
Block {
BlockType Reference
Name "Sum"
Ports [2, 1]
Position [180, 46, 220, 104]
SourceBlock "fixpt_lib_3p1/Math/Sum"
SourceType "Fixed-Point Sum"
listofsigns "-+"
OutputDataTypeScalingMode "Specify via dialog"
OutDataType "sfix(50)"
OutScaling "2^-18"
LockScale off
RndMeth "Nearest"
DoSatur off
DblOver off
dolog on
}
Block {
BlockType Outport
Name "Out"
Position [245, 68, 275, 82]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "Integer Delay"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "In"
SrcPort 1
Points [0, 0; 0, 15]
Branch {
Points [0, 30]
DstBlock "Sum"
DstPort 2
}
Branch {
DstBlock "Integer Delay"
DstPort 1
}
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Out"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Comb2"
Ports [1, 1]
Position [225, 169, 270, 201]
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
System {
Name "Comb2"
Location [94, 585, 394, 716]
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, 25, 55, 40]
Orientation "down"
Port "1"
LatchInput off
Interpolate on
}
Block {
BlockType Reference
Name "Integer Delay"
Ports [1, 1]
Position [70, 44, 90, 76]
ShowName off
SourceBlock "dspsigops/Integer Delay"
SourceType "Integer Delay"
delay "1"
ic "0"
}
Block {
BlockType Reference
Name "Sum"
Ports [2, 1]
Position [180, 46, 220, 104]
SourceBlock "fixpt_lib_3p1/Math/Sum"
SourceType "Fixed-Point Sum"
listofsigns "-+"
OutputDataTypeScalingMode "Specify via dialog"
OutDataType "sfix(50)"
OutScaling "2^-18"
LockScale off
RndMeth "Nearest"
DoSatur off
DblOver off
dolog on
}
Block {
BlockType Outport
Name "Out"
Position [245, 68, 275, 82]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Out"
DstPort 1
}
Line {
SrcBlock "In"
SrcPort 1
Points [0, 0; 0, 15]
Branch {
DstBlock "Integer Delay"
DstPort 1
}
Branch {
Points [0, 30]
DstBlock "Sum"
DstPort 2
}
}
Line {
SrcBlock "Integer Delay"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Comb3"
Ports [1, 1]
Position [345, 169, 390, 201]
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
System {
Name "Comb3"
Location [94, 585, 394, 716]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -