From: Robert Jordens Date: Sun, 7 Sep 2014 06:23:57 +0000 (-0600) Subject: sim/icarus: add vpi directory to module search path X-Git-Tag: 24jan2021_ls180~2099^2~301 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0bac4637800b260faab5557afeeca0038718303f;p=litex.git 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. --- 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"):