The newest version of kosim can be downloaded from the bottom of this page. The framework is written using the C++ style guide as shown here.
Premises- The OS used is GNU/Linux
- SystemC (systemc, scv, TLM) and Boost libraries are installed
- the build system used is CMake (www.cmake.org); to download and install please see the CMake web site.
Installation
The script build.sh under kosim/src defines the paths were the main components of the framework are installed. After each component a possible example is shown. - The CMake version 2.6 or higher must be installed
- The boost libraries must be installedTo install the Boost libs please see Getting Started on Unix Variants. To install Boost libs 1.41 in /usr/local dir the commands are: (./bootstrap.sh --prefix=/usr/local/boost_1_41_0; ./bjam; su root; ./bjam install --prefix=/usr/local/boost_1_41_0)
- The SystemC 2.2.0 library must be installed (e.g. /usr/local/systemc-2.2.0)
- The SystemC Verification library must be installed (e.g. /usr/local/scv-1.0p2-sysc2.2/lib-linux)
Note: All SystemC related libraries (SystemC, SCV, TLM2.0) can be automatically installed using Kosim Installer. - The TLM-2.0 lib is a header only library, does not need to be installed. Just copy the lib under the installaton directory.(e.g. /usr/local/TLM-2009-07-15)
- The Python 2.5/2.6 libraries must be installed (e.g. /usr/local/python2.5)
In build.sh script the following lines need to be updated to reflect the configuration of the system where Kosim is installed: 5 INSTALL_PREFIX="/usr/local" 6 SYSTEMC_ROOT="$INSTALL_PREFIX/systemc-2.2.0" 7 SCV_ROOT="$INSTALL_PREFIX/scv-1.0p2-sysc2.2" 8 TLM_ROOT="$INSTALL_PREFIX/TLM-2009-07-15" 9 BOOST_ROOT="INSTALL_PREFIX/boost_1_41_0" - To build the examples: cd .../kosim/src; ./build.sh
- To run all examples: make test
Note:After all the necessary components are installed the script kosim/src/build.sh must be modified so that the environment variables contain the correct paths. |