% ////////////////////////////////////////////////////////////////////
% FILE,     HBF2LCfg.m
% PROJECT,  HBF2L
% AUTHOR,   weitao.du
% DATE,     2007.Jun.11th
% VERSION,  0.1
% ////////////////////////////////////////////////////////////////////
% DECRIPTION
% 2 Level Half Band Fir Filter Design and Simulation, generate Config 
% ////////////////////////////////////////////////////////////////////

function cfg = HBF2LCfg();
  fprintf(1, 'HBF2LCfg, run\n');

  % set your simulation config here
    % stim config
    wNoise      = 1;    % white noise
    sine        = 2;    % sine signal
    stimType    = wNoise;
    stimLen     = 1024;

  % model config
    % word Length config
    inputWL     = 18;   % input data Word Length
    coeffWL     = 18;   % coefficents Word Length
    outputWL    = 18;   % output data Word Length
    % filter order config
    K1          = 16;    % 1st level HBF is 4*K1-1 taps, with 0 and symmetry coeff
    K2          = 8;     % 2nd level HBF is 4*K2-1 taps, with 0 and symmetry coeff
   
    % half band pass-band setting
    inputFs     = 2048*1E3;    % input sampling frequency 
    inputBw     = 768*1E3;     % input signal bandwidth 
    passBand1   = inputBw/(inputFs  );  % hbf1 pass band 
    passBand2   = inputBw/(inputFs*2);  % hbf2 pass band 
    
    cfg.inputFs     = inputFs  ;
    cfg.inputBw     = inputBw  ;

    cfg.wNoise      = wNoise   ;
    cfg.sine        = sine     ;
    cfg.stimType    = stimType ;
    cfg.stimLen     = stimLen  ;
                               ;
    cfg.inputWL     = inputWL  ;
    cfg.coeffWL     = coeffWL  ;
    cfg.outputWL    = outputWL ;
                               ;
    cfg.K1          = K1       ;
    cfg.K2          = K2       ;

    cfg.passBand1   = passBand1;
    cfg.passBand2   = passBand2;
             
% half band pend  % function HBF2LCfg();
