If top only defines a dependency on mid, it will still compile, because bot leaks into the compilation of top.
For Xcelium, it seems that the -pkgsearch option would help here. This explicitly forces us to specify where to look for packages. When compiling top, without specifying a dependency on bot, we would get the following:
This would cause a compile error related to bot not being visible.
This mechanism is only activated when there is at least one -pkgsearch directive. To ensure that we specify all required -pkgsearch options, even when forgetting all dependencies, we can add a dummy -pkgsearch option pointing to the current library.
Assuming we have 3 projects:
If top only defines a dependency on mid, it will still compile, because bot leaks into the compilation of top.
For Xcelium, it seems that the
-pkgsearch
option would help here. This explicitly forces us to specify where to look for packages. When compiling top, without specifying a dependency on bot, we would get the following:This would cause a compile error related to bot not being visible.
This mechanism is only activated when there is at least one
-pkgsearch
directive. To ensure that we specify all required-pkgsearch
options, even when forgetting all dependencies, we can add a dummy-pkgsearch
option pointing to the current library.