Mohamed Kassem | 7a3f478 | 2020-10-27 12:31:18 -0700 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
| 3 | export MAGTYPE=mag ; |
| 4 | export BASE=/home/mk/zooz/ ; |
| 5 | export PDKPATH=$BASE/pdks/ef-skywater-s8/EFS8A ; |
| 6 | |
| 7 | magic -dnull -noconsole -rcfile $PDKPATH/libs.tech/magic/current/EFS8A.magicrc <<EOF |
| 8 | load $1.mag |
| 9 | save $1.mag |
| 10 | writeall force |
| 11 | select top cell |
| 12 | extract style ngspice(si) |
| 13 | extract |
| 14 | ext2spice hierarchy on |
| 15 | ext2spice format ngspice |
| 16 | ext2spice cthresh infinite |
| 17 | ext2spice rthresh infinite |
| 18 | ext2spice renumber offS |
| 19 | ext2spice scale off |
| 20 | ext2spice blackbox on |
| 21 | ext2spice subcircuit top auto |
| 22 | ext2spice global off |
| 23 | ext2spice $1.ext |
| 24 | quit -noprompt |
| 25 | EOF |