Understanding CIC Compensation Filters



Similar documents
Using Pre-Emphasis and Equalization with Stratix GX

White Paper Understanding Metastability in FPGAs

FPGAs for High-Performance DSP Applications

Video and Image Processing Suite

Binary Numbering Systems

73M2901CE Programming the Imprecise Call Progress Monitor Filter

Experimental validation of loudspeaker equalization inside car cockpits

White Paper Utilizing Leveling Techniques in DDR3 SDRAM Memory Interfaces

White Paper Military Productivity Factors in Large FPGA Designs

Engineering Change Order (ECO) Support in Programmable Logic Design

Transition Bandwidth Analysis of Infinite Impulse Response Filters

LMS is a simple but powerful algorithm and can be implemented to take advantage of the Lattice FPGA architecture.

White Paper FPGA Performance Benchmarking Methodology

Enhancing High-Speed Telecommunications Networks with FEC

USB 3.0 CDR Model White Paper Revision 0.5

ECE 435 INTRODUCTION TO THE MICROWAVE NETWORK ANALYZER

Using Altera MAX Series as Microcontroller I/O Expanders

Current Probes, More Useful Than You Think

Design of Efficient Digital Interpolation Filters for Integer Upsampling. Daniel B. Turek

Wireless Communication and RF System Design Using MATLAB and Simulink Giorgia Zucchelli Technical Marketing RF & Mixed-Signal

Designing the NEWCARD Connector Interface to Extend PCI Express Serial Architecture to the PC Card Modular Form Factor

MAX II ISP Update with I/O Control & Register Data Retention

Achieving New Levels of Channel Density in Downstream Cable Transmitter Systems: RF DACs Deliver Smaller Size and Lower Power Consumption

White Paper Using the Intel Flash Memory-Based EPC4, EPC8 & EPC16 Devices

In-System Programmability

TCOM 370 NOTES 99-4 BANDWIDTH, FREQUENCY RESPONSE, AND CAPACITY OF COMMUNICATION LINKS

Frequency Response of Filters

Taking the Mystery out of the Infamous Formula, "SNR = 6.02N dB," and Why You Should Care. by Walt Kester

Synchronization of sampling in distributed signal processing systems

For Quartus II Software. This Quick Start Guide will show you. how to set up a Quartus. enter timing requirements, and

Dithering in Analog-to-digital Conversion

Sampling Theorem Notes. Recall: That a time sampled signal is like taking a snap shot or picture of signal periodically.

December 2002, ver. 1.0 Application Note 285. This document describes the Excalibur web server demonstration design and includes the following topics:

Agilent Creating Multi-tone Signals With the N7509A Waveform Generation Toolbox. Application Note

Tool Flow for Design of Digital IF for Wireless Systems

FUNDAMENTALS OF MODERN SPECTRAL ANALYSIS. Matthew T. Hunter, Ph.D.

Analysis of Filter Coefficient Precision on LMS Algorithm Performance for G.165/G.168 Echo Cancellation

Design of FIR Filters

Simulation of Frequency Response Masking Approach for FIR Filter design

Reconfigurable Low Area Complexity Filter Bank Architecture for Software Defined Radio

6 Output With 1 kω in Series Between the Output and Analyzer Output With RC Low-Pass Filter (1 kω and 4.7 nf) in Series Between the Output

Department of Electrical and Computer Engineering Ben-Gurion University of the Negev. LAB 1 - Introduction to USRP

Digital Signal Controller Based Automatic Transfer Switch

Application Note Noise Frequently Asked Questions

Figure 1. Core Voltage Reduction Due to Process Scaling

AN1991. Audio decibel level detector with meter driver

Impedance 50 (75 connectors via adapters)

Audio Tone Control Using The TLC074 Operational Amplifier

Filter Comparison. Match #1: Analog vs. Digital Filters

Non-Data Aided Carrier Offset Compensation for SDR Implementation

AND9035/D. BELASIGNA 250 and 300 for Low-Bandwidth Applications APPLICATION NOTE

