Hi everyone, I am trying to design a 3rd order with decimation ratio of 8 comb filter using matlab's cicdecimate function. The input signal is the 1 bit output of a delta sigma modulator. According to the example on matlab, I should set up the file as follow. M = 1; % Differential delays N = 3; % Number of stages R = 8; % Rate-change factor x=load(`sig_del_output.txt'); %sigma delta output q = quantizer([8 0],'fixed'); % Defines the properties of input x. y = cicdecimate(M, N, R, x, q); My question is what is q? if q defines the properties of input x is that mean I can set up my q as q=quantizer([1 0],'fixed'); since x is going to be either 0 or 1? I tried that and it didn't work. How do I set up the number of bits equal to 8 for each of the integrator and differentiator? The next question is if I have to implement this in hardware, what is the minimum bit for each stage of the 3 integrator and the 3 differentiator? Thanks in advance. EngGan |
comb filter
Started by ●May 15, 2003