Getting Started With SystemC - ElectroBucket
Getting Started With SystemC - ElectroBucket
electroBucket
SYSTEMC
SystemC is a set of C++ libraries, which enables a designer to perform cuncurrent simulation of system level model.
It is used for Electronic System Level design and Transaction Level Modelling(TLM). In this article we will discuss the
setup of SystemC in an Ubuntu 12.04 Machine and executing our first Hello World! program.
8. Do 㫤㫘㫢㫜
You are done with installation of SystemC 2.3.0. This version is packed with TLM package also. Now we can run our
first Hello World! program.
Open your favourite text editor and enter the following program:
http://www.electrobucket.com/systemc/getting-started-with-systemc 1/5
2014年3月26日 Getting Started with SystemC | electroBucket
SC_CTOR (hello_world) {
// Nothing in constructor
}
void say_hello() {
//Print "Hello World" to the console.
cout << "Hello World.\n";
}
};
Save the file as hello.cpp. Use following command to export a variable 㫗㫘㫗㫘㫖㫗㫖㫘㫗㫗㫗㫖 .
㫜㫚㫧㫦㫙㫛㫔㫗㫘㫗㫘㫖㫗㫖㫘㫗㫗㫗㫖㫖㫗㫜㫚㫙㫗㫣㫦㫚㫘㫣㫗㫚㫛㫚㫛㫜㫤㫚㫕㫖㫘㫗
㫖㫗㫟㫜㫣㫣㫦
Hello World.
If you get above output, you have successfully completed the setup and run your first SystemC program.
Note: This set of instruction has been tested with Linux Mint 14 which is derivative of Ubuntu Linux. In Ubuntu
12.10, user might need to install g++ before going through these steps.
http://www.electrobucket.com/systemc/getting-started-with-systemc 2/5
2014年3月26日 Getting Started with SystemC | electroBucket
SYSTEMC
Older Homes Are Better Than Newer 10 Breathtaking Places in the World Pope Francis Reveals He Used to Work
Ones Porch.com Amerikanki as a Bar Bouncer World News
ALSO ON ELECTROBUCKET
Remove the Trojan.PWS.Legmir.AD / W32.Ahlem.A@mm Show Desktop Notification for all mails in Outlook
virus from your PC 3 comments 2 comments
Wifi not working in Linux Mint 14 13 comments PullUp and PullDown Resistor 4 comments
1)sudo aptget install g++ (wasn't somehow not on my system, maybe 13.04 standard?)
2) export LD_LIBRARY_PATH=/usr/local/systemc2.3.0/liblinux64:$LD_LIBRARY_PATH
oterwise my SystemC example wouldn't start and stop with the followin error
I was not aware of LD_LIBRARY_PATH issue. I will test it and update the article accordingly. Thanks a lot
for updating.
• Reply • Share ›
Sorry for creating confusions. There were some mistakes in the article. Article has been updated now.
While I am trying to compile your hello example, the follow error shows:
option can add the include path where 㫕㫘㫖㫔㫕㫘㫔㫗㫘㫗㫘㫖㫗㫖㫘㫗㫗㫗㫖㫔should point to your SystemC installation directory. Try
additing proper command options. It will be helpful you could post your compilation command here.
• Reply • Share ›
when you are to the step 5 before running the configuration, you have to do:
mkdir objdir
cd objdir
Thank you
• Reply • Share ›
http://www.electrobucket.com/systemc/getting-started-with-systemc 5/5