Loop Bandwidth and Clock Data Recovery (CDR) in Oscilloscope Measurements. Application Note

AN48. Application Note DESIGNNOTESFORA2-POLEFILTERWITH DIFFERENTIAL INPUT. by Steven Green. 1. Introduction AIN- AIN+ C2

How to Design 10 khz filter. (Using Butterworth filter design) Application notes. By Vadim Kim

RF Measurements Using a Modular Digitizer

Implementation of Digital Signal Processing: Some Background on GFSK Modulation

Electronic Communications Committee (ECC) within the European Conference of Postal and Telecommunications Administrations (CEPT)

ADVANCED APPLICATIONS OF ELECTRICAL ENGINEERING

MEASUREMENT UNCERTAINTY IN VECTOR NETWORK ANALYZER

Using the Texas Instruments Filter Design Database

Sampling Theory For Digital Audio By Dan Lavry, Lavry Engineering, Inc.

Dynatel Advanced Modular System 965AMS 30-Megahertz Spectrum Analyzer

Composite Video Separation Techniques

Introduction to Receivers

Application Note Receiving HF Signals with a USRP Device Ettus Research

ANALYZER BASICS WHAT IS AN FFT SPECTRUM ANALYZER? 2-1

Designing Gain and Offset in Thirty Seconds

CLOCK AND SYNCHRONIZATION IN SYSTEM 6000

Spike-Based Sensing and Processing: What are spikes good for? John G. Harris Electrical and Computer Engineering Dept

White Paper Increase Flexibility in Layer 2 Switches by Integrating Ethernet ASSP Functions Into FPGAs

RECOMMENDATION ITU-R SM Measuring sideband emissions of T-DAB and DVB-T transmitters for monitoring purposes

Introduction to IQ-demodulation of RF-data

White Paper Streaming Multichannel Uncompressed Video in the Broadcast Environment

Clock Jitter Definitions and Measurement Methods

MorphIO: An I/O Reconfiguration Solution for Altera Devices

Propagation Channel Emulator ECP_V3

MSB MODULATION DOUBLES CABLE TV CAPACITY Harold R. Walker and Bohdan Stryzak Pegasus Data Systems ( 5/12/06) pegasusdat@aol.com

SECTION 6 DIGITAL FILTERS

Parametric characterization and Channel models for worst-case MMF channels

AN3998 Application note

By choosing to view this document, you agree to all provisions of the copyright laws protecting it.

Voice Communication Package v7.0 of front-end voice processing software technologies General description and technical specification

A Microphone Array for Hearing Aids

GSM/EDGE Output RF Spectrum on the V93000 Joe Kelly and Max Seminario, Verigy

DDS. 16-bit Direct Digital Synthesizer / Periodic waveform generator Rev Key Design Features. Block Diagram. Generic Parameters.

T = 1 f. Phase. Measure of relative position in time within a single period of a signal For a periodic signal f(t), phase is fractional part t p

Harmonics and Noise in Photovoltaic (PV) Inverter and the Mitigation Strategies

Application Report SLOA024B

Spectrum analyzer with USRP, GNU Radio and MATLAB

Simple SDR Receiver. Looking for some hardware to learn about SDR? This project may be just what you need to explore this hot topic!

White Paper 40-nm FPGAs and the Defense Electronic Design Organization

An Introduction to Digital Filters

Time series analysis Matlab tutorial. Joachim Gross

USB 3.0* Radio Frequency Interference Impact on 2.4 GHz Wireless Devices

Designing a Linear FIR filter

isim ACTIVE FILTER DESIGNER NEW, VERY CAPABLE, MULTI-STAGE ACTIVE FILTER DESIGN TOOL

Em bedded DSP : I ntroduction to Digital Filters

Timing Errors and Jitter

APPLICATION NOTE BUILDING A QAM MODULATOR USING A GC2011 DIGITAL FILTER CHIP

1995 Mixed-Signal Products SLAA013

Transcription:

