PEP8 auditing: fix 'hdlmake/tools/*'

parent 468b2ef2
...@@ -74,4 +74,3 @@ class ToolGHDL(ToolSim): ...@@ -74,4 +74,3 @@ class ToolGHDL(ToolSim):
self.writeln("\t\t" + self._simulator_controls['compiler']) self.writeln("\t\t" + self._simulator_controls['compiler'])
self.writeln('\n') self.writeln('\n')
self.makefile_sim_dep_files() self.makefile_sim_dep_files()
...@@ -60,7 +60,6 @@ class ToolISE(ToolSyn): ...@@ -60,7 +60,6 @@ class ToolISE(ToolSyn):
STANDARD_LIBS = ['ieee', 'ieee_proposed', 'iSE', 'simprims', 'std', STANDARD_LIBS = ['ieee', 'ieee_proposed', 'iSE', 'simprims', 'std',
'synopsys', 'unimacro', 'unisim', 'XilinxCoreLib'] 'synopsys', 'unimacro', 'unisim', 'XilinxCoreLib']
SUPPORTED_FILES = [UCFFile, CDCFile, NGCFile] SUPPORTED_FILES = [UCFFile, CDCFile, NGCFile]
HDL_FILES = [VHDLFile, VerilogFile, SVFile] HDL_FILES = [VHDLFile, VerilogFile, SVFile]
...@@ -71,8 +70,9 @@ class ToolISE(ToolSyn): ...@@ -71,8 +70,9 @@ class ToolISE(ToolSyn):
"*.ngc", "*.ngd", "*.ngr", "*.pad", "*.par", "*.ngc", "*.ngd", "*.ngr", "*.pad", "*.par",
"*.pcf", "*.prj", "*.ptwx", "*.stx", "*.syr", "*.pcf", "*.prj", "*.ptwx", "*.stx", "*.syr",
"*.twr", "*.twx", "*.gise", "*.gise", "*.bgn", "*.twr", "*.twx", "*.gise", "*.gise", "*.bgn",
"*.unroutes", "*.ut", "*.xpi", "*.xst", "*.xise", "*.unroutes", "*.ut", "*.xpi", "*.xst",
"*.xwbt", "*_envsettings.html", "*_guide.ncd", "*.xise", "*.xwbt",
"*_envsettings.html", "*_guide.ncd",
"*_map.map", "*_map.mrp", "*_map.ncd", "*_map.map", "*_map.mrp", "*_map.ncd",
"*_map.ngm", "*_map.xrpt", "*_ngdbuild.xrpt", "*_map.ngm", "*_map.xrpt", "*_ngdbuild.xrpt",
"*_pad.csv", "*_pad.txt", "*_par.xrpt", "*_pad.csv", "*_pad.txt", "*_par.xrpt",
......
...@@ -68,6 +68,7 @@ class ToolISim(ToolSim): ...@@ -68,6 +68,7 @@ class ToolISim(ToolSim):
def makefile_sim_top(self): def makefile_sim_top(self):
"""Print the top section of the Makefile for Xilinx ISim""" """Print the top section of the Makefile for Xilinx ISim"""
top_module = self.top_module top_module = self.top_module
def __get_xilinxsim_ini_dir(env): def __get_xilinxsim_ini_dir(env):
"""Get Xilinx ISim ini simulation file""" """Get Xilinx ISim ini simulation file"""
if env["isim_path"]: if env["isim_path"]:
...@@ -122,7 +123,7 @@ XILINX_INI_PATH := """ + __get_xilinxsim_ini_dir(top_module.pool.env) + ...@@ -122,7 +123,7 @@ XILINX_INI_PATH := """ + __get_xilinxsim_ini_dir(top_module.pool.env) +
ISIM_FLAGS := ISIM_FLAGS :=
VLOGCOMP_FLAGS := -intstyle default -incremental -initfile xilinxsim.ini """ + VLOGCOMP_FLAGS := -intstyle default -incremental -initfile xilinxsim.ini """ +
__get_rid_of_isim_incdirs( __get_rid_of_isim_incdirs(
self.top_module.manifest_dict["vlog_opt"]) + """ self.top_module.manifest_dict["vlog_opt"]) + """
""") """)
def makefile_sim_compilation(self): def makefile_sim_compilation(self):
......
...@@ -7,6 +7,7 @@ from .makefile import ToolMakefile ...@@ -7,6 +7,7 @@ from .makefile import ToolMakefile
from hdlmake.util import path as path_mod from hdlmake.util import path as path_mod
from hdlmake.srcfile import VerilogFile, VHDLFile, SVFile from hdlmake.srcfile import VerilogFile, VHDLFile, SVFile
class ToolSim(ToolMakefile): class ToolSim(ToolMakefile):
"""Class that provides the Makefile writing methods and status""" """Class that provides the Makefile writing methods and status"""
......
...@@ -141,15 +141,19 @@ tcl_bitstream: tcl_par ...@@ -141,15 +141,19 @@ tcl_bitstream: tcl_par
run_tcl: run_tcl:
\t\t$(TCL_INTERPRETER)run.tcl \t\t$(TCL_INTERPRETER)run.tcl
synthesize: tcl_clean tcl_open tcl_synthesize tcl_close syn_pre_synthesize_cmd run_tcl syn_post_synthesize_cmd synthesize: tcl_clean tcl_open tcl_synthesize tcl_close \
syn_pre_synthesize_cmd run_tcl syn_post_synthesize_cmd
\t\ttouch $@ tcl_synthesize \t\ttouch $@ tcl_synthesize
translate: tcl_clean tcl_open tcl_translate tcl_close syn_pre_translate_cmd run_tcl syn_post_translate_cmd translate: tcl_clean tcl_open tcl_translate tcl_close syn_pre_translate_cmd \
run_tcl syn_post_translate_cmd
\t\ttouch $@ tcl_translate tcl_synthesize \t\ttouch $@ tcl_translate tcl_synthesize
map: tcl_clean tcl_open tcl_map tcl_close syn_pre_map_cmd run_tcl syn_post_map_cmd map: tcl_clean tcl_open tcl_map tcl_close syn_pre_map_cmd run_tcl \
syn_post_map_cmd
\t\ttouch $@ tcl_map tcl_translate tcl_synthesize \t\ttouch $@ tcl_map tcl_translate tcl_synthesize
par: tcl_open tcl_par tcl_close syn_pre_par_cmd run_tcl syn_post_par_cmd par: tcl_open tcl_par tcl_close syn_pre_par_cmd run_tcl syn_post_par_cmd
\t\ttouch $@ tcl_par tcl_map tcl_translate tcl_synthesize \t\ttouch $@ tcl_par tcl_map tcl_translate tcl_synthesize
bitstream: tcl_clean tcl_open tcl_bitstream tcl_close syn_pre_bitstream_cmd run_tcl syn_post_bitstream_cmd bitstream: tcl_clean tcl_open tcl_bitstream tcl_close syn_pre_bitstream_cmd \
run_tcl syn_post_bitstream_cmd
\t\ttouch $@ tcl_bitstream tcl_par tcl_map tcl_translate tcl_synthesize \t\ttouch $@ tcl_bitstream tcl_par tcl_map tcl_translate tcl_synthesize
""") """)
...@@ -191,7 +195,7 @@ syn_post_bitstream_cmd: ...@@ -191,7 +195,7 @@ syn_post_bitstream_cmd:
""") """)
self.writeln(syn_command.substitute( self.writeln(syn_command.substitute(
syn_pre_cmd=self.top_module.manifest_dict[ syn_pre_cmd=self.top_module.manifest_dict[
"syn_pre_cmd"], "syn_pre_cmd"],
syn_post_cmd=self.top_module.manifest_dict[ syn_post_cmd=self.top_module.manifest_dict[
"syn_post_cmd"], "syn_post_cmd"],
syn_pre_synthesize_cmd=self.top_module.manifest_dict[ syn_pre_synthesize_cmd=self.top_module.manifest_dict[
......
...@@ -29,8 +29,8 @@ import logging ...@@ -29,8 +29,8 @@ import logging
from .make_syn import ToolSyn from .make_syn import ToolSyn
from hdlmake.util import path as path_mod from hdlmake.util import path as path_mod
from hdlmake.srcfile import (VHDLFile, VerilogFile, SVFile, from hdlmake.srcfile import (VHDLFile, VerilogFile, SVFile, DPFFile,
SignalTapFile, SDCFile, QIPFile, QSYSFile, DPFFile, SignalTapFile, SDCFile, QIPFile, QSYSFile,
QSFFile, BSFFile, BDFFile, TDFFile, GDFFile) QSFFile, BSFFile, BDFFile, TDFFile, GDFFile)
...@@ -176,7 +176,8 @@ class ToolQuartus(ToolSyn): ...@@ -176,7 +176,8 @@ class ToolQuartus(ToolSyn):
name=preflow)) name=preflow))
if top_module.manifest_dict["quartus_postmodule"] is not None: if top_module.manifest_dict["quartus_postmodule"] is not None:
path = path_mod.compose( path = path_mod.compose(
top_module.manifest_dict["quartus_postmodule"], top_module.path) top_module.manifest_dict["quartus_postmodule"],
top_module.path)
if not os.path.exists(path): if not os.path.exists(path):
logging.error("quartus_postmodule file listed in " logging.error("quartus_postmodule file listed in "
+ top_module.path + " doesn't exist: " + top_module.path + " doesn't exist: "
......
...@@ -68,12 +68,9 @@ class ToolVivado(ToolXilinx, ToolSim): ...@@ -68,12 +68,9 @@ class ToolVivado(ToolXilinx, ToolSim):
self._tcl_controls.update(ToolVivado.TCL_CONTROLS) self._tcl_controls.update(ToolVivado.TCL_CONTROLS)
self._simulator_controls.update(ToolVivado.SIMULATOR_CONTROLS) self._simulator_controls.update(ToolVivado.SIMULATOR_CONTROLS)
def makefile_sim_compilation(self): def makefile_sim_compilation(self):
"""Generate compile simulation Makefile target for Vivado Simulator""" """Generate compile simulation Makefile target for Vivado Simulator"""
self.writeln("simulation: $(VERILOG_OBJ) $(VHDL_OBJ)") self.writeln("simulation: $(VERILOG_OBJ) $(VHDL_OBJ)")
self.writeln("\t\t" + ToolVivado.SIMULATOR_CONTROLS['compiler']) self.writeln("\t\t" + ToolVivado.SIMULATOR_CONTROLS['compiler'])
self.writeln() self.writeln()
self.makefile_sim_dep_files() self.makefile_sim_dep_files()
...@@ -22,6 +22,7 @@ class WriterSim(object): ...@@ -22,6 +22,7 @@ class WriterSim(object):
self.ghdl = ToolGHDL() self.ghdl = ToolGHDL()
self.vivado = ToolVivado() self.vivado = ToolVivado()
class WriterSyn(object): class WriterSyn(object):
"""Class that is in charge of writing synthesis Makefiles""" """Class that is in charge of writing synthesis Makefiles"""
...@@ -33,5 +34,3 @@ class WriterSyn(object): ...@@ -33,5 +34,3 @@ class WriterSyn(object):
self.quartus = ToolQuartus() self.quartus = ToolQuartus()
self.diamond = ToolDiamond() self.diamond = ToolDiamond()
self.libero = ToolLibero() self.libero = ToolLibero()
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