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);
}
- CPU: Xeon Gold 6134 @ 3.20GHz
- OS : CentOS Linux release 7.6.1810 (Core)
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 |