DSP 1
DSP 1
COURSE MATERIAL
Subject Name: DIGITAL SIGNAL PROCESSING
Subject Code: KEC -503
Branch/Semester: ECE / 5th
Session: 2022
2022-23(Odd-Semester)
Faculty Members
Dr. Devvrat Tyagi
Dr. Mangal Deep Gupta
EVALUATION - SCHEME, B.Tech-III YEAR (AKTU)
KEC503
DIGITAL SIGNAL PROCESSING
UNIT-1 Syllabus
b) Ration of polynomials
I. Computational complexity
II. Memory requirements
III. Finite-word-length
IV. Pipeline / parallel processing
I. Computation Complexity
These effects refer to the quantization effects that are inherent in any digital
implementation of the system, either in hardware or in software. No computing
system has infinite precision. With finite precision there is bound to be errors.
These effects are to do with truncation & rounding-off of samples. The extent of
this effect varies with type of arithmetic used (fixed or floating). The serious
issue is that the effects have influence on system characteristics. A structure
which is less sensitive to this effect needs to be chosen.
The symbols of the basic elements used for constructing the block diagram of a
discrete-time system (adder, constant multiplier and unit delay element) are
shown in figure 1
Fig 1. (a) Adder (b) Constant Multiplier (c) Unit Delay Element
Adder: An adder is used to add two or more signals. The output of adder is
equal to the sum of all incoming signals.
Constant multiplier: A constant multiplier is used to multiply the signals by a
constant. The output of the multiplier is equal to the product of the input signal
and the constant of the multiplier.
Unit delay element: A unit delay element is used to delay the signal passing
through it by one sampling time.
Canonic structures are those structure where the order of the transfer function
matches the number of delay units in the filter.
Notice that in the canonical system shown in fig 1.2, the system order (here: 2)
equals the number of delay units in the filter (2). In the non
non-canonical
canonical version as
show in fig 1.3, the system order is not equal to the number of delays (4 delay
units). Both filters perform the same task. The canonical version results in
smaller digital hardware, because it uses fewer delay units.
• The causal IIR digital filters we are concerned with in this course are
characterized by a real rational transfer function of or, equivalently by a
constant coefficient difference equation
• From the difference equation representation, it can be seen that the
realization of the causal IIR digital filters requires some form of feedback
• An N-th order IIR digital transfer function is characterized by 2N+1
unique coefficients, and in general, requires 2N+1 multipliers and 2N
two-input adders for implementation
• Direct form IIR filters: Filter structures in which the multiplier
coefficients are precisely the coefficients of the transfer function
P( z ) p0 p1z 1 p2 z 2 p3 z 3
H ( z)
D( z ) 1 d1z 1 d 2 z 2 d 3 z 3
W ( z)
X ( z) H1 ( z ) H 2 ( z) Y ( z)
where
W ( z)
H1( z ) P( z ) p0 p1z 1 p2 z 2 p3 z 3
X ( z)
Y ( z) 1 1
H 2 ( z)
W ( z ) D( z ) 1 d1z 1 d 2 z 2 d3 z 3
• The filter section can be seen to be an FIR filter and can be realized as
shown below
w[ n ] p0 x[ n] p1x[ n 1] p2 x[ n 2] p3 x[ n 3]
Fig 4 Structure of IIR
• Observe in the direct form structure shown below, the signal variable at
nodes 1 and 1’ are the same, and hence the two top delays can be
shared
• Likewise, the signal variables at nodes 2 and 2’ are the same,
permitting the sharing of the middle two delays
• Following the same argument, the bottom two delays can be shared
• Sharing of all delays reduces the total number of delays to 3 resulting in a
canonic realization shown on the next slide along with its transpose
structure
• Due to finite word length effects, each such cascade realization behaves
differently from others
• Usually, the polynomials are factored into a product of 1st-order and 2nd-
order polynomials:
1 1k z 1 2k z 2
H ( z ) p0 1 2
k 1 1k z 2k z
2k 2 k 0
1 11z 1 1 12 z 1 22 z 2
H ( z ) p0 1
• 111z 1 12 z 1 22 z 2
• One possible realization is shown below
0 k 1k z 1
H ( z) 0 1 2
k 1 1k z 2k z
0 k z 1 2 k z 2
H ( z) 0 1 2
k 1 1k z 2 k z
Parallel form I
Parallel form II
z 1 yields
To calculate the values of αis and βis, from the Routh array.
The ladder structure parameters are given by,
α0= a N/ b N , β1=b N/c N-1, α1= c N-1/ d N-1and so on.
With continued fractional realisation of H(z), the resultant structure isshown in
figure.
Example: Given the system function H(z) = (2+8z-1 +6z-2 )/(1+8z-1 +12z-2 ).
Realise using ladder structure.
Solution:
For the given system, obtain the Routh array
The ladder structure parameters are
Structures for FIR Filter for FIR filter, its transfer function does not contain
pole. That yields a FIR system:
The direct form follows straight forwardly from the difference equation. The
implementation needs memory locations for storing M previous inputs of
x(n), (M+1) multiplications and M additions for computing each output
value of y(n).
And
Recall the various types of linear phase FIR filters, each having either
symmetric or anti-symmetric impulse response.
Fig 9 Linear phase implementation of FIR system for even and odd value of M
University Questions Related to Unit-1
Q-7. Consider the causal linear-shift-invariant filter with the system function
(1 + 0.875z )
H(z) =
(1 − 𝟎. 𝟕z )(1 + 0.2z + 0.9z )
a) Direct Form II
b) Cascade Form
c) Parallel Form
Q-8. Draw the block diagram for the following system with input x(n) and
output y(n)
w(n)=x(n) +1/2x(n-l) and y(n)+1/4y(n-1)= w(n)
y(n)=y(n-1)-1/2y(n-2)+1/4y(n-2)+x(n)-x(n-1)+x(n-2)
Q-10. What are the advantages of DSP as compare to ASP? Also explain some
applications of DSP.
Q-11. Obtain Direct Form I, Direct Form II and parallel form structures for the
following filter
y(h)=3/4y(h-1)+3/32y(h-2)+1/64y(h-3)+x(h)+3x(h-1)+2x(h-2)
𝟏 𝟐𝒛 𝟏 𝒛 𝟐
(1) 𝑯𝟏 (𝒛) =
𝟏 𝟎.𝟕𝟓𝒛 𝟏 𝟎.𝟏𝟐𝟓𝒛 𝟐
𝟏 𝟐 𝟑 𝟒
(2) 𝑯𝟐 (𝒛) = 𝟏 + 𝟐. 𝟖𝟖𝒛 + 𝟑. 𝟒𝟎𝟒𝒛 + 𝟏. 𝟕𝟒𝟐𝒛 + 𝟎. 𝟒𝒛
Q-15. Obtain the Direct Form-I, Direct Form-II, Cascade, Parallel Form
realization for the following system:-
Q-16. Obtain the Cascade & Parallel realizations for the system function given
by:
𝟏 𝟏
𝟏+ 𝒛
𝟒
𝟏 𝟏 𝟏 𝟏 𝟏 𝟐
𝟏+ 𝒛 𝟏+ 𝒛 + 𝒛
𝟐 𝟐 𝟒
Q-17. Obtain the Cascade & Parallel realizations for the system function given
by:
𝒛 𝟓 𝟓 𝟏
+ + 𝒛 𝟏+ 𝒛 𝟐
𝟔 𝟐𝟒 𝟐𝟒 𝟐𝟒
𝟏 𝟏 𝟏 𝟐
𝟏− 𝒛 + 𝒛
𝟐 𝟒
Q-18. Draw the Cascade and parallel form network structure of the system with
transfer function H(z)
𝟐(𝒛 + 𝟑)
𝟎. 𝟎𝟐 + 𝟎. 𝟑𝒛 + 𝒛𝟐
Q-20. Draw the ladder structure of the system with system function H(z)
𝟏 + 𝟑𝒛 𝟏 + 𝟐𝒛 𝟐 + 𝟓𝒛 𝟑
𝟏+𝒛 𝟏+𝒛 𝟐+𝒛 𝟑
Q-21. Determine and draw the cascade and parallel realizations for the system
described by the system function:
10 1 − z 1− z (1 − 2z )
H(z) =
1− z 1− z 1−z − z