gplugins icon indicating copy to clipboard operation
gplugins copied to clipboard

`sky130nm` inverter schematic-driven-layout design & `hdl21` integration

Open daquintero opened this issue 1 year ago • 2 comments

Just making a draft branch to work from

https://github.com/gdsfactory/skywater130/issues/86 https://github.com/gdsfactory/gplugins/issues/306

This PR:

  • [X] Integrates functionality to directly convert from a hdl21.module declaration into an equivalent gdsfactory compatible format, documents these features in an example
  • [X] Uses the new gdsfactory-sky130 repository
  • [x] Automates spice component to sky130 gds layout mapping
  • [x] Demonstrates schematic-driven-layout within an example
  • [x] Demonstrate functionality of a more advanced example (patch code as required)
  • [ ] Get tests to pass and docs to build (it's a bit weird and have attempted something reasonable?)
  • [x] Add test coverage

As this is currently very fluid, I expect this PR to supersede https://github.com/gdsfactory/skywater130/pull/94

daquintero avatar Mar 09 '24 12:03 daquintero

Hi Joaquin, hope you're well :sunny: , I think the base functionality is ready to build upon for more complex examples. This includes a demo from going from a sky130 SPICE-to-layout schematic editor functionality, which can be built upon and modified. What do you think? More complex sky130 analog layout examples can now be done imo, and maybe you know how to best polish/present the schematic with the port implementations?

daquintero avatar Jun 02 '24 16:06 daquintero

Hi @joamatab!

So I've tried to fix the actions that were not passing (adding the hdl21 module dependency into the action is a bit strange, I've followed the other cases and yet it doesn't import hdl21 correctly, what do you think?). For the last test import sky130 test to pass, this PR needs to be merged in sky130: https://github.com/gdsfactory/skywater130/pull/97

I've also implemented the resistor ladder of a R2R-based DAC from hdl21, see the screenshot:

Screenshot from 2024-06-08 19-50-01

Hopefully this may be useful/helpful to you during your FSIC presentation which I look forward to! I believe there is a lot of power in this functionality now, and a good direction to grow - since there might be easier ways to translate from vlsir-xschem than directly to gdsfactory(but now they can be imported like this directly since it's the same proto as hdl21).

daquintero avatar Jun 08 '24 18:06 daquintero