Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
Hdlmake
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
15
Issues
15
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Hdlmake
Commits
ddae95d9
Commit
ddae95d9
authored
Aug 10, 2016
by
Javier D. Garcia-Lasheras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PEP8 auditing: fix 'hdlmake/tools/*'
parent
468b2ef2
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
20 additions
and
18 deletions
+20
-18
ghdl.py
hdlmake/tools/ghdl.py
+0
-1
ise.py
hdlmake/tools/ise.py
+3
-3
isim.py
hdlmake/tools/isim.py
+2
-1
make_sim.py
hdlmake/tools/make_sim.py
+1
-0
make_syn.py
hdlmake/tools/make_syn.py
+9
-5
quartus.py
hdlmake/tools/quartus.py
+4
-3
vivado.py
hdlmake/tools/vivado.py
+0
-3
writer.py
hdlmake/tools/writer.py
+1
-2
No files found.
hdlmake/tools/ghdl.py
View file @
ddae95d9
...
@@ -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
()
hdlmake/tools/ise.py
View file @
ddae95d9
...
@@ -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"
,
...
...
hdlmake/tools/isim.py
View file @
ddae95d9
...
@@ -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
):
...
...
hdlmake/tools/make_sim.py
View file @
ddae95d9
...
@@ -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"""
...
...
hdlmake/tools/make_syn.py
View file @
ddae95d9
...
@@ -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\t
touch $@ tcl_synthesize
\t\t
touch $@ 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\t
touch $@ tcl_translate tcl_synthesize
\t\t
touch $@ 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\t
touch $@ tcl_map tcl_translate tcl_synthesize
\t\t
touch $@ 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\t
touch $@ tcl_par tcl_map tcl_translate tcl_synthesize
\t\t
touch $@ 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\t
touch $@ tcl_bitstream tcl_par tcl_map tcl_translate tcl_synthesize
\t\t
touch $@ 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
[
...
...
hdlmake/tools/quartus.py
View file @
ddae95d9
...
@@ -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: "
...
...
hdlmake/tools/vivado.py
View file @
ddae95d9
...
@@ -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
()
hdlmake/tools/writer.py
View file @
ddae95d9
...
@@ -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
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment