From 1ca4ccff99a84738446b7ab4fd235e479a89ba10 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Mon, 9 Sep 2024 11:15:43 -0700 Subject: [PATCH] tasks.py: plumb -v to enable verbose test output --- tasks.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tasks.py b/tasks.py index 7dd003f..3926691 100644 --- a/tasks.py +++ b/tasks.py @@ -213,7 +213,7 @@ def synth(c, target): print(f"Wrote bitstream to {bitstream}") @task -def test(c, target): +def test(c, target, verbose=False): to_run = [] for target in expand_test_target(target): out_info, out_sim, out_bsc = ensure_build_dirs(target, "info", "sim", "bsc") @@ -227,7 +227,8 @@ def test(c, target): testdata_tgt = testdata_tgt.relative_to(out_sim, walk_up=True) testdata.unlink(missing_ok=True) testdata.symlink_to(testdata_tgt, target_is_directory=True) - to_run.append((out_sim, f"./TB -V {target.stem}.vcd")) + cmd = f"./TB -V {target.stem}.vcd {'+v' if verbose else ''}" + to_run.append((out_sim, cmd)) for d, cmd in to_run: print("") with c.cd(d):