Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
  • 2 commits
  • 1 file changed
  • 0 commit comments
  • 2 contributors
Commits on Apr 03, 2012
@brandonhamilton brandonhamilton Optionally accept iverilog simulator options 49b58a0
Commits on Sep 09, 2012
@sbourdeauducq sbourdeauducq Merge pull request #3 from brandonhamilton/upstream
Optionally accept iverilog simulator options
6490785
Showing with 4 additions and 2 deletions.
  1. +4 −2 migen/sim/icarus.py
View
6 migen/sim/icarus.py
@@ -10,9 +10,11 @@ def _str2file(filename, contents):
f.close()
class Runner:
- def __init__(self, extra_files=None, top_file="migensim_top.v", dut_file="migensim_dut.v", vvp_file=None, keep_files=False):
+ def __init__(self, options=None, extra_files=None, top_file="migensim_top.v", dut_file="migensim_dut.v", vvp_file=None, keep_files=False):
if extra_files is None: extra_files = []
if vvp_file is None: vvp_file = dut_file + "vp"
+ if options is None: options = []
+ self.options = options
self.extra_files = extra_files
self.top_file = top_file
self.dut_file = dut_file
@@ -22,7 +24,7 @@ def __init__(self, extra_files=None, top_file="migensim_top.v", dut_file="migens
def start(self, c_top, c_dut):
_str2file(self.top_file, c_top)
_str2file(self.dut_file, c_dut)
- subprocess.check_call(["iverilog", "-o", self.vvp_file, self.top_file, self.dut_file] + self.extra_files)
+ 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])
def __del__(self):

No commit comments for this range

Something went wrong with that request. Please try again.