https://github.com/dalance/sdc-parser
https://github.com/dalance/sdc-parser
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/dalance/sdc-parser
- Owner: dalance
- License: apache-2.0
- Created: 2019-03-20T13:02:07.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-04-30T00:51:42.000Z (about 5 years ago)
- Last Synced: 2024-09-14T17:51:14.623Z (almost 2 years ago)
- Language: Rust
- Size: 84 KB
- Stars: 11
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
# sdc-parser
A parser library for Synopsys Design Constraints (sdc).
[](https://dev.azure.com/dalance/sdc-parser/_build/latest?definitionId=1&branchName=master)
[](https://crates.io/crates/sdc-parser)
[](https://docs.rs/sdc-parser)
[](https://codecov.io/gh/dalance/sdc-parser)
## Usage
```Cargo.toml
[dependencies]
sdc_parser = "0.1.0"
```
## Example
```rust
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 |