Pepijn de Vos
06/17/2022, 2:38 PMmagic -rcfile /usr/local/share/pdk/sky130B/libs.tech/magic/sky130B.magicrc -dnull -noconsole << EOF
drc off
box 0 0 0 0
cellname rename "(UNNAMED)" nfet_1v8_7x015
gencell sky130::sky130_fd_pr__nfet_01v8 nfet_1v8_7x015 w 7 l 0.15 guard 0 botc 0
gds write nfet_1v8_7x015.gds
quit -noprompt
EOF
Tim Edwards
06/17/2022, 4:18 PMPepijn de Vos
06/17/2022, 4:20 PMTim Edwards
06/17/2022, 4:29 PMTim Edwards
06/17/2022, 4:34 PMTim Edwards
06/17/2022, 4:35 PMPepijn de Vos
06/17/2022, 4:47 PMTim Edwards
06/17/2022, 5:15 PMviasrc
, viadrn
, viagate
bring the ports up to metal1; I don't have any methods for going higher than that. The values can run from -100 to +100. 0 means no via, while + values anchor the contact at top or right, - values anchor the contact at bottom or left, and unsigned values anchor the contact at center (Tcl treats all values as strings, so "+100" and "100" are different strings and can be handled differently). The value is the percentage of the total width of the source, drain, or gate that is taken up by the contact. That way, you can specify all sources in a multi-finger device to be contacted at the top, and all drains to be contacted at the bottom, so that you can run metal strips horizontally across top and bottom to connect all drains and all sources.Tim Edwards
06/17/2022, 5:23 PMdrc off
box 0 0 0 0
gencell sky130::sky130_fd_pr__nfet_01v8 tempcell w 7 l 0.15 guard 0 botc 0
select cell tempcell
pushstack
cellname rename nfet_1v8_7x015
gds write nfet_1v8_7x015
quit -noprompt