From 13c863eb5fa3513c13c8389368ab7fdbae49e68f Mon Sep 17 00:00:00 2001 From: tmeissner Date: Thu, 10 Mar 2022 17:05:22 +0100 Subject: [PATCH] Increase number of tests; adjust const. random generation --- tests/tb_aes.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/tb_aes.py b/tests/tb_aes.py index 6566b57..1a97e1e 100644 --- a/tests/tb_aes.py +++ b/tests/tb_aes.py @@ -26,9 +26,9 @@ class constraints(): def c(self): self.data >= 0 and self.data <= 2**128-1 vsc.dist(self.key, [ - vsc.weight(0, 25), - vsc.weight((1,2**128-2), 50), - vsc.weight((2**128-1), 25)]) + vsc.weight(0, 15), + vsc.weight((1,2**128-2), 70), + vsc.weight((2**128-1), 15)]) # Stimuli covergroup @@ -104,7 +104,7 @@ async def test_aes_enc(dut): dut._log.info("Released reset") # Test 10 AES calculations - for i in range(10): + for i in range(20): # Get now random stimuli cr.randomize() _key = cr.key @@ -160,7 +160,7 @@ async def test_aes_dec(dut): dut._log.info("Released reset") # Test 10 AES calculations - for i in range(10): + for i in range(20): # Get now random stimuli cr.randomize() _key = cr.key