Skip to content

Commit

Permalink
Moved generic sim options from simulator class.
Browse files Browse the repository at this point in the history
  • Loading branch information
LarsAsplund committed Feb 4, 2017
1 parent f20d87c commit a910127
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 6 deletions.
1 change: 0 additions & 1 deletion vunit/activehdl_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ class ActiveHDLInterface(SimulatorInterface):
"activehdl.vsim_flags",
"activehdl.vsim_flags.gui",
"activehdl.init_file.gui",
"vhdl_assert_stop_level",
]

@classmethod
Expand Down
1 change: 0 additions & 1 deletion vunit/ghdl_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ class GHDLInterface(SimulatorInterface):
sim_options = [
"ghdl.sim_flags",
"ghdl.elab_flags",
"vhdl_assert_stop_level",
]

@staticmethod
Expand Down
1 change: 0 additions & 1 deletion vunit/modelsim_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ class ModelSimInterface(VsimSimulatorMixin, SimulatorInterface): # pylint: disa
"modelsim.vsim_flags",
"modelsim.vsim_flags.gui",
"modelsim.init_file.gui",
"vhdl_assert_stop_level",
]

@staticmethod
Expand Down
1 change: 0 additions & 1 deletion vunit/rivierapro_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ class RivieraProInterface(VsimSimulatorMixin, SimulatorInterface):
"rivierapro.vsim_flags",
"rivierapro.vsim_flags.gui",
"rivierapro.init_file.gui",
"vhdl_assert_stop_level",
]

@classmethod
Expand Down
6 changes: 4 additions & 2 deletions vunit/simulator_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,11 @@ def sim_options(cls):
"""
Return all supported sim options
"""
result = set()
result = ["vhdl_assert_stop_level"]
for sim_class in cls.supported_simulators():
result.update(sim_class.sim_options)
for opt in sim_class.sim_options:
assert opt.startswith(sim_class.name + ".")
result.append(opt)

return result

Expand Down

0 comments on commit a910127

Please sign in to comment.