Skip to content

Latest commit

 

History

History
110 lines (86 loc) · 2.45 KB

README.md

File metadata and controls

110 lines (86 loc) · 2.45 KB

Compile and Install of the SystemC and TLM Library

This repository contains a make file for easy compile and install of SystemC / TLM.

This make file can build the SystemC / TLM library on the following systems:

  • Linux
  • Windows

Get Source Code

ed_systemc

git clone https://github.com/embed-dsp/ed_systemc.git

SystemC / TLM

# Enter the ed_systemc directory.
cd ed_systemc
# Edit the Makefile for selecting the SystemC / TLM source version.
vim Makefile
PACKAGE_VERSION = 2.3.3
# Download SystemC source package into src/ directory.
make download

Build

# Unpack source code into build/ directory.
make prepare
# Configure source code.
make configure
# Compile source code using 8 simultaneous jobs (Default).
make compile

Install

The SystemC package does NOT install correctly according to the GNU Coding Standards. The build products are therefore installed in the following locations in order to allow separate installation for different architectures and simple interoperability with the SCV package:

Linux

# Install build products.
sudo make install
/opt/
└── systemc/
    └── linux_x86_64/           # 64-bit binaries and libraries for Linux
        └── systemc-2.3.3/
            ├── docs/           # Documentation.
            │   ├── ...
            │
            ├── include/        # Include directory.
            │   ├── systemc.h
            │   ├── tlm.h
            │       ...
            ├── lib-linux64/    # Library directory.
            │   ├── libsystemc.a
                    ...

Windows: MSYS2/mingw64

# Install build products.
make install
/c/opt/
└── systemc/
    └── mingw64_x86_64/         # 64-bit binaries and libraries for Windows
        └── systemc-2.3.3/
            ├── docs/           # Documentation.
            │   ├── ...
            │
            ├── include/        # Include directory.
            │   ├── systemc.h
            │   ├── tlm.h
            │       ...
            ├── lib-mingw/      # Library directory.
            │   ├── libsystemc.a
                    ...