From 9fcea6e64a094408998b336dbf33cfa3a7ca3c00 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Thu, 24 Jul 2014 14:31:00 +0200 Subject: [PATCH] migen/sim/generic: use kwargs to pass parameters to icarus.Runner --- migen/sim/generic.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.30.2