The solution to Cannot find XXX file "in directories" when modelsim compiles files

Problem Description

When using modelsim to compile the file, the following error message appears:
insert image description here

Solution

1. Select the file with the error message, right-click -> properties
insert image description here
2. After clicking to enter, find the "Verilog&Systemverilog" tab, click to enter and select "Include Directory" to prompt the error message during compilation to enter the folder where the required file is located. 3
insert image description here
. No error message generated when compiling again

Guess you like

Origin blog.csdn.net/weixin_51295681/article/details/124235590