New Approach to Look-Up-Table Optimization for Memory-Based Realization of FIR Digital Filter

DOI : 10.17577/IJERTV1IS5033

Download Full-Text PDF Cite this Publication

Text Only Version

New Approach to Look-Up-Table Optimization for Memory-Based Realization of FIR Digital Filter

New Approach to Look-Up-Table Optimization for Memory-Based

Realization of FIR Digital Filter

P. sowmithri#, V.prasanth*

#ECE Department pragati Engineering College, surampalem, India.

Abstract Finite-Impulse response (FIR) digital filter is widely used as a basic tool in various signal processing and image processing applications. New approaches to LUT- based-multiplication are suggested to reduce the LUT-size over that of conventional design. Distributed arithmetic (DA)-based computation is popular for its potential for efficient memory-based implementation of finite impulse response (FIR) filter where the filter outputs are computed as inner-product of input-sample vectors and filter-coefficient vector.LUT optimization is the main key factor in our project, in order to reduce power and area. One of the techniques has to be implemented in LUT to get required qualities. That is Modified Odd multiple storage (O.M.S) technique. We have synthesized the DA-based design and LUT-multiplier based design of 4-tap FIR filters.

KeywordsDistributedarithmetic,FIR filter,throughput,memory-based implementation,LUT-multiplier-based approach.

    1. Finite-impulse response (FIR) filters are basic processing elements in applications such as video signal processing and audio signal processing. The order of an FIR filter primarily determines the width of the transition-band, such that the higher the filter order, the sharper is the transition between a pass band and a adjusted stop band. Many applications in digital communication (channel equalization frequency channelization) speech processing (adaptive noise cancellation) seismic signal processing (noise elimination) and several other areas of signal processing require large order

      FIR filters. Since number of multiply accumulate (MAC) operations required for filter outputs increases linearly with the filter order, real-time Implementation of these filters of large orders is a challenging task. Along with the progressive device scaling, semiconductor memory has become cheaper, faster and more power efficient. More over according to the projections of the international technology roadmap for semiconductors embedded memories will have dominating presence in the system- on-chips (SoCs), which may exceed 90%,of the total Soc content. It has also been found that the transistor packing density of memory components are not only higher but also increasing much faster than those of logic components. Apart from that, memory-based computing structures are more regular then the multiply-accumulate structures and offer many other advantages. e.g., greater potential for high-throughput and low-latency implementation,(since memory access time is much shorter than the usual multiplication-time)and are expected to have less dynamic power consumption due to less switching activities for memory read operations compared to the conventional multiplier. Memory-based structures are well-suited for many digital signal processing (DSP) algorithms, which involve multiplication with a fixed set of coefficients. There are two basic variants of memory-based techniques. One of them is based on distributed arithmetic (DA) for inner- product computation and the other is based on the computation of multiplication by look-up-table (LUT). In the LUT-multiplier-based approach, multiplications of input values with a fixed co- efficient are performed by an LUT consisting of all possible pre-computed product value corresponding to all possible values of input multiplicand while in the DA-based approach, an LUT is used to store all

      possible values of inner-products of a fixed N point vector with any possible N point bit-vector. If the inner-products are implemented in a straight- forward way, the memory-size of LUT-multiplier- based implementation increases exponentially with the word-length of input values, while that of the DA-based approach increases exponentially with the inner-product-length. Attempts have been made to reduce the memory-space in DA-based architectures using offset binary coding (OBC) and group distributed technique. A decomposition scheme is used for reducing the memory- size of DA-based implementation of FIR filter. But, it is observed that the reduction of memory-size achieved by such decompositions is accompanied by increase in latency as well as the number of adders and latches.

      II. LUT DESIGN FOR MEMORY BASED MULTIPLICATION

      The basic principle of memory-based multiplication is depicted in Fig. 1. Let A be a fixed coefficient and X be an input word to be multiplied with A.

      Fig: 1. Conventional LUT-based multiplier

      If we assume X to be an unsigned binary number of word-length L, there can be possible values of X, and accordingly, there can be possible values of product C=A.X. Therefore, for the conventional implementation of memory-based multiplication, a memory unit of words is required to be used as look-up-table consisting of pre-computed product values corresponding to all possible values of X. The product-word ,for 1, is stored at the memory location whose address is the Same as the binary value of , such that if L-bit binary value of is used as address for the memory-unit, then the corresponding Product value is read-out from the memory.

      TABLE1

      LUT WORDS AND PRODUCT VALUES FOR INPUT WORD LENGTH L=4

      Although possible values of X correspond to possible Values of C=A.X, recently we have shown that only ( /2 ) Words corresponding to the odd multiples of A may only beStored in the LUT

      .One of the possible product words isZero, while all the rest ( / 2 ) 1 are even multiples of A which could be derived by left-shift operations of one of the odd multiples of A. We illustrate this in Table I for L=4. At eight memory locations, eight odd multiples A× (2i+1) are stored as pi=0. 12,3,.7The even multiples 2A,4A and 8Aare derived by left-shift operations of A . Similarly, 6A and 12A are derived by left-shifting 3A, while 10A and 14A are derived by left-shifting 5A and 7A, respectively. The address X (0000) corresponds to (A.X) =0, which can be obtained by resetting the LUT output. For an input multiplicand of word-size L similarly, only ( / 2 ) odd multiple values need to be stored in the memory-core of the LUT, while the other ( /2 1) non-zero values could be derived by left-shift operations of the stored values. Based on the above, an LUT for the multiplication of an L -bit input with W-bit coefficient is designed by the following strategy:

      • A memory-unit of ( /L) words of (W+L)-bit width is used to store all the odd multiples of A.

      • A barrel-shifter for producing a maximum of (L

1) left shifts is used to derive all the even multiples of A.

  • The L-bit input word is mapped to (L1) -bit LUT-addressby an encoder.

  • The control-bits for the barrel-shifter are derived by a

