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
2
Merge Requests
2
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
c25cf315
Commit
c25cf315
authored
Oct 28, 2019
by
Tristan Gingold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
action.py: reorder functions.
parent
f52a297b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
17 deletions
+19
-17
action.py
hdlmake/action/action.py
+19
-17
No files found.
hdlmake/action/action.py
View file @
c25cf315
...
...
@@ -123,23 +123,6 @@ class Action(object):
logging
.
debug
(
"End build complete file set"
)
return
all_manifested_files
def
solve_file_set
(
self
):
"""Build file set with only those files required by the top entity"""
if
not
self
.
_deps_solved
:
if
self
.
tool
==
None
:
dep_solver
.
solve
(
self
.
parseable_fileset
)
else
:
dep_solver
.
solve
(
self
.
parseable_fileset
,
self
.
tool
.
get_standard_libs
())
self
.
_deps_solved
=
True
if
self
.
options
.
all_files
:
return
solved_files
=
SourceFileSet
()
solved_files
.
add
(
dep_solver
.
make_dependency_set
(
self
.
parseable_fileset
,
self
.
top_entity
,
self
.
config
.
get
(
"extra_modules"
)))
self
.
parseable_fileset
=
solved_files
def
build_file_set
(
self
):
"""Initialize the parseable and privative fileset contents"""
total_files
=
self
.
build_complete_file_set
()
...
...
@@ -163,10 +146,29 @@ class Action(object):
if
len
(
self
.
privative_fileset
)
>
0
:
logging
.
info
(
"Detected
%
d supported files that are not parseable"
,
len
(
self
.
privative_fileset
))
for
f
in
self
.
privative_fileset
:
logging
.
info
(
"not parseable:
%
s"
,
f
)
if
len
(
self
.
parseable_fileset
)
>
0
:
logging
.
info
(
"Detected
%
d supported files that can be parsed"
,
len
(
self
.
parseable_fileset
))
def
solve_file_set
(
self
):
"""Build file set with only those files required by the top entity"""
if
not
self
.
_deps_solved
:
if
self
.
tool
==
None
:
dep_solver
.
solve
(
self
.
parseable_fileset
)
else
:
dep_solver
.
solve
(
self
.
parseable_fileset
,
self
.
tool
.
get_standard_libs
())
self
.
_deps_solved
=
True
if
self
.
options
.
all_files
:
return
solved_files
=
SourceFileSet
()
solved_files
.
add
(
dep_solver
.
make_dependency_set
(
self
.
parseable_fileset
,
self
.
top_entity
,
self
.
config
.
get
(
"extra_modules"
)))
self
.
parseable_fileset
=
solved_files
def
get_top_manifest
(
self
):
"""Get the Top module from the pool"""
return
self
.
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