eruisi
Member level 4
I am using Liberty Parser 2.5 from Synopsys to parse and process liberty files.
There is a Perl interface in the package so I use it to make my programming easy.
However, I found one issue in in this Perl interface: it's good to read .lib but when it comes to write out a modified liberty to a file using liberty::si2drWriteLibertyFile, it re-formats a lot to original liberty file: it re-factories tab indents and add double quotes to many string values
for example, original liberty has syntax like
cell(AOI), not it becomes cell("AOI")
This is not a fatal error, but it make visual check or text diff very difficult.
Does anyone use Perl Liberty Parser too and ran into the same issue? Is there a way to minimize the re-formatting from Perl interface.
What I found is C API won't change much on format and for Perl interface, if I don't modify data (add/delete cell/pin/attribute) and write a liberty, then there is no re-formatting, but if I change some thing then write out liberty, it will add a lot of double quotes ("")
Any help is much appreciated.
Thanks
There is a Perl interface in the package so I use it to make my programming easy.
However, I found one issue in in this Perl interface: it's good to read .lib but when it comes to write out a modified liberty to a file using liberty::si2drWriteLibertyFile, it re-formats a lot to original liberty file: it re-factories tab indents and add double quotes to many string values
for example, original liberty has syntax like
cell(AOI), not it becomes cell("AOI")
This is not a fatal error, but it make visual check or text diff very difficult.
Does anyone use Perl Liberty Parser too and ran into the same issue? Is there a way to minimize the re-formatting from Perl interface.
What I found is C API won't change much on format and for Perl interface, if I don't modify data (add/delete cell/pin/attribute) and write a liberty, then there is no re-formatting, but if I change some thing then write out liberty, it will add a lot of double quotes ("")
Any help is much appreciated.
Thanks