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
968fa87d
Commit
968fa87d
authored
Nov 30, 2018
by
Tristan Gingold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document and effectively support ghdl_opt setting.
parent
f38d03cd
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
3 deletions
+13
-3
index.rst
docs/index.rst
+9
-0
ghdl.py
hdlmake/tools/ghdl.py
+4
-3
No files found.
docs/index.rst
View file @
968fa87d
...
...
@@ -1469,6 +1469,15 @@ Icarus Verilog specific variables:
+----------------+--------------+-----------------------------------------------------------------+-----------+
GHDL specific variables:
+----------------+--------------+-----------------------------------------------------------------+-----------+
| Name | Type | Description | Default |
+================+==============+=================================================================+===========+
| ghdl_opt | str | Additional options for ghdl | "" |
+----------------+--------------+-----------------------------------------------------------------+-----------+
Synthesis variables
-------------------
...
...
hdlmake/tools/ghdl.py
View file @
968fa87d
...
...
@@ -48,8 +48,8 @@ class ToolGHDL(ToolSim):
'mrproper'
:
[
"*.vcd"
]}
SIMULATOR_CONTROLS
=
{
'vlog'
:
None
,
'vhdl'
:
'
ghdl -a
$<'
,
'compiler'
:
'
ghdl -e
$(TOP_MODULE)'
}
'vhdl'
:
'
$(GHDL) -a $(GHDL_OPT)
$<'
,
'compiler'
:
'
$(GHDL) -e $(GHDL_OPT)
$(TOP_MODULE)'
}
def
__init__
(
self
):
super
(
ToolGHDL
,
self
)
.
__init__
()
...
...
@@ -63,7 +63,8 @@ class ToolGHDL(ToolSim):
"""Print the GHDL options to the Makefile"""
ghdl_opt
=
self
.
manifest_dict
.
get
(
"ghdl_opt"
,
''
)
ghdl_string
=
string
.
Template
(
"""GHDL_OPT := ${ghdl_opt}
\n
"""
)
"GHDL := ghdl
\n
"
"GHDL_OPT := ${ghdl_opt}
\n
"
)
self
.
writeln
(
ghdl_string
.
substitute
(
ghdl_opt
=
ghdl_opt
))
...
...
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