ddc.mdl
来自「matlab与synplify DSP AE相结合的DDC实例」· MDL 代码 · 共 1,766 行 · 第 1/5 页
MDL
1,766 行
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Reference
Name "CFIR Spec"
Ports []
Position [345, 35, 385, 75]
ForegroundColor "[0.501961, 0.000000, 0.000000]"
UserDataPersistent on
UserData "DataTag1"
FontName "Arial"
FontSize 10
SourceBlock "syndsplibv6/Filtering/FDATool"
SourceType "Synplify DSP FDATool Interface"
ShowPortLabels on
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
synBlockType "tool"
}
Block {
BlockType Reference
Name "CFIR Spectrum"
Ports [1]
Position [880, 160, 915, 210]
DialogController "dspdialog.SpectrumScope"
DialogControllerArgs "DataTag2"
FontSize 10
SourceBlock "dspsnks4/Spectrum\nScope"
SourceType "Spectrum Scope"
ShowPortLabels off
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 "512"
Overlap "0"
inpFftLenInherit off
FFTlength "128"
numAvg "2"
DisplayProperties off
AxisGrid on
Memory off
FrameNumber on
AxisLegend off
AxisZoom off
OpenScopeAtSimStart on
OpenScopeImmediately off
FigPos "get(0,'defaultfigureposition')"
AxisProperties off
XUnits "Hertz"
XRange "[0...Fs/2]"
InheritXIncr on
XIncr "1.0"
XLabel "Samples"
YUnits "dB"
YMin "-10"
YMax "10"
YLabel "Magnitude-squared, dB"
LineProperties off
wintypeSpecScope "Hamming"
RsSpecScope "50"
betaSpecScope "5"
winsampSpecScope "Periodic"
}
Block {
BlockType Reference
Name "CFIR_DS_I"
Ports [1, 1]
Position [650, 390, 690, 430]
FontName "Arial"
FontSize 9
SourceBlock "syndsplibv6/Signal Operations/Downsample"
SourceType "Synplify DSP Downsample"
syn_r_val "2"
syn_sample_offset "0"
synBlockType "primitive"
synLatency "0"
synBlockId "7"
}
Block {
BlockType Reference
Name "CFIR_DS_Q"
Ports [1, 1]
Position [655, 280, 695, 320]
FontName "Arial"
FontSize 9
SourceBlock "syndsplibv6/Signal Operations/Downsample"
SourceType "Synplify DSP Downsample"
syn_r_val "2"
syn_sample_offset "0"
synBlockType "primitive"
synLatency "0"
synBlockId "7"
}
Block {
BlockType Reference
Name "CFIR_I"
Ports [1, 1]
Position [550, 380, 610, 440]
FontName "Arial"
FontSize 9
FontWeight "normal"
SourceBlock "syndsplibv6/Filtering/FIR"
SourceType "Synplify DSP FIR"
syn_coef_vec "syn_get_coefs('CFIR Spec')"
syn_coef_fl "8"
syn_coef_rnd on
syn_show_q off
syn_dp_f "Automatic"
syn_dp_wl "16"
syn_dp_fl "8"
syn_out_f "Specify"
syn_out_wl "14"
syn_out_fl "13"
syn_out_dt "signed"
syn_rst_port off
syn_en_port off
synBlockType "primitive"
synLatency "0"
synBlockId "80"
}
Block {
BlockType Reference
Name "CFIR_Q"
Ports [1, 1]
Position [545, 270, 605, 330]
FontName "Arial"
FontSize 9
FontWeight "normal"
SourceBlock "syndsplibv6/Filtering/FIR"
SourceType "Synplify DSP FIR"
syn_coef_vec "syn_get_coefs('CFIR Spec')"
syn_coef_fl "8"
syn_coef_rnd on
syn_show_q off
syn_dp_f "Automatic"
syn_dp_wl "16"
syn_dp_fl "8"
syn_out_f "Specify"
syn_out_wl "14"
syn_out_fl "13"
syn_out_dt "signed"
syn_rst_port off
syn_en_port off
synBlockType "primitive"
synLatency "0"
synBlockId "80"
}
Block {
BlockType Reference
Name "CIC Spectrum"
Ports [1]
Position [570, 105, 605, 155]
DialogController "dspdialog.SpectrumScope"
DialogControllerArgs "DataTag3"
FontSize 10
SourceBlock "dspsnks4/Spectrum\nScope"
SourceType "Spectrum Scope"
ShowPortLabels off
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 "512"
Overlap "0"
inpFftLenInherit off
FFTlength "128"
numAvg "2"
DisplayProperties off
AxisGrid on
Memory off
FrameNumber on
AxisLegend off
AxisZoom off
OpenScopeAtSimStart on
OpenScopeImmediately off
FigPos "get(0,'defaultfigureposition')"
AxisProperties off
XUnits "Hertz"
XRange "[0...Fs/2]"
InheritXIncr on
XIncr "1.0"
XLabel "Samples"
YUnits "dB"
YMin "-10"
YMax "10"
YLabel "Magnitude-squared, dB"
LineProperties off
wintypeSpecScope "Hamming"
RsSpecScope "50"
betaSpecScope "5"
winsampSpecScope "Periodic"
}
Block {
BlockType Reference
Name "CIC_I"
Ports [1, 1]
Position [425, 300, 485, 360]
FontName "Arial"
FontSize 9
FontWeight "normal"
SourceBlock "syndsplibv6/Filtering/CIC"
SourceType "Synplify DSP CIC"
ShowPortLabels on
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
syn_cic_type "Decimator"
syn_m_val "1"
syn_r_val "64"
syn_n_val "5"
syn_out_f "Specify"
syn_out_wl "14"
syn_out_fl "13"
syn_out_dt "signed"
syn_out_sat off
syn_out_rnd off
syn_rst_port off
syn_en_port off
synBlockType "custom"
synLatency "0"
}
Block {
BlockType Reference
Name "CIC_Q"
Ports [1, 1]
Position [420, 220, 480, 280]
FontName "Arial"
FontSize 9
FontWeight "normal"
SourceBlock "syndsplibv6/Filtering/CIC"
SourceType "Synplify DSP CIC"
ShowPortLabels on
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
syn_cic_type "Decimator"
syn_m_val "1"
syn_r_val "64"
syn_n_val "5"
syn_out_f "Specify"
syn_out_wl "14"
syn_out_fl "13"
syn_out_dt "signed"
syn_out_sat off
syn_out_rnd off
syn_rst_port off
syn_en_port off
synBlockType "custom"
synLatency "0"
}
Block {
BlockType Constant
Name "Constant"
Position [25, 285, 55, 315]
Value "110/2000"
VectorParams1D on
SamplingMode "Sample based"
OutDataTypeMode "Inherit from 'Constant value'"
OutDataType "sfix(16)"
ConRadixGroup "Use specified scaling"
OutScaling "2^0"
SampleTime "1/SR"
FramePeriod "inf"
}
Block {
BlockType Reference
Name "DDS"
Ports [1, 2]
Position [165, 260, 225, 340]
FontSize 9
FontWeight "normal"
SourceBlock "syndsplibv6/Sources/DDS"
SourceType "Synplify DSP DDS"
ShowPortLabels on
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
syn_dds_opr "sin&cos"
syn_dds_meth "CORDIC"
syn_freq_port "port"
syn_freq_val "5/24"
syn_fm_port "none"
syn_fm_val "0"
syn_pm_port "none"
syn_pm_val "0"
syn_pdither_opr off
syn_pdither_bits "3"
syn_rst_port off
syn_en_port off
syn_freq_prec "2^-32"
syn_phase_prec "2^-12"
syn_dds_wl "12"
syn_dds_st "3/208e6"
synBlockType "custom"
synLatency "14"
}
Block {
BlockType Reference
Name "DDS Spectrum"
Ports [1]
Position [270, 360, 305, 410]
DialogController "dspdialog.SpectrumScope"
DialogControllerArgs "DataTag4"
FontSize 10
SourceBlock "dspsnks4/Spectrum\nScope"
SourceType "Spectrum Scope"
ShowPortLabels off
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 "0"
inpFftLenInherit off
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?