yosys-netlist-json

Crates.ioyosys-netlist-json
lib.rsyosys-netlist-json
version0.1.0
sourcesrc
created_at2017-08-27 10:27:30.274308
updated_at2022-02-22 05:53:36.417237
descriptionA library for working with Yosys netlists in JSON format
homepage
repositoryhttps://github.com/rqou/yosys-netlist-json
max_upload_size
id29438
size19,554
R (ArcaneNibble)

documentation

README

Crates.io Docs.rs

Yosys JSON netlist serde structures

Read/write Yosys JSON files in Rust using serde.

Reading

// from a byte slice
let result = Netlist::from_slice(...).unwrap();

// from an io::Read
let result = Netlist::from_reader(reader).unwrap();

Writing

let mut netlist = Netlist::new("Super cool HDL tool");
...
let json = netlist.to_string().unwrap();
Commit count: 13

cargo fmt