Understanding CIC Compensation Filters April 2007, ver. 1.0 Application Note 455 Introduction f The cascaded integrator-comb (CIC) filter is a class of hardware-efficient linear phase finite impulse response (FIR) digital filters. CIC filters achieve sampling rate decrease (decimation) and sampling rate increase (interpolation) without using multipliers. Altera s CIC Compiler MegaCore function implements various CIC filters based on Hogenauer s method. CIC filters were first proposed by Eugene Hogenauer in 1981, For more information about CIC filters, refer to Eugene B. Hogenauer, An economical class of digital filters for decimation and interpolation, IEEE Transactions on Acoustics, Speech and Signal Processing, pp. 155-162, April 1981. A CIC filter consists of an equal number of stages of ideal integrator filters and comb filters. Its frequency response may be tuned by selecting the appropriate number of cascaded integrator and comb filter pairs. The highly symmetric structure of a CIC filter allows efficient implementation in hardware. However, the disadvantage of a CIC filter is that its pass band is not flat, which is undesirable in many applications. Fortunately, this problem can be alleviated by a compensation filter. This application note presents theory and methods for designing CIC compensating filters for sample rate conversion systems. The MATLAB Signal Processing Toolbox is used to design the coefficients of the compensating FIR filters. This application note also describes how to choose parameters for designing a compensation filter and then implements an example decimation system using the Altera CIC Compiler MegaCore function and the FIR Compiler MegaCore function. The following topics are discussed in this document: Prerequisites on page 2 CIC Filter Structure on page 2 CIC Compensation Filter Design on page 4 Data Rate Down Conversion Example on page 11 Conclusion on page 17 Altera Corporation 1 AN-455-1.0

Understanding CIC Compensation Filters Prerequisites This document targets digital signal processing (DSP) systems engineers who must design CIC compensation filters for rate conversion systems. A basic knowledge of DSP and digital filter design will help you understand the trade-off between various CIC compensation filter design methods. In addition, to understand and duplicate the examples and figures used in this application note, you should have the following: Some experience with MATLAB and SIMULINK Some knowledge of Altera DSP Solutions, including DSP Builder 1 The design example used in this application note can be found at: www.altera.com/support/examples/dsp-builder/ exm-digital-down-conv-cic-fir.html CIC Filter Structure The basic elements of a CIC filter are integrator filters and comb filters, as shown in Figure 1. Figure 1. Block Diagram of Three-Stage CIC Decimation and Interpolation Filters 2 Altera Corporation

CIC Filter Structure An integrator filter is a single pole accumulator with a transfer function H I (z) (Equation 1): (1) H I ( z) = --------------- 1 1 z 1 A comb filter is a differentiator with a transfer function H C (z) (Equation 2): (2) H c ( z) = 1 z M In this equation, M is the differential delay, and is usually limited to 1 or 2. In a CIC filter, the integrators operate at high sampling frequency (f S ), and the comb filters operate at low frequency (f S /R). Using the Noble identities, the equivalent frequency response of their cascade can be calculated (Figure 2). Figure 2. Block Diagram of the Equivalent Frequency Response of an N-Stage CIC Filter Equation 3 shows the total response of a CIC filter at high frequency (f S ): (3) RM 1 N N R Hz ( ) = H I ( z)hc ( z ) = z k k = 0 N In this equation, N is the number of integrator-comb filter pairs, and R is the rate change factor. Equation 3 implies that the equivalent time domain impulse response of a CIC filter can be viewed as a cascade of N rectangular pulses. Each rectangular pulse has RM taps. Altera Corporation 3

