Skip to Main Content Skip to Search
Product Documentation

fdhdltool - Open Generate HDL dialog box

Syntax

fdhdltool(Hd)

Description

fdhdltool(Hd) is a convenience function that lets you open the Generate HDL dialog box from the command line, passing in the filter object handle Hd. When the Generate HDL dialog box opens, it displays default values for code generation options applicable to the filter object. You can then use the Generate HDL dialog box and its subordinate dialog boxes to specify code generation options and initiate generation of HDL and test bench code and scripts for third-party EDA tools.

fdhdltool operates on a copy of the filter object, rather than the original object in the workspace. Any changes made to the original filter object after fdhdltool is invoked will not affect the copy and will not update the Generate HDL dialog box.

The naming convention for the copied object is filt_copy, where filt is the name of the original filter object.

Examples

The following code example designs a lowpass filter, constructs a direct-form FIR filter object, Hd, and then opens the Generate HDL dialog box.

filtdes = fdesign.lowpass('N,Fc,Ap,Ast',30,0.4,0.05,0.03,'linear');
Hd = design(filtdes,'filterstructure','dffir');
Hd.arithmetic = 'fixed';
fdhdltool(Hd); % open Generate HDL dialog box

How To

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS