Coder Social home page Coder Social logo

Comments (4)

heitzmann avatar heitzmann commented on August 19, 2024

@okianus Indeed this behavior is correct: only explicitly given cells are written (see the notes in http://gdspy.readthedocs.io/en/latest/library.html#gdspy.GdsLibrary.write_gds).

This adds flexibility for when the library must be split in several files (to be honest I've never used this GDSII feature myself, but it is sometimes needed and defined in the format specs).

from gdspy.

okianus avatar okianus commented on August 19, 2024

@heitzmann Thanks for the quick reply!

I can overcome this behavior by explicitly getting all the referenced cells using get_dependencies() and thus achieve the needed behaviour. But out of curiosity – in what cases one would NOT want the dependencies to be outputted to the GDSII file? If I have a top_cell that references a few subcells, write_gds(outfile, [top_cell]) would produce an incomplete structure. If the library is split into several files, can dependencies exist across more than one file? If that's the case, I'd appreciate a link to the specs. If not, then it appears like there is no reason for the dependencies to be excluded.

from gdspy.

heitzmann avatar heitzmann commented on August 19, 2024

Because GDSII is used in some very old equipment, file sizes sometimes matter. In order to keep sizes constrained it is possible to reference other GDSII files (similar to cell referencing).

In that case I could place my main cell in file 1 and referenced cells in files 2, 3... etc., so that they have smaller sizes. As I said, I have never used this feature myself, although I have faced the file size issue before when using an old laser writer.

The exact spec can be found here: http://boolean.klaasholwerda.nl/interface/bnf/gdsformat.html#rec_reflibs

from gdspy.

okianus avatar okianus commented on August 19, 2024

@heitzmann Thank you for the clarification and the link to the specs.

from gdspy.

Related Issues (20)

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.