sim/icarus: add vpi directory to module search path
authorRobert Jordens <jordens@gmail.com>
Sun, 7 Sep 2014 06:23:57 +0000 (00:23 -0600)
committerSebastien Bourdeauducq <sb@m-labs.hk>
Sun, 7 Sep 2014 08:49:12 +0000 (16:49 +0800)
This allows running the iverilog simulations from the migen top directory
without having to install the .vpi anywhere.

migen/sim/icarus.py

index 36a200aef5d741cc1896e5e2c5dbe4db0986316b..5eb039600056cc72b4d94a4e2e2aacd70678c738 100644 (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"):