Supress unneded inheritance: Tool and Action were mixed

parent 33c3e8ea
......@@ -25,7 +25,6 @@
from .check import ActionCheck
from .core import ActionCore
from .tree import ActionTree
from .makefile import ActionMakefile
from .synthesis import ActionSynthesis
from .simulation import ActionSimulation
......
......@@ -33,10 +33,9 @@ from hdlmake.tools import (
ToolIVerilog, ToolISim, ToolModelsim,
ToolActiveHDL, ToolRiviera, ToolGHDL)
from .action import Action
class ActionSimulation(
ToolIVerilog, ToolISim, ToolModelsim,
ToolActiveHDL, ToolRiviera, ToolGHDL):
class ActionSimulation(Action):
"""This class contains the simulation specific methods"""
......
......@@ -34,10 +34,9 @@ from hdlmake.tools import (
ToolISE, ToolPlanAhead, ToolVivado,
ToolQuartus, ToolDiamond, ToolLibero)
from .action import Action
class ActionSynthesis(
ToolISE, ToolPlanAhead, ToolVivado,
ToolQuartus, ToolDiamond, ToolLibero):
class ActionSynthesis(Action):
"""Class providing the public synthesis methods for the user"""
......
"""Package that provides all the tool specific stuff"""
from .makefile import ToolMakefile
from .iverilog import ToolIVerilog
from .isim import ToolISim
from .modelsim import ToolModelsim
......
......@@ -3,10 +3,10 @@
import os
import string
from hdlmake.action import ActionMakefile
from .makefile import ToolMakefile
class ToolSim(ActionMakefile):
class ToolSim(ToolMakefile):
"""Class that provides the Makefile writing methods and status"""
......
......@@ -2,10 +2,10 @@
import string
from hdlmake.action import ActionMakefile
from .makefile import ToolMakefile
from hdlmake.util import path as path_mod
class ToolSyn(ActionMakefile):
class ToolSyn(ToolMakefile):
"""Class that provides the synthesis Makefile writing methods and status"""
......
......@@ -28,11 +28,10 @@ import sys
import string
import platform
from .action import Action
from hdlmake.util import path as path_mod
class ActionMakefile(Action):
class ToolMakefile(object):
"""Class that provides the Makefile writing methods and status"""
......@@ -48,7 +47,6 @@ class ActionMakefile(Action):
self._filename = filename
else:
self._filename = "Makefile"
super(ActionMakefile, self).__init__()
def __del__(self):
if self._file:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment