• No results found

Optimization of Digit-Serial Multiple Constant Multiplication In Fir Filter Design

N/A
N/A
Protected

Academic year: 2022

Share "Optimization of Digit-Serial Multiple Constant Multiplication In Fir Filter Design"

Copied!
9
0
0

Loading.... (view fulltext now)

Full text

(1)

International Journal of Research in Information Technology (IJRIT) International Journal of Research in Information Technology (IJRIT)International Journal of Research in Information Technology (IJRIT) International Journal of Research in Information Technology (IJRIT)

www.ijrit.com www.ijrit.com www.ijrit.com

www.ijrit.com ISSN 2001-5569

Optimization of Digit-Serial Multiple Constant Multiplication In Fir Filter Design

Chandra Sekhar Achari.K1 and Valarmathi.M2

1 M.tech .Vlsi Design, SRM University, Chennai, India EmailId :[email protected]

2Asst.Professor(Sr.G), Department of Electronics and Communication SRM University, Chennai, India EmailId : [email protected]

Abstract—In constant coefficient FIR filters, the coefficients are multiplied with input data repeatedly for filtering operations, this leads to tremendous effort on the development of highlevel synthesis algorithms for efficient realization of the multiplication of a variable by a set of constants using addition, subtraction, and shift operations. These algorithms normally targets the minimization of the number of adders and subtractors, shifts are realized using wires due to the bit-parallel processing of the input data. On the other hand, digit-serial operations offer alternatively low complexity designs since digit serial operators occupy less area and are independent of the data word length. However, shifts are no longer free in terms of hardware and require D flipflops. Moreover each digit serial subtraction, addition and shift operation has different implementation cost at gate level. Hence high level algorithms that optimize the area of digit serial constants multiplications under the shift adds architecture by taking into account the implementation cost of each operation at gate level. Experimental results indicate that high level algorithms obtain better solutions than prominent algorithms designed for the minimization of the number of operations in terms of gate level area and their solutions leads to less complex digit serial multiple constant multiplication designs and the use of shift adds architecture yields significant area reductions when compared to the constant multiplications designed using generic digit serial constant multipliers. The module functionality are described using Verilog HDL and the performance issues like area, power and delay are analysed using tool called CADENCE.

Index Terms—digit-serial arithmetic, finite impulse response (FIR) filters, gate level area optimization, multiple constant multiplications, digit-serial FIR filter, common subexpression elimination algorithm, graph based algorithm.

I. INTRODUCTION

In several computationally intensive Digital Signal Processing (DSP) algorithms, such as Finite Impulse Response (FIR) filters shown in Fig. 1, the same input data is multiplied by a set of constant coefficients, known as Multiple Constant Multiplications (MCM). In addition to its applications in DSP systems, the MCM operation frequently occurs in, compilers, computer arithmetic and cryptography. In any particular case, hardwired dedicated architectures are the best option for maximum performance and minimum power consumption.

Although area, delay, and power efficient multiplier architectures, such as Wallace [3] and modified Booth multipliers [4], have been proposed, the full-flexibility of a multiplier is not necessary for constant multiplications, since constant coefficients are fixed and determined beforehand. Hence, constant multiplications are generally replaced by addition/subtraction and shift operations [5].

In bit-parallel MCM design, shifts can be realized using only wires without representing any hardware cost. Thus, a fundamental optimization problem, known as the MCM problem, is defined as finding the minimum number of addition/subtraction operations that implement the constant multiplications.

(2)

Fig. 1. N tap FIR filter implementation

For the implementation of constant multiplications under the shift-adds architecture, a straightforward method, generally known as the digit-based recoding [6], initially defines the constants in multiplications under binary representation. Then, for each 1 in the representation of the constant, bit position is shifted and adds up the shifted variables to obtain the result. For example, consider the constant multiplications 59x and 89x. Their decompositions in binary are listed as:

59x = (111011)binx = x<<5 + x<<4 + x<<3 +x<<1 + x 89x = (1011001)binx = x<<6 + x<<4 + x<<3 + x

