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
4d6eef48
Commit
4d6eef48
authored
Mar 12, 2020
by
Tristan Gingold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ghdl_syn.py: add options, refactoring, add vhdl system library.
parent
3b861b35
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
10 deletions
+6
-10
ghdl_syn.py
hdlmake/tools/ghdl_syn.py
+6
-10
No files found.
hdlmake/tools/ghdl_syn.py
View file @
4d6eef48
...
...
@@ -31,6 +31,7 @@ class GhdlSyn(ToolMakefile):
CLEAN_TARGETS
=
{
'clean'
:
[],
'mrproper'
:
[]}
SYSTEM_LIBS
=
[
'vhdl'
]
HDL_FILES
=
{
VHDLFile
:
'$(sourcefile)'
}
...
...
@@ -55,15 +56,10 @@ class GhdlSyn(ToolMakefile):
def
_makefile_syn_top
(
self
):
"""Create the top part of the synthesis Makefile"""
top_parameter
=
"""
\
TOP_MODULE := {top_module}
TOOL_PATH := {tool_path}
TOP_MODULE := {top_module}
GHDL := ghdl
"""
self
.
writeln
(
top_parameter
.
format
(
tool_path
=
self
.
manifest_dict
[
"syn_path"
],
top_module
=
self
.
manifest_dict
[
"syn_top"
]))
self
.
writeln
(
"TOP_MODULE := {}"
.
format
(
self
.
manifest_dict
[
"syn_top"
]))
self
.
writeln
(
"TOOL_PATH := {}"
.
format
(
self
.
manifest_dict
[
"syn_path"
]))
self
.
writeln
(
"GHDL := ghdl"
)
self
.
writeln
(
"GHDL_OPT := {}"
.
format
(
self
.
manifest_dict
.
get
(
"ghdl_opt"
,
''
)))
def
_makefile_syn_files
(
self
):
"""Write the files TCL section of the Makefile"""
...
...
@@ -117,7 +113,7 @@ GHDL := ghdl
"""Generate the synthesis Makefile targets for handling design build"""
self
.
writeln
(
"""
\
synthesis: files.tcl
\t
$(GHDL) --synth @files.tcl -e $(TOP_MODULE)
\t
$(GHDL) --synth
$(GHDL_OPT)
@files.tcl -e $(TOP_MODULE)
"""
)
def
_makefile_syn_clean
(
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