litex_sim: Generate gtkw_savefile only with --trace.

This commit is contained in:
Florent Kermarrec 2021-09-28 13:32:12 +02:00
parent 782744bae3
commit 12c93ea895
1 changed files with 2 additions and 1 deletions

View File

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