NUM_TAP = 6;
NUM_PHASE = 32;
BIT_WIDTH = 18;

for p_index = 1:NUM_PHASE
    for t_index = 1:NUM_TAP
        p = (p_index - 1)/NUM_PHASE ;
        t = (t_index - 1);
        x = t-2-p ;
        coeff(p_index, t_index) = sinc(x)*sinc(x/2);
    end
end

for i = 1:NUM_PHASE
    coeff_norm(i,:) = coeff(i,:)/sum(coeff(i,:));
end

% Quantize to 2.6 ? bit signed numbers
coeff_quant = round(coeff_norm*2^(BIT_WIDTH-2));
coeff_quant = coeff_quant / 2^(BIT_WIDTH-2);
