Products & Services Industries Academia Support User Community Company

Learn more about Filter Design HDL Coder   

Version 2.0 (R2007a) Filter Design HDL Coder Software

This table summarizes what's new in Version 2.0 (R2007a).

New Features and ChangesVersion Compatibility ConsiderationsFixed Bugs and Known ProblemsRelated Documentation at Web Site
Yes
Details below
NoNoNo

New features and changes introduced in this version are:

Farrow Filter Code Generation

The coder now supports HDL code generation for Farrow filters. The Farrow filter structures supported are:

A Farrow filter differs from a conventional filter because it has a fractional delay input in addition to a signal input. The fractional delay input enables the use of time-varying delays, as the filter operates. The fractional delay input receives a signal taking on values between 0 and 1.0. For general information how to construct and use Farrow filter objects, see the farrow function reference section of the Filter Design Toolbox™ documentation.

The coder provides generatetb and generatehdl properties and equivalent GUI options that let you:

See Generating Code for Single-Rate Farrow Filters in the Filter Design HDL Coder User's Guide for a complete description of this feature.

Code Generation Support for Polyphase Sample Rate Converters (mfilt.firsrc)

The coder now supports code generation for direct-form FIR polyphase sample rate converters (mfilt.firsrc). mfilt.firsrc is a multirate filter structure that combines an interpolation factor and a decimation factor, allowing you to perform fractional interpolation or decimation on an input signal.

For detailed information on this feature, see Generating Code for Polyphase Sample Rate Converters in the Filter Design HDL Coder User's Guide.

filterbuilder Supports HDL Code Generation

You can now use the filterbuilder tool to generate HDL code for any filter object designed in filterbuilder. The filterbuilder GUI now includes a Code Generation pane (shown in the following figure).

To generate HDL code from filterbuilder:

  1. Click the Code Generation tab.

  2. In the Code Generation pane, click the Generate HDL button. This opens the Generate HDL dialog box, passing in the current filter object from filterbuilder.

  3. Set the desired code generation and test bench options and generate code in the Generate HDL dialog box.

See also GUI Enhancements and Revisions to learn about changes that have been made to the Generate HDL dialog box and its subordinate dialog boxes.

fdhdltool Function Opens Generate HDL Dialog Box from the Command Line

fdhdltool is a convenience function that lets you open the Generate HDL dialog box from the command line.

The command syntax is

fdhdltool(Hd) 

where Hd is a filter object.

The fdhdltool function is particularly useful when you need to use the Filter Design HDL Coder GUI to generate HDL code for filter structures that are not supported by FDATool or filterbuilder. For example, the following commands create a Farrow linear fractional delay filter object Hd, which is passed in to the fdhdltool function.

D = .3;
Hd = farrow.linearfd(D);
Hd.arithmetic = 'fixed';
fdhdltool(Hd); 

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.

GUI Enhancements and Revisions

For Release 2.0, significant revisions and enhancements have been made to the Filter Design HDL Coder GUI.

Generate HDL Dialog Box

The preceding figure shows the Generate HDL dialog box. Revisions and enhancements to this dialog box include:

More HDL Settings Dialog Box

The More HDL Settings dialog box differs slightly from the HDL Settings dialog box, which it replaces.

In the Ports pane, when the current filter object is a Farrow filter (see Farrow Filter Code Generation), the new Fractional delay port field is displayed, as shown in the following figure.

For all other filter types, the Fractional delay port field is omitted, as shown in the following figure.

More Test Bench Settings Dialog Box

The More Test Bench Settings dialog box differs slightly from the Test Bench Settings dialog box, which it replaces.

When the current filter object is a Farrow filter (see Farrow Filter Code Generation), the new Fractional delay stimulus and User defined stimulus options are displayed, as shown in the following figure.

For all other filter types, the Fractional delay stimulus and User defined stimulus options are omitted, as shown in the following figure.

EDA Tool Scripts Dialog Box

The new EDA Tool Scripts dialog box lets you set all options that control generation of script files for third-party electronic design automation (EDA) tools. In previous releases, script generation options were available only through generatehdl properties.

To open the EDA Tool Scripts dialog box, click on the EDA Tool Scripts button in the Generate HDL dialog box (shown in the following figure).

The following figures show the three panes of the EDA Tool Scripts dialog box.

The Compilation script pane displays options related to customizing scripts for compilation of generated VHDL or Verilog code.

The Simulation script pane displays options related to customizing scripts for HDL simulators.

The Synthesis script pane displays options related to customizing scripts for synthesis tools.

See Generating Scripts for EDA Tools for a detailed description of script generation options.

Multiple Clocks Supported for Multirate Filters with Distributed Arithmetic and Fully Serial Architectures

In previous releases, for multirate filters with a distributed arithmetic (DA) or fully serial architecture specified, the Clock inputs options was set to Single and disabled.

The coder now supports specification of either single or multiple clock inputs for multirate filters with a DA or fully serial architecture.

For example, in the following figure, the Clock inputs option was set to Multiple for a direct-form FIR polyphase interpolator (mfilt.firinterp). with a DA architecture.

See also:

  


Recommended Products

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

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