diff --git a/litex/tools/litex_sim.py b/litex/tools/litex_sim.py index 1b7af2aa2..c23be3e67 100755 --- a/litex/tools/litex_sim.py +++ b/litex/tools/litex_sim.py @@ -456,7 +456,8 @@ def main(): # Build/Run ------------------------------------------------------------------------------------ def pre_run_callback(vns): - generate_gtkw_savefile(builder, vns, args.trace_fst) + if args.trace: + generate_gtkw_savefile(builder, vns, args.trace_fst) builder_kwargs["csr_csv"] = "csr.csv" builder = Builder(soc, **builder_kwargs)