Which requires seven addition operations as shown in Fig. 2(a). However, the digit-based recoding technique does not consider the sharing of common partial products among the constant multiplications that significantly reduces the area and power dissipation of the MCM design. The algorithms aims to maximize the sharing of partial products can be categorized into two clases: Common Subexpression Elimination (CSE) technique [7][9] and Graph Based (GB) technique [10][12]. The CSE algorithm first define the constants under a particular number representation namely, binary, Canonical Signed Digit (CSD) [7], or Minimal Signed Digit (MSD) [7], and then, find the best subexpression, that is most common, among the constant multiplications. The Graph Based algorithms are not restricted to any particular number representation and consider a large number of alternative implementations of a constant multiplication, yielding better result than the CSE algorithms [11][12]. As shown in Fig. 2(b) the exact CSE algorithm obtain a solution with four operations by finding the most common partial products 15x = (1111)binx when constants are defined under binary.

The exact GB algorithm finds the minimum number of operations by sharing the common partial product 15x in both multiplications (Fig. 2(c)). Observe that the partial product 15x = (1111)binx cannot be extracted from the binary representations of both multiplications 59x and 89x in the exact CSE algorithm .

Fig. 2. Shift-adds implementations of 59x and 89x. (a) Without partial prod-uct sharing and with partial product sharing. (b) Exact CSE algorithm. (c) Exact GB algorithm.

In the MCM problem, it is assumed that the input data x is processed in parallel. Although shifts can be realized using only wires in this case, the implementation cost of an addition/ subtraction operation realizing a constant multiplication depends on the bit-width of the input data and the constant [13]. On the other hand, in digit-serial arithmetic, the input data is divided into digit sets, consisting of d bits that are processed one at a time [14]. Thus, the implementation cost of a digit-serial addition/

subtraction operation depends on the digit size d, requiring significantly less hardware when compared to its bit-parallel implementation. However, in this case, shifts require D flip-flops to be implemented due to the serial processing. Hence, the high-level algorithms should consider the sharing of addition/subtraction operations as well as the sharing of shifts with respect to the MCM problem. Moreover, a solution with the minimum number of operations does not always yield a solution with minimum area at gate-level [13]. In order to optimize the gate-level area of the design, the high-level algorithms should also take into account the implementation cost of each addition, subtraction, and shift operation.

The experimental results on a set of instances indicate that the high-level algorithms introduced in this article yield digit-serial MCM designs using minimum area when compared to those obtained by prominent algorithms designed for the

(3)

MCM problem. It is pointed out that the digit-serial realization of the MCM operation leads to alternative low-complexity designs with respect to its bit-parallel realization and a designer can easily find the optimal tradeoff between area and delay in the MCM design by changing the digit size d. The experimental results also show that the design of the digit-serial MCM operation under the shift-adds architecture with the use of high-level algorithms yields significant savings in area when compared to those designed using generic digit-serial constant multipliers [15].

The digit-serial FIR filter designs obtained by CADENCE indicate that the realization of multiplier block of a digit-serial FIR filter under shift add architecture significantly reduces the area of digit-serial FIR filter compared to the digit-serial FIR filter using constant multipliers.

II. BACKGROUND

This section introduces the background information related to the proposed algorithm.

A. Number Representation

The binary representation decomposes a number in a set of additions of power of 2. The number representation using a signed digit system makes use of negative and positive digits, {1, 0, -1 }. The Canonical Signed Digit (CSD) representation is a signed digit number system that has a unique representation [20] for each number and it verifies the following main properties: 1) two nonzero digits are not adjacent; and 2) the number of nonzero digits is minimum. Any n digit number in CSD has at most [(n+1)/2] nonzero digits and, on average, the number of nonzero digits is reduced by 33% when compared to binary. The Minimal Signed Digit (MSD) representation is obtained by the first property of the CSD representation. Thus, a constant may have several representations under MSD, including its CSD representation, but all with a minimum number of nonzero digits.

Consider the constant 59 defined in seven bits. Its binary representation 0111011 includes five nonzero digits. It is represented as 101 001 in CSD (where 1 stants for -1).

B. Digit-serial Arithmetic

In digit-serial arithmetic, the words are divided into d bits and these d bits are considered as digit and these are processed one digit at a time. The integer number d represents the digit-size. This provides a trade-off between area, power consumption area and speed. Special case occur when d=1, bit serial and bit parallel designs are same. The digit serial computation plays a key role when the bit serial implementations cannot meet the delay requirements and the bit parallel designs require excessive hardware. Thus, an optimal tradeoff between area and delay can be explored by changing the digit size d.

