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
2
Merge Requests
2
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
bf6c6032
Commit
bf6c6032
authored
Oct 07, 2019
by
Tristan Gingold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tools: use class attribute CLEAN_TARGETS.
parent
80301196
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
5 additions
and
18 deletions
+5
-18
active_hdl.py
hdlmake/tools/active_hdl.py
+0
-1
diamond.py
hdlmake/tools/diamond.py
+0
-1
ghdl.py
hdlmake/tools/ghdl.py
+0
-1
icestorm.py
hdlmake/tools/icestorm.py
+0
-1
ise.py
hdlmake/tools/ise.py
+0
-1
isim.py
hdlmake/tools/isim.py
+0
-1
iverilog.py
hdlmake/tools/iverilog.py
+0
-1
libero.py
hdlmake/tools/libero.py
+0
-1
makefile.py
hdlmake/tools/makefile.py
+3
-3
modelsim.py
hdlmake/tools/modelsim.py
+0
-1
planahead.py
hdlmake/tools/planahead.py
+1
-1
quartus.py
hdlmake/tools/quartus.py
+0
-1
riviera.py
hdlmake/tools/riviera.py
+0
-1
vivado.py
hdlmake/tools/vivado.py
+1
-1
vivado_sim.py
hdlmake/tools/vivado_sim.py
+0
-1
xilinx.py
hdlmake/tools/xilinx.py
+0
-1
No files found.
hdlmake/tools/active_hdl.py
View file @
bf6c6032
...
...
@@ -47,7 +47,6 @@ class ToolActiveHDL(MakefileSim):
def
__init__
(
self
):
super
(
ToolActiveHDL
,
self
)
.
__init__
()
self
.
_clean_targets
.
update
(
ToolActiveHDL
.
CLEAN_TARGETS
)
def
_makefile_sim_compilation
(
self
):
"""Print Makefile compilation target for Aldec Active-HDL simulator"""
...
...
hdlmake/tools/diamond.py
View file @
bf6c6032
...
...
@@ -80,7 +80,6 @@ class ToolDiamond(MakefileSyn):
def
__init__
(
self
):
super
(
ToolDiamond
,
self
)
.
__init__
()
self
.
_supported_files
.
update
(
ToolDiamond
.
SUPPORTED_FILES
)
self
.
_clean_targets
.
update
(
ToolDiamond
.
CLEAN_TARGETS
)
self
.
_tcl_controls
.
update
(
ToolDiamond
.
TCL_CONTROLS
)
def
_makefile_syn_tcl
(
self
):
...
...
hdlmake/tools/ghdl.py
View file @
bf6c6032
...
...
@@ -53,7 +53,6 @@ class ToolGHDL(MakefileSim):
def
__init__
(
self
):
super
(
ToolGHDL
,
self
)
.
__init__
()
self
.
_clean_targets
.
update
(
ToolGHDL
.
CLEAN_TARGETS
)
self
.
_simulator_controls
.
update
(
ToolGHDL
.
SIMULATOR_CONTROLS
)
def
_makefile_sim_options
(
self
):
...
...
hdlmake/tools/icestorm.py
View file @
bf6c6032
...
...
@@ -65,7 +65,6 @@ class ToolIcestorm(MakefileSyn):
def
__init__
(
self
):
super
(
ToolIcestorm
,
self
)
.
__init__
()
self
.
_supported_files
.
update
(
ToolIcestorm
.
SUPPORTED_FILES
)
self
.
_clean_targets
.
update
(
ToolIcestorm
.
CLEAN_TARGETS
)
self
.
_tcl_controls
.
update
(
ToolIcestorm
.
TCL_CONTROLS
)
def
_makefile_syn_top
(
self
):
...
...
hdlmake/tools/ise.py
View file @
bf6c6032
...
...
@@ -126,7 +126,6 @@ $(TCL_CLOSE)'''
def
__init__
(
self
):
super
(
ToolISE
,
self
)
.
__init__
()
self
.
_supported_files
.
update
(
ToolISE
.
SUPPORTED_FILES
)
self
.
_clean_targets
.
update
(
ToolISE
.
CLEAN_TARGETS
)
self
.
_tcl_controls
.
update
(
ToolISE
.
TCL_CONTROLS
)
def
_makefile_syn_top
(
self
):
...
...
hdlmake/tools/isim.py
View file @
bf6c6032
...
...
@@ -61,7 +61,6 @@ class ToolISim(MakefileSim):
def
__init__
(
self
):
super
(
ToolISim
,
self
)
.
__init__
()
self
.
_clean_targets
.
update
(
ToolISim
.
CLEAN_TARGETS
)
def
_makefile_sim_top
(
self
):
"""Print the top section of the Makefile for Xilinx ISim"""
...
...
hdlmake/tools/iverilog.py
View file @
bf6c6032
...
...
@@ -56,7 +56,6 @@ class ToolIVerilog(MakefileSim):
def
__init__
(
self
):
super
(
ToolIVerilog
,
self
)
.
__init__
()
self
.
_clean_targets
.
update
(
ToolIVerilog
.
CLEAN_TARGETS
)
self
.
_simulator_controls
.
update
(
ToolIVerilog
.
SIMULATOR_CONTROLS
)
def
_makefile_sim_compilation
(
self
):
...
...
hdlmake/tools/libero.py
View file @
bf6c6032
...
...
@@ -77,7 +77,6 @@ class ToolLibero(MakefileSyn):
def
__init__
(
self
):
super
(
ToolLibero
,
self
)
.
__init__
()
self
.
_supported_files
.
update
(
ToolLibero
.
SUPPORTED_FILES
)
self
.
_clean_targets
.
update
(
ToolLibero
.
CLEAN_TARGETS
)
self
.
_tcl_controls
.
update
(
ToolLibero
.
TCL_CONTROLS
)
def
_makefile_syn_tcl
(
self
):
...
...
hdlmake/tools/makefile.py
View file @
bf6c6032
...
...
@@ -38,12 +38,12 @@ class ToolMakefile(object):
HDL_FILES
=
{}
TOOL_INFO
=
{}
STANDARD_LIBS
=
[]
CLEAN_TARGETS
=
{}
def
__init__
(
self
):
super
(
ToolMakefile
,
self
)
.
__init__
()
self
.
_file
=
None
self
.
_initialized
=
False
self
.
_clean_targets
=
{}
self
.
_tcl_controls
=
{}
self
.
_supported_files
=
{}
self
.
fileset
=
None
...
...
@@ -132,7 +132,7 @@ class ToolMakefile(object):
def
makefile_clean
(
self
):
"""Print the Makefile target for cleaning intermediate files"""
self
.
writeln
(
"CLEAN_TARGETS := $(LIBS) "
+
' '
.
join
(
self
.
_clean_targets
[
"clean"
])
+
"
\n
"
)
' '
.
join
(
self
.
CLEAN_TARGETS
[
"clean"
])
+
"
\n
"
)
self
.
writeln
(
"clean:"
)
tmp
=
"
\t\t
"
+
shell
.
del_command
()
+
" $(CLEAN_TARGETS)"
self
.
writeln
(
tmp
)
...
...
@@ -145,7 +145,7 @@ class ToolMakefile(object):
"""Print the Makefile target for cleaning final files"""
self
.
writeln
(
"mrproper: clean"
)
tmp
=
"
\t\t
"
+
shell
.
del_command
()
+
\
" "
+
' '
.
join
(
self
.
_clean_targets
[
"mrproper"
])
+
"
\n
"
" "
+
' '
.
join
(
self
.
CLEAN_TARGETS
[
"mrproper"
])
+
"
\n
"
self
.
writeln
(
tmp
)
def
initialize
(
self
):
...
...
hdlmake/tools/modelsim.py
View file @
bf6c6032
...
...
@@ -49,7 +49,6 @@ class ToolModelsim(MakefileVsim):
self
.
copy_rules
[
"modelsim.ini"
]
=
os
.
path
.
join
(
"$(MODELSIM_INI_PATH)"
,
"modelsim.ini"
)
self
.
additional_deps
.
append
(
"modelsim.ini"
)
self
.
_clean_targets
.
update
(
ToolModelsim
.
CLEAN_TARGETS
)
def
_makefile_sim_options
(
self
):
"""Print the Modelsim options to the Makefile"""
...
...
hdlmake/tools/planahead.py
View file @
bf6c6032
...
...
@@ -52,6 +52,7 @@ class ToolPlanAhead(ToolXilinx):
CLEAN_TARGETS
=
{
'clean'
:
[
"planAhead_*"
,
"planAhead.*"
,
".Xil"
,
"$(PROJECT).cache"
,
"$(PROJECT).data"
,
" $(PROJECT).runs"
,
"$(PROJECT).ppr"
]}
CLEAN_TARGETS
.
update
(
ToolXilinx
.
CLEAN_TARGETS
)
TCL_CONTROLS
=
{
'bitstream'
:
'$(TCL_OPEN)
\n
'
'launch_runs impl_1 -to_step Bitgen
\n
'
...
...
@@ -61,5 +62,4 @@ class ToolPlanAhead(ToolXilinx):
def
__init__
(
self
):
super
(
ToolPlanAhead
,
self
)
.
__init__
()
self
.
_supported_files
.
update
(
ToolPlanAhead
.
SUPPORTED_FILES
)
self
.
_clean_targets
.
update
(
ToolPlanAhead
.
CLEAN_TARGETS
)
self
.
_tcl_controls
.
update
(
ToolPlanAhead
.
TCL_CONTROLS
)
hdlmake/tools/quartus.py
View file @
bf6c6032
...
...
@@ -104,7 +104,6 @@ class ToolQuartus(MakefileSyn):
def
__init__
(
self
):
super
(
ToolQuartus
,
self
)
.
__init__
()
self
.
_supported_files
.
update
(
ToolQuartus
.
SUPPORTED_FILES
)
self
.
_clean_targets
.
update
(
ToolQuartus
.
CLEAN_TARGETS
)
self
.
_tcl_controls
.
update
(
ToolQuartus
.
TCL_CONTROLS
)
def
_makefile_syn_top
(
self
):
...
...
hdlmake/tools/riviera.py
View file @
bf6c6032
...
...
@@ -79,7 +79,6 @@ class ToolRiviera(MakefileVsim):
def
__init__
(
self
):
super
(
ToolRiviera
,
self
)
.
__init__
()
self
.
_clean_targets
.
update
(
ToolRiviera
.
CLEAN_TARGETS
)
def
_makefile_sim_options
(
self
):
"""Print the Riviera options to the Makefile"""
...
...
hdlmake/tools/vivado.py
View file @
bf6c6032
...
...
@@ -71,6 +71,7 @@ class ToolVivado(ToolXilinx):
"$(PROJECT).cache"
,
"$(PROJECT).data"
,
"work"
,
"$(PROJECT).runs"
,
"$(PROJECT).hw"
,
"$(PROJECT).ip_user_files"
,
"$(PROJECT_FILE)"
]}
CLEAN_TARGETS
.
update
(
ToolXilinx
.
CLEAN_TARGETS
)
TCL_CONTROLS
=
{
'bitstream'
:
'$(TCL_OPEN)
\n
'
'launch_runs impl_1 -to_step write_bitstream'
...
...
@@ -81,5 +82,4 @@ class ToolVivado(ToolXilinx):
def
__init__
(
self
):
super
(
ToolVivado
,
self
)
.
__init__
()
self
.
_supported_files
.
update
(
ToolVivado
.
SUPPORTED_FILES
)
self
.
_clean_targets
.
update
(
ToolVivado
.
CLEAN_TARGETS
)
self
.
_tcl_controls
.
update
(
ToolVivado
.
TCL_CONTROLS
)
hdlmake/tools/vivado_sim.py
View file @
bf6c6032
...
...
@@ -54,7 +54,6 @@ class ToolVivadoSim(MakefileSim):
def
__init__
(
self
):
super
(
ToolVivadoSim
,
self
)
.
__init__
()
self
.
_clean_targets
.
update
(
ToolVivadoSim
.
CLEAN_TARGETS
)
self
.
_simulator_controls
.
update
(
ToolVivadoSim
.
SIMULATOR_CONTROLS
)
def
_makefile_sim_compilation
(
self
):
...
...
hdlmake/tools/xilinx.py
View file @
bf6c6032
...
...
@@ -76,7 +76,6 @@ $(TCL_CLOSE)'''
def
__init__
(
self
):
super
(
ToolXilinx
,
self
)
.
__init__
()
self
.
_supported_files
.
update
(
ToolXilinx
.
SUPPORTED_FILES
)
self
.
_clean_targets
.
update
(
ToolXilinx
.
CLEAN_TARGETS
)
self
.
_tcl_controls
.
update
(
ToolXilinx
.
TCL_CONTROLS
)
def
_get_properties
(
self
):
...
...
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