Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to configure SystemC environment under Linux system

2025-01-14 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

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

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report