|
21 | 21 | from ..ostools import Process |
22 | 22 | from . import SimulatorInterface, ListOfStringOption, StringOption, BooleanOption |
23 | 23 | from ..vhdl_standard import VHDL |
24 | | -from ._ossmixin import OSSMixin |
| 24 | +from ._viewermixin import ViewerMixin |
25 | 25 |
|
26 | 26 | LOGGER = logging.getLogger(__name__) |
27 | 27 |
|
28 | 28 |
|
29 | | -class GHDLInterface(SimulatorInterface, OSSMixin): # pylint: disable=too-many-instance-attributes |
| 29 | +class GHDLInterface(SimulatorInterface, ViewerMixin): # pylint: disable=too-many-instance-attributes |
30 | 30 | """ |
31 | 31 | Interface for GHDL simulator |
32 | 32 | """ |
@@ -100,7 +100,7 @@ def __init__( # pylint: disable=too-many-arguments |
100 | 100 | backend="llvm", |
101 | 101 | ): |
102 | 102 | SimulatorInterface.__init__(self, output_path, gui) |
103 | | - OSSMixin.__init__( |
| 103 | + ViewerMixin.__init__( |
104 | 104 | self, |
105 | 105 | gui=gui, |
106 | 106 | viewer=viewer, |
@@ -132,7 +132,7 @@ def _get_version_output(cls, prefix): |
132 | 132 | @classmethod |
133 | 133 | def _get_help_output(cls, prefix): |
134 | 134 | """ |
135 | | - Get the output of 'ghdl --version' |
| 135 | + Get the output of 'ghdl --help' |
136 | 136 | """ |
137 | 137 | return subprocess.check_output([str(Path(prefix) / cls.executable), "--help"]).decode() |
138 | 138 |
|
@@ -392,11 +392,9 @@ def simulate(self, output_path, test_suite_name, config, elaborate_only): # pyl |
392 | 392 | status = False |
393 | 393 |
|
394 | 394 | if config.sim_options.get(self.name + ".gtkwave_script.gui", None): |
395 | | - warn_str = ( |
396 | | - "%s.gtkwave_script.gui is deprecated and will be removed " % self.name # pylint: disable=C0209 |
397 | | - + "in a future version, use %s.viewer_script.gui instead" % self.name # pylint: disable=C0209 |
398 | | - ) |
399 | | - LOGGER.warning(warn_str) |
| 395 | + LOGGER.warning("%s.gtkwave_script.gui is deprecated and will be removed " |
| 396 | + "in a future version, use %s.viewer_script.gui instead", |
| 397 | + self.name, self.name) |
400 | 398 |
|
401 | 399 | if self._gui and not elaborate_only: |
402 | 400 | cmd = [self._get_viewer(config)] + shlex.split(self._viewer_args) + [data_file_name] |
|
0 commit comments