Giter Site home page Giter Site logo

fpga_first_counter's Introduction

fpga_first_counter

#fpga #tinyfpga

This is my very first Lattice Diamond project The intention is to get familiar with the development IDE with this very simple resetable 32bit counter project.

After installation of the IDE,

  • clone the project via: git clone https://github.com/szokesandor/fpga_first_counter
  • Launch Diamond
  • Open the fpga_first_counter.ldf project file. Target devie is set to LCMXO2-1200HC-5TG144C this one of the Tinyfpga devices especially the MachOX2. No port definition is used yet, only to get familiar with the simulator...
  • Click on the Tools -> Simulation Wizard.
  • Add a project name, e.g. sim.
  • Click next,
  • Answer yes to to popup window (in order to create a folder of the simulator project files).
  • Process Stage is RTL (you cannot choose other option so) press next
  • 'Add an reorder source' dialog: you can safetly press next
  • 'Parse HDL files for simulation' dialog lists the source files, that are parsed, below the list the simulation first_counter_tb file is selected, so press next
  • Please ensure all three option is selected (Run simulator, Add top level signals to waveform display, Run simulation)
  • Click Finish, to run the simulation.
  • Now the modelsim will be launched. For me the Finish Vsim dialog appear finally, So I simply press no

The main process ends here, now you should have a sucessful simulation ended with results on screen. You might need some additional setup to get results correctly infront of you.

  • on the right side there should be a screen with two tabs:
    1. Wave and
    2. testbench_count.v
  • Choose Wave
  • In the menubar choose Simulate --> Runtime options
  • On the left side of the dialog you see default radix, choose Hexadecimal and press Ok
  • Now you can zoom in the Wave display scroll with mouse holding CTRL down, into the beginning of the signals.
  • You will see the signals, also the counter value in hexadecimal

Thats all, folks.

fpga_first_counter's People

Contributors

szokesandor avatar

Watchers

 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.