code for generating FIR coefficients