Understanding CIC Compensation Filters Equation 4 shows the magnitude response of an N-stage CIC filter at high frequency (f S ): (4) Hf () = ---------------------- sin( πmf) N sin πf ---- R Figure 3 shows an example of a CIC filter magnitude response: Figure 3. Magnitude Response of a CIC Filter with N = 9, R = 8, and M = 1 f For more information about CIC filters, refer to Matthew Donadio, Cascaded Integrator-Comb (CIC) Filter Introduction, available at www.dspguru.com/info/tutor/cic.htm. CIC Compensation Filter Design Figure 3 shows that when the number of stages is large, the CIC filter frequency response does not have a wide, flat pass band. To overcome the magnitude droop, a FIR filter that has a magnitude response that is the inverse of the CIC filter can be applied to achieve frequency response correction. Such filters are called compensation filters. For data rate down conversion, the compensation filter follows the CIC filter. For up sampling systems, the compensation FIR filter pre-conditions the data and is followed by a CIC filter. In other words, the compensation filter always operates at the lower rate in a rate conversion 4 Altera Corporation

CIC Compensation Filter Design design. One benefit of running the compensation filter at the low rate is to achieve a more efficient hardware solution, that is, more time sharing in the compensation FIR filter. Equation 4 gives the magnitude response of a CIC filter. To achieve a flat pass band, the compensation FIR filter should have a magnitude response that is the inverse of Equation 4, as shown in Equation 5: (5) sin( πf R) Gf () = MR ---------------------------- N πmf sin( πmf) ---------------------- N = sinc 1 ( Mf) N sin( πmf) When R is large, the compensation filter response can be approximated by the inverse sinc function, so the compensation filter is sometimes referred to as the inverse sinc filter. In some rate change systems, compensation filters are also multirate filters. They can implement additional decimation or interpolation as necessary, but usually by a factor of 2 or less. Generating Compensation Filter Coefficients Using MATLAB Any filter design tool that generates filter coefficients based on the specified frequency response can be used to design a CIC compensation filter. In this application note, the MATLAB Signal Processing Toolbox function fir2 is used to generate the coefficients for CIC compensation filters. The fir2 function designs FIR filters with an arbitrary frequency response based on the frequency sampling method. The generated filter coefficients are real and symmetric. You can specify a digital FIR filter order L with the frequency response specified by vectors F (frequency) and A (magnitude response on break points F). The fir2 function returns an (L+1) vector of filter coefficients. 1 The MATLAB script provided in this application note is automatically generated by the Altera CIC Compiler MegaCore function, version 7.1. f f For more information about the frequency sampling method, refer to L.R. Rabiner, B. Gold, and C.A. McGonegal, An approach to the approximation problem for nonrecursive digital filters, IEEE Transactions on Audio and Electroacoustics, pp. 83-106, vol. Au-18, No. 2, June 1970. For more information about the fir2 function, refer to the MATLAB Help. Altera Corporation 5

Understanding CIC Compensation Filters Example 1 shows a MATLAB script that generates the CIC compensation filter coefficients: Example 1. Generating the CIC Compensation Filter Coefficients %%%%%% CIC filter parameters %%%%%% R = 4; M = 1; N = 8; B = 18; Fs = 91.392e6; Fc = 4.85e6; %% Decimation factor %% Differential delay %% Number of stages %% Coeffi. Bit-width %% (High) Sampling freq in Hz before decimation %% Pass band edge in Hz %%%%%%% fir2.m parameters %%%%%% L = 110; %% Filter order; must be even Fo = R*Fc/Fs; %% Normalized Cutoff freq; 0<Fo<=0.5/M; % Fo = 0.5/M; %% use Fo=0.5 if you don't care responses are %% outside the pass band %%%%%%% CIC Compensator Design using fir2.m %%%%%% p = 2e3; %% Granularity s = 0.25/p; %% Step size fp = [0:s:Fo]; %% Pass band frequency samples fs = (Fo+s):s:0.5; %% Stop band frequency samples f = [fp fs]*2; %% Normalized frequency samples; 0<=f<=1 Mp = ones(1,length(fp)); %% Pass band response; Mp(1)=1 Mp(2:end) = abs( M*R*sin(pi*fp(2:end)/R)./sin(pi*M*fp(2:end))).^N; Mf = [Mp zeros(1,length(fs))]; f(end) = 1; h = fir2(l,f,mf); %% Filter length L+1 h = h/max(h); %% Floating point coefficients hz = round(h*power(2,b-1)-1); %% Fixed point coefficients Compensation Filter Example Figure 4 shows a simple example of a CIC filter response and its compensation filter response. The blue dotted line is the magnitude response of a CIC filter with rate change factor R = 4, differential delay M = 1, and number of integrator-comb filter pairs N = 4. The response is plotted at low frequency f S /R. The green dashed curve is the single rate compensation filter response plotted over its operating frequency, f S /R. The product of the dotted curve and the dashed curve is the total response of the CIC and compensation filter cascade, represented by the red solid curve. The filter cascade clearly has a reasonably flat response. In this example, a 15-tap FIR compensation filter is designed using fir2. Its 18-bit wide coefficients are = [ 215, 446, 1258, 3213, 7586, 17668, 44268, 131071, 44268, 17668, 7586, 3213, 1258, 446, 215]. The overall response plotted at the high frequency f S is shown in Figure 5 on page 8. 6 Altera Corporation

