From 20a1851c4274cac4719c3511c87900695e875f95 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Wed, 4 Jul 2018 12:00:39 +0100 Subject: [PATCH] remove tristate tests --- src/test_bsv/tests/test_pinmux.py | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/src/test_bsv/tests/test_pinmux.py b/src/test_bsv/tests/test_pinmux.py index d2488d2..d710a8a 100644 --- a/src/test_bsv/tests/test_pinmux.py +++ b/src/test_bsv/tests/test_pinmux.py @@ -154,13 +154,9 @@ def pinmux_twi_scl(dut): "twi_scl=0/mux=0/out=1 %s iocell_io2 != 0" % str(dut.iocell_side_io2_cell_out)) - # Test for in - # first check for tristate - if str(dut.peripheral_side_twi_scl_in) != "x": - raise TestFailure( - "twi_scl=0/mux=0/out=1 %s twi_scl_in != x" % - str(dut.peripheral_side_twi_scl_in)) + dut._log.info("twi_scl_in %s" % dut.peripheral_side_twi_scl_in) + # Test for in dut.peripheral_side_twi_scl_outen_in = 0 dut.iocell_side_io2_cell_in_in = 0 yield Timer(2) @@ -229,13 +225,9 @@ def pinmux_twi_sda(dut): "twi_sda=1/mux=0/out=1 %s iocell_io1 != 1" % str(dut.iocell_side_io1_cell_out)) - # Test for in - # first check for tristate - if str(dut.peripheral_side_twi_sda_in) != "x": - raise TestFailure( - "twi_sda=0/mux=0/out=1 %s twi_sda_in != x" % - str(dut.peripheral_side_twi_sda_in)) + dut._log.info("twi_sda_in %s" % dut.peripheral_side_twi_sda_in) + # Test for in dut.peripheral_side_twi_sda_outen_in = 0 dut.iocell_side_io1_cell_in_in = 0 yield Timer(2) @@ -250,7 +242,7 @@ def pinmux_twi_sda(dut): if dut.peripheral_side_twi_sda_in != 1: raise TestFailure( - "iocell_io1=0/mux=0/out=0 %s twi_sda != 0" % + "iocell_io1=1/mux=0/out=0 %s twi_sda != 1" % str(dut.peripheral_side_twi_sda_in)) dut.peripheral_side_twi_sda_outen_in = 1 -- 2.30.2