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
a257c698
Commit
a257c698
authored
Mar 09, 2017
by
Javier D. Garcia-Lasheras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor the TCL section generation code
parent
0735b9a0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
30 deletions
+5
-30
make_syn.py
hdlmake/tools/make_syn.py
+5
-30
No files found.
hdlmake/tools/make_syn.py
View file @
a257c698
...
...
@@ -107,41 +107,16 @@ endif
def
makefile_syn_tcl
(
self
):
"""Create the Makefile TCL dictionary for the selected tool"""
tcl_string
=
string
.
Template
(
"""
\
define TCL_CREATE
${tcl_create}
endef
export TCL_CREATE
define TCL_OPEN
${tcl_open}
endef
export TCL_OPEN
define TCL_SAVE
${tcl_save}
endef
export TCL_SAVE
define TCL_CLOSE
${tcl_close}
endef
export TCL_CLOSE
"""
)
self
.
writeln
(
tcl_string
.
substitute
(
tcl_create
=
self
.
_tcl_controls
[
"create"
],
tcl_open
=
self
.
_tcl_controls
[
"open"
],
tcl_save
=
self
.
_tcl_controls
[
"save"
],
tcl_close
=
self
.
_tcl_controls
[
"close"
]))
stage_list
=
[
"synthesize"
,
"translate"
,
"map"
,
"par"
,
"bitstream"
]
for
stage
in
stage_list
:
if
not
self
.
_tcl_controls
[
stage
]
==
""
:
command_list
=
[
"create"
,
"open"
,
"save"
,
"close"
,
"synthesize"
,
"translate"
,
"map"
,
"par"
,
"bitstream"
]
for
command
in
command_list
:
if
not
self
.
_tcl_controls
[
command
]
==
""
:
self
.
writeln
(
"""
\
define TCL_{1}
{0}
endef
export TCL_{1}
"""
.
format
(
self
.
_tcl_controls
[
stage
],
stage
.
upper
()))
"""
.
format
(
self
.
_tcl_controls
[
command
],
command
.
upper
()))
def
makefile_syn_files
(
self
):
"""End stub method to write the synthesis files section"""
...
...
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