From 0f2df8a9a8baa54c28b63cba431e4f4cd5d89047 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Povi=C5=A1er?= Date: Fri, 24 Jan 2025 12:56:19 +0100 Subject: [PATCH] fixup! macc_v2: Fix language constructs in simlib model --- techlibs/common/simlib.v | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/techlibs/common/simlib.v b/techlibs/common/simlib.v index 103115e26dc..028e4e5a9e4 100644 --- a/techlibs/common/simlib.v +++ b/techlibs/common/simlib.v @@ -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 @@ -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