Liberty::Parser - Parser for Synopsys Liberty(.lib).
Version 0.02
use Liberty::Parser; my $p = new Liberty::Parser; my $g_func = $p->read_file("func.lib");
Liberty::Parser is indeed a Perl wrapper for Synopsys Open Liberty Project.
To new a Liberty::Parser object.
Read the liberty format file and return a group handle.
Return the handle of group type `cell'.
Return the handle of group type `port'.
Return the group name while input a group handle. Example:
print $p->get_group_name($g_func);
Return the handle of group type `cell'. Example:
my @j = $p->get_group_names ($f_cell); dump_array(\@j);
Return the type name of the group G. Example:
print $p->get_group_type($g);
Return the attribute name while input a attribute handle.
Return the attribute type while input a attribute handle.
Return the value type of attribute A.
Return a string with attriubte name and attribute value.
Print all attributes of a group G.
Print timing arc of group G(must be a pin type group.)
Print groups contained in group G in format "type:name". Example:
$p->print_groups($g);
Return the whole content of the group G.
Return the "surface" of the group G.
http://www.opensourceliberty.org
yorkwu, <yorkwuo@gmail.com>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.5 or, at your option, any later version of Perl 5 you may have available.
To install Liberty::Parser, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Liberty::Parser
CPAN shell
perl -MCPAN -e shell install Liberty::Parser
For more information on module installation, please visit the detailed CPAN module installation guide.