From 5d64f04752ccf94cba8b914d520b669914b78a86 Mon Sep 17 00:00:00 2001 From: David Harris Date: Sat, 2 Oct 2021 20:57:54 -0400 Subject: [PATCH] Partial divider cleanup 2 --- wally-pipelined/src/muldiv/intdivrestoring.sv | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/wally-pipelined/src/muldiv/intdivrestoring.sv b/wally-pipelined/src/muldiv/intdivrestoring.sv index 45ffbfb5..894de243 100644 --- a/wally-pipelined/src/muldiv/intdivrestoring.sv +++ b/wally-pipelined/src/muldiv/intdivrestoring.sv @@ -88,13 +88,14 @@ module intdivrestoring ( // busy logic always_ff @(posedge clk) if (reset) begin - BusyE = 0; done = 0; step = 0; + BusyE = 0; done = 0; step = 0; init = 0; end else if (StartDivideE & ~StallM) begin if (div0) done = 1; else begin - BusyE = 1; step = 0; + BusyE = 1; step = 0; init = 1; end end else if (BusyE & ~done) begin // pause one cycle at beginning of signed operations for absolute value + init = 0; step = step + 1; if (step[STEPBITS]) begin step = 0; @@ -105,7 +106,7 @@ module intdivrestoring ( done = 0; BusyE = 0; end - assign init = (step == 0); + //assign init = (step == 0); endmodule // muldiv