Skip to content

Basic Finite State Machine with Datapath (FSMD) example to calculate the Fibonacci series up to the 12th index.

License

Notifications You must be signed in to change notification settings

ihabadly/FSMD-Fibonacci

Repository files navigation

FSMD-Fibonacci

Basic Finite State Machine with Datapath (FSMD) example to calculate the Fibonacci series up to the 12th index.

Install

These examples use ModelSim® and Quartus® Prime from Intel FPGA, GIT, Visual Studio Code, make sure they are installed locally on your computer before proceeding.

Usage

  1. Grab a copy of this repository to your computer's local folder (i.e. C:\projects):

    $ cd projects
    $ git clone https://github.com/ihabadly/fsmd-fibonacci.git
  2. Use Visual Studio Code (VSC) to edit and view the design files:

    $ cd fsmd-fibonacci
    $ code .

    Click on the fibo_toplevel.vhd file in the left pane to view its contents.

  3. From the VSC View menu, choose Terminal, in the VCS Terminal, create a "work" library:

    $ vlib work
  4. Compile all the design units:

    $ vcom *.vhd
  5. Simulate your design. For example, if i = 12, then fib = 233:

    $ vsim work.fibo_toplevel_tb

About

Basic Finite State Machine with Datapath (FSMD) example to calculate the Fibonacci series up to the 12th index.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages