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