是因为在modelsim属性中曾将其设置为以管理员身份运行,将"以管理员身份运行此程序"取消即可. 来自:https://blog.csdn.net/weixin_43668420/article/details/120894796