Design of IIR and FIR digital filters