sverilogparse

Verilog netlist (structural verilog) parser

6 releases

0.3.3 Sep 10, 2022
0.3.2 Sep 10, 2022
0.3.1 Aug 20, 2022
0.2.0 Aug 3, 2022
0.1.0 Jul 30, 2022


Used in 3 crates (via netlistdb)

AGPL-3.0-only

20KB
497 lines

sverilogparse: Structural Verilog Parser in Rust

This is a structural verilog parser written in Rust.

Similar project: https://github.com/OpenTimer/Parser-Verilog


lib.rs:

A structural verilog parser written in Rust.

Usage

Just pass an [ArcStr] to SVerilog::parse_str. Example:

use sverilogparse::SVerilog;

let _parsed = SVerilog::parse_str(arcstr::literal!(r#"
module simple (a, b);
input a;
output b;
not n1 (.a(a), .out(b));
endmodule
"#)).expect("parse error");

Dependencies

~5–6.5MB
~125K SLoC