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