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
e8a3f7b0
Commit
e8a3f7b0
authored
Jul 29, 2021
by
Phil Clarke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update comments and logging for the function get_library_for_top_module() in makefulesyn.py
parent
2b033865
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
23 deletions
+24
-23
makefilesyn.py
hdlmake/tools/makefilesyn.py
+24
-23
No files found.
hdlmake/tools/makefilesyn.py
View file @
e8a3f7b0
...
@@ -227,29 +227,30 @@ SYN_POST_{0}_CMD := {2}
...
@@ -227,29 +227,30 @@ SYN_POST_{0}_CMD := {2}
return
num_libs
;
return
num_libs
;
# TODO
def
get_library_for_top_module
(
self
):
def
get_library_for_top_module
(
self
):
if
self
.
get_num_hdl_libs
()
==
1
:
if
self
.
get_num_hdl_libs
()
==
1
:
return
self
.
default_library
# this may now be excessive, based on the "catch-all" return statement at the bottom.
return
self
.
default_library
else
:
else
:
# find and return the library name for the top HDL module...
#find and return the library name for the top HDL module...
fileset_dict
=
{}
fileset_dict
=
{}
fileset_dict
.
update
(
self
.
HDL_FILES
)
fileset_dict
.
update
(
self
.
HDL_FILES
)
top_file
=
self
.
manifest_dict
[
"syn_top"
]
top_file
=
self
.
manifest_dict
[
"syn_top"
]
for
hdlfiletype
in
fileset_dict
:
for
hdlfiletype
in
fileset_dict
:
for
specific_file
in
self
.
fileset
:
for
specific_file
in
self
.
fileset
:
if
isinstance
(
specific_file
,
hdlfiletype
):
if
isinstance
(
specific_file
,
hdlfiletype
):
logging
.
info
(
self
.
TOOL_INFO
[
'name'
]
if
specific_file
.
purename
==
top_file
:
+
"libfinder_top_module, Checking: "
#logging.info(self.TOOL_INFO['name']
+
str
(
specific_file
.
purename
)
# + "libfinder_top_module, FOUND library_name: "
)
# + specific_file.library + " for module: "
if
specific_file
.
purename
==
top_file
:
# + top_file )
logging
.
info
(
self
.
TOOL_INFO
[
'name'
]
return
str
(
specific_file
.
library
)
+
"libfinder_top_module, FOUND library_name: "
+
specific_file
.
library
#In case we dont find a library then post an info message before returning the default value
+
" for module: "
logging
.
info
(
self
.
TOOL_INFO
[
'name'
]
+
top_file
+
"function get_library_for_top_module, "
)
+
"failed to find a library for the top module: "
return
str
(
specific_file
.
library
)
+
top_file
+
" Will use the default_library: "
#return self.default_library
+
self
.
default_library
return
"booo"
)
return
self
.
default_library
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