From: Cesar Strauss Date: Thu, 31 Dec 2020 13:08:41 +0000 (-0300) Subject: Use the increment operator X-Git-Tag: 24jan2021_ls180~55 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d5a68fd160cf2374c20398d51e5872348c3774f0;p=soc.git Use the increment operator --- 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)