From c5fd98217435250775eb10d26dcc7f883414cc77 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Mon, 2 Jul 2018 09:21:37 +0100 Subject: [PATCH] comments --- src/test_bsv/tests/test_pinmux.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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) -- 2.30.2