diff --git a/cme433_lrtestbench-main/src/approx_mult.sv b/cme433_lrtestbench-main/src/approx_mult.sv new file mode 100644 index 0000000000000000000000000000000000000000..81d7ffbc7e190d2784c2ab5d8c201daef511a48c --- /dev/null +++ b/cme433_lrtestbench-main/src/approx_mult.sv @@ -0,0 +1,9 @@ +module exact_mult ( + input logic signed [ 7:0] i_a, + input logic signed [ 7:0] i_b, + output logic signed [15:0] o_z +); + always_comb begin + o_z = i_a * i_b; + end +endmodule : exact_mult diff --git a/cme433_lrtestbench-main/src/design.txt b/cme433_lrtestbench-main/src/design.txt new file mode 100644 index 0000000000000000000000000000000000000000..4d7cf6fe405e6257d3540b2124b900a1ca671681 --- /dev/null +++ b/cme433_lrtestbench-main/src/design.txt @@ -0,0 +1,8 @@ +Design for the booth multiplier a and b + 1. add 0 to the end of b + 2. divide b into 3 groups + 3. calculate the partial products according to the groups + 4. exchange the least 5 column with 1 + 5. add all the partial product together + +