Get the App
SLTechnology News&Howtos  ›  Development  › 

How to configure SystemC environment under Linux system

Shulou Source: shulou.com Published: 2022-06-02 08:54:34 11月16日 Update

This article will explain in detail how to configure the SystemC environment under the Linux system. The editor thinks it is very practical, so I share it for you as a reference. I hope you can get something after reading this article.

The following is the configuration method under centos7

Place the compressed package in the user directory and extract it

Tar-zxvf systemc-2.3.3.tar.gz

Go to the systemc-2.3.3 folder

Cd systemc-2.3.3

Create a new temporary folder tmp and enter it

Mkdir tmpcd tmp

Run the following command

.. / configuremakemake install

At this point, two folders include and lib-linux64 are generated in the folder.

Set environment variabl

Export LD_LIBRARY_PATH=home/centos7/systemc-2.3.3/lib-linux64 / / where / home/cnetos7/ is the file decompression path, which is determined according to your own situation.

The command is only available at present and expires after restart. If long-term availability is required, it is recommended to add the command under .bashrc in the user directory, and execute the following command to restart the terminal to take effect.

Source .bashrc

Run a systemc program to test.

Test.cpp

/ / all systemc modules should include systemc.h header file#inlcude "systemc.h" / / hello_world is module nameSC_MODULE (hello_world) {SC_CTOR (hello_world) {/ / nothing in constructor} void say_hello () {/ / Print "Hello worldview!" To the console. Cout

Tags: Files commands folders environment configuration articles runs systems more users directories good practical admirals two content semicolons variables screens suggestions Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Docker NVidia MariaDB Shulou Technology MySQL