#firrtl #nom #parser #single #rtl #spec #stupid

firrtl-parser

a stupid simple, single function firrtl parser library

1 unstable release

0.1.0 Jul 3, 2021

#6 in #firrtl

MIT license

19KB
545 lines

firrtl-parser

This project is incomplete.

firrtl-parser is a parser for FIRRTL, the Chips Alliance's "Flexible Intermediate Representation for RTL". It is implemented in rust using the oh-so-wonderful nom crate.

You can read the FIRRTL Spec here

Features

This crate will expose a single function that takes a string consisting of spec-compliant FIRRTL and returns an AST. It will never, ever do anything else. Stuff like typechecking, simulation, codegen, etc are explicitly out of scope of this crate.

Dependencies

~3–4MB
~73K SLoC