Crates.io | rtlicious |
lib.rs | rtlicious |
version | 0.1.1 |
source | src |
created_at | 2024-05-01 15:07:50.584505 |
updated_at | 2024-05-04 19:17:09.344648 |
description | A nom-based parser for Yosys RTLIL files |
homepage | |
repository | https://github.com/oxim-rs/rtlicious |
max_upload_size | |
id | 1226471 |
size | 104,630 |
Nom-based parser for Yosys RTLIL text representation.
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: [],
},
},
}