The fundamental digit serial operations can be found in [18].The digit serial addition, subtraction, and left shift operations are represented in Fig. 3 with digit size equal to 3, where the bits with indices 2 and 0 denote the most significant and least significant bits, respectively. From Fig. 3(a) it is noticed that a digit serial addition operation, in general requires d full adders (FAs) and 1 D flipflop.

Fig. 3. The digit-serial operations when d is 3: (a) sybtraction operation; (b) addition operation; (c) left shift by 2 times; (d) left shift by 4 times.

The subtraction operation (Fig. 3(b)) is implemented using 2’s complement, requiring the initialization of the D flipflop with 1 and additional d inverter gates with respect to the digit serial addition operation. In a digit serial left shift operation (Fig.

3(c,d)), the number of required D flipflops is equal to the shift amount and it is realized in d horizontal layers.

C. Digit-serial Multiple Constant Multiplication

The digit-serial realization of multiple constant multiplications under the shift-adds architecture is illustrated in Fig. 4

(4)

digit-serial implementation of 59x and 89x obtained by the exact GB algorithm given in Fig. 2(c) with digit size equal to 2. As can be easily observed, the network includes 1 digit-serial addition, 2 digit-serial subtractions, and 5 D flipflops for all the left shift operations. In this network, at each clock cycle, two bits of input data x is applied to the network and two bits of the constant multiplications output is computed at the output of digit-serial addition/ subtraction operation. While sharing of addition/ subtraction operation reduces the complexity of the digit-serial MCM design (since each addition and subtraction operation requires a digit-serial operation), the sharing of shift operations for a constant multiplication also reduces the number of D flip-flops and, consequently, the area of the digit-serial MCM design[16][19].

Fig. 4. The digit-serial design of shift-adds implementation of 59x and 89x given in Fig. 2(c).

Observe from Fig. 4 that two D flip-flops cascaded serially to generate the left shift of 15x by two times can also generate the left shift of 15x by one time without adding any hardware cost. As can be observed from Fig. 3, the implementation costs of digit-serial addition, subtraction, and left shift operations are different at gate-level. Thus, to optimize the area of a digit-serial MCM operation, one has to maximize the sharing of addition/ subtraction and shift operations considering the implementation cost of each operation.

Fig. 5. RTL view for the implementation of 59x and 89x (d=2)given in Fig. 4.

Fig. 6. Layout for digit-serial MCM (d=2) as given in Fig. 4.

(5)

Fig. 7. RTL view for digit-serial MCM (d=3)

Fig. 5 and Fig. 6 represents the RTL view and layout for the digit-serial MCM for the implementation of 59x and 89x for digit size d=2 respectively. Fig. 7 and Fig. 8 represents the RTL view and layout for digit size d=3 these are obtained using Cadence.

Fig. 8. Layout for digit-serial MCM (d=3).

D. Digit-serial FIR filter

The realization of Digit-serial FIR filter using Multiple Constant Multiplication is illustrated in Fig. 9 the multiplier block is replaced by Multiple Constant Multiplication (MCM) block.

Fig. 9. The digit-serial FIR filter: (a) without MCM block; (b) with MCM block.

(6)

Fig. 10. RTL view for digit-serial FIR filter (6 tap) using MCM (d=2)

Initially multiplier block is implemented based on CSE and GB algorithms using digit-serial addition, subtraction, and shift operations and then digit-serial FIR filter is implemented by using multiplier block. Hence these architectures requires less area, power and delay Compared to bit-parallel FIR filter. In practical, there should be a tradeoff between area and delay, it is mainly depends on digit size d.

Fig. 11. Layout for digit-serial FIR filter (6 tap) using MCM (d=2)

E. Related work

In CSE algorithm, the constants are defined using number representation and all possible implementations of constant multiplications are extracted from the representations of constants. Then, the MCM problem is defined as a 0–1 ILP problem and a solution is obtained using a generic 0–1 ILP solver. The model simplification techniques, that significantly reduce the 0–1 ILP problem size and, consequently, the run-time of the 0–1 ILP solver[21][22].

