Git Product home page Git Product logo

dadda-multiplier-using-csa's People

Contributors

georgerennie avatar tharunchitipolu avatar

Stargazers

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

Watchers

 avatar  avatar

dadda-multiplier-using-csa's Issues

Incorrect Results

Hey, it seems like these multipliers are not correct. I don't have the time for debugging them currently but thought you should be aware.

For example when I run dadda_16 in simulation with A = 18432 (0x4800) and B = 1152 (0x0480), I get 17039360 (0x01040000) instead of the expected 21233664 (0x01440000).

For reference I found these examples with a simple SymbiYosys config file of the form below:

[options]
mode bmc
depth 1

[engines]
smtbmc

[script]
read_verilog HA.v
read_verilog csa_dadda.v
read_verilog dadda_8.v
read_verilog dadda_16.v

read_verilog -sv <<EOT
module top(
    input [15:0] A,
    input [15:0] B,
    output wire [31:0] Y
);

dadda_16 dut(.*);
always @* assert(Y == A * B);
endmodule
EOT

prep -top top

[files]
HA.v
csa_dadda.v
dadda_8.v
dadda_16.v

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.