• Noxim配置运行


    Noxim - the NoC Simulator that is implemented by SystemC

     

    第一步:

    C++ compiler installation

     

    第二步:

    YAML installation

     1 The name of the package depends on the Unix version you are using.
     2 
     3 On Ubuntu 14.04, for example, it is possible to install yaml (and the required boost 
     4 libraries) with:
     5 
     6     sudo apt-get install libyaml-cpp-dev libboost-dev
     7 
     8     If the packet libyaml-cpp-dev is not available just build yaml-cpp:
     9     Prerequisites:
    10     - CMake
    11         sudo apt-get install cmake
    12 
    13     - Boost libs
    14         sudo apt-get install libboost-dev
    15 
    16     Then download the code at https://github.com/jbeder/yaml-cpp/archive/master.zip
    17     and execute the folloqing commands: 
    18 
    19         unzip yaml-cpp-master.zip
    20         mv yaml-cpp-master yaml-cpp
    21         cd yaml-cpp
    22         mkdir lib
    23         cd lib
    24         cmake ..
    25         make
    26         sudo make install
    27 
    28 
    29 On MacOSX, when using macports, just type:
    30 
    31     sudo port install yaml-cpp
    32 
    33 Please also set properly the YAML path in the Makefile, as follows:
    34 YAML    := /opt/local/

     

    第三步:

    SystemC installation

     1 - Download SystemC (currently at version 2.3.1) from 
     2   http://www.accellera.org/downloads/standards/systemc (a free registration is required).
     3 - Unpack it:
     4     tar -xzf systemc-2.3.1.tgz
     5 
     6 - Enter the newly created directory and refer to the file INSTALL which details all the steps
     7   required for building. Basically they are:
     8 
     9     mkdir objdir
    10     cd objdir
    11     export CXX=g++
    12     ../configure
    13     make
    14     make install
    15     cd ..
    16     rm -rf objdir
    17 
    18   Once you have installed SystemC correctly, you may then jump to the next step.

     

    第四步:

    Build Noxim

    If SystemC is installed correctly, then you just have to compile Noxim.
    
    1) Extract the source files and go to the "bin" directory.
    
    2) In that directory edit the file Makefile to modify "SYSTEMC" and "YAML" 
    environment variables according to your installation paths. Please, note that the
    values already set in the Makefile should be fine if you are using Ubuntu  
    
    3) Just run "make".
    
    [cp@Server203 bin]$ export LD_LIBRARY_PATH=/home/cp/SystemC/systemc-2.3.1a/lib-linux64  (非常重要,
    当路径改变的时候都要运行一下,防止systemc-2.3.1.so库在当前工程文件外面。)
    解决问题:./noxim: error while loading shared libraries: libsystemc-2.3.1.so: cannot open shared object file: No such file or directory
    You may ignore warning messages (
    if any), so if you don't get any error you are ready to run Noxim for the first time using the command: ./noxim -config ../config_examples/default_config.yaml If everything works fine, it is now safe for you to copy or move this executable elsewhere; if you are a maniac of cleaning please note that "make clean" will also delete the executable... so move it before cleaning! That's all, folks!

     

  • 相关阅读:
    JDBC数据库连接
    JDBC驱动程序类型
    JDBC简单示例代码
    JDBC SQL语法
    JDBC是什么?
    JDBC快速入门教程
    JUnit4参数化测试实例
    JUnit套件测试实例
    JUnit4时间(超时)测试实例
    JUnit4忽略(Ignore)测试实例
  • 原文地址:https://www.cnblogs.com/cpsmile/p/9526037.html
Copyright © 2020-2023  润新知