CIC Compensation Filter Design Figure 4. Compensation Filter Response for a 4-Stage CIC Filter, Plotted Over f S /R Note that the compensation filter operates at low frequency (f S /R). For single rate compensation filters to avoid aliasing, the cutoff frequency (f C ) is, at most, half its output frequency: f C (f S /R)/2. When the cutoff frequency is exactly (f S /R)/2, as the case shown in Figure 4, the compensation filter has an inverse sinc response across its entire bandwidth, thus it is also called a wideband compensation filter (Figure 5). In a multirate compensation filter, a decimation compensation filter with a rate change factor of 2 has input sampling rate f S /R and output sampling rate (f S /R)/2. To avoid aliasing, the compensation filter must have a cutoff frequency that is no more than half of (f S /R)/2, that is, (f S /R)/4. Altera Corporation 7

Understanding CIC Compensation Filters Figure 5. Wideband Compensation Filter Response Over f S for R = 4, N = 4, and M = 1 Note (1) Note to Figure 5 (1) The black diamond marker indicates stop band amplification due to the compensation filter frequency response correction. Choosing Pass Band Edge Narrow transition bandwidth and good stop band attenuation are desirable properties of a narrow band rate conversion system. Unfortunately, a CIC filter alone does not offer these properties. As demonstrated in Figure 4, in addition to lacking a flat pass band, the CIC filter by itself also suffers from the lack of a well-defined transition band. This problem can be alleviated by controlling the compensation filter response. Instead of having the wide band compensation response, as demonstrated in Figure 4 and Figure 5, you can impose constraints on the low pass compensation filter, such as pass band edge and stop band attenuation. For example, you can modify the requirement of the compensation filter example (refer to Compensation Filter Example on page 6). Instead of having wide band compensation, a pass band edge is imposed at a quarter of the normalized low frequency f S /R: f C = (f S /R)/4. The ideal response of the compensation filter is inverse sinc within the pass band, and zero outside the pass band, as shown in Figure 6. 8 Altera Corporation

CIC Compensation Filter Design Figure 6. Ideal Compensation Filter Response with a Cutoff Frequency of (f S /R)/4 Based on the ideal frequency response, the new compensation filter coefficients can be generated using fir2. The responses are plotted in Figure 7. Altera Corporation 9

Understanding CIC Compensation Filters Figure 7. Designed Compensation Filter Response with a Normalized Cutoff Frequency of (f S /R)/4 Note (1) Note to Figure 7 (1) The black diamond marker indicates stop band amplification due to the compensation filter frequency response correction. Figures 5 and 7 also demonstrate the impact of choosing pass band width on noise amplification. In these examples, the CIC filter has its first null at (1/M)/R on the high frequency scale f S (that is, the first null occurs at 1/M at low frequency f S /R). As the pass band edge gets closer to the null, the CIC filter attenuates more and the compensation filter needs to provide more correction. This correction causes noise amplification in the stop band. The black diamond markers in Figures 5 and 7 illustrate this point. The total response in the stop band has a spike at images of the cutoff frequency. The closer the pass band edge is to the first null and the more stages there are, the higher the spike is. In the extreme case the wide band compensation case shown in Figure 5 the noise amplification can be significant. Therefore, a careful choice of pass band width is important when designing the CIC filter and compensation filter cascade. 1 A good practice is to choose the pass band edge to be less than a quarter of the first null on the low frequency scale f S /R. 10 Altera Corporation

