Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
HDL
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RTSD
HDL
Commits
20ebfeda
Commit
20ebfeda
authored
10 years ago
by
Eric Kooistra
Browse files
Options
Downloads
Patches
Plain Diff
No commit message
No commit message
parent
651c973b
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
tools/oneclick/base/hdl_config.py
+7
-7
7 additions, 7 deletions
tools/oneclick/base/hdl_config.py
with
7 additions
and
7 deletions
tools/oneclick/base/hdl_config.py
+
7
−
7
View file @
20ebfeda
...
@@ -79,13 +79,6 @@ class HdlConfig:
...
@@ -79,13 +79,6 @@ class HdlConfig:
self
.
libs
=
common_dict_file
.
CommonDictFile
(
libRootDir
,
libFileName
)
# library dict files
self
.
libs
=
common_dict_file
.
CommonDictFile
(
libRootDir
,
libFileName
)
# library dict files
if
self
.
libs
.
nof_dicts
==
0
:
sys
.
exit
(
'
Error : No HDL library config file found
'
)
if
self
.
libs
.
nof_dicts
==
0
:
sys
.
exit
(
'
Error : No HDL library config file found
'
)
# Keep list of HDL library names
self
.
lib_names
=
self
.
libs
.
get_key_values
(
'
hdl_lib_name
'
)
# Check that there are no duplicate library names (eg. due to copying a hdlib.cfg without modifying the hdl_lib_name value)
duplicate_lib_names
=
cm
.
list_duplicates
(
self
.
lib_names
)
if
len
(
duplicate_lib_names
)
>
0
:
sys
.
exit
(
'
Error : Duplicate HDL library config file found %s
'
%
duplicate_lib_names
)
# Keep the generic HDL libraries and remove those that do not match the specified IP technologies
# Keep the generic HDL libraries and remove those that do not match the specified IP technologies
self
.
technologyNames
=
cm
.
listify
(
technologyNames
)
self
.
technologyNames
=
cm
.
listify
(
technologyNames
)
self
.
removed_dicts
=
[]
self
.
removed_dicts
=
[]
...
@@ -96,6 +89,13 @@ class HdlConfig:
...
@@ -96,6 +89,13 @@ class HdlConfig:
for
d
in
self
.
removed_dicts
:
for
d
in
self
.
removed_dicts
:
self
.
libs
.
remove_dict_from_list
(
d
)
self
.
libs
.
remove_dict_from_list
(
d
)
# Keep list of HDL library names
self
.
lib_names
=
self
.
libs
.
get_key_values
(
'
hdl_lib_name
'
)
# Check that there are no duplicate library names (eg. due to copying a hdlib.cfg without modifying the hdl_lib_name value)
duplicate_lib_names
=
cm
.
list_duplicates
(
self
.
lib_names
)
if
len
(
duplicate_lib_names
)
>
0
:
sys
.
exit
(
'
Error : Duplicate HDL library config file found %s
'
%
duplicate_lib_names
)
def
derive_all_use_libs
(
self
,
lib_name
):
def
derive_all_use_libs
(
self
,
lib_name
):
"""
Derive a list of all HDL libraries that the specified HDL lib_name library depends on.
"""
Derive a list of all HDL libraries that the specified HDL lib_name library depends on.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment