From 64940bc9d603c4dd565ecf24b46851e541f44527 Mon Sep 17 00:00:00 2001
From: NamNguyen <nln157@usask.ca>
Date: Tue, 8 Nov 2022 14:56:56 -0600
Subject: [PATCH] add design text

---
 cme433_lrtestbench-main/src/approx_mult.sv | 9 +++++++++
 cme433_lrtestbench-main/src/design.txt     | 8 ++++++++
 2 files changed, 17 insertions(+)
 create mode 100644 cme433_lrtestbench-main/src/approx_mult.sv
 create mode 100644 cme433_lrtestbench-main/src/design.txt

diff --git a/cme433_lrtestbench-main/src/approx_mult.sv b/cme433_lrtestbench-main/src/approx_mult.sv
new file mode 100644
index 0000000..81d7ffb
--- /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 0000000..4d7cf6f
--- /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
+
+  
-- 
GitLab