techmap: Fix using overwritten results in Kogge-Stone

This commit is contained in:
Martin Povišer 2024-03-27 18:32:25 +01:00
parent c49d6e7874
commit bc087f91ed
1 changed files with 1 additions and 1 deletions

View File

@ -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