- Open Access
- Authors : Nirbhay Kumar Singh, Amit Kumar Rana
- Paper ID : IJERTV12IS120073
- Volume & Issue : Volume 12, Issue 12 (December 2023)
- Published (First Online): 21-12-2023
- ISSN (Online) : 2278-0181
- Publisher Name : IJERT
- License: This work is licensed under a Creative Commons Attribution 4.0 International License
FPGA Based Design of Band Stop IIR Filter using Multiplier-less Technique
Nirbhay Kumar Singh
ME student, ECE NITTTR, Chandigarh-India
Amit Kumar Rana
ME student, ECE NITTTR, Chandigarh-India
AbstractIn this current scenario, the demand of digital communication system is on peak, where Digital filter play an essential role. Digital filters [2] are mainly known to provided very minimum or ideally zero attenuation. In this paper, a recent technology FPGA based band stop infinite impulse response (IIR) with the implementation of a 16 tap multiplier less for digital signal processing applications because signals are subject to noise interference, hence filtering techniques are employed to remove noise from signals. The design of this IIR filter [1] on a field-programmable-gate-array(FPGA) using Spartan 3E xc3s1200efg320-5, and Virtex4, xc4vfx12sf363-12 chips from Xilinx Inc [3]. The Hardware Description Language (VHDL) is used for designing this IIR filter. The main aim of this paper is to give a comparison between Spartan 3E and Virtex4 on the basis of hardware utilization by a low-pass IIR filter. Here, the IIR filter is implemented using the Butterworth deign method as it meets the specifications with less complexity. Canonical Signed Digit (CSD) and Factored- Canonical Signed Digit (FCSD) representations are used to represent the filter coefficients and it is observed that the IIR filter with FCSD [5] representation is 53.426% faster than the Spartan3E chip for the given specifications.
KeywordsIIR filter, FPGA, VHDL, Butterworth, CSD, FCSD
Fig.1.Realization of IIR [1]
The primary attributes of IIR filters consist of a low filter order [9], non-linear phase, and susceptibility to instability. The Butterworth IIR filter has a slower rate of attenuation, but its phase response is more linear when compared to Chebyshev-I & II and Elliptical filters [10]. The equation that describes the magnitude response of a Butterworth filter is as follows:
- INTRODUCTION
An IIR filter is commonly referred to as a recursive filter. There is a feedback loop that connects the output to the input in a recursive manner. In order to implement this filter [4], it is necessary to have knowledge of past, present, and future samples of the input, along with past values of the output. The realization [6] of a filter requires three essential factors: computational complexity [7], memory needs, and the implications of finite world length in the computations. There are three types of realization structures: direct form, parallel form, and cascade form.
The direct form structure consists of two types: direct form – I and direct form -II. The structure exhibits several forms of design. By carefully choosing the appropriate structure, it is possible to decrease computing complexity. The Direct form
-II structure [8] is utilized in this paper.
In the context of filtering, the sign A represents the filter gain the symbol N represents the order of the filter, and the symbol c represents the cut-off frequency for 3dB [11]
- MULTIPLIER-LESS TECHNIQUES:
The “multiplier-less technique” in the context of digital signal processing (DSP) refers to methodologies or algorithms used to perform mathematical operations, such as multiplication or division, without explicitly using dedicated multiplication hardware or functional blocks [12]. Instead, it involves employing alternative techniques to achieve the same computational results with reduced hardware complexity and lower power consumption.
These techniques are particularly relevant in scenarios where hardware resources are limited or when optimizing [13] digital signal processing algorithms for implementation in resource-constrained environments, such as embedded systems, mobile devices, or specialized hardware like field- programmable gate arrays (FPGAs) [14]. Several
approaches fall under the umbrella of multiplier-less techniques:
- Shift-and-Add (Multiply-Accumulate – MAC):
Utilizes shift operations and additions to approximate multiplication. For example, binary shift operations can emulate multiplication by powers of two, and a sequence of additions can emulate partial products.
- Look-Up Tables (LUTs) and Approximations: Pre- computed tables or approximations of multiplication factors stored in memory can be used to perform multiplication through table look-ups and additions.
- Constant Coefficient Multipliers: Algorithms [15] or techniques specifically tailored for constant coefficients or common multiplication factors can reduce the need for complex multiplication operations.
- Factoring and Reordering Operations: Rearranging equations or reordering mathematical operations to minimize the number of multiplications required. Techniques like distributed arithmetic fall into this category.
- Addition-Subtraction Networks: Utilizes sequences of additions and subtractions [26] to approximate multiplication operations.
- Algorithmic and Numerical Optimization: Optimization techniques specific to certain algorithms, such as those in digital filters or transforms, to reduce the number of multiplications or to simplify arithmetic operations.
These techniques are often employed in digital signal processing applications, including audio and video processing, image processing, communications [16], and more. They allow for efficient utilization of hardware resources by reducing the reliance on dedicated and power- hungry multiplication units, leading to more resource- efficient implementations without sacrificing computational accuracy or performance. However, they may introduce trade-offs[17] in terms of precision, accuracy, or increased computational complexity in certain cases. The choice of multiplier-less techniques depends on the specific application requirements and hardware constraints.
- Shift-and-Add (Multiply-Accumulate – MAC):
- DIGITAL IIR FILTER
The choice between IIR and FIR (Finite Impulse Response) filters depends on the specific application, as both have their own advantages and trade-offs. IIR filters are often favored for applications where computational resources are limited, but they may exhibit more phase distortion than FIR filters. Always choose the type of filter that best suits the requirements of your particular application [20]
Fig.2. Basic block diagram of Digital IIR filter
Factored-Canonical Signed Digit (FCSD) representation is a modified form of Canonical Signed Digit (CSD) representation. FCSD representation replaces multiplication
operations with addition and shift operations on the basis of a prime factor of coefficients. FCSD is the combination of
factorization and Canonical Signed Digit representation of filter coefficients, which reduces the number of adders and also the cost of hardware. It gives a greater reduction in filter area, but there is a decrease in clock speed. The major drawback of this algorithm that it, increases the delay. The FCSD algorithm makes a trade-off between convergence calculation and complexity [18]. This example shows the comparison between CSD and factored-CSD algorithms:
Therefore, the above example concludes that the number of adders can be reduced by using the FCSD technique as compared to CSD.
- DESIGN SIMULATIONS
The required parameters for the implementation of a 16 tap multiplier less band stop IIR filter using the Butterworth, the filter length, cut off frequency, sampling frequency. In this simulation, the filter order is 16, the cut off frequency Fc1 is
8.4 KHz, the cut off frquency Fc2 is 13.2 KHz, the sampling frequency Fs is 48 KHz, and the attenuation is 3dB.The design specifications of an IIR filter are given in Table I [19]:
TABLE I. DESIGN SPECIFICATIONS BAND STOP OF FILTER
Filter Parameter Value Filter Length 16 Tap Cut off Frequency1 8400 Hz Cut off Frequency2 13200 Hz Sampling Frequency 48000Hz Attenuation 3dB Table I shows the different parameters for designing of filter. In this paper, the Butterworth method is considered for designing the band stop IIR filter on the FPGA [21]. Overall, reducing computational complexity is an important consideration in filter design, as it can lead to more efficient and cost-effective implementations [18], particularly in applications with limited resources strict real-time processing requirements.
The Butterworth direct form-II method is considered in this work because it reduces computational complexity and increases speed performance [22], but the major drawback of this method is that it reduces accuracy. As the magnitude
response of the band stop multiplier less IIR filter is shown in Fig. 3
Magnitude Response (dB) and Phase Response
20 13.6999
0 10.002
-20 6.3041
-40 2.6062
-60 -1.0917
Bandstop Butterworth: Quantized Magnitude
-80 Bandstop Butterworth: Reference Magnitude -4.7896
Bandstop Butterworth: Quantized Phase
Bandstop Butterworth: Reference Phase
-100 -8.4875
-120 -12.1853
0 5 10 15 20
Frequency (kHz)
Magnitude (dB)
Phase (radians)
Fig.3. Magnitude Response of Low Pass IIR Filter
The phase response of the design IIR filter is shown in
Fig.4. As IIR filters have non linear phase in general[23] but
, the graph shows the Butterworth IIR filter has a slower rate of attenuation, but its phase response is more linear when compared to Chebyshev-I & II and Elliptical filters.
Fig.4. Phase Response of IIR Filter
The Impulse Response of IIR filter using the Butterworth window is shown in Fig.5.
Impulse Response
Fig.6. Magnitude and Phase Response of the IIR Filter
The polezero plot of IIR filter using the Butterworth window is shown in Fig.7.
Fig.7. Pole Zero Plot of the IIR Filter
- FPGA SYNTHESIS
The proposed IIR band stop filter is implemented on two Xillinxs FPGA devices. Multiplier less IIR filter has been designed in MATLAB[24]. After that, it is further simulated on the FPGA using Spartan 3E,xc3s1200efg320-5, and Virtex 4,xc4vfx12sf363-12chips.The simulation results of CSD and factored-CSD based IIR filter using Spartan 3E, and Virtex 4 are shown in Figs.8 and 9 respectively. The filter responses on the FPGA are the same as on MATLAB.
0.6
0.5
0.4
Amplitude
0.3
0.2
0.1
0
-0.1
-0.2
Bandstop Butterworth: Quantized Bandstop Butterworth: Reference
0 0.5 1 1.5 2 2.5 3 3.5
Time (mseconds)
Fig.5. Impulse Response of the IIR Filter
The magnitude and phase response of a band stop IIR filter in a single graph are shown in Fig.6.
Fig.8. CSD based IIR filter input-output using Xilinx Spartan 3E
Here both the Simulation involves running IIR filters in a software environment, specifically utilizing the Xilinx [31] ISE tool. A test bench program is used to mimic the behavior of IIR filters by setting the inputs into the system. Figure 8 displays the Xilinx ISE Simulator outcomes for
Spartan3E DSP [25], where as figure 9 exhibits the findings for Virtex4 as-
Fig.9. FCSD based IIR filter input-output using Xilinx Virtex4
The characteristics table of CSD and FCSD based IIR filter on Spartan 3E and Virtex4 chips[26] is given in Table II, III, IV, and V respectively. These tables show the availability and utilization of logic by Spartan 3E and Virtex4 chips [28].
Logic Utilization Used Available Utilization (%) Slices 1956 8672 22% Flip Flop 272 17344 1% LUTs 3706 17344 21% TABLE II.THE CHARACTERISTICS TABLE OF SPARTAN 3E (CSD)
FCSD representation consume 1934 slices, 272 flip flops, 3659 LUTs on Spartan3E and on the other hand, on Virtex4,
the band stop IIR filter using FCSD representation [29], consume 1955 slices, 272 flip flops, 3704 LUTs and FCSD representation consume 1923 slices, 272 flip flops, 3637 LUTs. Hence we observe that less consumption in FCSD. The performance comparison between CSD and FCSD based IIR filter on Spartan 3E and Virtex4 chips[30] is summarized in Table VI.
TABLE VI. PERFORMANCE COMPARISON SPARTAN 3E & VIRTEX 4
Parameter Spartan 3E Virtex4 CSD FCSD CSD FCSD Slices 1956 1934 1955 1923 Flip Flop 272 272 272 272 LUTs 3706 3659 3704 3637 Speed (in ns) 170.510ns 170.074ns 85.034 ns 84.789 ns Above table show that the FCSD representation, consume less slices and LUTs as compare to CSD representation. Spartan 3E and Virtex4 have minimum periods of 170.074 ns and 84.789ns, respectively. Hence, Spartan 3E has 50.145% more delay as compared to Virtex4.
TABLE III.THE CHARACTERISTICS TABLE OF SPARTAN 3E (FCSD)
Logic Utilization Used Available Utilization (%) Slices 1934 8672 22% Flip Flop 272 17344 1% LUTs 3659 17344 21% TABLE IV.THE CHARACTERISTICS TABLE OF VIRTEX 4(CSD)
Logic Utilization Used Available Utilization (%) Slices 1955 5472 35% Flip Flop 272 10944 2% LUTs 3704 10944 33% TABLE V.THE CHARACTERISTICS TABLE OF VIRTEX 4(FCSD)
Logic Utilization Used Available Utilization (%) Slices 1923 5472 35% Flip Flop 272 10944 2 LUTs 3637 10944 33% A 16 tap multiplier less band stop IIR filter using CSD and FCSD has been implemented on Spartan3E and Virtex4 chips. VHDL is used for designing this filter. The result shows that the band stop IIR filter using CSD representation [27], consume 1956 slices, 272 flip flops, 3706 LUTs and
- CONCLUSION
In this paper work, a design analysis of a 16 tap multiplier less digital band stop IIR filter on an FPGA is presented. The Butterworth design method is used direct form-II to design ths IIR filter on MATLAB. After being implemented in MATLAB, the CSD and FCSD based IIR filter is further simulated on the FPGA using Spartan 3E and Virtex4 chips. Here, Simulation results show that the multiplier less IIR filter using Spartan 3E and Virtex4 have minimum period of 170.510 ns and 84.789ns respectively. Therefore, it is concluded that Virtex4, xc4vfx12sf363-12, is 50.145% better performance are achieved as compared to Spartan 3E, xc3s1200efg320-5. In future work, IIR filter design will perform based on optimal multiplier [25] to further moderate FPGA utilization.
REFERENCES
[1] Datta, Debarshi, and Himadri Sekhar Dutta. “High performance IIR filter implementation on FPGA.” Journal of Electrical Systems and Information Technology 8 (2021): 1-9. [2] Garcia, Rémi, Anastasia Volkova, Martin Kumm, Alexandre Goldsztejn, and Jonas Kühle. “Hardware-aware Design of Multiplierless Second-Order IIR Filters with Minimum Adders.” IEEE Transactions on Signal Processing 70 (2022): 1673-1686.
[3] Huang, Liying, Jun Yang, Kefeng Wei, Zhen Chen, and Xiuyin Zhang. “Peak Cancellation Method with IIR Filters and its FPGA Implementation.” IEEE Transactions on Circuits and Systems II: Express Briefs (2023). [4] Qiang, Zhang, Sun Jing, Wang Weilian, Yao Ruping, and Chen Cheng. “Design of fourth-order IIR digital filter based on FPGA.” In 2019 14th IEEE International Conference on Electronic Measurement & Instruments (ICEMI), pp. 161-166. IEEE, 2019. [5] Yadav, Ajay Kumar, Bal Chand Nagar, and Gayadhar Pradhan. “FPGA Implementation of IIR Notch and Anti-Notch Filters with an Application to Localization of Protein Hot-Spots.” IEEE Transactions on NanoBioscience (2023). [6] Wu, Yiyan, and William Y. Zou. “Orthogonal frequency division multiplexing: A multi-carrier modulation scheme.” IEEE Transactions on Consumer Electronics 41, no. 3 (1995): 392-399. [7] Zheng, Zhi, and Guangjun Li. “An efficient FPGA design and performance testing of the ACE algorithm for PAPR reduction in DVB-T2 systems.” IEEE Transactions on Broadcasting 63, no. 1 (2016): 134-143. [8] Chang, Cheng-Yen, Yu-Qin Yang, Te-Sheng Fan, Shih-Kai Lee, Huang-Chang Lee, and Mao-Chao Lin. “A Polar Coding With a Q- Section NBC Property for Managing Phase Ambiguity and PAPR in Multi-Carrier Communications.” IEEE Communications Letters 25, no. 11 (2021): 3449-3453. [9] Chan, Kuei-Cheng, Yen-Ming Chen, Cheng-Jung Wu, and Chih- Peng Li. “Achieving full diversity on a single-carrier distributed QOSFBC transmission scheme utilizing PAPR reduction.” IEEE Transactions on Communications 66, no. 4 (2017): 1636-1648. [10] Sun, Ying, and Hideki Ochiai. “Performance analysis and comparison of clipped and filtered OFDM systems with iterative distortion recovery techniques.” IEEE Transactions on Wireless Communications 20, no. 11 (2021): 7389-7403. [11] Song, Jiajia, and Hideki Ochiai. “A low-complexity peak cancellation scheme and its FPGA implementation for peak-to-average power ratio reduction.” EURASIP journal on Wireless communications and networking 2015 (2015): 1-14. [12] Shenoi, Belle A. Introduction to digital signal processing and filter design. Vol. 169. John Wiley & Sons, 2005. [13] May, D. S., and V. FPGAS. “Virtex-5 FPGA Data Sheet: DC and Switching Characteristics.” vol 152 (2013): 1-65. [14] Meyer-Baese, Uwe, and U. Meyer-Baese. Digital signal processing with field programmable gate arrays. Vol. 65. Berlin: springer, 2007. [15] Brown, Stephen, and Zvonko Vranesic. “Digital Logic with VHDL Design.” International Edition on (2005): 292-293. [16] Yu, Yang, and Yu Xinjie. “Cooperative coevolutionary genetic algorithm for digital IIR filter design.” IEEE Transactions on Industrial Electronics 54, no. 3 (2007): 1311-1318. [17] Paul, Arnob, Tanvir Zaman Khan, Prajoy Podder, Md Mehedi Hasan, and Tanveer Ahmed. “Reconfigurable architecture design of FIR and IIR in FPGA.” In 2015 2nd International Conference on Signal Processing and Integrated Networks (SPIN), pp. 958-963. IEEE, 2015 [18] De Cacqueray-Valmenier, Mathias, Adem Coskun, and Izzet Kale. “The use of almost linear phase IIR filters in DFT modulated filter banks for communication systems.” In 2016 IEEE 17th International Workshop on Signal Processing Advances in Wireless Communications (SPAWC), pp. 1-4. IEEE, 2016. [19] Bahram Rashidi, High Performance and Low Power Finite Impulse Response Filter Based on Ring Topology With Modified Retiming Serial Multiplier on FPGA IET Signal Processing, pp. 743-753, June 2013. [20] Soni, Manish Kumar, Rajesh Mehra, and Rajesh Kumar. “Design, performance and cost analysis of various band pass IIR filters for Myriametre band applications.” In 2015 IEEE 3rd International Conference on MOOCs, Innovation and Technology in Education (MITE), pp. 382-387. IEEE, 2015. [21] González, Edilberto Carlos Vivas, Diego Mauricio Rivera Pinzón, and Edwar Jacinto Gómez. “Implementation and simulation of IIR digital filters in FPGA using MatLab system generator.” In 2014 IEEE 5th Colombian Workshop on Circuits and Systems (CWCAS), pp. 1-5. IEEE, 2014. [22] Krishan, Er, Er Kapil Gulati, Er Munish Gupta, and Er Rajni. “Noise detection in IIR digital filter using MATLAB.” In 2012 Second International Conference on Advanced Computing & Communication Technologies, pp. 196-199. IEEE, 2012. [23] Mishra, Bhaskar, and Rajesh Mehra. “Design and simulation of low pass IIR filter for ECG interference reduction.” International Journal of Engineering Research & Technology (IJERT) 3, no. 3 (2014) [24] Pragati, Gupta, and Mehra Rajesh. “Design and Performance Analysis of IIR Filter for RF Applications.” In Int. Conf. on Research in Electrical, Electronics & Mechanical Engineering, pp. 5-8. 2014. [25] Dempster, Andrew G., and Malcolm D. Macleod. “Comparison of IIR filter structure complexities using multiplier blocks.”In Proceedings of ISCAS’95-International Symposium on Circuits and Systems, vol. 2, pp. 858-861. IEEE, 1995.
[26] Volkova, Anastasia, Matei Istoan, Florent De Dinechin, and Thibault Hilaire. “Towards hardware IIR filters computing just right: Direct form I case study.” IEEE Transactions on Computers 68, no. 4 (2018): 597-608. [27] Faust, Mathias, and Chip-Hong Chang. “Bit-parallel multiple constant multiplication using look-up tables on FPGA.” In 2011 IEEE International Symposium of Circuits and Systems (ISCAS), pp. 657- 660. IEEE, 2011. [28] Smékal, Zdenek, and Robert Vich. “Optimized models of IIR digital filters for fixed-point digital signal processor.” In ICECS’99. Proceedings of ICECS’99. 6th IEEE International Conference on Electronics, Circuits and Systems (Cat. No. 99EX357), vol. 1, pp. 145-148. IEEE, 1999. [29] Rajesh Mehra and Swapna Devi, Area Efficient & Cost Effective Pulse Shaping Filter For Software Radios, International Journal of Ad hoc, Sensor & Ubiquitous Computing, pp. 85-91, Sep. 2010. [30] Aye Than Mon, Zaw Min Naing, Chaw MyatNew, and Hla Myo Tun, Development OF Digital Band Pass Filter And Antenna Design For C Band Small Satellite Uplink Model International Journal Of Scientific & Technology Research , pp. 216-222, July 2014. [31] Francis, Michael. “Infinite impulse response filter structures in xilinx FPGAs.” Xilinx White Paper (2009).