Open MauroFoti opened 8 months ago
Hey,
you should see a makefile in your folder.
Use make
to generate the simulation and synthesis execuatable.
The generated files should match the project name u gave in the cmake so in you example dut
and dut_sctool
You can then either run ctest
or manually execute if you just want to see sv output ./dut_sctool
This should get you the .sv files in the sv_out
folder.
For better readability you should use a build folder for all the generatet files. See for Reference Getting Started
Hey,
you should see a makefile in your folder. Use
make
to generate the simulation and synthesis execuatable. The generated files should match the project name u gave in the cmake so in you exampledut
anddut_sctool
You can then either runctest
or manually execute if you just want to see sv output./dut_sctool
This should get you the .sv files in the
sv_out
folder.For better readability you should use a build folder for all the generatet files. See for Reference Getting Started
* Marco
When I follow the Getting Started guide you mentioned, no file is generated in the sv_out folder when running cmake. Where would I start to figure out why? The documentation doesn't really explain the build process so that's why I was trying to build a single file
Generate SV code for one specific example or design
$ cd $ICSC_HOME
$ source setenv.sh # setup PATH and LD_LIBRARY_PATH
$ cd build
$ cmake ../ # prepare Makefiles in Release mode
$ ctest -R DesignTargetName # compile and run SV generation for DesignTargetName
where DesignTargetName is a target name in CMakeLists.txt.
The .sv file is created in build/DesignTargetName/sv_out
I'm trying to figure out the build process to obtain an .sv file from the cpp file. For this, I've copied the
dut.h
file from the counter example (/designs/examples/counter
) and wrote a minimalCMakeLists.txt
file, that looks like this:dut.h
andCMakeLists.txt
are the only files in the directory/home/user/icsc_test
. When runningsource /opt/icsc/setenv.sh && cmake .
this is the output I get:Everything looks fine, but the folder
/home/user/icsc_test/sv_out
is empty. I am not really familiar with CMake, so any suggestion on what I might be missing are very appreciated.Note that the compiler doesn't produce any .sv file even for the examples design files provided by the repository.