Data Rate Down Conversion Example Data Rate Down Conversion Example f This section contains instructions for designing a practical decimation filter chain based on the IEEE 802.16d (WiMAX) digital down conversion (DDC) requirement. The WiMAX DDC function has a tight system requirement for frequency responses and is a good example of how to design a multi-rate system and choose filter parameters. For more information about the IEEE standard, refer to IEEE Standard for Local and Metropolitan Area Networks, Part 16: Air Interface for Fixed Broadband Wireless Access Systems, IEEE P802.16-REVd/D5-2004, May 2004. The design uses a decimation-by-8 filter chain. Table 1 lists the key parameters of the system. Table 1. WiMAX DDC Example Total Spectrum Requirement Parameter Input Sampling Frequency Output Sampling Frequency Pass Band Edge Pass Band Ripple Stop Band Attenuation Value 91.392 MHz 11.424 MHz 4.75 MHz < 0.05 db > 90 db Altera Corporation 11

Understanding CIC Compensation Filters The overall filter response follows the WiMAX downlink spectrum mask, as shown in Figure 8. Figure 8. WiMAX Transmit Spectrum Mask Solution 1: Single Stage Decimation In this solution, the decimation-by-8 CIC filter implements the rate change with differential delay M = 1 and number of stages N = 9 (to achieve the stop band attenuation). The compensation filter is a single rate FIR filter operating at 11.424 MHz. Its pass band edge is chosen to be 4.85 MHz, slightly larger than the required pass band edge 4.75 MHz to guarantee good performance for data subcarriers at 4.75 MHz. The filter order, L, is chosen to be 110. The large filter order is necessary to meet the small pass band ripple requirement and the narrow transition bandwidth requirement. Using fir2 and 18-bit width to represent filter coefficients, the designed CIC filter and compensation filter cascade has the response shown in Figure 9. The performance is summarized in Table 2 on page 16. 12 Altera Corporation

Data Rate Down Conversion Example Figure 9. CIC and Compensation Filter Responses with WiMAX Spectrum Mask for Single Stage Decimation Design Note (1) Note to Figure 9 (1) The black diamond markers indicate stop band amplification due to the compensation filter frequency response correction The noise amplification due to compensation filter frequency correction is evident in the above design, as illustrated by the black diamond markers. The overall frequency response appears to comply with the WiMAX spectrum mask. However, a closer look at the pass band reveals that the pass band ripple exceeds the allowed variation of 0.05 db, as shown in Figure 10. Altera Corporation 13

Understanding CIC Compensation Filters Figure 10. Pass Band of Designed Signal Stage Decimation Filter Chain Increasing the compensation filter order L improves the pass band variation slightly, but not enough to meet system requirements. On the other hand, a high compensation filter order is not only impractical, but also causes large noise amplification in the transition band. In this solution setup, when L exceeds 160, the magnitude response around 6.6 MHz (demonstrated by the first black diamond marker in Figure 9) can exceed the WiMAX spectrum mask. As the last column of Table 2 on page 16 demonstrates, in this single decimation stage solution, the normalized pass band edge is 0.42 on the low frequency scale (f S /R), which is too close to the first null. The recommended normalized digital pass band width is 0.25. Solution 2: Multi-Stage Decimation Digital filter design theory states that with all other parameters fixed, the pass band variation is proportional to the normalized transition bandwidth. The normalized transition bandwidth in this example is determined by the WiMAX spectrum mask and the operating frequency of the compensation filter. The single stage decimation architecture was not able to meet the filter design requirement for two reasons: 1) the operating frequency of the compensation filter is too low, causing a wide normalized transition bandwidth, and 2) the normalized cutoff frequency is too close to the first null. 14 Altera Corporation

