From 118ac980c490291670e12dc16f654a0af72e3311 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Fri, 3 May 2019 00:28:23 +0100 Subject: [PATCH] get prioritymux test working with nose3 --- src/nmutil/test/test_prioritymux_pipe.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/nmutil/test/test_prioritymux_pipe.py b/src/nmutil/test/test_prioritymux_pipe.py index dac0f141..c80a179e 100644 --- a/src/nmutil/test/test_prioritymux_pipe.py +++ b/src/nmutil/test/test_prioritymux_pipe.py @@ -130,7 +130,7 @@ class InputTest: def send(self, mid): for i in range(self.tlen): op2 = self.di[mid][i] - rs = dut.p[mid] + rs = self.dut.p[mid] yield rs.valid_i.eq(1) yield rs.data_i.data.eq(op2) yield rs.data_i.idx.eq(i) @@ -202,8 +202,7 @@ class TestPriorityMuxPipe(PriorityCombMuxInPipe): stage = PassThroughStage(iospecfn) PriorityCombMuxInPipe.__init__(self, stage, p_len=self.num_rows) - -if __name__ == '__main__': +def test1(): dut = TestPriorityMuxPipe() vl = rtlil.convert(dut, ports=dut.ports()) with open("test_inputgroup_multi.il", "w") as f: @@ -216,3 +215,5 @@ if __name__ == '__main__': test.rcv()], vcd_name="test_inputgroup_multi.vcd") +if __name__ == '__main__': + test1() -- 2.30.2