Skip to content
Snippets Groups Projects
Commit 2d75d625 authored by Eric Kooistra's avatar Eric Kooistra
Browse files

Excluded libs are not compiled but are mapped to work to avoid compile error...

Excluded libs are not compiled but are mapped to work to avoid compile error when mentioned in the LIBRARY clause.
parent b4896117
Branches
No related tags found
No related merge requests found
......@@ -147,6 +147,12 @@ class ModelsimConfig(hdl_config.HdlConfig):
# . not used vendor technology libs are not compiled but are mapped to work to avoid compile error when mentioned in the LIBRARY clause
for tech_dict in self.removed_dicts:
fp.write('%s = work\n' % tech_dict['hdl_library_clause_name'])
# . excluded libs are not compiled but are mapped to work to avoid compile error when mentioned in the LIBRARY clause
if 'hdl_lib_excludes' in lib_dict:
exclude_libs = lib_dict['hdl_lib_excludes'].split()
for exclude_lib_name in exclude_libs:
exclude_lib_dict = self.libs.get_dicts('hdl_lib_name', exclude_lib_name)
fp.write('%s = work\n' % exclude_lib_dict['hdl_library_clause_name'])
# . all used libs for this lib_name
use_lib_names = self.derive_all_use_libs('sim', lib_name)
use_lib_dicts = self.libs.get_dicts('hdl_lib_name', use_lib_names)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment