rtlicious

Crates.iortlicious
lib.rsrtlicious
version0.1.1
sourcesrc
created_at2024-05-01 15:07:50.584505
updated_at2024-05-04 19:17:09.344648
descriptionA nom-based parser for Yosys RTLIL files
homepage
repositoryhttps://github.com/oxim-rs/rtlicious
max_upload_size
id1226471
size104,630
Alexis Marquet (allexoll)

documentation

README

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: [],
        },
    },
}
Commit count: 31

cargo fmt