migen/sim/generic: use kwargs to pass parameters to icarus.Runner
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Thu, 24 Jul 2014 12:31:00 +0000 (14:31 +0200)
committerSebastien Bourdeauducq <sb@m-labs.hk>
Thu, 24 Jul 2014 16:17:54 +0000 (10:17 -0600)
migen/sim/generic.py

index 34f27ba0c274ce55b8f22b5a12658bb619300865..5762f456e6d987d88b6e2ce9c1799be895a00589 100644 (file)
@@ -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)