From d84718bf7955a6bba03aa44938f0f140c1a6390d Mon Sep 17 00:00:00 2001 From: Alejandro Soto Date: Sat, 21 Oct 2023 03:21:18 -0600 Subject: rtl/gfx: implement non-synthesizable matrix multiplier --- rtl/gfx/fp_mul.sv | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 rtl/gfx/fp_mul.sv (limited to 'rtl/gfx/fp_mul.sv') 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 -- cgit v1.2.3