From 75690764f10fcc5547e01bb01433245124dccc3e Mon Sep 17 00:00:00 2001 From: Tomasz Gorochowik Date: Mon, 16 Dec 2024 16:21:45 +0100 Subject: [PATCH] Re-enable Icarus tests Signed-off-by: Tomasz Gorochowik --- .github/workflows/tests.yml | 10 ++++++++++ verification/cocotb/noxfile.py | 35 +++++++++++++++++----------------- 2 files changed, 27 insertions(+), 18 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index dceb6a6..9849c51 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -25,6 +25,16 @@ jobs: run: | ./install.sh + - name: Build Icarus + run: | + git clone https://github.com/steveicarus/iverilog.git -b 06077ed026b4d8498d9129a6acfb0b44d0b51f18 + cd iverilog + sh autoconf.sh + ./configure + make -j$(nproc) + sudo make install + iverilog -V + - name: Build Verilator run: | git clone https://github.com/verilator/verilator -b v5.024 diff --git a/verification/cocotb/noxfile.py b/verification/cocotb/noxfile.py index ded9245..e945dfd 100644 --- a/verification/cocotb/noxfile.py +++ b/verification/cocotb/noxfile.py @@ -242,24 +242,23 @@ def ctrl_bus_monitor_verify(session, test_group, test_name, coverage): verify_block(session, test_group, test_name, coverage) -# TODO: Install iverilog in CI and reenable -# @nox.session(tags=["tests", "ahb", "axi"]) -# @nox.parametrize("test_group", ["i3c_phy_io"]) -# @nox.parametrize( -# "simulator", -# [ -# "icarus", -# ], -# ) -# @nox.parametrize( -# "test_name", -# [ -# "test_drivers", -# ], -# ) -# @nox.parametrize("coverage", coverage_types) -# def i3c_phy_io_verify(session, test_group, test_name, coverage, simulator): -# verify_block(session, test_group, test_name, coverage, simulator) +@nox.session(tags=["tests", "ahb", "axi"]) +@nox.parametrize("test_group", ["i3c_phy_io"]) +@nox.parametrize( + "simulator", + [ + "icarus", + ], +) +@nox.parametrize( + "test_name", + [ + "test_drivers", + ], +) +@nox.parametrize("coverage", coverage_types) +def i3c_phy_io_verify(session, test_group, test_name, coverage, simulator): + verify_block(session, test_group, test_name, coverage, simulator) @nox.session(reuse_venv=True)