From c022854e93a8478d37dfa3ef66324f1c13009d8a Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Mon, 25 Mar 2019 12:43:33 +0000 Subject: [PATCH] debugging input priority muxer --- src/add/test_prioritymux_pipe.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/add/test_prioritymux_pipe.py b/src/add/test_prioritymux_pipe.py index 93fe18e4..10874f37 100644 --- a/src/add/test_prioritymux_pipe.py +++ b/src/add/test_prioritymux_pipe.py @@ -196,7 +196,7 @@ class InputTest: # yield v yield - yield p.i_valid.eq(0) + yield rs.i_valid.eq(0) ## wait random period of time before queueing another value #for i in range(randint(0, 3)): # yield @@ -216,14 +216,15 @@ class InputTest: # yield n = self.dut.n[0] yield n.i_ready.eq(1) + yield o_n_valid = yield n.o_valid i_n_ready = yield n.i_ready if not o_n_valid or not i_n_ready: continue - mid = yield n.o_data[2] - out_i = yield n.o_data[0] - out_v = yield n.o_data[1] + mid = yield n.o_data.mid + out_i = yield n.o_data.idx + out_v = yield n.o_data.data # see if this output has occurred already, delete it if it has assert out_i in self.do[mid] -- 2.30.2