Cparser is a compiler that translates a sub set of C language to Bluespec SystemVerilog (BSV) - a high-level hardware description language.
It is tightly related to the FSM2BSV project, however it is possible to run it in stand alone mode.
The goal is to translate a very small portion of C code used to describe a behaviors of states from a UML State diagram.
Cparser was built on top of JavaCC (Java Parser Generator)
This project was part of my Masters in Computing Science at University of Sao Paulo / Brazil.
For more details about this project please refer to:
-
A tool for generating code from Bluespec SystemVerilog based on finite state machine described in UML and C (available only in Portuguese)
Master's Dissertation
DOI: 10.11606/D.55.2012.tde-15042013-102159 -
A tool to support Bluespec SystemVerilog coding based on UML diagrams
Published in IECON 2012 - 38th Annual Conference on IEEE Industrial Electronics Society
DOI: 10.1109/IECON.2012.6389493