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
1627ac83
Commit
1627ac83
authored
Mar 30, 2019
by
Javier D. Garcia-Lasheras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve how new_dep_solver handles a missing top_module definition
parent
b3a15d2d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
new_dep_solver.py
hdlmake/new_dep_solver.py
+11
-3
No files found.
hdlmake/new_dep_solver.py
View file @
1627ac83
...
...
@@ -135,6 +135,8 @@ def make_dependency_set(fileset, top_level_entity, extra_modules=None):
def
_check_entity
(
test_file
,
entity_name
):
""" Check if the input file provides the entity pointed by the name"""
if
entity_name
==
None
:
return
False
entity_rel_vhdl
=
DepRelation
(
entity_name
,
DepRelation
.
PROVIDE
,
DepRelation
.
ENTITY
)
...
...
@@ -156,7 +158,13 @@ def make_dependency_set(fileset, top_level_entity, extra_modules=None):
if
_check_entity
(
chk_file
,
entity_aux
):
extra_files
.
append
(
chk_file
)
if
top_file
is
None
:
logging
.
critical
(
'Could not find a top level file that provides the '
if
top_level_entity
is
None
:
logging
.
critical
(
'Could not find a top level file because the top '
'module is undefined. Continuing with the full file set.'
)
else
:
logging
.
critical
(
'Could not find a top level file that provides the '
'top_module="
%
s". Continuing with the full file set.'
,
top_level_entity
)
return
fileset
...
...
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