sdc-parser

Crates.iosdc-parser
lib.rssdc-parser
version0.1.1
sourcesrc
created_at2019-03-27 11:20:37.595166
updated_at2019-05-07 09:00:38.880257
descriptionA parser library for Synopsys Design Constraints (sdc)
homepage
repositoryhttps://github.com/dalance/sdc-parser
max_upload_size
id124137
size356,969
Naoya Hatta (dalance)

documentation

README

sdc-parser

A parser library for Synopsys Design Constraints (sdc).

Build Status Crates.io Docs.rs codecov

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
Commit count: 24

cargo fmt