Hi, I have the following problem running opanlane....
# shuttle
r
Hi, I have the following problem running opanlane. It can't find the includes that I have on the top of my files. For example, inside the folder verilog/rtl/myFolder/myFile1.v I have `include "myFolder/myFile2.v". It says: ERROR: Can't open include file `myFolder/myFile2.v'! I don't know why this happens If I have achieved to run the tests with the same files
m
are they added to the blackbox files in the config?
image.png
looks like if they are in user_project_includes then should be ok
r
they are both there
myFile1.v and myFile2.v are there, and openlane finds myFile1.v. But myFile1.v has an include inside it of myFile2.v, ant openlane can't find that relative path
if I change that path to work with openlane to the one that has /project/openlane/user_proj_example/../../ it works, but then it won't work with the tests
m
maybe don't include the files from each other? put all the inculdes in the uprj_netlists.v file
r
I tried that and changed the order putting myFile2.v before myFile1.v. It doesn't work because it doesn't find the constant declarations that I have declared in myFile2.v if don't write the include myFile2.v on the top of myFile1.v
I had the following idea (I have only tested with one of my files, but at least that files doesn't throw the error now)
Including the file into myFile1.v in the following way: ``ifdef TESTS` `include "myFolder/myFile2.v" `else `include "/project/openlane/user_proj_example/../../verilog/rtl/myFolder/myFile2.v" `endif
and then, add -DTESTS to the makefile of the tests like SIM_DEFINES = -DFUNCTIONAL -DSIM -DTESTS
It would be dangerous or illegal to do these things?