Elsevier

Microelectronics Journal

Volume 88, June 2019, Pages 67-78
Microelectronics Journal

Design and FPGA implementation of lattice wave fractional order digital differentiator

https://doi.org/10.1016/j.mejo.2019.04.013Get rights and content

Abstract

This paper deals with the design and FPGA implementation of a fractional order digital differentiator. It is realized using computationally efficient lattice wave digital filter (LWDF) which requires minimum multipliers in comparison to the direct form structure. A nature inspired ant lion optimization (ALO) algorithm is utilized to compute optimal coefficients of the LWDF based digital differentiator. The proposed LWDF based digital differentiator is compared with the existing literature in terms of magnitude response, percentage magnitude error and root mean square magnitude error. LWDF structure comprises of constant coefficient multipliers, adders and delay units which are implemented on FPGA with the help of Xilinx system generator for DSP design tool. For efficient implementation of multipliers, multiplier-less logic through digit recoding techniques such as canonic signed digit (CSD) representation and radix-2r encoding are described through Verilog HDL and incorporated in the implementation model as black box. Post-implementation results show that implementation based on the radix-2r encoding is found to be more efficient than that of the CSD encoding. The design and implementation results are also reported to highlight the improvements.

Introduction

In signal processing, situation often arises which needs to evaluate time derivative of a given signal. For instance, in order to extract ECG feature signal for QRS complex detection, derivative based preprocessing is employed [1]. Geometrical properties and contrast resolution of an image is enhanced using fractional order differentiator [2]. A dynamical system can be characterized through differential equations of integer order, however it is exhibited that dynamical systems are better modelled using arbitrary order operators [3]. The fractional derivative operator of order a for a function f(x) is Daf(x)=daf(x)dxa. Fractional order differentiators are employed to evaluate the derivative operator Da in continuous or discrete-time domain. Since digital techniques have more often proved to be advantageous compared to its analog counterpart, efficient design and implementation of fractional order digital differentiator has been an attractive problem for researchers [1,[4], [5], [6], [7], [8], [9], [10]].

The transfer function of fractional order differentiator (FOD) is given byHFOD(s)=srwhere r denotes a positive real number lies in the range [0, 1] [11]. FOD is an infinite dimensional system, hence to implement it in digital domain, it must be approximated with finite dimensional transfer function which is often referred to as FOD discretization problem [12,13]. It can be classified into two general types as direct and indirect discretization methods. Existing literature on direct discretization include the application of the direct power series expansion of the Euler operator [14], the continued fraction expansion of the Tustin operator [13], the numerical integration methods [15], Al-Alaoui operator which results from combination of Euler and Tustin operator [[16], [17], [18]]. In case of indirect discretization, continuous-time frequency domain fitting followed by mapping of s to z operator is performed [[19], [20], [21]]. A survey of differentiator and integrator obtained using both the method is given in Refs. [22,23]. Most of these discretization methods have been applied in infinite impulse response (IIR) system, however, finite impulse response (FIR) system can also be used to design digital differentiator as demonstrated in Refs. [4,5,[24], [25], [26]]. Recent literature reveals that the FOD design requirement can be structured as an optimization problem in terms of an error function which needs to be minimized utilizing optimization algorithms. Gupta et al. proposed FOD models by employing particle swarm optimization (PSO), genetic algorithm (GA), and PSO-GA hybrid optimization for enhancing digital differential operator [9]. Cuckoo search algorithm (CSA) is used to obtain coefficients of finite impulse response based FOD [4]. Flower pollination algorithm was used to design FOD as IIR system [10]. Nature inspired bat algorithm was employed in Ref. [8] to design FOD for frequencies in microwave range. Mahata et al. used adaptive Gbest-guided gravitational search algorithm for designing fractional order digital differentiator in Ref. [27].

