You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem comes with the fact that the Vtb__main.cpp is generated during verilation.
Since SoCMake moves verilation from configure stage to build stage (through ExternalProject), the file is not available in the main CMake project.
There are few options:
Check how the Vtb_main.cpp is generated, if its simple templating we can generate it with configure_file() easily. Declare executable in the main CMake project.
Just create a placeholder main.cpp file, that will be overwritten in the external project. Then declare the executable in the main CMake project.
Keep executable in the external project and pass shared/static libraries as paths through -DLIBRARIES="<lib1.so>|<lib2.a>,..."
The text was updated successfully, but these errors were encountered:
Currently, if MAIN argument is used for Verilator backend function, DPI-C libraries are not supported.
Instead a standard flow must be used with executable and main defined explicitly like this:
The problem comes with the fact that the Vtb__main.cpp is generated during verilation.
Since SoCMake moves verilation from configure stage to build stage (through ExternalProject), the file is not available in the main CMake project.
There are few options:
The text was updated successfully, but these errors were encountered: