This parameter is in the HDL Code Generation > Optimization > General tab of the Configuration Parameters dialog box. Use this parameter to specify the maximum input bit width for multipliers in your design.
Default:
Inf
Partition multipliers so that N is the maximum multiplier input bit width.
This parameter specifies the maximum input bit width for a multiplier. If at least one of the inputs to the multiplier has a bit width greater than the threshold value, the code generator splits the multiplier into smaller multipliers.
To improve hardware mapping results, set the multiplier partitioning threshold to the input bit width of the DSP or multiplier hardware on your target device.
Do not partition multipliers.
Property:
MultiplierPartitioningThreshold |
Type: integer |
Value: integer greater than or equal to 0 |
Default:
Inf |
To set this property, use hdlset_param
or makehdl
. To view the property value, use hdlget_param
.
For example, you can set the MultiplierPartitioningThreshold
to
16
when you generate HDL code for the symmetric_fir
subsystem inside the sfir_fixed
model using either of these methods.
Pass the property as an argument to the makehdl
function.
makehdl('sfir_fixed/symmetric_fir', ... 'MultiplierPartitioningThreshold','16')
When you use hdlset_param
, you can set the parameter on the
model and then generate HDL code using
makehdl
.
hdlset_param('sfir_fixed', 'MultiplierPartitioningThreshold','16') makehdl('sfir_fixed/symmetric_fir')