After the design phase, system function obtained as difference equation of the form FIR or IIR can be realized by several equivalent structures. Choice of structure depends upon computational complexity, memory requirement and data representation [28]. Direct-form realization of an IIR system requires M + N − 1 multipliers and M + N − 2 adders where M and N − 1 represent number of coefficients in numerator and denominator of the transfer function, respectively. Moreover, IIR system coefficients are sensitive to quantization and round-off errors which makes their implementation complex. To address these issues wave digital filter (WDF) can be employed for implementing FOD. WDF can handle finite word length effect with minimum number of multiplication operation [29]. WDFs are derived from classical filter networks presented by Fettweis [30]. WDFs exhibit properties such as reduced accuracy requirement for multiplier coefficient and good stability under finite arithmetic conditions. WDF in lattice configuration referred as lattice wave digital filter was used to design comb filter [31], Hilbert transformer [32], and lowpass and highpass filters [33].

Hardware implementation of signal processing system such as FOD can be done through application specific integrated circuit (ASIC), programmable digital signal processor (PDSP) or FPGA. In recent years, DSP market is dominated by FPGA based design due to its several advantages. FPGA exploits parallelism, reconfigurability, low non-recurring engineering (NRE) cost, and fast time to market [34]. Jiang et al. realized the fractional operator as IIR system and FIR system [35]. IIR realization is then implemented on FPGA as parallel combination of first order filters using the in-built FPGA multipliers. The FIR approximation of the fractional operator is implemented on the FPGA employing pipelined multiplierless architecture. The work is then extended in Ref. [36], where, a method for implementing general fractional order transfer function on FPGA is proposed. Fractional order derivatives and integrals are implemented as fixed point structures which are then used as building blocks for developing fractional order system. Rana et al. proposed a systematic procedure for implementing the fractional integrator and differentiator using Grünwald–Letnikov (GL) definition on FPGA through LabVIEW design environment [37]. FPGA implementation of fractional integral and derivatives based on GL definition is also presented in Ref. [38]. Most recently, fixed window and linear approximation method are considered for FPGA implementation of fractional order integrator and differentiator [39].

Efficiency of FPGA based systems is governed by two key principles: number representation and implementation of basic algebraic operation. This is due to the fact that FPGA possesses bit level programming architecture. If high dynamic range of data is not required then fixed point representation is preferred over floating point as it offers higher speed with lower hardware cost. Basic computation units required for realization of DSP systems including FOD are multiplication and addition. Complexity of multipliers can be minimized if one of the operands is a constant which is the case in most DSP systems. Multiplication with one of the two operands being a constant is also known as scaling operation which can be converted to addition and/or subtraction and bit shifting problem commonly known as single constant multiplication (SCM). Various methods have been proposed in the literature for efficient implementation of SCM which includes digit recoding algorithms such as canonical signed digit representation [40], Booth recoding algorithm [41] and common subexpression elimination techniques [[42], [43], [44]].

The purpose of this paper is to first design fractional order digital differentiator by transforming the transfer function of an ideal and actual FOD into an error function which is then minimized by using nature inspired optimization algorithm. If the FOD is realized in direct-form II structure, it requires 2N + 1 coefficients for an Nth order IIR filter. Whereas, lattice wave digital filter based structure requires N number of γ coefficients for Nth order filter. Hence, lattice wave digital filter is considered as the actual FOD. Optimal γ coefficients are determined using ant lion optimization algorithm to approximate ideal transfer function of FOD. Secondly, values of γ coefficients so obtained in the design phase are utilized for fixed point FPGA implementation. To the best of author's knowledge no literature were found implementing lattice wave digital filter based FOD on FPGA. Lattice wave digital filters are constructed using symmetric two port adaptors and delay units, moreover, each adaptor is a network of adders and constant multipliers. Device utilization and latency are minimized by employing multiplier-less operation through multi-bit recoding technique based on CSD and radix-2r arithmetic. Time domain input-output waveforms are also observed through hardware co-simulation with system generator for DSP on target Xilinx Virtex-7 FPGA.

This paper is organised as follows: Design steps for digital fractional order differentiator are discussed along with the review of lattice wave digital filter and the applied optimization algorithm in Section 2. Section 3 is dedicated for FPGA implementation of the designed LWDF based FOD through system generator for DSP with emphasis on reducing resourse utilization by digit recoding techniques for efficient implementation of single constant multiplication. Conclusion is presented in Section 4.

Section snippets

Fractional order differentiator design

