Forum Discussion
Altera_Forum
Honored Contributor
13 years ago --- Quote Start --- For interpolating CIC I assume (from the wording of the document) that it applies to each stage(be it comb or integrator). You try it and tell us. --- Quote End --- After further work it turned out that my last statement needs correction. The best thing is run this matlab program and read (d): Bin = 23; %input width N = 9; %stages of comb or integrator M = 1; %differential delay R = 8; %interpolation rate %cic decimator at any stage Bout = N * log2(R*M) + Bin; %cic interpolator per ith stage %stages 1~N for i = 1:N G = 2^i; Bout = Bin + log2(G); d(i) = Bout; end %N+1 ~ 2N stages for i = N+1:N*2 G = (2^(2*N-1)*(R*M)^(i-N))/R; Bout = Bin + log2(G); d(i) = Bout; end for i = 1:N*2 fprintf('%i %i\r',i,d(i)); end