Hi all! I am a bit lost, I have installed everythi...
# ieee-sscs-dc-24
e
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
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
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
klayout -e current_mirror.gds
e
Okay! Amazing thank you very much 🙂
🙌 1