From b897d17f1812f0a1c28536b5d5369b981c53ad0c Mon Sep 17 00:00:00 2001 From: Ryszard Rozak Date: Tue, 17 Dec 2024 18:12:45 +0100 Subject: [PATCH] Get simulator from env if not provided Signed-off-by: Ryszard Rozak Co-authored-by: Michal Czyz --- verification/cocotb/noxfile.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/verification/cocotb/noxfile.py b/verification/cocotb/noxfile.py index aa19ae6..5e880d8 100644 --- a/verification/cocotb/noxfile.py +++ b/verification/cocotb/noxfile.py @@ -32,6 +32,9 @@ def _verify(session, test_group, test_type, test_name, coverage=None, simulator= f"+verilator+seed+{seed}", ] + if not simulator: + simulator = os.getenv("SIMULATOR") + with open(test.paths["log_default"], "w") as test_log: args = [