Git Product home page Git Product logo

fft's Introduction

FFT

FFT algorithm implementation on an FPGA for processing 2^N points from the BINGO telescope.

How to simulate it

Initial settings

Add vsim

First, you need to add vsim to your PATH. So, open the terminal and type this command:

sudo nano .bashrc

NOTE: nano it's just a simple terminal text editor.

Now that we are at bashrc file, you just have to include the vsim in the PATH list. For doing these, add the line bellow to the end of the file:

export PATH=/home/$USER/intelFPGA_lite/20.1/modelsim_ase/linuxaloem:$PATH

Write the changes with Ctrl+O and Enter, and then exit with Ctrl+X.

After adding to PATH, update the bashrc file with:

source .bashrc

Giving permission

As we can execute vsim now, we need to give permission to run_vsim.sh do his work. So, to do that, run the command bellow at this repo directory:

chmod +x run_vsim.sh

and that's it. run_vsim.sh can be executed by the python code now. Therefore, let's move on to the next settings.

Build

If this is your first time running this project, you're going to have to build it. Start open the Quartus project at R22SDF/FFT.qpf, build the project with Ctrl+L, this can take several minutes.

After that, goes to Tools -> Run Simulation Tool -> RTL simulation to open the ModelSim and build the simulation for being used in the run_vsim.sh later.

Everything is built and you just have to do that again if you modify some R22SDF files, otherwise, you can test with different input from the python code.

Simulating

The simulation is pretty forwards, after all those settings, you just have to run the python code and test with different inputs.

This is how it looks like:

FFT result

On ModelSim

But if you prefer, you can use ModelSim normally, like this picture below:

ModelSim

Reference

fft's People

Contributors

jefferson-lopes avatar igorpaiva 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.