Skip to content

Commit

Permalink
Allow for negative values as operands
Browse files Browse the repository at this point in the history
Internal-tag: [#60210]
Signed-off-by: Ryszard Rozak <[email protected]>
  • Loading branch information
RRozak committed Jun 6, 2024
1 parent 64b8e97 commit 9baad55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions verification/block/exu_alu/testbench.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,8 +368,8 @@ async def body(self):
count = ConfigDB().get(None, "", "TEST_ITERATIONS")

for i in range(count):
a = random.randrange(1, 1 << 32)
b = random.randrange(1, 1 << 32)
a = random.randrange(-(1 << 31), 1 << 31)
b = random.randrange(-(1 << 31), 1 << 31)
op = random.choice(self.ops)

item = AluInputItem(op, a, b)
Expand Down

0 comments on commit 9baad55

Please sign in to comment.