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):