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.
This commit is contained in:
Robert Jordens 2014-09-07 00:23:57 -06:00 committed by Sebastien Bourdeauducq
parent 3d84a7a9de
commit 0bac463780
1 changed files with 1 additions and 1 deletions

View File

@ -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"):