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
d096e9e8
Commit
d096e9e8
authored
May 30, 2016
by
Javier D. Garcia-Lasheras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Look for modules and entities when trying to identify the top relation
parent
43e115fc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
new_dep_solver.py
hdlmake/new_dep_solver.py
+3
-3
No files found.
hdlmake/new_dep_solver.py
View file @
d096e9e8
...
...
@@ -135,12 +135,12 @@ def make_dependency_set(fileset, top_level_entity):
assert
isinstance
(
fileset
,
SourceFileSet
)
fset
=
fileset
.
filter
(
DepFile
)
# Find the file that provides the named top level entity
# top_rel = DepRelation(top_level_entity,
DepRelation.PROVIDE, DepRelation.ENTITY)
top_rel
=
DepRelation
(
"
%
s.
%
s"
%
(
"work"
,
top_level_entity
),
DepRelation
.
PROVIDE
,
DepRelation
.
ENTITY
)
top_rel_vhdl
=
DepRelation
(
"
%
s.
%
s"
%
(
"work"
,
top_level_entity
),
DepRelation
.
PROVIDE
,
DepRelation
.
ENTITY
)
top_rel
_vlog
=
DepRelation
(
"
%
s.
%
s"
%
(
"work"
,
top_level_entity
),
DepRelation
.
PROVIDE
,
DepRelation
.
MODULE
)
top_file
=
None
for
chk_file
in
fset
:
for
rel
in
chk_file
.
rels
:
if
rel
==
top_rel
:
if
((
rel
==
top_rel_vhdl
)
or
(
rel
==
top_rel_vlog
))
:
top_file
=
chk_file
break
;
if
top_file
:
...
...
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