HDL Filter Configuration Properties
Configure coefficients, complex input ports, and optional ports for specific filter types
With the HDL filter configuration properties, you can configure coefficients, complex input ports, and optional ports for specific filter types. For filter serialization and pipeline properties, see HDL Optimization Properties.
Specify these properties as
name-value arguments to the generatehdl
function.
Name
is the property name and Value
is the
corresponding value. You can specify several name-value arguments in any order as
'Name1',Value1,...,'NameN',ValueN
.
For example:
fir = dsp.FIRFilter('Structure','Direct form antisymmetric'); generatehdl(fir,'InputDataType',numerictype(1,16,15),'CoefficientSource','ProcessorInterface');
Coefficients
Optional Ports
Tips
If you use the fdhdltool
function to generate HDL code,
you can set the corresponding properties in the Generate HDL dialog box.
Filter Type | Property | Location in Dialog Box |
---|---|---|
FIR or IIR filter with programmable coefficients | Coefficient source | Filter Architecture tab |
FIR filter with serial architecture and programmable coefficients | Coefficient memory | Filter Architecture tab, when Coefficient
source is set to Processor
interface
|
Filter with complex input data | Input complexity | Global Settings tab > Ports tab |
Multirate filter | Clock inputs | Global Settings tab |
CIC filter | Add rate port | Filter Architecture tab |
Single-rate Farrow filter | Fractional delay port | Global Settings tab > Ports tab |
Version History
Introduced before R2006a