tharunchitipolu / dadda-multiplier-using-csa Goto Github PK
View Code? Open in Web Editor NEWDadda multiplier(8*8, 16*16, 32*32) in Verilog HDL.
License: Mozilla Public License 2.0
Dadda multiplier(8*8, 16*16, 32*32) in Verilog HDL.
License: Mozilla Public License 2.0
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.