The GB algorithms that search for a solution with the minimum number of operations using breadth-first search and depth-first search. GB algorithms includes two parts, optimal and heuristic. In optimal part, each target constant that can be implemented with a single operation is synthesized. If there exist unimplemented elements left in the target set, then they switch to their heuristic parts where the required intermediate constants are found. It initially chooses a single unimplemented constant with the smallest single coefficient cost and then synthesizes it with a single operation including one or two intermediate constants that have the smallest value in its heuristic part. The approximate algorithm computes all possible intermediate constants that can be synthesized with the current set of implemented constants using a single operation and chooses the one that leads to the largest number of synthesized target constants. If there are more than one possible intermediate constant, it favors the one that requires the minimum number of shifts. Then FIR filter is implemented using CSE and GB algorithms, the experimental results shows that FIR filter using GB algorithm require less area and power compared to FIR filter design using CSE algorithm. For the optimization of gate-level area problem in digit-serial MCM operation, there are only the exact CSE and approximate GB algorithms, which will be described briefly in the following two sections.

III. CSEALGORITHM

The CSE algorithm mainly consists of four main steps. First, all possible implementations of constants are extracted from the nonzero digits of the constants defined under a number representation such as binary, Canonical Signed Digit (CSD), or Minimal Signed Digit (MSD). Then, the constants implementations are represented in terms of a Boolean network. Third, the gate-level area optimization problem is formalized as a 0–1 ILP problem with a cost function to be minimized and a set of constraints to be satisfied. Finally, a set of operations that yields the minimum area solution is obtained using a generic 0–1 ILP solver [1] [2].

IV. GBALGORITHM

The solution obtained in the CSE algorithm is not the global minimum since every possible implementations of a constants are found from its representation. Also, the optimization of gate-level area problem in digit-serial MCM design is an

(7)

Chandra Sekhar Achari.K, IJRIT 568

NP-complete problem due to the NP-completeness of the MCM problem. Thus, naturally, there will be always 0–1 ILP problems generated by the exact CSE algorithm that current 0–1 ILP solvers find difficult to handle. Hence, the GB heuristic algorithms, which obtain a good solution using less computational resources, are indispensable. It find the fewest number of intermediate constants such that all the target and intermediate constants are synthesized using a single operation. However, while selecting an intermediate constant for the implementation of the target that is not yet synthesized constants in each iteration with the available constants. After the set of target and intermediate constants that realizes the MCM operation is found, each constant is synthesized using an A-operation that yields the minimum area in the digit-serial MCM design[1].

V. EXPERIMENTALRESULTS

In this section the gate level results of digit-serial MCM blocks and digit-serial FIR filters are implemented with the Cadence synthesise tool. Table I presents the results of the without partial product sharing, Common Subexpression Elimination algorithm and Graph Based algorithm that is shown in Fig. 2. From the results it is shown that Graph Based algorithm requires less area and less power compared to other two. Hence MCM block is implemented using Graph Based algorithm gives optimal results given in Table II.

Table I: Gate-level results for MCM design using different algorithms Parameter MCM using

without partial product sharing

MCM using CSE algorithm

MCM using GB algorithm area(mm2) 1506.86 1410.3

9

1187.52

power(mW) 0.165 0.0788 0.0487

The gate level results for Multiple Constant Multiplication when d=1, 2, 3 are shown in Table II. The MCM block is designed using shift-adds architecture results indicates that bit serial architectures requires less area and power compared to digit-serial architectures but in bit-serial architectures only 1 bit at a time is processed serially it takes larger times to compute all the bits, where as in digit-serial architectures based on the digit size that many bits processed serially at a time, hence it requires less time to compute all the bits.

Table II: Gate-level results for MCM design using different digit size (d)

Module name area (mm2) power

(mW) Bit-serial

MCM (d=1)

505.61 0.023

Digit-serial MCM(d=2)

818.29 0.045

Digit-serial MCM(d=3)

1064.45 0.108