Control-circuit to perform the necessary shifts of the LUT

Output. Besides, a RESET signal is generated by the same

Control circuit to reset the LUT output when X=0.

  1. Proposed LUT-Based Multiplier for 4-Bit Input

    The proposed LUT-based multiplier for input word- size L=4is shown in Fig. 2. It consists of a memory- array of eight wordsof (W+4) -bit width and a 3- to-8 line address decoder, alongwith a NOR-cell, a barrel-shifter, a 4-to-3 bit encoder to map the 4-bit input operand to 3-bit LUT-address, and a control circuit for generating the control-word for the barrel-shifter, and the RESET ignal for the NOR- cell.

    The 4-to-3 bit input encoder is shown in Fig. 2(b). It receivesa four-bit input word (x3x2x1x0) and maps that onto the three-bit address word ,according to the logical relations

    The pre-computed values of A×(2i+1) are stored as for I=0,1,2,,7 at 8 consecutive locations of the memory-array as specified in Table I in bit- inverted form.The decoder takes the 3-bit address from the input encoder,and generates 8 word-select signals, 0 I 7}, to select the referenced- word from the memory-array. The output of the memory-array is either AX or its sub-multiple in Bit-inverted form depending on the value of X. From Table I, we find that the LUT output is required to be shifted through a1location to left

    when the input operand is one of the values

    {(0010),(0110),(1010),(1110)}.

    Two left-shifts are required if X is either (0 1 0 0)

    or (1 1 0 0). Only when the input word X= (1000), three shifts are required. For all other possible input operands, no shifts are required. Since the maximum number of left-shifts required on the stored-word is three, a two-stage logarithmic barrel- shifter is adequate to perform the necessary left- shift operations.

    Fig: 2. (a). Proposed LUT design based 4-bit multiplier

    Fig: 2. (b). The 4-to-3 bits input encoder.

    Fig: 2. (c). Control circuit

    Fig: 2. (d). Two-stage logarithmic barrel-shifter for W=4

    Fig: 2. (e). Structure of the NOR-cell

    The number of shifts required to be performed on the output of the LUT and the control-bits S0 and S1 for different values of X are shown Table I. The control circuit [shown in Fig. 2(c)] accordingly generates the control-bits given by

    Fig: 3. Memory-based multiplier using dual-port memory-arrays=(W+4).

    A logarithmic barrel-shifter for W=L=4 is shownin Fig. 2(d). It consists of two stages of 2-to-1 line bit- level multiplexers with inverted output, where each of the two stagesinvolves (W+4) number of 2- input AND-OR-INVERT (AOI) gates .The control- bits and are fed to the AOI gates of stage-1 and stage-2 of the barrel-shifter, respectively. Since each stage of the AOI gates perform inverted multiplexing, after two stages of inverted multiplexing, outputs with desired number of shifts are produced by the barrel-shifter in (the usual) un-inverted form.

    The input X= (0000) corresponds to multiplication by X=0 which results in the product value A.X=0. Therefore, when the input operand word X= (0000), the output of theLUT is required to be reset. The reset function neither is implementedby a NOR-cell consisting of (W+ 4) NOR gates as shown inFig. 2(e)using an active-high RESET. The RESET bit is fed as one of the inputs of all those NOR gates, and the other input lines of (W+4) NOR gates of NOR

    cell are fed with (W+4) bits of LUT output in parallel. When X= (0000) , the control circuit in Fig. 2(c), generates an active-high RESET according to the logic expression:

    When RESET=1, the outputs of all the NOR gates become0, so that the barrel-shifter is fed with (W+4) number of zeros. When RESET=0, the outputs of all the NOR gates becomethe complement of the LUT output-bits. Note that, keeping thisin view, the product values are stored in the LUT in bit-inverted form. Reset function can be implemented by an array of 2-input AND gates in a straight-forward way, but the implementation of reset by the NOR-cell is preferable since the NOR gates have Simpler CMOS implementation compared with the AND gates. Moreover, instead of using a separate NOR-cell, the NOR gates could be integrated with memory-array if the LUT is implemented by a ROM .The NOR cells, therefore, could be eliminated by using a ROM of 9 words, where the 9th word is zero and RESET is used as its word-select signal.

    Multiplication of an 8-bit input with a W-bit fixed coefficientcan be performed through a pair of multiplications using aDual-port memory of 8 words (or two single-port memory units)along with a pair of decoders, encoders, NOR cells and barrel- shifters as shown in Fig. 3. The shift-adder performs left-shift operation of the output of the barrel-shifter corresponding to more significant half of input by four bit-locations, and adds that to the output of the other barrel-shifter.

  2. MEMORY-BASED STRUCTURES FOR FIR FILTER USING LOOK-UP-TABLE MULTIPLIERS

    We derive here the proposed structure for memory- based realization of an N -tap FIR filter, and discuss the design of memory cell to be used as LUT in the structure. The input-output relationship of an N -tap FIR filter in time-domain is given by

    Where h(n), for n=0,1,…,N1, represent the filter

    Coefficients, while x(ni),for i=0,1,. ,N1, represent N recent input samples, and y(n) represents the current output sample. Memory- based multipliers can be implemented for signed as well as unsigned operands. In case of signed operands, the input words and the stored product values need to be in twos complement representation. Since the stored product values require sign-extension in case of twos complement representation during shift-add operations, the LUT-based multiplication could have a simpler implementation when the multiplicands are unsigned numbers. Besides, without loss of generality, we can assume the input samples{x(n)} to be unsigned numbers and the filter coefficients

    {h(n)} to be signed numbers, in general. Keeping this in view, we write above equation alternatively as

    Where

    denotes the absolute value of h(n) and sign(n) = ±1 is the sign-factor, which could be absorbed with the additions of the corresponding term. The above equation, then may be written in a recursive form

    D stands for the delay operator, such that Do(n I)=x(ni1),for I=1,2,,N1.

    1. Memory-Based FIR Filter Using Conventional LUT

      The recursive computation of FIR filter output according to is represented by a transposed form data-flow graph (DFG) shown in Fig. 4.It consists of N multiplication nodes (M) and (N1) add- subtract (AS) nodes.

      Fig: 4.Modified transposed form data flow graph (DFG) of an N-tap FIR filter for LUT-multiplier- based implementation. (a)TheDFG. (b)Function of each multiplication node (M) and add-subtract node (AS) of the DFG.

      The function of these nodesis depicted in Fig. 4(b).Each multiplication node performs the multiplication of an input sample value with the absolute value of a filter coefficient. The AS node adds or subtracts its input from top with or from that of its input from the left when the corresponding filter coefficient is positive or negative, respectively. It may be noted here that each of the multiplication nodes of the DFG performs multiplications of input samples with a fixed positive number. This feature can be utilized to implement the multiplications by an LUT that stores the results of multiplications of all possible input values with the multiplying coefficient of a node as unsigned numbers. The multiplication of an Lbit unsigned input with W -bit magnitude part of fixed filter-weight, to be performed by each of the multiplication-nodes of the DFG, can be implemented conventionally by a dual-port memory unit consisting of ( / 2 ) words of (W+L)- bit width. Each of the (N1) AS nodes of the DFG along with a neighboring delay element can be mapped to an add-subtract (AS) cell.

      A fully pipelined structure for -tap FIR filter for input word length L=8, as shown in Fig. 5, is derived accordingly from the DFG of Fig. 4. It consists of N memory-units for conventional LUT- based multiplication, along with (N1) AS cells and a delay register. During each cycle, all the 8 bits of current input sample x (n) are fed to all the LUT- multipliers in parallel as a pair of 4-bit addresses X1and X2 .The structure of the LUT-multiplier is shown in Fig. 5(b). It consists of a dual-port memory unit of size [16× (W+4)] (consisting of 16 words of (W+4)-bit width) and a shift-add (SA) cell. The SA cell shifts its right-input to left by four

      bit-locations and adds the shifted value with its other input to produe a (W+8)-bit output. The shift operation in the shift-add cells is hardwired with the adders, so that no additional shifters are required.

      The output of the multipliers is fed to the pipeline of AS cells in parallel. Each AS cell performs exactly the same function as that of the AS node of the DFG. It consists of either an adder or a subtractor depending on whether the corresponding filter weight h(n) is positive or negative, respectively.Besides, each of the SA cells consists of a pipeline latch corresponding to the delays in the DFG of Fig. 4. The FIR filter structure of Fig. 5 takes one input sample in each clock cycle, and produces one filter output in each cycle. The first filter output is obtained after a latency of three cycles (1 cycleeach for memory output, the SA cell and the last AS cell). But, the first (N1) outputs are not correct because they do not contain the contributions of all the filter coefficients. The correct output of this structure would thus be available after a latency of (N+2) cycles.

      Fig: 5.(a) Conventional LUT-multiplier-based structure of an N-tap transposed form FIR filter for input-width L=8.

      Fig: 5. (b)Structure of each LUT-multiplier

      Fig: 6. (a). Structure of Nth order FIR filter using proposed LUT-multiplier.

      Fig:6.(b).The dual-port segmented memory core for the Nth order FIR filter.

    2. Memory-Based FIR Filter Using Proposed LUT Design

    The memory-based structure of FIR filter (for 8-bit inputs) using the proposed LUT design is shown in Fig. 6.It differs from that of the conventional memory-based structure of FIR filter of Fig. 5 in two design aspects.

    1. The conventional LUT-multiplier is replaced by proposed, Odd-multiple-storage LUT, so that the multiplication by an L-bit word could be implemented by ( / 2 ) /2 words in the LUT in a dual-port memory, as described in previous.

    2. Since the same pair of address words X1and X2 are used by all the NLUT-multipliers in Fig. 5, only one memory module with N segments could be used instead of N modules. If all the multiplications are implemented by a singlememory module, the hardware complexity of 2(N1) decoder circuits (used in Fig. 5) could be eliminated.

    As shown in Fig. 6, the proposed structure of FIR filter consists of a single memory-module, and an array of N shift-add (SA) cells, (N1) AS cells and

    a delay register. The structure of memory module of Fig. 6(a) is similar to that of Fig. 3. Like the structure of Fig. 3, it consists of a pair of 4-to-3 bit encoders and control circuits and a pair of 3-to-8 line decoders to generate the necessary control signals and word select signals for the dual-port memory core. The dual-port memory core (shown in Fig. 6(b)) consists of [8× (W+4)] ×N array of bit-level memory-elements arranged in 8 rows of [(W+4)] -bit width. Each row of this memory consists of N segments, where each segment is(W+4) -bit wide. Each segment of this dual-port core is of size 8×(W+4), such that the ith memory segment stores the 8 words corresponding to the multiplication of any 4-bit input with the filter weight h(i) for 0 i N1. During each cycle, a pair of 4-bit sub-words X1and X2 are derived from the recent-most input sample x(n) and fed to the pair of 4-to-3 bit encoders and control circuits, which produce two sets of word-select signals (WS1 and WS2), a pair of control signals((s01, s00 )) and( s11, s10 )) two reset signals. All these signals are fed to the dual-port memory-core as shown in Fig. 6. N segments of the memory-core then produce N pairs of corresponding output, those are fed subsequently to the N pairs of barrel-shifters through the 2N NOR cells. The array of N pairs of barrel-shifters thus produce N pairs of output ((hi) . X1, h(i).X2) for 0 i N1. Since the same pair of address words X1 and X2 are used by

    all the N LUT-multipliers in Fig. 5, only one memory module with N segments could be used instead of N independent memory modules.

  3. RESULTS

    Simulation results of 4-tab FIR filter:

    (a). For 4-bit input operand X=(x3x2x1x0).

    (b) For 8-bit input operands.

    RTL Schematic diagram for 4-tab FIR filter:

  4. CONCLUSION

