Crates.io | sdc-parser |
lib.rs | sdc-parser |
version | 0.1.1 |
source | src |
created_at | 2019-03-27 11:20:37.595166 |
updated_at | 2019-05-07 09:00:38.880257 |
description | A parser library for Synopsys Design Constraints (sdc) |
homepage | |
repository | https://github.com/dalance/sdc-parser |
max_upload_size | |
id | 124137 |
size | 356,969 |
A parser library for Synopsys Design Constraints (sdc).
[dependencies]
sdc_parser = "0.1.0"
use sdc_parser::{self, sdc};
fn main() {
let result = sdc_parser::parse("current_instance duv");
let expect = sdc::Sdc {
commands: vec![sdc::Command::CurrentInstance(
sdc::CurrentInstance {
instance: Some(String::from("duv"))
}
)]
};
assert_eq!(expect, result);
}
Size[KB] | Time[ms] | Throughput[MBps] |
---|---|---|
5617 | 470 | 12.22 |
11529 | 965 | 12.23 |
54059 | 2738 | 20.21 |
114528 | 9157 | 12.81 |
496898 | 30887 | 16.47 |