klayout icon indicating copy to clipboard operation
klayout copied to clipboard

GDS files cannot be opened in L-Edit

Open Automachef opened this issue 1 year ago • 8 comments

I used the MatlabGDSPhotonics Toolbox package in matlab to generate a waveguide diagram based on modified Euler curves, but it can't be opened in Tanner L-edit 16.0, but my teacher can open it in version 13.0, I would like to ask how to solve it!

Automachef avatar Dec 05 '23 10:12 Automachef

[1] You can register at Siemens EDA forum at https://eda.sw.siemens.com/en-US/ and post your question. Tanner L-Edit is under Siemens EDA software.

[2] Or you can post your question at https://www.edaboard.com/forums/analog-integrated-circuit-ic-design-layout-and-more.39/.

[3] You might also try asking the author at https://www.mathworks.com/matlabcentral/fileexchange/46827-nicolasayotte-matlabgdsphotonicstoolbox. His most recent response was 01 Mar 2023.

chkkbim avatar Dec 05 '23 15:12 chkkbim

I do not know much about L-Edit, but I'm surprised to see newer versions cannot open the file. Usually that is the other way round.

I can make some suggestions where to look at:

  1. Number of points per polygon: KLayout can write up to 8000 + some more, but GDS standard is basically limited to 4000 + some more. In the writer options you can limit the number of points
  2. Same for number of points per path, but KLayout does not have an option to limit the number of points per path. You can try converting to polygon and observe 1.)
  3. Allowed characters in cell names or texts. KLayout does not impose any restrictions, but some tools may have some
  4. Length of cell names. KLayout does not have a real limit. GDS has a limit at 32767 characters, but some tools may impose other limits like 40 characters
  5. Non-orthogonal arrays (observe warnings on the instance properties page)
  6. Layer or datatype numbers >32767
  7. Paths with short edges
  8. Paths with single points

This list can be continued, but this is what comes in my mind from my experience. My suggestion is to try OASIS which is specified more strictly than GDS and does not impose limits. Or maybe you have some error message you can share or - better - the file itself.

Matthias

klayoutmatthias avatar Dec 05 '23 22:12 klayoutmatthias

Just as a confirmation: the toolbox does not use KLayout to generate GDS - it is just recommended as a viewer, right?

So how is this issue related to KLayout?

Matthias

klayoutmatthias avatar Dec 05 '23 22:12 klayoutmatthias

I'm sorry, I didn't make it clear that my problem is that I can open the file with Klayout software, but after saving it as a GDS2 file, it can't be opened in L-edit, and the curve path I drew has exceeded 8000 points, is it caused by this problem? I've also attached my files, I've just started using klayout and there are many things I'm not very proficient in, I'm very sorry if there's anything wrong! Waveguide01.zip

Automachef avatar Dec 06 '23 01:12 Automachef

klayout Waveguide01.gds 
Warning: Record length larger than 0x8000 encountered: interpreting as unsigned (position=118, record number=9, cell=gdss)
Warning: Record length larger than 0x8000 encountered: interpreting as unsigned (position=120086, record number=29, cell=gdss)

You've generated a gds that is "open to interpretation". The klayout write form gives a hint on how to address the issue, change the default of 8000 to 4000.

image

Give that a try with L-edit and let us know how it goes.

You probably also want to change some parameter in the tool that generated this gds, you shouldn't need that many points to adequately represent the polygon curves.

stefanottili avatar Dec 06 '23 03:12 stefanottili

Although I still don't know why it can't be opened, I installed version 13.0 of L-edit through a virtual machine, and the file was successfully opened, and I personally feel that it shouldn't be a problem with points, just I generated a circle with 360 sides and couldn't open it in L-edit 屏幕截图 2023-12-06 220625 屏幕截图 2023-12-06 220727

Automachef avatar Dec 06 '23 14:12 Automachef

https://github.com/klayoutmatthias/dump_oas_gds2

should help to figure out what the “unexpected element” might be.

stefanottili avatar Dec 06 '23 16:12 stefanottili

@Automachef Maybe you can paste the last file that created the error at position 5930?

Apart from the many points there is nothing special with the file you pasted before.

Matthias

klayoutmatthias avatar Dec 06 '23 20:12 klayoutmatthias