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
fade3d5b
Commit
fade3d5b
authored
Jun 11, 2019
by
Tristan Gingold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make_syn.py: fix code to check variable presence.
parent
4e359337
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
12 deletions
+4
-12
make_syn.py
hdlmake/tools/make_syn.py
+4
-12
No files found.
hdlmake/tools/make_syn.py
View file @
fade3d5b
...
...
@@ -13,18 +13,10 @@ from hdlmake.srcfile import VerilogFile, SVFile
def
_check_synthesis_manifest
(
manifest_dict
):
"""Check the manifest contains all the keys for a synthesis project"""
if
not
manifest_dict
[
"syn_tool"
]:
raise
Exception
(
"syn_tool variable must be set in the top manifest."
)
if
not
manifest_dict
[
"syn_device"
]:
raise
Exception
(
"syn_device variable must be set in the top manifest."
)
if
not
manifest_dict
[
"syn_grade"
]:
raise
Exception
(
"syn_grade variable must be set in the top manifest."
)
if
not
manifest_dict
[
"syn_package"
]:
raise
Exception
(
"syn_package variable must be set in the top manifest."
)
for
v
in
[
"syn_device"
,
"syn_grade"
,
"syn_package"
]:
if
v
not
in
manifest_dict
:
raise
Exception
(
"'{}' variable must be set in the top manifest."
.
format
(
v
))
if
not
manifest_dict
[
"syn_top"
]:
logging
.
error
(
"syn_top variable must be set in the top manifest."
)
...
...
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