环境Vivado 2020.2 ModelSim 2020.4背景Xilinx 官网资料显示 Vivado 2020.2 认证通过的 ModelSim 版本是 2020.2在网上基本找不到 ModelSim 2020.2只能找到 ModelSim 2020.4 版本搜索资料查看 ModelSim 2020.2 到 2020.4 版本更新内容使用同一个内核版本只是 bug 迭代更新且网上能看到多位博主发的 Vivado 2020.2 ModelSim 2020.4 编译库教程遂决定使用这两个版本组合使用问题编译提示版本需要使用 ModelSim 2020.2不影响库编译可暂时忽略编译库过程一直报大量错误达到 400 个 IP 报错排查过程着重解决编译库报大量错误的问题通过查阅资料确认 Vivado 2020.2 ModelSim 2020.4 搭配不会造成库的编译报错查看编译过程的日志一直提示 Error (suppressible): (vlog-12110) All optimizations are disabled because the -novopt option is in effect.将日志给到 DeepSeek、豆包、元宝进行分析按照 AI 提供的建议尝试做了一些修改均未有效3.根据AI的思考过程以及网上一些帖子的经验分享查看环境变量中的用户变量里面的path选中并编辑发现里面多了个之前使用过的modelsim2019.4版本的modelsim.ini进行删除并编译结果仍然报错4.怀疑环境配置污染重启电脑编译结果仍然大量报错5.检查测试工程vivado工程目录下生成的modeslim.ini打开检查内容发现还是之前2019.4的配置删除工程目录下的modeslim.ini以及.bak文件重新编译库6.现象编译过程变慢一直卡在secureip但等待十几二十分钟后编译完secureip并继续编译其他IP库未再出现大量报错7.编译通过《欢呼》8.核心原因总结之前安装过modelsim2019.4虽然通过卸载工具完成完整卸载但C盘中的临时文件以及工程目录下的modeslim.ini未更新仍然使用modelsim2019.4的ini文件导致大量报错。错误日志记录##########################################################################Applicationcompile_simlib (2020.2) File name : compile_simlib.logINFO: [Vivado 12-4753] Extracting data from the IP repository…(this may take a while, please wait)…………………………………INFO: [setup_ip_static_library-Tcl-23] Data extracted from repository. Inspected 611 IP libraries.INFO: [Vivado 12-5496] Finding simulator executables and checking version…WARNING: [Vivado 12-5495] Detected incompatible modelsim simulator installation version ‘2020.4’! The supported simulator version for the current Vivado release is ‘2020.2’.INFO: [Vivado 12-5498] Processing source library information for the selected device family (default:all) …Compiling libraries for ‘modelsim’ simulator in ‘D:/modelsim/Modelsim_Vivado_Lib’Compiling verilog library ‘secureip’…BEGIN_COMPILATION_MESSAGES(ModelSim:verilog:secureip)** Warning: (vlog-159) Mode option -64 is not supported in this context and will be ignored.Model Technology ModelSim SE-64 vlog 2020.4 Compiler 2020.10 Oct 13 2020** Error (suppressible): (vlog-12110) All optimizations are disabled because the -novopt option is in effect. This will cause your simulation to run very slowly. If you are using this switch to preserve visibility for Debug or PLI features, please see the User’s Manual section on Preserving Object Visibility with vopt. -novopt option is now deprecated and will be removed in future releases.Errors: 1, Warnings: 1END_COMPILATION_MESSAGES(modelsim:verilog:secureip)compile_simlib2 error(s)1 warning(s)0.20 % completeCompiling vhdl library ‘unisim’…BEGIN_COMPILATION_MESSAGES(ModelSim:vhdl:unisim)** Warning: (vcom-159) Mode option -64 is not supported in this context and will be ignored.Model Technology ModelSim SE-64 vcom 2020.4 Compiler 2020.10 Oct 13 2020** Error (suppressible): (vcom-12110) All optimizations are disabled because the -novopt option is in effect. This will cause your simulation to run very slowly. If you are using this switch to preserve visibility for Debug or PLI features, please see the User’s Manual section on Preserving Object Visibility with vopt. -novopt option is now deprecated and will be removed in future releases.Errors: 1, Warnings: 1END_COMPILATION_MESSAGES(ModelSim:VHDL:unisim)VHDL library ‘unimacro’…BEGIN_COMPILATION_MESSAGES(ModelSim:VHDL:unimacro)** Warning: (vcom-159) Mode option -64 is not supported in this context and will be ignored。Model Technology ModelSim SE-64 vcom 2020.4 Compiler 2020.10 Oct 13 2020。** Error (suppressible): (vcom-12110) All optimizations are disabled because the -novopt option is in effect. This will cause your simulation to run very slowly. If you are using this switch to preserve visibility for Debug or PLI features, please see the User’s Manual section on Preserving Object Visibility with vopt. -novopt option is now deprecated and will be removed in future releases。Errors: 1, Warnings: 1END_COMPILATION_MESSAGES(ModelSim:vhdl:unimacro)[1 error(s), 1 warning(s)] vhdl library ‘unifast’…BEGIN_COMPILATION_MESSAGES(ModelSim:vhdl:unifast)** Warning: (vcom-159) Mode option -64 is not supported in this context and will be ignored.Model Technology ModelSim SE-64 vcom 2020.4 Compiler 2020.10 Oct 13 2020** Error (suppressible): (vcom-12110) All optimizations are disabled because the -novopt option is in effect. This will cause your simulation to run very slowly. If you are using this switch to preserve visibility for Debug or PLI features, please see the User’s Manual section on Preserving Object Visibility with vopt. -novopt option is now deprecated and will be removed in future releases.Errors: 1, Warnings: 1END_COMPILATION_MESSAGES(ModelSim:VHDL:unifast)[1 error(s), 1 warning(s)]compile_simlib: 3 error(s), 3 warning(s), 0.61 % completeCompiling verilog library ‘unisim’…BEGIN_COMPILATION_MESSAGES(ModelSim:verilog:unisim)** Warning: (vlog-159) Mode option -64 is not supported in this context and will be ignored.Model Technology ModelSim SE-64 vlog 2020.4 Compiler 2020.10 Oct 13 2020** Error (suppressible): (vlog-12110) All optimizations are disabled because the -novopt option is in effect. This will cause your simulation to run very slowly. If you are using this switch to preserve visibility for Debug or PLI features, please see the User’s Manual section on Preserving Object Visibility with vopt. -novopt option is now deprecated and will be removed in future releases.Errors: 1, Warnings: 1END_COMPILATION_MESSAGES(ModelSim:verilog:unisim)Verilog library ‘unimacro’…