It Converts a subset of Boolean Formulae written in Verilog format to Z3Py acceptable format. Uses an ANTLR4 to create Parsers and Visitors.
- ANTLR4 Read Instructions on /https://github.com/antlr/antlr4 or follow Tomassetti's tutorial https://tomassetti.me/antlr-mega-tutorial/
- z3Py
pip install z3-solver
- Argparse
pip install argparse
- Python 3
python verilog2z3.py --verilog_spec=lut1_2_2.v
Verilog benchmarks are in benchmarks/verilog
python verilog2z3.py --help
Gabriele Tomassetti's ANTLR Mega Tutorial
Thanks to Stanly Samuel for helping me learn Visitor Design Patterns and Clarifying doubts.