From d7e90a70863d91a1879cd4aa556aa455a76ab8f9 Mon Sep 17 00:00:00 2001 From: cturek Date: Wed, 20 Jul 2022 02:04:20 +0000 Subject: [PATCH] divsqrt working for floating point --- pipelined/srt/srt.sv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pipelined/srt/srt.sv b/pipelined/srt/srt.sv index ed55ddd8..27fac324 100644 --- a/pipelined/srt/srt.sv +++ b/pipelined/srt/srt.sv @@ -311,7 +311,7 @@ module creg(input logic clk, ); logic [`DIVLEN+3:0] CMux; - mux2 #(`DIVLEN+4) Cmux({1'b1, C[`DIVLEN+3:1]}, {4'b1111, Sqrt, {(`DIVLEN-1){1'b0}}}, Start, CMux); + mux2 #(`DIVLEN+4) Cmux({1'b1, C[`DIVLEN+3:1]}, {4'b11111, Sqrt, {(`DIVLEN-1){1'b0}}}, Start, CMux); flop #(`DIVLEN+4) cflop(clk, CMux, C); endmodule