Skip to content

Commit

Permalink
Implement run_options for Verilator
Browse files Browse the repository at this point in the history
  • Loading branch information
olofk committed Nov 11, 2024
1 parent 7bcbf9f commit 8637c63
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion edalize/tools/verilator.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,11 @@ class Verilator(Edatool):
"desc": "Additional options for verilator",
"list": True,
},
# run_options?
"run_options": {
"type": "str",
"desc": "Additional arguments passed when running the compiled model.",
"list": True,
},
}

def setup(self, edam):
Expand Down
1 change: 1 addition & 0 deletions tests/test_tool_verilator.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ def test_tool_verilator(tool_fixture):
tool_options = {
"make_options": ["a", "few", "make", "options"],
"verilator_options": ["some", "verilator", "options"],
"run_options": ["and", "some", "run", "options"],
}

tf = tool_fixture("verilator", tool_options=tool_options)
Expand Down

0 comments on commit 8637c63

Please sign in to comment.