generatehdl
Generate HDL code for quantized DSP filter (requires Filter Design HDL Coder) (To be removed)
generatehdl function will be removed in a future release. Instead, use the DSP HDL IP Designer (DSP HDL Toolbox) app, System objects, or Simulink® blocks from DSP HDL Toolbox™. To generate HDL code from DSP HDL Toolbox algorithms, you must also have the HDL Coder™ product.
Syntax
Description
generatehdl(
generates HDL code for the specified filter System object™ and the input data type, filtSO
,'InputDataType',nt
)nt
.
The generated file is a single source file that includes the entity declaration
and architecture code. You can find this file in your current working folder, inside
the hdlsrc
subfolder.
generatehdl(
generates HDL
code for the specified filterObj
)dfilt
filter object using default
settings.
generatehdl(___,Name,Value)
uses optional
name-value arguments, in addition to the input arguments in previous syntaxes. Use
these properties to override default HDL code generation settings.
For more details, see the corresponding properties in the Filter Design HDL Coder™ documentation:
To customize filter name, destination folder, and to specify target language, see Fundamental HDL Code Generation Properties (Filter Design HDL Coder).
To configure coefficients, complex input ports, and optional ports for specific filter types, see HDL Filter Configuration Properties (Filter Design HDL Coder).
To optimize the speed or area of generated HDL code, see HDL Optimization Properties (Filter Design HDL Coder).
To customize ports, identifiers, and comments, see HDL Port and Identifier Properties (Filter Design HDL Coder).
To customize HDL constructs, see HDL Construct Properties (Filter Design HDL Coder).
To generate and customize test bench, see HDL Test Bench Properties (Filter Design HDL Coder).
To integrate third-party EDA tools into the filter design workflow, see HDL Synthesis and Workflow Automation Properties (Filter Design HDL Coder).
Examples
Input Arguments
Alternatives
You can use the fdhdltool
(Filter Design HDL Coder) function to generate HDL code
instead (requires Filter Design HDL Coder). Specify the input and fractional delay data types as arguments, and then set
additional properties in the Generate HDL dialog box.
Version History
Introduced before R2006a