remove tristate tests
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 4 Jul 2018 11:00:39 +0000 (12:00 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 4 Jul 2018 11:00:39 +0000 (12:00 +0100)
src/test_bsv/tests/test_pinmux.py

index d2488d2cb5d13d0baa9a6178845a433e0ab8b8fc..d710a8a77f143feecb081b91d7ed12edba6f72c7 100644 (file)
@@ -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