From: Florent Kermarrec Date: Thu, 24 Jul 2014 12:31:00 +0000 (+0200) Subject: migen/sim/generic: use kwargs to pass parameters to icarus.Runner X-Git-Tag: 24jan2021_ls180~2099^2~342 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9fcea6e64a094408998b336dbf33cfa3a7ca3c00;p=litex.git migen/sim/generic: use kwargs to pass parameters to icarus.Runner --- diff --git a/migen/sim/generic.py b/migen/sim/generic.py index 34f27ba0..5762f456 100644 --- a/migen/sim/generic.py +++ b/migen/sim/generic.py @@ -189,6 +189,6 @@ class Simulator: def __exit__(self, type, value, traceback): self.close() -def run_simulation(fragment, ncycles=None, vcd_name=None, keep_files=False): - with Simulator(fragment, TopLevel(vcd_name), icarus.Runner(keep_files=keep_files)) as s: +def run_simulation(fragment, ncycles=None, vcd_name=None, **kwargs): + with Simulator(fragment, TopLevel(vcd_name), icarus.Runner(**kwargs)) as s: s.run(ncycles)