yosri ben salah 0 Report post Posted June 14, 2017 (edited) Hi im pretty new to systemC, i want to use Risc_cpu provided with systemC 2.3.1 library to execute C code stored in text file for my project graduation, any response pls how can i do this thanks Edited June 14, 2017 by yosri ben salah Share this post Link to post Share on other sites
Roman Popov 48 Report post Posted June 14, 2017 If you are using CMake build, then just pass -DBUILD_EXAMPLES=ON and all bundled examples will be built. Including risc_cpu example. You can run examples using general CTest flow (check documentation on cmake website https://cmake.org/Wiki/CMake/Testing_With_CTest ) Share this post Link to post Share on other sites
yosri ben salah 0 Report post Posted June 14, 2017 my ystemC environnement is microsoft visual studio 2015 Share this post Link to post Share on other sites
maehne 67 Report post Posted June 15, 2017 CMake is also able to generate a Visual Studio 2015 project. However, the risc_cpu example is maybe not a good starting point for what you want to achieve. It lacks a full C toolchain for compiling code into its machine code. Only a basic assembler is provided. Have a look to, e.g., SoCLib for a platform for modeling microprocessor systems using SystemC. Share this post Link to post Share on other sites
katang 0 Report post Posted July 13, 2017 Concerning SoCLib, could you please offer a good tutorial (I mean other than the two provided under this title)? Even I was not able to find out what that library is exactly good for. It is OK, that some files were touched last time nearly 10 years ago, that the documentation is half French/half English, usually the /doc subdirs are empty, the source files do not contain any useful comments, etc. Even with a good starting point, it is a kind of reverse engineering, without it is hopeless. To use some IPs with some of my new own IPs, it is mission impossible. Share this post Link to post Share on other sites