Example Code

IQ Fractional Resampler (Upsampling and Downsampling)

This IP is a part of LabVIEW FPGA RF Communications Library available on NI Labs.

This example resamples IQ signal at fractional rates between 0.5 and 2.

(0.5 to 1- downsampling; 1 to 2- upsampling)

The details of the IP are as follows:

1. Filter details:

Filter type: Multirate FIR low pass Filter

Passband= 0 to 0.4Fs (Fs= input sampling rate)

Transition band= 0.4 Fs to 0.6Fs

Passband ripple= 0.001 dB

Stopband attenuation= 85 dB

Interpolation factor= 128

2. Resampling rate= (Input sampling rate * Sampling rate conversion factor) <= clock rate/2

3. Maximum clock rate= 50MHz

4. Device utilization summary of the IP:

Number of BUFGMUXs 6 out of 16 37%

Number of External IOBs 371 out of 556 66%

Number of MULT18X18s 54 out of 136 39%

Number of RAMB16s 27 out of 136 19%

Number of SLICEs 4281 out of 13696 31%

Other requirments: Fixed point math library for LabVIEW FPGA

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Contributors