Customize HDL constructs in generated code
With the HDL construct properties, you can customize VHDL and Verilog constructs in the generated code.
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),'CastBeforeSum','off');
If you use the fdhdltool
function to generate HDL code, you
can set the corresponding properties on the Global Settings >
Advanced tab in the Generate HDL dialog box.