Commit 0b0b0d49 authored by rmrf's avatar rmrf

Update README file

parent aaa281dd
[systemc-clang]( SystemC Parser using the Clang Front-end # [systemc-clang]: A SystemC Parser using the Clang Front-end
[systemc-clang]( is a revamp of an earlier [SystemC]( Parser called [SystemCXML]( The purpose of this project is to provide researchers and individuals with a parser for SystemC. This SystemC parser uses the [clang]( front-end. [systemc-clang]( parses SystemC 2.3.
It parses RTL constructs and some TLM 2.0 constructs.
The public release will only allow parsing and representation of structural information of SystemC models at the RTL. This implementation will provide a reflection data structure that a designer can use to extract this information.
Internally, we are developing methods to represent behavioural information of the SystemC models. In addition, we plan to support TLM 2.0 models as well. Stay tuned for more updates and releases.
As always, please feel free to provide issues, and feature requests.
Requirements Requirements
------------ ------------
* [llvm]( * [llvm](
* [clang]( (version 3.4) * [clang]( (version 3.4)
* [SystemC]( version 2.3 * [SystemC]( version 2.3
* Please see [SystemC Installation notes]( * Please see [SystemC Installation notes](
Installation ## Installation
Please see the instruction [here]( * This version of systemc-clang compiles as a dynamic library. It requires LLVM and clang to be installed. Please follow the directions below
* You can install LLVM and Clang via source or via binaries.
### LLVM/Clang from source
* Follow the instructions to install clang: [Get Started]( Notice that you should also install LLVM as it is needed for compilation of the stand-along program. A suggestion is to install LLVM/clang in a location that is accessible by the user.
Note that the clang-llvm version systemc-clang supports is version 3.4. So, when following the instructions posted at [Get Started]( please substitute the phrase "trunk" with "tags/RELEASE_34/final".
* Clone systemc-clang repository.
$ git clone
* Create a build directory for this stand-alone program.
$ mkdir systemc-clang-build
* Enter the cloned repository folder.
$ cd systemc-clang
* Edit the path for the `LLVM_BUILD_DIR` in, and set it to the appropriate path where LLVM/clang was installed.
Plugging into systemc-clang * Source the paths file (assuming bash shell). This should setup certain environment variables that cmake will use.
Write a simple [plugin]( to access the parsed information. ```bash
$ source scripts/
* Go to the build directory.
$ cd ../systemc-clang-build
* Create the makefiles using cmake.
$ cmake ../systemc-clang
* If there are no errors, then the compilation of Makefiles was successful. So, you can go ahead and compile the stand-alone program.
$ make
Testing on a small example
* Copy the compiled binary in the bin folder of LLVM_BUILD_DIR
$ cp systemc-clang $LLVM_BUILD_DIR/bin
* Set the `SYSTEMC` variable.
$ export SYSTEMC=<path-to-systemc-install>
* Execute it on a simple example. You should see some (debug) information print out on the screen. Hope to make this more meaningful in the future.
$ $LLVM_BUILD_DIR/bin/systemc-clang ../systemc-clang/tests/module1.hpp -- \
-I$SYSTEMC/include -x c++ -w -c
Contact Contact
------- -------
...@@ -33,12 +95,4 @@ Contact ...@@ -33,12 +95,4 @@ Contact
License License
-------- --------
* systemc-clang follows the same licensing as clang. Please look at [LICENSE]( * systemc-clang follows the same licensing as clang. Please look at [LICENSE](
Other Tools
There are several other SystemC parsers that are available. If you try them, and have some feedback for us, please let us know.
* [SystemCXML:](
* [Pinapa: A SystemC Front-end](
* [KaSCPar: Karlsruhe SystemC Parser Suite](
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment