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

Make PCell writing easier #16

Open
DerekK44 opened this issue Jul 1, 2019 · 2 comments
Open

Make PCell writing easier #16

DerekK44 opened this issue Jul 1, 2019 · 2 comments
Labels
enhancement New feature or request

Comments

@DerekK44
Copy link
Owner

DerekK44 commented Jul 1, 2019

Writing python scripts to make PCells should be easy. In principle, it should consist of only:

  1. Drawing the shapes on the appropriate layers, with as much or as little parameterization as needed
  2. Specifying the location and names of the ports

Everything else (handling cell and shape rotations, naming the cell, etc.) should be handled automatically. I think it would be best if all the components inherit from a new PICwriter component class (which then inherits from the gdspy Cell class), to handle all of these events in a standard format.

Once this is done, it would be great to add a page to the documentation with a tutorial on writing custom PCells.

@DerekK44 DerekK44 added the enhancement New feature or request label Jul 1, 2019
@DerekK44
Copy link
Owner Author

This has been implemented in the recent commits, by transitioning all components to a custom Component class in the toolkit. A proper tutorial still needs to be added to the docs...

@gyger
Copy link
Contributor

gyger commented Apr 29, 2020

Is there a reason this component class does not inherit from gdspy.Cell?

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

No branches or pull requests

2 participants