2 releases
0.1.1 | May 7, 2019 |
---|---|
0.1.0 | Mar 27, 2019 |
#24 in #constraints
305KB
8K
SLoC
sdc-parser
A parser library for Synopsys Design Constraints (sdc).
Usage
[dependencies]
sdc_parser = "0.1.0"
Example
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);
}
Benchmark
Environment
- CPU: Xeon Gold 6134 @ 3.20GHz
- OS : CentOS Linux release 7.6.1810 (Core)
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 |
Dependencies
~1–2.4MB
~39K SLoC