From 71398e0155d3d9f7830bb3a4d7e6ea1bb13238a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Fran=C3=A7ois=20Nguyen?= Date: Tue, 27 Nov 2018 17:26:32 +0100 Subject: [PATCH] litex_sim: add --trace argument --- litex/utils/litex_sim.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/litex/utils/litex_sim.py b/litex/utils/litex_sim.py index d6d6fa224..1a6769daf 100755 --- a/litex/utils/litex_sim.py +++ b/litex/utils/litex_sim.py @@ -221,6 +221,8 @@ def main(): help="enable Etherbone support") parser.add_argument("--with-analyzer", action="store_true", help="enable Analyzer support") + parser.add_argument("--trace", action="store_true", + help="enable VCD tracing") args = parser.parse_args() soc_kwargs = soc_sdram_argdict(args) @@ -250,10 +252,10 @@ def main(): **soc_kwargs) builder_kwargs["csr_csv"] = "csr.csv" builder = Builder(soc, **builder_kwargs) - vns = builder.build(run=False, threads=args.threads, sim_config=sim_config) + vns = builder.build(run=False, threads=args.threads, sim_config=sim_config, trace=args.trace) if args.with_analyzer: soc.analyzer.export_csv(vns, "analyzer.csv") - builder.build(build=False, threads=args.threads, sim_config=sim_config) + builder.build(build=False, threads=args.threads, sim_config=sim_config, trace=args.trace) if __name__ == "__main__":