systemc library installationmedia.ee.ntu.edu.tw/courses/msoc/0_install.pdf · systemc library...

Post on 14-May-2020

42 Views

Category:

Documents

1 Downloads

Preview:

Click to see full reader

TRANSCRIPT

1

SystemC Library Installation

Po-Chen Wu

Yu-Sheng Lin

Multimedia SoC Design

Outline

Windows Visual Studio (or Express)

Linux (Our test environment)

Shao-Yi Chien 2

Multimedia SoC Design

Windows SystemC Setup

Shao-Yi Chien 3

Multimedia SoC Design Shao-Yi Chien 4

Install Microsoft VC Express

Install Microsoft VC Express Note: we recommend 2015 or 2017

http://www.microsoft.com/visualstudio/en-us/products/2010-editions/visual-cpp-express

Multimedia SoC Design Shao-Yi Chien 5

Install Microsoft VC Express (2017)

Multimedia SoC Design Shao-Yi Chien 6

MSVS is Also Fine

As an NTU student, we can download that from myNTU

https://my.ntu.edu.tw

Multimedia SoC Design Shao-Yi Chien 7

SystemC Library Installation (1)

Download OSCI SystemC 2.3.2 http://www.accellera.org/downloads/standards/systemc

Unzip the package to whatever you want Ex: D:\systemc

The same step applies for Linux

Multimedia SoC Design Shao-Yi Chien 8

SystemC Library Installation (2)

Use MSVC FileOpenProjectmsvc10\SystemC\SystemC.slnSolution“SystemC” will appear The Visual Studio Conversion Wizard will help you to convert the

file to the new VS version

Build the SystemC library:

DebugBuild Solution

File -> Close Solution

Multimedia SoC Design Shao-Yi Chien 9

SystemC Library Installation (3)

We recommend x64 for 2017.

Multimedia SoC Design Shao-Yi Chien 10

Create a New Project File->New->Project

Multimedia SoC Design Shao-Yi Chien 11

Create a New Project (2017) File->New->Project

Multimedia SoC Design Shao-Yi Chien 12

Add Existing Files to Project and

Setup Project Properties

Multimedia SoC Design Shao-Yi Chien 13

Add Include Path and Library Path

ProjectProperty

D:\systemc\systemc-2.3.0\src

D:\systemc\systemc-2.3.0\msvc80\SystemC\Debug

Important: Choose paths according to your installation!!!

Multimedia SoC DesignShao-Yi Chien

systemc.lib

Multimedia SoC Design

Or...

Shao-Yi Chien 15

D:\systemc\systemc-2.3.0\src

D:\systemc\systemc-

2.3.0\msvc80\SystemC\Debug\syste

mc.lib

Don’t modify

Multimedia SoC Design Shao-Yi Chien 16

MTd for ~2015

MDd for 2017

Multimedia SoC Design Shao-Yi Chien 17

/vmg /Za

Multimedia SoC Design Shao-Yi Chien 18

For 2017!

Multimedia SoC Design

Linux SystemC Setup

Shao-Yi Chien 19

Multimedia SoC Design

Linux Installation

ArchLinux (Our test environment)

yaourt -Ss systemc

Other Linux Distro

Normal library with only library and header

./configure --prefix=/opt/systemcmake -j4 install

Shao-Yi Chien 20

Multimedia SoC Design

Linux Compilation

Compile flag

--std=c++11 -I/opt/systemc/include

Linker flag

-lsystemc -L/opt/systemc/lib64

Shao-Yi Chien 21

top related