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
7794205d
Commit
7794205d
authored
Jun 04, 2017
by
Javier D. Garcia-Lasheras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow for the 'top_module' alias when sim_top or syn_top are not defined
parent
a6fb09a7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
action.py
hdlmake/action/action.py
+6
-0
No files found.
hdlmake/action/action.py
View file @
7794205d
...
...
@@ -81,9 +81,15 @@ class Action(list):
self
.
top_entity
=
None
elif
action
==
"simulation"
:
self
.
tool
=
load_sim_tool
(
self
.
config
.
get
(
"sim_tool"
))
if
(
self
.
config
.
get
(
"sim_top"
)
==
None
and
not
self
.
config
.
get
(
"top_module"
)
==
None
):
self
.
config
[
"sim_top"
]
=
self
.
config
[
"top_module"
]
self
.
top_entity
=
self
.
config
.
get
(
"sim_top"
)
elif
action
==
"synthesis"
:
self
.
tool
=
load_syn_tool
(
self
.
config
.
get
(
"syn_tool"
))
if
(
self
.
config
.
get
(
"syn_top"
)
==
None
and
not
self
.
config
.
get
(
"top_module"
)
==
None
):
self
.
config
[
"syn_top"
]
=
self
.
config
[
"top_module"
]
self
.
top_entity
=
self
.
config
.
get
(
"syn_top"
)
else
:
logging
.
error
(
"Unknown requested action:
%
s"
,
action
)
...
...
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