blob: 79257dfb705771686a9a1201c7a3a299649eed02 [file] [log] [blame]
mkk91ada922020-12-02 09:08:26 -08001#!/bin/sh
2export PDK_ROOT=~/foss/pdks/open_pdks/sky130;
3export MAGTYPE=mag ;
4export PDKPATH=$PDK_ROOT/sky130A ;
5export MAGIC=magic
6
7
8$MAGIC -rcfile $PDKPATH/libs.tech/magic/current/sky130A.magicrc -dnull -noconsole << EOF
9#------------------------------------------------------
10drc off
11#---------------------------------gds polygon subcell true
12gds warning default
13gds readonly true
14gds rescale false
15#---------------------------------tech unlock *
16gds read $1
17load ${1%.gds}
18#---------------------------------readspice ${1%.gds}.sp
19cellname delete "(UNNAMED)"
20save ${1%.gds}.mag
21quit -noprompt
22EOF