Skip to content

Commit

Permalink
techmap: Fix using overwritten results in Kogge-Stone
Browse files Browse the repository at this point in the history
  • Loading branch information
povik committed Mar 27, 2024
1 parent c49d6e7 commit bc087f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion techlibs/common/choices/kogge-stone.v
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ module _80_lcu_kogge_stone (P, G, CI, CO);
g[0] = g[0] | (p[0] & CI);

for (i = 0; i < $clog2(WIDTH); i = i + 1) begin
for (j = 2**i; j < WIDTH; j = j + 1) begin
for (j = WIDTH - 1; j >= 2**i; j = j - 1) begin
g[j] = g[j] | p[j] & g[j - 2**i];
p[j] = p[j] & p[j - 2**i];
end
Expand Down

0 comments on commit bc087f9

Please sign in to comment.