Skip to content

Commit

Permalink
Explict precision for for loop iterator
Browse files Browse the repository at this point in the history
  • Loading branch information
rejunity committed Mar 16, 2024
1 parent ad95ad9 commit 8b7dc39
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/1_58bit_mul.v
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ module systolic_array (
localparam SLICES_MINUS_1 = SLICES - 1;
localparam W = 1 * SLICES;
localparam H = 5 * SLICES;
localparam ARRAY_SIZE_BITS = 7;//$clog2(W*H);
localparam ARRAY_SIZE_BITS = $clog2(W*H);

reg [H -1:0] arg_left_zero_curr;
reg [H -1:0] arg_left_sign_curr;
Expand All @@ -105,7 +105,8 @@ module systolic_array (
reg signed [16:0] out_queue [W*H-1:0];
reg [ARRAY_SIZE_BITS-1:0] out_queue_counter;

integer n;
//integer n;
reg [7:0] n;
always @(posedge clk) begin
if (reset | restart_inputs | slice_counter == SLICES_MINUS_1)
slice_counter <= 0;
Expand Down

0 comments on commit 8b7dc39

Please sign in to comment.