~ruther/vhdl-spi-2

0eb271fa61730f4ae68992b76cbdd521b7a0cb90 — Rutherther 3 months ago 3808871
tests: fix peripheral interrupt test - wrong check for rx buffer full
1 files changed, 8 insertions(+), 6 deletions(-)

M hdl_spi/tests/test_spi_peripheral.py
M hdl_spi/tests/test_spi_peripheral.py => hdl_spi/tests/test_spi_peripheral.py +8 -6
@@ 25,7 25,7 @@ INTMASK_RX_BUFFER_FULL = 1
INTMASK_TX_BUFFER_EMPTY = 2
INTMASK_LOST_RX_DATA = 4

STATUS_RX_BUFFER_FULL = 0
STATUS_RX_BUFFER_FULL = 1
STATUS_TX_BUFFER_EMPTY = 2
STATUS_BUSY = 8
STATUS_LOST_RX_DATA = 16


@@ 365,6 365,7 @@ def spi_peripheral_tests_runner():

    test_filter = os.getenv("TESTCASE", None)
    gui = True if os.getenv("GUI", "0") == "1" else False
    run = True if os.getenv("RUN", "1") == "1" else False

    proj_path = Path(__file__).resolve().parent.parent
    # equivalent to setting the PYTHONPATH environment variable


@@ 401,11 402,12 @@ def spi_peripheral_tests_runner():
        always=True,
        build_args=build_args + extra_args,
    )
    runner.test(
        test_filter = test_filter,
        hdl_toplevel="spi_peripheral", hdl_toplevel_lang=hdl_toplevel_lang,
        test_module="test_spi_peripheral", test_args = extra_args, gui = gui
    )
    if run:
        runner.test(
            test_filter = test_filter,
            hdl_toplevel="spi_peripheral", hdl_toplevel_lang=hdl_toplevel_lang,
            test_module="test_spi_peripheral", test_args = extra_args, gui = gui
        )


if __name__ == "__main__":

Do not follow this link