diff --git a/tools/oneclick/base/modelsim_config.py b/tools/oneclick/base/modelsim_config.py
index 244165f7db26ce63b00354c4bf4360889f289ff7..9d2a905bf5febd04289cfb296368ad592923765d 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)