Table III represents the gate-level results of digit-serial FIR filters. The filters are designed using two architectures: shift-adds and generic constant multipliers, it is easily observed from the Table III, the design of FIR filters under the Shift-adds architecture leads to significant savings in area and power dissipation with respect to the constant multipliers. The area reduction obtained under the shift-adds architecture with respect to constant multiplication architecture reaches upto 30 percentage for bit-serial FIR filter and 16 percentage for digit-serial FIR filter for 6 tap and 15 percentage for digit-serial FIR filter for 12 tap. Also power is reduced to 43.45 percentage, 20.60 percentage and 20.25 percentage respectively.

Table III: Gate-level results for digit-serial FIR filters for different taps Module name area (mm2) power (mW) Generic constant

FIR filter(3 tap)

2897.84 1.0971

Bit-serial FIR filter

(3 tap)

2022.45 0.6204

% reduced 30.20 43.45

(8)

Chandra Sekhar Achari.K, IJRIT 569 Generic constant

FIR filter(6 tap)

3986.79 1.8255

Digit-serial FIR filter(6tap)

3316.25 1.4493

% reduced 16.81 20.60

Generic constant FIR filter(12 tap)

13893.67 2.942

Digit-serial FIR filter(12 tap)

11765.50 2.346

% reduced 15.31 20.25

VI. CONCLUSION

Optimization of digit-serial MCM design at gate-level by considering the implementation costs of digit-serial addition, subtraction, and shift operations. Since there are still instances with which the CSE algorithm cannot handle. The proposed GB algorithm that finds the best partial products in each iteration which yield the optimal gate-level area in digit-serial MCM design.

The experimental results indicate that the complexity of digit-serial MCM designs can be further reduced using the proposed high-level optimization algorithm, and the realization of digit-serial FIR filters under the shift-adds architecture yields significant area and power reduction when compared to the filter designs whose multiplier blocks are implemented using digit-serial constant multipliers. Based on the application of the design digit size has to be changed, for some applications digit size d=1 is enough, and requires very small area and power. In some applications it requires digit size d > 1, hence it requires somewhat more area compared to digit size d=1.

REFERENCES

[1] L. Aksoy, Cristiano Lazzari, Eduardo Costa, Paulo Flores, and Jose Monteiro, “Design of Digit-Serial FIR Filters:Algorithms, Architectures, and a CAD Tool,” IEEE Trans. VLSI systems vol. 21, no.3, March 2013.

[2] L. Aksoy, C. Lazzari, E. Costa, P. Flores, and J. Montero, “Efficient shift-adds design of digit-serial multiple constant multiplications,” in Proc. Great Lakes Symp. VLSI, 2011, pp. 61-66.

[3] C. Wallace, A suggestion for a fast multiplier, IEEE Transactions on Electronic Computers 13 (1) (1964) 14–17 [4] W. Gallagher, E. Swartzlander, High radix booth multipliers using reduced area adder trees, in: Proceedings of Asilomar

Conference on Signals, Systems and Computers, 1994, pp. 545–549.

[5] H. Nguyen, A. Chatterjee, Number-splitting with shift-and-add decomposi-tion for power and hardware optimization in linear DSP synthesis, IEEE Transactions on Very Large Scale Integration Systems 8 (4) (2000) 419–424.

[6] P. Cappello, K. Steiglitz, Some complexity issues in digital signal processing, IEEE Transactions on Acoustics, Speech, and Signal Processing 32 (5) (1984) 1037–1041.

[7] M. Ercegovac, T. Lang, Digital Arithmetic, Morgan Kaufmann, 2003.

[8] R. H Hartley, Subexpression sharing in filters using canonic signed digit multipliers, IEEE Transactions on Circuits and Systems II 43 (10) (1996) 677–688.

[9] I. –C. Park, H, -J. Kang, Digital filter synthesis based on minimal signed digit representation, in: processings of Design Automation Conference, 2001, pp. 468-473.

[10] L. Aksoy, E. Costa, P. Flores, J. Monteiro, Exact and approximate algorithms for the optimization of area and delay in multiple constant multiplications, IEEE Transactions on Computer-Aided Design of Integrated Circuits 27 (6) (2008) 1013–1026.

[11] A. Dempster, M. Macleod, Use of minimum-adder multiplier blocks in FIR digital filters, IEEE Transactions on Circuits and Systems II 42 (9) (1995) 569–577.

