Customize filter name, destination folder, and specify target language
With the fundamental HDL code generation properties, you can customize filter name, destination folder, and specify the target language.
Specify these properties as
comma-separated pairs of Name,Value
arguments to the generatehdl
function. Name
is the property name and
Value
is the corresponding value. Name
must appear
inside single quotes (' '
). You can specify several name and value pair
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),'TargetLanguage','Verilog');
If you use the fdhdltool
function to
generate HDL code, you can specify the input and fractional delay data types
as arguments, and then set additional properties in the Generate HDL dialog
box.
Property | Location in Dialog Box |
---|---|
Language | Target section at top of dialog box |
Name | |
Folder | |
Verilog file extension | Global Settings tab |
VHDL file extension |