A Review of Techniques For Optimization and Implementation of Digital Filters On FPGA
A Review of Techniques For Optimization and Implementation of Digital Filters On FPGA
https://doi.org/10.22214/ijraset.2022.43516
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 10 Issue VI June 2022- Available at www.ijraset.com
Abstract: The use of digital filters extends to various fields. Obtaining a response that is close to the desired response is a major
goal of designing digital filters. Designing of filters involves providing the specification, determining coefficients and, then the
realization of filter on hardware. This paper provides an insight into the algorithms used for determining optimized filter
coefficients, the realization of the filter on hardware and, some methods to reduce the hardware usage by the filter
Index Terms: FPGA, FIR, IIR, MSE.
I. INTRODUCTION
Digital Signal Processing has become a vital part of most electronic systems, and the reason for this is that digital processing
methods can perform far more complex operations than analog ones. For example, digital filters of higher orders can be simply
designed without occupying any extra ‘space’, which is a major limiting factor in analog systems. Another thing is that digital filters
do not depend on environmental parameters so they can work flawlessly without any faults for a long time.
Digital filters work on sampled analog data and can be categorized into two types Infinite Impulse Response (IIR) and Finite
Impulse Response (FIR). Now the question arises how these filters are implemented? These filters are constructed using various
blocks like adders, multipliers and, delay elements that can be implemented on a digital signal processor or an FPGA. These
implementations become more flexible with FPGA where the user can very simply program the logic to be implemented. However,
there is a limitation of the number of logic blocks in an FPGA so filters are needed to be designed to occupy minimum LEs. An
inefficient filter can be very slow in its operation which is a critical problem in real-time or high-speed applications.
The designing of Digital Filters involves the determination of appropriate filter coefficients that give the desired response and the
realization of the filter on the hardware such as FPGA in our case. This paper gives a review of the various optimization algorithm
to reduce the error difference between the output and the ideal response of the filter and the determination of optimized coefficients
of the filters. Then the paper provides an insight into the methods proposed to reduce the hardware usage by the filters and to
increase the processing speeds of the filters.
Part II and III of this paper describe the FIR and IIR filter
II. FIR FILTERS
These are non-recursive filters have no feedback and depend only on past and present input values. The FIR filters have a linear
response and are stable. However, these filters require more hardware for realization as compared to the IIR filter for the same
response. In other words, to obtain a similar kind of response FIR filter require more order than the IIR filters.
The output of the FIR filter is given by:
y[n] = ℎ . x[n − k] (1)
where N denotes the order of the filter.
The condition for linear response of FIR filter is
even symmetric condition: h (n)= h (N-n-1) (2)
or
odd symmetric condition: h (n)= -h (N-n-1) (3)
and
= (4)
Where is the constant phase delay that is expressed in terms of the number of samples.
When the above equations are satisfied then the FIR filter will have constant phase and group delay and the filter has a linear
response.
There are 3 main methods of designing FIR filters
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 133
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 10 Issue VI June 2022- Available at www.ijraset.com
B. Windowing Technique
The Desired impulse response can be obtained by taking the Inverse Fourier transform of the desired filter response but this impulse
response is infinite in duration thus it is not suitable for realization. In the window technique, the impulse response is multiplied by
the window function
h(n) = hd(n)w(n) (8)
In the frequency domain, it is given by the convolution of the desired frequency response and the window function
H(ejω) = Hd(ejω) * W(ejω) (9)
Some of the commonly used windows and their window function are mentioned as follows:
RECTANGULAR WINDOW
1, | |≤
( )= (10)
0, ℎ
HAMMING WINDOW
0.54 − 0.46 cos ,0 ≤ < −1
( )= (11)
0, ℎ
HANNING WINDOW
0.5 − 0.5 cos ,0 ≤ < −1
( )= (12)
0, ℎ
BLACKMAN WINDOW
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 134
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 10 Issue VI June 2022- Available at www.ijraset.com
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 135
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 10 Issue VI June 2022- Available at www.ijraset.com
VI. REVIEW OF SOME PREVIOUS WORKS ON OPTIMIZATION TECHNIQUES FOR DIGITAL FILTERS
Suman, Richa, Ashwni, and Manjeet [1] provided a Grasshopper Optimization Algorithm (GOA) for designing the FIR filter. The
approach focuses on the minimization of the absolute error difference fitness function to obtain the optimal filter coefficients. This
method is implemented in Low pass, High pass, Bandpass, and Bandstop FIR filter and the analysis is performed. It concluded with
GOA being the best choice for designing a 20th order FIR filter with lesser ripples in passband as well as the stopband and higher
stopband attenuation in comparison to other algorithms.
Peng, Hu, and Yang [2] proposed an Improved Grasshopper Optimization Algorithm (IGOA). The paper also compared the
proposed IGOA with GOA and various other algorithms. The waveform showed that IGOA outperformed GOA in most functions
and the convergence speed of IGOA was greater than that of GOA and PSO.
Singh, Ashok, Kumar M., Garima, and Rawat T.K. [9] presented Dragonfly Algorithm for the optimal design of IIR filters. Results
of the DA are compared with Cat Swarm Optimization (CSO), particle swarm optimization (PSO), and bat algorithm (BA) and
prove to be more efficient than the other three optimization algorithms.
Irfan, Arindam, Raina, Supriya, and Palaniandavar [10] proposed Salp Swarm Algorithm for IIR design. The paper gives a
comparison of the estimated value of coefficients and the MSE of the Salp Swarm Algorithm with the Whale Optimization
Algorithm and Dragonfly Algorithm which indicates outperformance of the Scalp Swarm Algorithm.
Dash, Dam, and Swain [12] used hybrid differential evolution particle swarm Optimization (HDEPSO) for the design and
implementation of sharp edge FIR filters. It shows that the proposed HDEPSO performed better than PSO and Differential
Evolution (DE) Algorithms under certain circumstances.
Shubhendu, Rutuparna, and Ajith [13] provided a design for optimal low pass filter by Levy swallow swarm algorithm. It compares
the proposed algorithm with e firefly algorithm (FA), the sine cosine algorithm (SCA), real coded genetic algorithm (GA),
conventional particle swarm optimization (PSO), cuckoo search (CS) and, SS algorithm and shows that Levy Swallow algorithm
outperforms GA, SS, PSO, SCA, FA and, CS. It concludes that the proposed algorithm is suitable for use in designing FIR filters.
Liang and Kwan [14] proposed the Design of FIR filters with the use of Multiobjective Cuckoo Search Algorithm. The algorithm is
applied for the optimization of the filter coefficients of FIR low pass and Band Pass Filters.
Deny, Sun, Zhang [15] used a new algorithm named ESA-DE. The proposed algorithm improves the basic DE algorithm and results
show the proposed improved algorithm outperforms DE, jDE, and ODE algorithms.
Hang, Dong; Li, Xiaoyi [16] proposed a design of FIR filter that is based on Firefly Position Optimization and Improved Particle
Swarm Optimization Algorithm. The proposed design had smaller oscillations and better convergence performance than PSO
VII. REALIZATION OF DIGITAL FILTERS
When the system function H(z) or impulse response h(n) is known, the digital filter can be synthesized and implemented in
hardware. The difference equation requires adders, delay elements and, multipliers for its hardware implementation. There are
several structures for FIR and IIR. The basic structures for IIR filter realization are:
1) Direct form realization: this includes direct form 1 and direct form 2 structure.
2) Cascade Realization
3) Parallel Realization
4) Transposed Structure
5) State Space Structure
6) Ladder Structure
For FIR filter realization there are two widely used structures, they are:
a) Direct structure
b) Cascade structure.
To realize linear phase FIR filter, we consider the condition given in (2).
Therefore, for the realization of the 4th order linear phase FIR filter h (0) = h (3) and h (1) = h (2).
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 136
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 10 Issue VI June 2022- Available at www.ijraset.com
Fig. 2 Realization of 4th order linear phase FIR filter (Direct form)
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 137
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 10 Issue VI June 2022- Available at www.ijraset.com
Shahnam, Anup, and Ryan [5] proposed a new methodology for implementing high-speed FIR filters. It implemented the FIR filter
using add and shift method. The filter is divided into a multiplier block and a delay block and the optimizations are performed in the
multiplier block where the constant coefficient multiplication is decomposed into registered additions and hardwired shifts. 2 input
adders are used to perform the addition and are arranged in the fastest tree structure such that the performance of the filter is affected
by the slowest adder. The methodology uses the subexpression elimination technique for reducing addition operations and the
number of adders to reduce the area and insertion of necessary registers to synchronize values. The method is implemented and
performance is compared with the DA approach and the MAC approach of FIR implementation on FPGA and resulted in better
performance of add and shift technique.
Yuan and Yanzhi [6] presented a high accuracy FIR filter design. They proposed a stochastic computing method for FIR filter
design. The approach presented in the paper uses high accuracy stochastic adder and multiplier which is based on the two-line
stochastic computing representation. The adder is non-scaled therefore the output of the filter is non-scaled and has high accuracy
compared to conventional Stochastic FIR filters..
Seshadri, R.; Ramakrishnan, S. [17] designed 1st order and 2nd order IIR Filter using Look Ahead technique and implemented in
level 1 and level 2. Then 8, 16, 32, and 64 Tap MA FIR filters are implemented using Cascaded Integrator Comb (CIC) and Look-
ahead schemes. The results show that the level 2 look ahead has better performance than level 1 which in turn has better
performance than conventional methods. In the FIR filter, level 2 Look Ahead outperformed CIC. The paper also compares other
factors such as Les utilized by each technique and Power Dissipation.
Debarshi and Himadri [7] proposed a design for high performance IIR filter and its implementation on FPGA. It provided a design
for reconfigurable IIR filters for real-time applications. It described FIR-based IIR design. It also briefly described lossy integrator-
based look-ahead IIR filter, two-level parallel-pipeline IIR filter and FIR-based IIR design and implemented the designs on Xilinx
Vertex 5 FPGA board. The paper experimentally concludes that the proposed FIR-based IIR filter implementation technique
provided maximum operating speed, lesser power consumption, and reduced area in comparison with the look-ahead and parallel
pipeline technique.
IX. CONCLUSION
There has been continuous research on finding a better algorithm for designing specific types of filters to obtain the best
performance of the filter and to reduce the error between the obtained response and the desired response. For the determination of
optimized filter coefficients, a wide variety of algorithms have been developed. The superiority of a particular algorithm depends on
the application.
REFERENCES
[1] Yadav, Suman; Yadav, Richa; Kumar, Ashwni; Kumar, Manjeet (2020),”A novel approach for optimal design of digital FIR filter using
grasshopper optimization algorithm,” ISA Transactions, S0019057820303645–. doi:10.1016/j.isatra.2020.08.032
[2] Qin, P., Hu, H. & Yang, Z., “The improved grasshopper optimization algorithm and its applications,” Sci Rep 11, 23733 (2021).
https://doi.org/10.1038/s41598-021-03049-6
[3] M. Keerthi, Vasujadevi Midasala, S Nagakishore Bhavanam, Jeevan Reddy K, 2012, “FPGA Implementation Of Distributed Arithmetic For FIR Filter,”
International Journal of Engineering Research & Technology (IJERT) Volume 01, Issue 09 (November 2012),
[4] M. Sakthimohan, J. Deny, “An Optimistic Design of 16-Tap FIR Filter with Radix-4 Booth Multiplier Using Improved Booth Recoding Algorithm,”
Microprocessors and Microsystems (2020), doi: https://doi.org/10.1016/j.micpro.2020.103453
[5] Mirzaei, Shahnam; Hosangadi, Anup; Kastner, Ryan (2006). [IEEE 2006 International Conference on Computer Design - San Jose, CA, USA (2007.10.1-
2007.10.4)] 2006 International Conference on Computer Design, “FPGA Implementation of High Speed FIR Filters Using Add and Shift Method,”308–313.
doi:10.1109/ICCD.2006.4380833
[6] B. Yuan and Y. Wang, "High-Accuracy FIR Filter Design Using Stochastic Computing," 2016 IEEE Computer Society Annual Symposium on VLSI (ISVLSI),
2016, pp. 128-133, doi: 10.1109/ISVLSI.2016.63.
[7] Datta, D., Dutta, H.S., “High performance IIR filter implementation on FPGA,” Journal of Electrical Systems and Inf Technol 8, 2 (2021).
https://doi.org/10.1186/s43067-020-00025-4
[8] V. Lesnikov, T. Naumovich and A. Chastikov, "Multiplierless IIR Filter Design Technique," 2021 10th Mediterranean Conference on Embedded Computing
(MECO), 2021, pp. 1-4, doi: 10.1109/MECO52532.2021.9460199.
[9] Singh S., Ashok A., Kumar M., Garima, Rawat T.K. (2019), “Optimal Design of IIR Filter Using Dragonfly Algorithm”. In: Malik H., Srivastava S., Sood Y.,
Ahmad A. (eds) Applications of Artificial Intelligence Techniques in Engineering. Advances in Intelligent Systems and Computing, vol 698. Springer,
Singapore. https://doi.org/10.1007/978-981-13-1819-1_21
[10] I. Ghazi, A. Das, R. M. Aich, S. Dhabal and P. Venkateswaran, "Improved Design of IIR filter using Salp Swarm Algorithm," 2020 IEEE 7th Uttar Pradesh
Section International Conference on Electrical Electronics and Computer Engineering (UPCON), 2020, pp. 1-5, doi:
10.1109/UPCON50219.2020.9376571
[11] Ravi, Renjith V.; Subramaniam, Kamalraj; Roshini, T. V.; Muthusamy,
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 138
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 10 Issue VI June 2022- Available at www.ijraset.com
Sundar Prakash Balaji; Prasanna Venkatesan, G. K. D. (2019),“Optimization algorithms, an effective tool for the design of digital filters; a review,” Journal of
Ambient Intelligence and Humanized Computing, doi:10.1007/s12652-019-01431-x
[12] J. Dash, B. Dam, R. Swain, “Design and implementation of sharp edge FIR filters using hybrid differential evolution particle swarm optimization,”
International Journal of Electronics and Communications (2019), doi: https://doi.org/10.1016/j.aeue.2019.153019
[13] Sarangi, Shubhendu Kumar; Panda, Rutuparna; Abraham, Ajith (2020), “Design of optimal low-pass filter by a new Levy swallow swarm algorithm,” Soft
Computing, doi:10.1007/s00500-020-05065-6
[14] J. Liang and H. K. Kwan, "FIR filter design using multiobjective Cuckoo Search Algorithm," 2017 IEEE 30th Canadian Conference on Electrical and
Computer Engineering (CCECE), 2017, pp. 1-4, doi: 10.1109/CCECE.2017.7946828.
[15] Deng L., Sun H., Zhang L. (2019), “A New Algorithm (ESA-DE) for Designing FIR Digital Filters,” In: Jia M., Guo Q., Meng W. (eds) Wireless and Satellite
Systems. WiSATS 2019. Lecture Notes of the Institute for Computer Sciences, Social Informatics and Telecommunications Engineering, vol 280. Springer,
Cham. https://doi.org/10.1007/978-3-030-19153-5_63
[16] Hang, Dong; Li, Xiaoyi (2018). [IEEE 2018 IEEE International Conference of Safety Produce Informatization (IICSPI) - Chongqing, China (2018.12.10-
2018.12.12)] 2018 IEEE International Conference of Safety Produce Informatization (IICSPI), “Application of Improved Particle Swarm Optimization
Algorithm Based on GSO in Optimization Design of FIR Digital Filter,” 84–87. doi:10.1109/IICSPI.2018.8690503
[17] Seshadri, R.; Ramakrishnan, S. (2019), “FPGA implementation of fast digital FIR and IIR filters,” Concurrency and Computation: Practice and Experience,
e5246–. doi:10.1002/cpe.5246
[18] S Salivahanan A Vallavaraj; Gnanapriya C., “Digital signal processing,” Tata McGraw Hill New Delhi, 2000
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 139