Crate tf_parser[−][src]
The tf_parser is used to parse Technology(.tf) file, which is a part of EDA P&R tool. This file is usually provided by Foundary (like TSMC,GF, SMIC,etc) to describe basic technology information, technology layer, technology via, design rules, density rules, etc.
Example
use tf_parser::TfData; pub fn parse_tf<P>(file_path: P) -> Result<TfData, Box<dyn std::error::Error>> where P: AsRef<Path>, { let tf_data: TfData = fs::read_to_string(file_path)?.parse()?; Ok(tf_data) } let data = parse_tf("example.tf");
Feature
- Easy Embedded. With this crate, you can easily embed parse technology file into your EDA toolchain
- Friendly Error Feedback. The tf_parser use VerboseError to locate the error when it first meets syntax error in the technology file
Limitation
The parser currently just support Synopsys Appolo compatible technology file format. It will meet failure when parsing .techfile for Cadence pdks
Modules
model | Data structure abstract in Technology file |
parser | Technology file subparser collection |
Type Definitions
TfRes |