📄 altrfir32.mdl
字号:
rnd off
bp off
mask_cst "0"
LocPin "any"
cst "0"
modulename "Start"
ppat "G:\\EDA\\Quartue_II\\DSP\\AltrFir32\\DSPBuilder"
"_AltrFir32"
nSgCpl "1"
}
Block {
BlockType Step
Name "Step1"
Position [85, 200, 115, 230]
SampleTime "1"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [80, 135, 100, 155]
ShowName off
IconShape "round"
Inputs "|++"
}
Block {
BlockType UnitDelay
Name "Unit Delay"
Position [115, 125, 150, 165]
}
Block {
BlockType Reference
Name "VCC"
Ports [0, 1]
Position [360, 152, 380, 168]
ForegroundColor "blue"
ShowName off
SourceBlock "bus_alteradspbuilder/VCC"
SourceType "SVCC AlteraBlockSet"
ncstsamp "FirSamplingPeriod"
}
Line {
SrcBlock "Shift Taps1"
SrcPort 1
DstBlock "Bit Level \nSum of Product1"
DstPort 1
}
Line {
SrcBlock "Shift Taps1"
SrcPort 2
DstBlock "Bit Level \nSum of Product1"
DstPort 2
}
Line {
SrcBlock "Shift Taps1"
SrcPort 3
DstBlock "Bit Level \nSum of Product1"
DstPort 3
}
Line {
SrcBlock "Shift Taps1"
SrcPort 4
DstBlock "Bit Level \nSum of Product1"
DstPort 4
}
Line {
SrcBlock "Shift Taps1"
SrcPort 5
DstBlock "Bit Level \nSum of Product1"
DstPort 5
}
Line {
SrcBlock "Shift Taps1"
SrcPort 6
DstBlock "Bit Level \nSum of Product1"
DstPort 6
}
Line {
SrcBlock "Shift Taps1"
SrcPort 7
DstBlock "Bit Level \nSum of Product1"
DstPort 7
}
Line {
SrcBlock "Shift Taps1"
SrcPort 8
DstBlock "Bit Level \nSum of Product1"
DstPort 8
}
Line {
SrcBlock "Shift Taps2"
SrcPort 1
DstBlock "Bit Level \nSum of Product2"
DstPort 1
}
Line {
SrcBlock "Shift Taps2"
SrcPort 2
DstBlock "Bit Level \nSum of Product2"
DstPort 2
}
Line {
SrcBlock "Shift Taps2"
SrcPort 3
DstBlock "Bit Level \nSum of Product2"
DstPort 3
}
Line {
SrcBlock "Shift Taps2"
SrcPort 4
DstBlock "Bit Level \nSum of Product2"
DstPort 4
}
Line {
SrcBlock "Shift Taps2"
SrcPort 5
DstBlock "Bit Level \nSum of Product2"
DstPort 5
}
Line {
SrcBlock "Shift Taps2"
SrcPort 6
DstBlock "Bit Level \nSum of Product2"
DstPort 6
}
Line {
SrcBlock "Shift Taps2"
SrcPort 7
DstBlock "Bit Level \nSum of Product2"
DstPort 7
}
Line {
SrcBlock "Shift Taps2"
SrcPort 8
DstBlock "Bit Level \nSum of Product2"
DstPort 8
}
Line {
SrcBlock "Shift Taps1"
SrcPort 9
Points [0, 25; -75, 0]
DstBlock "Shift Taps2"
DstPort 1
}
Line {
SrcBlock "Parallel To Serial"
SrcPort 1
DstBlock "Shift Taps"
DstPort 1
}
Line {
SrcBlock "Start"
SrcPort 1
DstBlock "Pattern"
DstPort 1
}
Line {
SrcBlock "Pattern"
SrcPort 1
Points [-5, 0; 15, 0]
Branch {
DstBlock "Goto"
DstPort 1
}
Branch {
Points [0, -45]
DstBlock "Parallel To Serial"
DstPort 3
}
}
Line {
SrcBlock "GND"
SrcPort 1
DstBlock "Pattern"
DstPort 2
}
Line {
SrcBlock "From"
SrcPort 1
DstBlock "Scaling Accumulator"
DstPort 2
}
Line {
SrcBlock "Partial Product \nAdder"
SrcPort 1
DstBlock "Scaling Accumulator"
DstPort 1
}
Line {
SrcBlock "Shift Taps"
SrcPort 1
DstBlock "Bit Level \nSum of Product"
DstPort 1
}
Line {
SrcBlock "Shift Taps"
SrcPort 2
DstBlock "Bit Level \nSum of Product"
DstPort 2
}
Line {
SrcBlock "Shift Taps"
SrcPort 3
DstBlock "Bit Level \nSum of Product"
DstPort 3
}
Line {
SrcBlock "Shift Taps"
SrcPort 4
DstBlock "Bit Level \nSum of Product"
DstPort 4
}
Line {
SrcBlock "Shift Taps4"
SrcPort 1
DstBlock "Bit Level \nSum of Product4"
DstPort 1
}
Line {
SrcBlock "Shift Taps4"
SrcPort 2
DstBlock "Bit Level \nSum of Product4"
DstPort 2
}
Line {
SrcBlock "Shift Taps4"
SrcPort 3
DstBlock "Bit Level \nSum of Product4"
DstPort 3
}
Line {
SrcBlock "Shift Taps4"
SrcPort 4
DstBlock "Bit Level \nSum of Product4"
DstPort 4
}
Line {
SrcBlock "Shift Taps"
SrcPort 5
Points [0, 30; -75, 0]
DstBlock "Shift Taps4"
DstPort 1
}
Line {
SrcBlock "Shift Taps4"
SrcPort 5
Points [5, 0; 0, 25; -80, 0]
DstBlock "Shift Taps1"
DstPort 1
}
Line {
SrcBlock "Shift Taps5"
SrcPort 1
DstBlock "Bit Level \nSum of Product5"
DstPort 1
}
Line {
SrcBlock "Shift Taps5"
SrcPort 2
DstBlock "Bit Level \nSum of Product5"
DstPort 2
}
Line {
SrcBlock "Shift Taps5"
SrcPort 3
DstBlock "Bit Level \nSum of Product5"
DstPort 3
}
Line {
SrcBlock "Shift Taps5"
SrcPort 4
DstBlock "Bit Level \nSum of Product5"
DstPort 4
}
Line {
SrcBlock "Shift Taps6"
SrcPort 1
DstBlock "Bit Level \nSum of Product6"
DstPort 1
}
Line {
SrcBlock "Shift Taps6"
SrcPort 2
DstBlock "Bit Level \nSum of Product6"
DstPort 2
}
Line {
SrcBlock "Shift Taps6"
SrcPort 3
DstBlock "Bit Level \nSum of Product6"
DstPort 3
}
Line {
SrcBlock "Shift Taps6"
SrcPort 4
DstBlock "Bit Level \nSum of Product6"
DstPort 4
}
Line {
SrcBlock "Shift Taps5"
SrcPort 5
Points [0, 30; -75, 0]
DstBlock "Shift Taps6"
DstPort 1
}
Line {
SrcBlock "Shift Taps2"
SrcPort 9
Points [0, 30; -75, 0]
DstBlock "Shift Taps5"
DstPort 1
}
Line {
SrcBlock "Bit Level \nSum of Product5"
SrcPort 1
Points [75, 0; 0, -340]
DstBlock "Partial Product \nAdder"
DstPort 4
}
Line {
SrcBlock "Bit Level \nSum of Product"
SrcPort 1
Points [65, 0; 0, 245]
DstBlock "Partial Product \nAdder"
DstPort 1
}
Line {
SrcBlock "Bit Level \nSum of Product6"
SrcPort 1
Points [65, 0; 0, -480]
DstBlock "Partial Product \nAdder"
DstPort 2
}
Line {
SrcBlock "Bit Level \nSum of Product4"
SrcPort 1
Points [50, 0; 0, 170]
DstBlock "Partial Product \nAdder"
DstPort 3
}
Line {
SrcBlock "Bit Level \nSum of Product1"
SrcPort 1
Points [20, 0; 0, 40]
DstBlock "Partial Product \nAdder"
DstPort 5
}
Line {
SrcBlock "Bit Level \nSum of Product2"
SrcPort 1
Points [75, 0; 0, -150]
DstBlock "Partial Product \nAdder"
DstPort 6
}
Line {
SrcBlock "Step1"
SrcPort 1
DstBlock "Start"
DstPort 1
}
Line {
SrcBlock "VCC"
SrcPort 1
DstBlock "Parallel To Serial"
DstPort 2
}
Line {
SrcBlock "InputData"
SrcPort 1
Points [0, 0; 40, 0]
Branch {
DstBlock "Parallel To Serial"
DstPort 1
}
Branch {
Points [0, -30]
DstBlock "Goto1"
DstPort 1
}
}
Line {
SrcBlock "Unit Delay"
SrcPort 1
DstBlock "InputData"
DstPort 1
}
Line {
Name "InputFilter"
Labels [0, 0]
SrcBlock "From1"
SrcPort 1
Points [55, 0]
DstBlock "Scope"
DstPort 1
}
Line {
Name "FirResult"
Labels [0, 0]
SrcBlock "FirResult"
SrcPort 1
Points [40, 0]
Branch {
DstBlock "Scope"
DstPort 2
}
Branch {
Points [10, 0]
DstBlock "Power Spectral\nDensity"
DstPort 1
}
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Unit Delay"
DstPort 1
}
Line {
SrcBlock "Sine Wave"
SrcPort 1
Points [5, 0]
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Random\nNumber"
SrcPort 1
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Scaling Accumulator"
SrcPort 1
DstBlock "FirResult"
DstPort 1
}
Annotation {
Name "Fixed-Coefficient 32 TAP Low Pass Filter Exampl"
"e.\nUseage of mixed 4-8 LUT table for partial product pre-computation"
Position [24, 35]
HorizontalAlignment "left"
ForegroundColor "blue"
DropShadow on
FontName "Arial"
FontSize 18
}
Annotation {
Name "% Model pre-load function\n% Coefficient Genera"
"tion\nFilterOrder = 32\nInputBitWidth = 8\nLowPassFreqBand = [0 0.1 0.2 1];\n"
"LowPassMagnBand = [1 0.9 0.0001 0.0001];\n\nFlCoef = firls(FilterOrder,LowPas"
"sFreqBand,LowPassMagnBand);\n\nCoefBitWidth = InputBitWidth + ceil(log2((max("
"abs(FlCoef))/min(abs(FlCoef)))))\nScalingFactor = (2^(CoefBitWidth-1))-1;\n\n"
"FpCoef = fix(ScalingFactor * FlCoef);\n\nplot(FpCoef,'o');\ntitle('Coefficien"
"t Value');\nImpulseData = zeros(1,1000);\nImpulseData(1) = 100;\nh = conv(Imp"
"ulseData,FpCoef);\nfftplot(h);\ntitle('Frequency response');\nFirSamplingPeri"
"od=1;"
Position [944, 200]
HorizontalAlignment "left"
ForegroundColor "blue"
DropShadow on
FontName "Arial"
FontSize 14
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -