From 53bd19f1f6df935d1c8926290ee99f1f05cb46aa Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sun, 7 Apr 2019 02:09:25 +0100 Subject: [PATCH] make data regular for test in bug #59 --- src/add/test_buf_pipe.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/add/test_buf_pipe.py b/src/add/test_buf_pipe.py index 85e1cd48..ae035054 100644 --- a/src/add/test_buf_pipe.py +++ b/src/add/test_buf_pipe.py @@ -28,7 +28,7 @@ from singlepipe import UnbufferedPipeline2 from random import randint, seed -#seed(0) +seed(4) def check_o_n_valid(dut, val): @@ -136,6 +136,7 @@ class Test3: send = True else: send = randint(0, send_range) != 0 + send = True o_p_ready = yield self.dut.p.o_ready if not o_p_ready: yield @@ -637,8 +638,8 @@ class ExampleBufDelayedPipe(BufferedPipeline): def data_chain1(): data = [] for i in range(num_tests): - #data.append(1<<((i*2)%15)) - data.append(randint(0, 1<<16-2)) + data.append(1<<((i*3)%15)) + #data.append(randint(0, 1<<16-2)) print (hex(data[-1])) return data -- 2.30.2