Hi all! I am a bit lost, I have installed everything on docker and done the python test and it works, but now what is the next step? I have seen that we have notebooks, but then which is the purpose of docker and everything that we have installed if those are run in google colab? I have tried to run the current mirror from the terminal, but it does not open (I expected to be like the test that we did), I am quite confused.
Thanks in advance
c
Chetanya Goyal
06/27/2024, 11:21 AM
Hello!
The notebooks are for reference mostly, they tell you how a PCell can be coded up from scratch, you can run them locally or on colab
To actually run presently existing pcells, you'll want to do something like this in a new file (assuming you have the glayout pip package installed)
Copy code
# say the file is called test.py
from glayout.flow.blocks.current_mirror import current_mirror
from glayout.flow.pdk.sky130_mapped import sky130_mapped_pdk
my_current_mirror_comp = current_mirror(pdk = sky130_mapped_pdk)
my_current_mirror_comp.write_gds('current_mirror.gds')
# you can also do my_current_mirror_comp.show() if you have klive set up properly
Chetanya Goyal
06/27/2024, 11:24 AM
You can then run
test.py
and it will output a gds file of the current mirror pcell that we made, which you can open in klayout with
Linen is a search-engine friendly community platform. We offer integrations with existing Slack/Discord communities and make those conversations Google-searchable.