From d5a68fd160cf2374c20398d51e5872348c3774f0 Mon Sep 17 00:00:00 2001 From: Cesar Strauss Date: Thu, 31 Dec 2020 10:08:41 -0300 Subject: [PATCH] Use the increment operator --- src/soc/experiment/test/test_compalu_multi.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/soc/experiment/test/test_compalu_multi.py b/src/soc/experiment/test/test_compalu_multi.py index f7a1e84a..70256cf9 100644 --- a/src/soc/experiment/test/test_compalu_multi.py +++ b/src/soc/experiment/test/test_compalu_multi.py @@ -393,15 +393,15 @@ class OpSim: # fall behind. But, by summing the following counts, the invariant is # preserved. if zero_a and not rdmaskn[0]: - self.zero_a_count = self.zero_a_count + 1 + self.zero_a_count += 1 if imm_ok and not rdmaskn[1]: - self.imm_ok_count = self.imm_ok_count + 1 + self.imm_ok_count += 1 for i in range(len(rdmaskn)): if rdmaskn[i]: - self.rdmaskn_count[i] = self.rdmaskn_count[i] + 1 + self.rdmaskn_count[i] += 1 for i in range(len(wrmask)): if wrmask[i]: - self.wrmask_count[i] = self.wrmask_count[i] + 1 + self.wrmask_count[i] += 1 # check that producers and consumers have the same count # this assures that no data was left unused or was lost # first, check special cases (zero_a and imm_ok) -- 2.30.2