Design phase of fractional order digital differentiator requires the following four steps.

  • 1.

    Frequency response of the ideal FOD is defined.

  • 2.

    Frequency response of the actual FOD is defined by choosing appropriate system form such as FIR or IIR

  • 3.

    Formulate an optimization problem in which the objective is to minimize the error objective function.

  • 4.

    Select and apply a suitable optimization algorithm to obtain optimal frequency response of the actual system in terms of filter coefficients.

The frequency

FPGA implementation

The generic structure of the 5th order LWDF is shown in Fig. 7. Each two port adaptor type and hence its configuration is determined by the γ coefficient. As an example, coefficients are taken from Table 2 for half order fractional order digital differentiator. The architecture for 5th order LWDF approximating the half order FOD is shown in Fig. 8. The basic units of LWDF architecture are constant coefficient multipliers, adders and delay elements. Multipliers consume the maximum logic

Conclusion

The design procedure of fractional order digital differentiator based on lattice wave realization has been described in the first part of the paper. LWDF is preferred because its implementation requires minimum multipliers. Ant Lion Optimization algorithm is used to compute the optimal coefficients of the LWDF based FOD. The proposed 3rd and 5th order LWDF design for fractional differential operator of order r = 0.25 and r = 0.5 produced better results when compared with the recent existing

References (50)

  • S. Mirjalili

    The ant lion optimizer

    Adv. Eng. Software

    (2015)
  • C. Nayak et al.

    Optimal ssa-based wideband digital differentiator design for cardiac qrs complex detection application

    Int. J. Numer. Modell.

    (2018)
  • K.K. Singh et al.

    A novel approach for enhancement of geometric and contrast resolution properties of low contrast images

    IEEE/CAA J. Automat. Sin.

    (2018)
  • A.S. Elwakil

    Fractional-order circuits and systems: an emerging interdisciplinary research area

    IEEE Circuits Syst. Mag.

    (2010)
  • Manjeet Kumar et al.

    Fractional order digital differentiator design based on power function and least squares

    Int. J. Electron.

    (2016)
  • Qi Yang et al.

    Fractional calculus in image processing: a review

    Fractional Calc. Appl. Anal.

    (2016)
  • A. Oustaloup et al.

    Frequency-band complex noninteger differentiator: characterization and synthesis

    IEEE Trans. Circuits Syst. I: Fund. Theor. Appl.

    (2000)
  • M. Gupta et al.

    Design and implementation of fractional-order microwave differentiator

    IET Microw., Antennas Propag.

    (2018)
  • M. Gupta et al.

    New improved fractional order differentiator models based on optimized digital differentiators

    Sci. World J.

    (2014)
  • S. Mahata et al.

    Optimal design of fractional-order digital differentiator using flower pollination algorithm

    J. Circuits Syst. Comput.

    (2017)
  • H. Sheng et al.

    Fractional Processes and Fractional-Order Signal Processing, Signals and Communication Technology

    (2012)
  • Y.Q. Chen et al.

    Discretization schemes for fractional-order differentiators and integrators

    IEEE Trans. Circuits Syst. I: Fund. Theor. Appl.

    (2002)
  • Y. Chen et al.

    Continued fraction expansion approaches to discretizing fractional order derivatives:an expository review

    Nonlinear Dynam.

    (2004)
  • J.A. Tenreiro Machado

    Analysis and design of fractional-order digital control systems

    Syst. Anal. Model Simulat

    (1997)
  • M.A. Al-Alaoui

    Novel digital integrator and differentiator

    Electron. Lett.

    (1993)
  • Cited by (12)

    • Comparative study of nature-inspired algorithms to design (1+α) and (2+α)-order filters using a frequency-domain approach

      2020, Swarm and Evolutionary Computation
      Citation Excerpt :

      Fractional order differ-integrators were implemented using Particle Swarm Optimization (PSO) technique in Ref. [25]. Ant Lion Optimization (ALO) algorithm was used to determine the optimal coefficients of the lattice wave digital filters for the implementation of DFOD in Ref. [26]. The use of PSO for the indirect discretization of fractional-order differ-integrators was demonstrated in Ref. [27].

    View all citing articles on Scopus
    View full text