2016년 6월 19일 일요일

SystemC를 Ubuntu에 설치하는 방법

1. Accellera website (http://accellera.org/)에서 "Downloads" → "Accellera Standards" 선택.

2. "Available Accellera Systems Initiative Standards" 화면에서 "SystemC" 선택.

3. "SystemC" 화면에서 "Core SystemC Language and Examples" 선택.

4. "SystemC Open Source License Agreement" 화면이 나오는데, "I accept the SystemC Open Source License" 선택.

5. 다시 한 번 "SystemC" 화면이 나오는데, 여기서 다시 "Core SystemC Language and Examples" 선택.

6. "systemc-2.3.1.tgz" file을 download.

7. Download된 file을, 다음 명령으로 압축을 푼다.
tar xvzf systemc-2.3.1.tgz

8. Build (configure).
  1. 압축이 풀리면 "systemc-2.3.1"라는 directory가 생기는데, "cd systemc-2.3.1"해서 그 안으로 들어간다.
  2. Build를 위해 "mkdir build", "mkdir ~/sysc"를 한다 ("build" directory 에서 build를 하고, "~/sysc" directory에 설치를 할 것이다). 
  3. "cd build" 하여 "build" directory에 들어간 후, 다음 명령어로 configure (build를 위한 사전 작업)를 한다.
    ../configure --prefix=$HOME/sysc

9. Build (make; make install)
  1. "make"로 build 한 다음..
  2. "make install"로 install 한다. 

10. 다음과 같이, "~/sysc"에 SystemC가 설치된 것을 알 수 있다.

11. 설치된 SystemC의 기본적인 사용법에 관해서는 이 글을 참고.