Home

Awesome

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

Result

Size[KB]Time[ms]Throughput[MBps]
561747012.22
1152996512.23
54059273820.21
114528915712.81
4968983088716.47