From 12c93ea8952d45d6ab273c52c8a10cb1cf5683b9 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Tue, 28 Sep 2021 13:32:12 +0200 Subject: [PATCH] litex_sim: Generate gtkw_savefile only with --trace. --- litex/tools/litex_sim.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)