From: Luke Kenneth Casson Leighton Date: Mon, 2 Jul 2018 08:21:37 +0000 (+0100) Subject: comments X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c5fd98217435250775eb10d26dcc7f883414cc77;p=pinmux.git comments --- diff --git a/src/test_bsv/tests/test_pinmux.py b/src/test_bsv/tests/test_pinmux.py index c9ab9a4..851191b 100644 --- a/src/test_bsv/tests/test_pinmux.py +++ b/src/test_bsv/tests/test_pinmux.py @@ -18,12 +18,10 @@ def pinmux_basic_test(dut): dut.EN_mux_lines_cell0_mux = 1 dut.EN_mux_lines_cell1_mux = 1 dut.EN_mux_lines_cell2_mux = 1 - yield Timer(2) - dut.peripheral_side_uart_tx_in = 1 - dut.peripheral_side_gpioa_a0_outen_in = 1 yield Timer(2) + # GPIO dut.peripheral_side_gpioa_a2_out_in = 0 dut.peripheral_side_gpioa_a2_outen_in = 1 @@ -71,10 +69,11 @@ def pinmux_basic_test(dut): @cocotb.test() def pinmux_randomised_test(dut): """Test for adding 2 random numbers multiple times""" - yield Timer(2) return + yield Timer(2) + for i in range(10): A = random.randint(0, 15) B = random.randint(0, 15)