zoukankan      html  css  js  c++  java
  • 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!

     

  • 相关阅读:
    Linux HugePages及MySQL 大页配置
    tcp短连接TIME_WAIT问题解决方法大全
    从问题看本质: 研究TCP close_wait的内幕
    tcp_tw_recycle和tcp_timestamps的文章汇总
    MYSQL博客
    Tcp_tw_reuse、tcp_tw_recycle 使用场景及注意事项
    net.ipv4.tcp_tw_recycle
    TIME-WAIT和CLOSE-WAIT
    mysql 源码调试方法
    mysqldump 备份原理9
  • 原文地址:https://www.cnblogs.com/cpsmile/p/9526037.html
Copyright © 2011-2022 走看看