I have a complex subsystem which contains several FIR filters. The coefficients for each FIR filter are computed by the mask of the subsystem. In some cases, the coefficients for some FIR filters are thereby set to zero, and the Simulink simulation is working fine and automatically produces the correct result based on the coefficients.
But when a developer hits the "Generate HDL" button, he gets an error. It would be very nice, if HDL Coder could still generate code for this scenario, and automatically take care of the all-zero coefficient filter condition.
Best Answer