| Filter Design HDL Coder™ | ![]() |
Specify number and size of LUT partitions for distributed arithmetic architecture
[p1 p2...pN]
Where [p1 p2 p3...pN] is a vector of N integers, divides the LUT used in distributed arithmetic (DA) into N partitions. Each vector element specifies the size of a partition. The maximum size for an individual partition is 12. The sum of all vector elements must be equal to the filter length. The filter length is calculated differently depending on the filter type (see Distributed Arithmetic for FIR Filters).
To enable generation of DA code for your filter design without LUT partitioning, specify a vector of one element, whose value is equal to the filter length, as in the following example:
fdes = fdesign.lowpass('N,Fc,Ap,Ast',4,0.4,0.05,0.03,'linear');
Hd = design(fdse);
Hd.arithmetic = 'fixed';
generatehdl (Hd, 'DALUTPartition', 5);
See Distributed Arithmetic for FIR Filters for a complete description of DA.
![]() | CoeffPrefix | DARadix | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |