anikau31 / systemc-clang

This is a Clang tool that parses SystemC models, and synthesizes Verilog from it.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

image

Documentation Status

SCCL: An open-source SystemC to RTL translator ==========================================

SCCL is an open-source tool that translates synthesizable SystemC to SystemVerilog RTL. This project started out as front-end for parsing and analyzing SystemC models, and it has evolved into a translator with the addition of a HDL synthesis plugin.

Requirements

  • llvm/clang (version 15.0.6)
  • SystemC version 2.3.3.
  • c++14 is required. We are using some features that necessitate c++17. Down-porting it is also possible, but not supported.

Installation

Plugin HDL

To compile with the HDL plugin, run cmake with the -DHDL=on flag.

Documentation

Tests

To enable compilation of tests, run cmake with the -DENABLE_TESTS=on flag and also the -DSYSTEMC_DIR=<path> flag to pass the location for SystemC. Without specifying the SYSTEMC_DIR path, it will not be possible to run the unit tests.

For information about running verilog conversion tests, see this file.

Issues

If you encounter problems, please create issues with a minimally working example that illustrates the issue.

Development Docker image

We build all the dependencies necessary for SCCL in a Docker image that you may use. Follow these Docker SCCL instructions to use the Docker image for building SCCL, and running benchmarks.

Project Ideas

If you're interested in contributing to SCCL, then we keep a list of interesting projects that one could approach. Please consult projects.

Publications

  • Zhuanhao Wu, Maya Gokhale, Scott Lloyd and Hiren Patel, SCCL: An open-source SystemC to RTL translator, 2023 IEEE 31st Annual International Symposium on Field-Programmable Custom Computing Machines (FCCM), Marina Del Rey, CA, USA, 2023, pp. 23-33, doi: 10.1109/FCCM57271.2023.00012.

Developers

Core

HDL plugin

License

follows the same licensing as clang. Please look at LICENSE.

About

This is a Clang tool that parses SystemC models, and synthesizes Verilog from it.

License:Other


Languages

Language:C++ 49.7%Language:Tcl 10.8%Language:Shell 9.5%Language:Makefile 9.3%Language:Python 8.3%Language:C 6.0%Language:SystemVerilog 3.9%Language:CMake 2.0%Language:M4 0.3%Language:Dockerfile 0.2%Language:Assembly 0.1%Language:Filebench WML 0.0%Language:Verilog 0.0%Language:Fortran 0.0%Language:GDB 0.0%