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
9e3ea524
Commit
9e3ea524
authored
Feb 08, 2015
by
Garcia-Lasheras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check for action, syn_tool and sim_tool before trying to load the tool module
parent
427aa7bd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
__main__.py
hdlmake/__main__.py
+12
-0
No files found.
hdlmake/__main__.py
View file @
9e3ea524
...
...
@@ -103,9 +103,21 @@ def main():
#
# Load global tool object (global_mod.py)
#
if
not
top_mod
.
action
:
logging
.
error
(
"`action' manifest variable has to be specified. "
"Otherwise hdlmake doesn't know how to handle the project"
)
quit
()
if
top_mod
.
action
==
"synthesis"
:
if
not
top_mod
.
syn_tool
:
logging
.
error
(
"`syn_tool' manifest variable has to be specified. "
"Otherwise hdlmake doesn't know how to synthesize the project"
)
quit
()
tool_name
=
top_mod
.
syn_tool
elif
top_mod
.
action
==
"simulation"
:
if
not
top_mod
.
sim_tool
:
logging
.
error
(
"`sim_tool' manifest variable has to be specified. "
"Otherwise hdlmake doesn't know how to simulate the project"
)
quit
()
tool_name
=
top_mod
.
sim_tool
logging
.
info
(
'import tool module: '
+
tool_name
)
try
:
...
...
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