Git Product home page Git Product logo

fwmpy's Introduction

A Multiply Core Generator

To use, run "make" in the sw directory. This will create a file called bldmpy. Running bldmpy with two numbers as arguments will build a multiply core that multiplies two numbers together of the bit-widths given. Hence, bldmpy 12 12 will create a multiply core that multiplies two 12'bit numbers together.

Actually, that's not quite right. It will build two cores--a signed multiply core and an unsigned multiply core. Both will (by default) be placed into the rtl directory. Running make in the rtl directory will apply Verilator to these files. If you then run make mpy_tb_12x12 in the bench/cpp directory, you'll build a test bench that (for a 12x12 multiply) will test all combinations of 12x12. (Change the 12x12 for the actual number you built with, if you'd rather build a test-bench for a different multiply.) Beware, the test bench is exhaustive: you may not wish to run it on a 32x32 multiply, as it might take years.

The repository also contains a third core, slowmpy. This one isn't built by the coregen process above. Instead, it contains a multiplication implementation that is designed to be low logic, and hence trades logic for speed. It will take about N+2 clocks to multiply an N-bit number.

License

This software, and the cores it generates, are licensed under the GPLv3.

Commercial Applications

Should you find the GPLv3 license insufficient for your needs, other licenses can be purchased from Gisselquist Technology, LLC.

fwmpy's People

Contributors

zipcpu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

circuit-killer

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.