Skip to content

Commit

Permalink
fixup! macc_v2: Fix language constructs in simlib model
Browse files Browse the repository at this point in the history
  • Loading branch information
povik committed Jan 24, 2025
1 parent 09caae4 commit 0f2df8a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions techlibs/common/simlib.v
Original file line number Diff line number Diff line change
Expand Up @@ -1235,8 +1235,8 @@ parameter C_SIGNED = 1'bx;
function integer sum_widths1;
input [(16*NPRODUCTS)-1:0] widths;
integer i;
sum_widths1 = 0;
begin
sum_widths1 = 0;
for (i = 0; i < NPRODUCTS; i++) begin
sum_widths1 = sum_widths1 + widths[16*i+:16];
end
Expand All @@ -1246,8 +1246,8 @@ endfunction
function integer sum_widths2;
input [(16*NADDENDS)-1:0] widths;
integer i;
sum_widths2 = 0;
begin
sum_widths2 = 0;
for (i = 0; i < NADDENDS; i++) begin
sum_widths2 = sum_widths2 + widths[16*i+:16];
end
Expand Down

0 comments on commit 0f2df8a

Please sign in to comment.