Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gds Analyze the problem #1562

Open
SouthChinaHuihuisauce opened this issue Dec 8, 2023 · 6 comments
Open

gds Analyze the problem #1562

SouthChinaHuihuisauce opened this issue Dec 8, 2023 · 6 comments
Labels

Comments

@SouthChinaHuihuisauce
Copy link

Dear author, I would like to ask how Klayout parses GDS files. If possible, could you please tell me the specific location of the code?

@klayoutmatthias
Copy link
Collaborator

klayoutmatthias commented Dec 8, 2023

That's difficult to say. There is not a single piece of code responsible for reading GDS as there is an architecture behind (parser, database).

But what is the problem you're trying to address here? Or what problem do you wish to solve?

@SouthChinaHuihuisauce
Copy link
Author

That's difficult to say. There is not a single piece of code responsible for reading GDS as there is an architecture behind (parser, database).

But what is the problem you're trying to address here? Or what problem do you wish to solve?

Thank you for your reply. I am trying to parse the GDS layout in Qt using some simple methods. I am wondering if it is possible to use a third-party library to parse the GDS layout. Can you give me some suggestions? In Qt, do I use QGraphicsView, QGraphicsScene, and QGraphicsItem to draw the layout? Could you please give me some suggestions? Thank you very much.

@stefanottili
Copy link

It’s usually helpful to give some background when asking questions.
Why do you want to write your own gds reader/datastructure/viewer ?

A simple search in GitHub shows lots of gds2 related projects.
E.g. https://github.com/MichaelCache/gds_viewer

@SouthChinaHuihuisauce
Copy link
Author

It’s usually helpful to give some background when asking questions. Why do you want to write your own gds reader/datastructure/viewer ?

A simple search in GitHub shows lots of gds2 related projects. E.g. https://github.com/MichaelCache/gds_viewer

Thank you for your reply. The purpose is to try making a demo and learn about this knowledge. Thank you very much for providing examples. Thank you.

@klayoutmatthias
Copy link
Collaborator

@SouthChinaHuihuisauce You may want to try Python - there are some GDS2 related modules, e.g. gdstk and also PyQt5 which is a Python port for Qt. Python is usually easier to learn and to use than C++.

Matthias

@SouthChinaHuihuisauce
Copy link
Author

@SouthChinaHuihuisauce You may want to try Python - there are some GDS2 related modules, e.g. gdstk and also PyQt5 which is a Python port for Qt. Python is usually easier to learn and to use than C++.

Matthias

Thank you for your reply. Yes, currently I am also using gdstk. I will try using gdstk in Python. I should first familiarize myself with the file structure of gds2. Thank you again for your suggestion, and I will try it out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants