码迷,mamicode.com
首页 > 其他好文 > 详细

Noxim配置运行

时间:2018-08-23 20:57:31      阅读:538      评论:0      收藏:0      [点我收藏+]

标签:when   obj   hat   pos   eps   compile   read   ready   standards   

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  (非常重要)
解决问题:./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 dont 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! Thats all, folks!

 

Noxim配置运行

标签:when   obj   hat   pos   eps   compile   read   ready   standards   

原文地址:https://www.cnblogs.com/cpsmile/p/9526037.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!