Coder Social home page Coder Social logo

lef-parser's People

Contributors

forcecore avatar trimcao avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

lef-parser's Issues

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.

Could not parse coloured lef

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.

ERROR:

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

Whats new in coloured lef ..?

  • MASK is a new attribute in RECT class

Example:

PORT
LAYER M1 ;
RECT MASK 1 0.038 0.035 0.074 0.205 ;
END

How to fix this issue ..?

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.