Data Rate Down Conversion Example The natural solution to these problems is to divide the decimation into multiple stages. In the second solution, a decimation-by-4 CIC filter is followed by a compensation FIR filter that implements additional decimation-by-2. The CIC filter has N = 8 and the differential delay, M, is 1. The compensation filter input has a sample frequency of 22.848 MHz and output signals at 11.424 MHz. The compensation filter, L, has an order of 110, and the pass band edge is still 4.85 MHz. Compared with Solution 1, the normalized transition bandwidth is halved, and the normalized pass band edge is also halved. The performance parameters are summarized in Table 2 on page 16. The response of the filter cascade is shown in Figures 11 and 12. Figure 11. CIC and Compensation Filter Responses with WiMAX Spectrum Mask for Multi-Stage Decimation Design Note (1) Note to Figure 11 (1) The black diamond marker indicates stop band amplification due to the compensation filter frequency response correction The noise amplification in the multi-stage decimation solution is much milder than in the single stage decimation, due to reduced normalized cutoff frequency. The black diamond marker in Figure 11 marks the frequency response spike caused by the image of the compensation filter pass band edge. A closer look of the pass band confirms that the pass band variation requirement in the multi-stage decimation setup has been met. Figure 12 shows the pass band responses of Solution 2. Altera Corporation 15

Understanding CIC Compensation Filters Figure 12. Pass Band Responses of the Multi-Stage Design Table 2 shows the WiMAX DDC filter design performances. Table 2. WiMAX DDC Filter Design Performances Note (1) Cases Filter Order Pass Band Ripple (db) Magnitude at Image of Pass Band Edge (db) Stop Band Attenuation (db) Pass Band Edge @f S /R Solution 1 110 0.14 ( 0.05) 27.3 ( 27) 92 ( 90) 0.42 ( 0.25) Solution 1 160 0.072 ( 0.05) 26.3 ( 27) 91.7 ( 90) 0.42 ( 0.25) Solution 2 110 0.048 ( 0.05) 91.5 ( 90) 91.5 ( 90) 0.2 ( 0.25) Note to Table 2: (1) Values in parentheses are required values for the parameter. 16 Altera Corporation

Conclusion Conclusion Document Revision History This application note presents design considerations for CIC compensation filters in a sample rate conversion system. Although CIC filters can implement decimation and interpolation efficiently in hardware for a wide range of rate change factors, a CIC filter response lacks a flat pass band response and good transition bandwidth. To alleviate these problems, a compensation FIR filter can be designed to provide frequency correction and spectrum shaping, even with an additional rate change of factor 2. This application note demonstrates how to use the MATLAB Signal Processing Toolbox to design a compensation filter using the frequency sampling method fir2. A sample script is given for reference. Detailed examples using WiMAX digital down conversion parameters are shown to illustrate how to choose parameters for the compensation filter and CIC and FIR filter cascade. Table 3 shows the revision history for this application note. Table 3. Document Revision History Date and Document Version Changes Made Summary of Changes April 2007 v1.0 Initial release. 101 Innovation Drive San Jose, CA 95134 www.altera.com Technical Support: www.altera.com/support/ Literature Services: literature@altera.com Copyright 2007 Altera Corporation. All rights reserved. Altera, The Programmable Solutions Company, the stylized Altera logo, specific device designations, and all other words and logos that are identified as trademarks and/or service marks are, unless noted otherwise, the trademarks and service marks of Altera Corporation in the U.S. and other countries. All other product or service names are the property of their respective holders. Altera products are protected under numerous U.S. and foreign patents and pending applications, maskwork rights, and copyrights. Altera warrants performance of its semiconductor products to current specifications in accordance with Altera's standard warranty, but reserves the right to make changes to any products and services at any time without notice. Altera assumes no responsibility or liability arising out of the application or use of any information, product, or service described herein except as expressly agreed to in writing by Altera Corporation. Altera customers are advised to obtain the latest version of device specifications before relying on any published information and before placing orders for products or services. Altera Corporation 17