trimcao / lef-parser Goto Github PK
View Code? Open in Web Editor NEWParser for LEF library files
License: MIT License
Parser for LEF library files
License: MIT License
Hello,
I was wondering if I can reuse the parser in a different project. Currently, the project has no license. Can you please add a license to this project specifying the permissions and the availability for reusing the project. Thanks in advance.
Hi trimcao,
Am able to parse normal lef with this module without any issues, but it is not able to parse coloured lef,
While parcing coloured lef , I am getting the following error.
It is an enhancement changes in lef.
Start parsing LEF file...
Traceback (most recent call last):
File "lef_parser.py", line 125, in
lef_parser.parse()
File "lef_parser.py", line 52, in parse
nextState = curState.parse_next(info)
File "/proj/ipqa_dev/sw/play/tmp_rel/lef-parser-master/lef_util.py", line 197, in parse_next
self.info["LAYER"][-1].add_rect(data)
File "/proj/ipqa_dev/sw/play/tmp_rel/lef-parser-master/lef_util.py", line 271, in add_rect
x0 = float(data[1])
ValueError: could not convert string to float: MASK
PORT
LAYER M1 ;
RECT MASK 1 0.038 0.035 0.074 0.205 ;
END
File : lef_utils.py
The following block has to be update to resolve this issue.
def add_rect(self, data):
x0 = float(data[1])
y0 = float(data[2])
x1 = float(data[3])
y1 = float(data[4])
points = [(x0, y0), (x1, y1)]
rect = Rect(points)
self.shapes.append(rect)``
Regards,
Devarajulu.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.