Code Monkey home page Code Monkey logo

fp23fftk's Introduction

-------------------------------------------------------------------------------
--
-- Title       : Readme
-- Design      : fpfftk
-- Author      : Kapitanov
-- Company     : insys.ru
--
-- Description : Floating point FFT/IFFT core used on Xilinx FPGA
--					Supported families: 6/7 series, Ultrascale.
--					Source files: VHDL only!
--
-------------------------------------------------------------------------------

How to check IP Core:

1. Run Matlab/Octave script ( ./math dir): for example test_inverse_fpfftk.m 

You can set some variables:
> NFFT - number of FFT points (from 8 to 256K),
> Asig - signal magnitude (from -2^15 to 2^15-1),
> Fsig - signal frequency,
> F0 - signal phase(starting frequency),
> Fm - mod. frequency for Chirp signal (linear).

I use Chirp signal for testing because it has several advantages. 
You can test all spectrum harmonics when using Chirp signal. 
For sin/cos signal you should make a lot of tests for each harmonics.


2. Create project with C++ source files (I did it in Microsoft VS Community 2015)
3. Build Solution and Run project ( ./cpp dir). 

You can set some variables:

> N_FFT - number of FFT points (from 8 to 256K),
> SCALE - scale factor for float2fix converter (values from 0x0 to 0x3F),
> _Tay - use Taylor algorithm for NFFT > 4K. '1' - use, '0' - don't use.


4. Create HDL project and add source files ( ./src dir) 
5. Run simulation with "fp_test.vhd" file

You can set some variables:

> NFFT - number of FFT points (from 8 to 256K),
> SCALE - scale factor for float2fix converter (values from 0x0 to 0x3F),
> USE_FLY_FFT - '1' - use butterflies in FFT core, '0' - don't use,
> USE_FLY_IFFT - '1' - use butterflies in IFFT core, '0' - don't use,
> USE_SCALE - use Scale/Taylor algorithm for NFFT > 4K. '1' - Scale, '0' - Taylor

6. Run *.m script again and compare results for C++ and RTL model.

fp23fftk's People

Contributors

hukenovs avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.