692 C H A P T E R 11: Introduction to the Design of Discrete Filters
Remarksn In general, given a direct form I realization one can easily obtain the difference equation and consequently
the transfer function of the filter from it.
n Theminimal realizationof qth-order discrete filter must use q delays. The direct form I is only capable
of providing these minimal realizations forall-pole filters(i.e., when the numerator in Equation (11.62)
is a constant), otherwise we need to use the direct form II to to obtain minimal realizations. If the transfer
function has only poles, then it is possible to obtain a minimal realization with direct form I. Indeed, ifH(z)=Y(z)
X(z)=
b 0
1 +∑N− 1
k= 1 akz
−k(11.64)
where Y(z)and X(z)are the Z-transforms of the output y[n]and the input x[n], the input–output
relationship is given by the difference equationy[n]=−N∑− 1
k= 1aky[n−k]+b 0 x[n] (11.65)which only requires N− 1 delays for the output, and none for the input. This is a minimal realization of
H(z)as only N− 1 delays are needed.Direct Form II
If the polynomialsB(z)=M∑− 1
k= 0bkz−kandA(z)=N∑− 1
k= 0akz−k M≤Nrepresent the numerator and denominator of the transfer functionH(z)of the filter we wish to realize,
we haveH(z)=Y(z)
X(z)=
B(z)
A(z)whereX(z)andY(z)correspond to the Z-transforms of the input and of the output of the filter. We
then have thatY(z)=H(z)X(z)=B(z)[
X(z)
A(z)]
(11.66)
Defining an outputw[n] withW(z)=X(z)/A(z), corresponding to the second term in the last
equation, we obtain an all-pole filter with transfer functionW(z)
X(z)=
1
A(z)(11.67)
The outputy[n] is then obtained as the inverse ofY(z)=B(z)W(z) (11.68)