2 releases

0.1.1 May 4, 2024
0.1.0 May 1, 2024

#427 in Text processing

Download history 216/week @ 2024-04-28 65/week @ 2024-05-05

281 downloads per month

MIT license

100KB
2.5K SLoC

rtlicious

CI codecov

Nom-based parser for Yosys RTLIL text representation.

Usage:

    use rtlicious;
    let src =
    r#"module \test
    wire $a
    end
    "#;
    let design = rtlicious::parse(src).unwrap();
    assert_eq!(design.modules().len(), 1);
    dbg!({:?}, design);
> Design {
    autoidx: None,
    modules: {
        "test": Module {
            attributes: {},
            parameters: {},
            wires: {
                "a": Wire {
                    width: 1,
                    offset: 0,
                    input: false,
                    output: false,
                    inout: false,
                    upto: false,
                    signed: false,
                    attributes: {},
                },
            },
            memories: {},
            cells: {},
            processes: {},
            connections: [],
        },
    },
}

Dependencies

~3MB
~64K SLoC