summaryrefslogtreecommitdiff
path: root/rtl/gfx/fp_mul.sv
diff options
context:
space:
mode:
authorAlejandro Soto <alejandro@34project.org>2023-10-21 03:21:18 -0600
committerAlejandro Soto <alejandro@34project.org>2023-10-21 03:21:18 -0600
commitd84718bf7955a6bba03aa44938f0f140c1a6390d (patch)
tree58aca8052f775ae5697688c759ef24977db4f6a2 /rtl/gfx/fp_mul.sv
parent1b5eeb9a949272232ff543f684c7be62d31d0d40 (diff)
rtl/gfx: implement non-synthesizable matrix multiplier
Diffstat (limited to 'rtl/gfx/fp_mul.sv')
-rw-r--r--rtl/gfx/fp_mul.sv29
1 files changed, 29 insertions, 0 deletions
diff --git a/rtl/gfx/fp_mul.sv b/rtl/gfx/fp_mul.sv
new file mode 100644
index 0000000..c2f4e2a
--- /dev/null
+++ b/rtl/gfx/fp_mul.sv
@@ -0,0 +1,29 @@
+`include "gfx/gfx_defs.sv"
+
+module fp_mul
+(
+ input logic clk,
+ rst_n,
+
+ input logic start,
+ input fp a,
+ b,
+
+ output logic done,
+ output fp q
+);
+
+ pipelined_flow #(.STAGES(`FP_MUL_STAGES)) stages
+ (
+ .*
+ );
+
+`ifndef VERILATOR
+ ip_fp_mul ip_mul
+ (
+ .areset(0),
+ .*
+ );
+`endif
+
+endmodule