GithubHelp home page GithubHelp logo

cvonk / fpgamath Goto Github PK

View Code? Open in Web Editor NEW
5.0 1.0 3.0 69.24 MB

Verilog HDL implementations of adders/subtractor, multiplier, divider and square root. As well as HTML simulations.

License: GNU General Public License v3.0

SystemVerilog 3.77% Verilog 27.94% Tcl 1.90% Batchfile 0.58% CSS 1.57% HTML 27.69% JavaScript 36.54%
fpga math verilog-hdl xilinx althera system-verilog verilog

fpgamath's Introduction

FPGAmath

Building math circuits

GitHub Discussions GitHub tag (latest by date) GitHub

The article Building Math Circuits describes how elementary math operations, such as addition/subtraction, multiplication/division and square root, can be done using logic circuits.

The repository contains HTML simulations used in the article, as well as Verilog HDL implementations of

  • Adder
    • ripple carry
    • look ahead
    • look ahead with 2 levels
  • Subtractor
    • ripple borrow
  • Multiplier
    • array
    • carry save
  • Divider
    • attempt subtraction

Demo

But what good are fast math circuits, if you can’t show them off? We decided to make a test setup to both demonstrate and verify the implementation of the circuits.

In the demo, an Arduino reads the operands from rotary encoders and shows them on 7-segment displays. It sends the operands along with the desired operation to the FPGA. That then returns the result to the Arduino, that shows it on the display.

math_demo_video

Details of the demonstation setup can be found here.

Feedback

We love to hear from you. Please use the article blog or the Github discussions to provide feedback.

fpgamath's People

Contributors

cvonk avatar

Stargazers

 avatar  avatar  avatar  avatar  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.