From 0bac4637800b260faab5557afeeca0038718303f Mon Sep 17 00:00:00 2001 From: Robert Jordens Date: Sun, 7 Sep 2014 00:23:57 -0600 Subject: [PATCH] sim/icarus: add vpi directory to module search path This allows running the iverilog simulations from the migen top directory without having to install the .vpi anywhere. --- migen/sim/icarus.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/migen/sim/icarus.py b/migen/sim/icarus.py index 36a200ae..5eb03960 100644 --- a/migen/sim/icarus.py +++ b/migen/sim/icarus.py @@ -26,7 +26,7 @@ class Runner: _str2file(self.top_file, c_top) _str2file(self.dut_file, c_dut) subprocess.check_call(["iverilog", "-o", self.vvp_file] + self.options + [self.top_file, self.dut_file] + self.extra_files) - self.process = subprocess.Popen(["vvp", "-mmigensim", self.vvp_file]) + self.process = subprocess.Popen(["vvp", "-mmigensim", "-Mvpi", self.vvp_file]) def close(self): if hasattr(self, "process"): -- 2.30.2