SIM-Tools-KaSCPar - Karlsruhe SystemC Parser Suite
KaSCPar - Karlsruhe SystemC Parser Suite
What is KaSCPar
KaSCPar stands for Karlsruhe SystemC Parser Suite. It is a SystemC parser supporting the latest language version with dedicated tokens for SystemC 2.1 keywords. The suite consists of two components for generating either the AST or an elaborated description of the SystemC design, both in XML format for easy usage.
Features- supports C++ and SystemC 2.1
- based on C++ grammar with dedicated tokens for SystemC keywords
- uses GNU gcc preprocessor
- supports parsing of multiple sources files
- created by JavaCC & JJTree
- generates two output files: the AST and the elaborated SystemC design in XML format
The Karlsruhe SystemC Parser contains two phases. The first phase generates the AST and the second phase constructs the elaborated description of the SystemC design. The tool SC2AST generates only the AST and the tool SC2XML generates both the AST and the elaborated description of the SystemC design.
SC2ASTThe generated AST file contains a token for each C/C++ and SystemC 2.1 language element. Furthermore, the AST file contains some meta information like column number, line number and file name as a reference to the original SystemC file and are saved as attributes of each AST token. The comments of source files are also saved as special token comment in the AST. The parser uses the pre-processor from GNU gcc just to expand user defined macros of the SystemC design.
03-09-08
- A revised version of SC2AST with bugfixes and improvements is available. Check the download link.
- A list of fixed bugs is available here.
SC2XML
The SC2XML component is used to generate in a first phase the intermediate AST by calling SC2AST and afterwards to create the elaborated XML description of the SystemC design. The result is the elaborated XML description consisting of the functional and structural characteristics of the analyzed system. The structure of the resulting XML file is described by a DTD file.
License
SC2AST is licensed under the GNU Public License (GPL) Version 2.
SC2XML is licensed under the FZI license.
For other licensing options please contact us.
Download
