f4pga / f4pga/ideas

Verilog AST format

Open
#20 8 comments 1 reaction 0 assignees View on GitHub
Dominant language
No language data
Stars
86
Forks
9
PR merge metrics
No merged PRs in 30d

Description

# Brief explanation

Open and Common format of Abstract Syntax Tree of Verilog program.

## Expected results

Tools ecosystem using the format.

# Detailed Explanation

Open HDL ecosystem needs more tools and libraries to deal with Verilog.
Common Abstract Syntax Tree data format will enable interoperabity.

Good collection of AST formats for different langages: https://astexplorer.net/

Set of core libraries:
* Verilog parser --> AST
* Verilog code generator <-- AST
* AST traversal, query and utility libraries

Good example of ecosystem enabled by AST format is ESTools:
* Parser : http://esprima.org
* Linter : https://eslint.org
* Compiler : https://babeljs.io
* Code coverage : https://istanbul.js.org
* Tool belt : https://github.com/estools

## Further reading

http://modularity.info/conference/2013/escodegen.html

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reviewing the proposed parser, code generator, AST traversal, query, and utility library roles, along with the linked AST format examples and ESTools ecosystem. Done would require a concrete, agreed Verilog AST format and an identified ecosystem of compatible tools; no repository files or tests are named.

Written by the indexing model from the issue text.

Assessment

Domain
compilers, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.