From 2d75d625099ac97dba083eef1259cdcd579a0256 Mon Sep 17 00:00:00 2001 From: Erik Kooistra <kooistra@astron.nl> Date: Wed, 25 Mar 2015 13:53:14 +0000 Subject: [PATCH] Excluded libs are not compiled but are mapped to work to avoid compile error when mentioned in the LIBRARY clause. --- tools/oneclick/base/modelsim_config.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/oneclick/base/modelsim_config.py b/tools/oneclick/base/modelsim_config.py index 244165f7db..9d2a905bf5 100755 --- a/tools/oneclick/base/modelsim_config.py +++ b/tools/oneclick/base/modelsim_config.py @@ -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) -- GitLab