The proposed LUT-multiplier-based design involves half the memory than the DA-based and conventional LUT-based designs at the cost of

~4NW AOI gates and nearly 2NW NAND/NOR gates. It performs less delay time for various memories based computations. By odd-multiple- storage scheme, for address-length 4, the LUT size is reduced to half by using a two-stage logarithmic barrel-shifter and neither number of NOR gates, where W is the word-length of the fixed multiplying coefficients. Three memory-based structures having unit throughput rate are designed further for the implementation of FIR filter. One of the structures is based on DA principle, and the other two are based on LUT- based multiplier using the conventional and the proposed LUT designs. All the structures are found to have the same or nearly the same cycle periods, which depend on the implementation of adders, the word-length and the filter order.

REFERENCES

[1] International TechnologyRoadmap for Semiconductors. [Online].

[2]P.K.Meher,Newlook-up- tableoptimizationsformemory- basedmultiplication,inProc.ISIC,Dec.2009,pp. 663666.

[3] A. K. Sharma, AdvancedSemiconductor M e m o r i e s : Architectures,

DesignsandApplications. Piscataway,NJ:IEEEPress,2003.

[4]K.Meher,NewapproachtoLUTimplementationa ndaccumulation formemory- basedmultiplication,inProc.IEEEISCAS,May2009

.

[5] P.K.Meher,Memory- basedhardwareforresource-constrained digital signalprocessingsystems,inProc.6thInt.Conf.ICI CS,Dec.2007, pp.14.

[6]K.K.Parhi,VLSIDigitalSignalProcesing Systems: Designand

Implementation. New York: Wiley,1999.

Leave a Reply