[12] Y. Voronenko, M. Puschel,¨ Multiplierless multiple constant multiplication, ACM Transactions on Algorithms 3 (2) (2007).

[13] L. Aksoy, E. Gunes, P. Flores, Search algorithms for the multiple constant multiplications problem: exact and approximate, Journal on Microprocessors and Microsystems 34 (5) (2010) 151–162 .

[14] L. Aksoy, E. Costa, P. Flores, J. Monteiro, Optimization of area and delay at gate-level in multiple constant multiplications, in: Proceedings of EURO-MICRO Conference on Digital System Design: Architectures, Methods and Tools, 2010, pp. 3–10.

[15] R. Hartley, P. Corbett, Digit-serial processing techniques, IEEE Transactions on Circuits and Systems II 37 (6) (1990) 707–719.

(9)

[16] L. Aksoy, C. Lazzari, E. Costa, P. Flores, J. Monteiro, Efficient shift-adds design of digit-serial multiple constant multiplications, in: Proceedings of Great Lakes Symposium on VLSI, 2011, pp. 61–66.

[17] R. Hartley, P. Corbett, Digit-serial processing techniques, IEEE Transactions on Circuits and Systems II 37 (6) (1990) 707–719.

[18] K. Johansson, O. Gustafsson, A. Dempster, L. Wanhammar, Algorithm to reduce the number of shifts and additions in multiplier blocks using serial arithmetic, in: Proceedings of IEEE Mediterranean Electrotechnical Conference, 2004, pp.

197–200.

[19] M. Potkonjak, M. Srivastava, A. Chandrakasan, Multiple constant multiplica-tions: efficient and versatile framework and algorithms for exploring common subexpression elimination, IEEE Transactions on Computer-Aided Design of Integrated Circuits 15 (2) (1996) 151–165.

[20] A. Avizienis, “Signed-digit number representations for fast parallel arithmetic,” IRE Trans. Electron. Comput., vol. 10, no. 3, pp. 389–400, Sep. 1961.

[21] P. Flores, J. Monteiro, and E. Costa, “An exact algorithm for the maximal sharing of partial terms in multiple constant multiplications,” in Proc. Int. Conf. Comput.-Aided Design, Nov. 2005, pp. 13–16.

[22] O. Gustafsson and L. Wanhammar, “ILP modelling of the common subexpression sharing problem,” in Proc. ICECS, 2002, pp. 1171–1174.

Chandra Sekhar Achari.K received his Bachelor’s degree in electronics and communication Engineering from KSRM College of engineering and during the year 2011. Currently pursuing his M.Tech in VLSI Design degree in SRM University, Chennai.

Valarmathi.M received her Bachelor’s degree in electronics and communication Engineering from R.E.C during the year 1998 and M.Tech in VLSI Design degree in Sastra University,Tanjore, during the year 2002. Currently She is working as a Assistant professor in the Dept of Electonics Engineering at SRM University,Chennai.

References

Related documents

The effectiveness trial of our novel RUSF will determine how a ready-to-use, fish-based, supplementary food com- pares with CSB++, Sprinkles, and an unsupplemented diet in terms

DURING the spring of 1982, Special Collections staff packed and moved to storage all the books and manuscripts preserved in Special Collec- tions.. Since that time, while our

International Orality Network, 2012, accessed February 6, 2018, 42, https://orality.net/content/oralities- literacies-chapter-9-communicating-christ-among-oral-cultures/... The

The cut-off values of PSAD, percentage of positive cores, percentage of positive cores from the dominant side, and maximum percentage of cancer extent in each positive core were set

Centers for Disease Control and Prevention; EHR: Electronic health record; EMR: Electronic medical record; GHC: Group health centre; ITS: [Niagara Region] information

MAP: Milk Allergy in Primary Care; CMA: cow’s milk allergy; UK: United Kingdom; US: United States; EAACI: European Academy of Allergy, Asthma and Clinical Immunology; NICE:

This was evidenced by the poor activity of amidogroup substituted derivatives (JJA-D12 and JJA-D13), and the higher efficacy of derivatives with sulfonylation of phe- nolic

Each of the ten obstructions gave rise to a virtual hop which resulted in a knife edge diffraction loss while the overall diffraction loss, according to the Shibuya method is the