Eva
06/27/2024, 9:48 AMChetanya Goyal
06/27/2024, 11:21 AM# 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 AMtest.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
Eva
06/27/2024, 12:31 PM